Skip to content

Commit 09b7119

Browse files
nattb8claude
andcommitted
fix(audience-sdk): use namespace-URI-aware lookup in AndroidManifestPostProcessor
Replace prefix-dependent `Attributes["android:name"]` with `Attributes.GetNamedItem("name", AndroidNs)` so the duplicate-permission check uses the same namespace-URI lookup as the SetAttribute insertion, making both sides of the guard consistent. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 1fc603f commit 09b7119

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Packages/Audience/Editor/AndroidManifestPostProcessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void OnPostGenerateGradleAndroidProject(string path)
3535
foreach (XmlNode node in root.ChildNodes)
3636
{
3737
if (node.Name == "uses-permission" &&
38-
node.Attributes?["android:name"]?.Value == InternetPermission)
38+
node.Attributes?.GetNamedItem("name", AndroidNs)?.Value == InternetPermission)
3939
return;
4040
}
4141

0 commit comments

Comments
 (0)