Skip to content

Commit 54e8d1c

Browse files
authored
Merge pull request #371 from alabiaga/main
Fix merge manifest issue causing platform samples not to build
2 parents d440341 + 87d5e69 commit 54e8d1c

6 files changed

Lines changed: 214 additions & 129 deletions

File tree

app/src/main/AndroidManifest.xml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,24 @@
1414
~ limitations under the License.
1515
-->
1616

17-
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
17+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
18+
xmlns:tools="http://schemas.android.com/tools">
19+
20+
<!--
21+
Modules/samples below use a lib that requires a minSdk higher than that of the.
22+
main app. Rather than updating the main app's minSdk, override those libraries minSdk.
23+
Removing this would otherwise cause a Manifest merger issue.
24+
See https://developer.android.com/build/manage-manifests#merge_conflict_heuristics
25+
-->
26+
<uses-sdk tools:overrideLibrary="com.example.platform.storage, androidx.photopicker.compose, com.example.platform.connectivity.uwb" />
1827

1928
<application
2029
android:enableOnBackInvokedCallback="true"
2130
android:icon="@mipmap/ic_launcher"
2231
android:label="@string/app_name"
2332
android:roundIcon="@mipmap/ic_launcher"
2433
android:supportsRtl="true">
34+
2535
<activity
2636
android:name=".app.MainActivity"
2737
android:exported="true"

app/src/main/java/com/example/platform/app/ApiSurface.kt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,10 @@ val PrivacyTransparencyApiSurface = ApiSurface(
120120
val StorageApiSurface = ApiSurface(
121121
"storage",
122122
"Storage",
123-
"Android photo library access capabilities.\nPhoto Picker for unified device and cloud photo access, and MediaStore for detailed local media querying",
123+
"""Android photo library access capabilities.
124+
Photo Picker for unified device and cloud photo access, and MediaStore for detailed local media querying.
125+
126+
WARNING: These samples only work on devices with Android 14 or higher.""".trimMargin()
124127
)
125128

126129
val UserInterfaceAppWidgetsApiSurface = ApiSurface(

gradlew

Lines changed: 176 additions & 109 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)