Skip to content

Commit 9007196

Browse files
Fix instrumentation targetPackage default
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 2631bcc commit 9007196

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/Microsoft.Android.Sdk.TrimmableTypeMap/Generator/ComponentElementBuilder.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,6 @@ internal static void AddInstrumentation (XElement manifest, JavaPeerInfo peer, s
176176
return;
177177
}
178178
PropertyMapper.ApplyMappings (element, component.Properties, PropertyMapper.InstrumentationMappings);
179-
if (element.Attribute (AndroidNs + "targetPackage") is null) {
180-
var packageName = (string?) manifest.Attribute ("package");
181-
if (!packageName.IsNullOrEmpty ()) {
182-
element.SetAttributeValue (AndroidNs + "targetPackage", packageName);
183-
}
184-
}
185179

186180
// Default targetPackage to the app package name, matching legacy ManifestDocument behavior
187181
if (element.Attribute (AndroidNs + "targetPackage") is null) {

0 commit comments

Comments
 (0)