Skip to content

Commit

Permalink
Add <uses-sdk> tag to android manifests for loader AAR.
Browse files Browse the repository at this point in the history
Without it, the manifest merger assumes something silly (<4) and
adds permissions
  • Loading branch information
rpavlik committed Nov 8, 2023
1 parent 5e9bc99 commit 5fbf628
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions changes/sdk/mr.3029.gl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
- pr.434.gh.OpenXR-SDK-Source
---
Loader: Add `<uses-sdk>` elements to loader AAR manifest, to prevent the manifest merger from assuming a version < 4 and adding unneeded permissions accordingly.
3 changes: 3 additions & 0 deletions src/loader/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
SPDX-License-Identifier: Apache-2.0 OR MIT
-->

<!-- If this is not included as a minimum, the manifest merger assumes we target an ancient SDK and adds permissions. -->
<uses-sdk android:minSdkVersion="24" android:targetSdkVersion="24" />

<uses-permission android:name="org.khronos.openxr.permission.OPENXR" />
<uses-permission android:name="org.khronos.openxr.permission.OPENXR_SYSTEM" />

Expand Down
3 changes: 3 additions & 0 deletions src/loader/AndroidManifest.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
SPDX-License-Identifier: Apache-2.0 OR MIT
-->

<!-- If this is not included as a minimum, the manifest merger assumes we target an ancient SDK and adds permissions. -->
<uses-sdk android:minSdkVersion="${ANDROID_PLATFORM}" android:targetSdkVersion="${ANDROID_PLATFORM}" />

<uses-permission android:name="org.khronos.openxr.permission.OPENXR" />
<uses-permission android:name="org.khronos.openxr.permission.OPENXR_SYSTEM" />

Expand Down

0 comments on commit 5fbf628

Please sign in to comment.