Skip to content

Commit 9c832bb

Browse files
committed
fix build issue due merge manifest issue
Change-Id: I28fb39fcfc0176739704ae38a95214f16743937a
1 parent c7dd619 commit 9c832bb

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

app/src/main/AndroidManifest.xml

Lines changed: 12 additions & 2 deletions
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+
Module :samples:storage uses an androidx lib that requires a min sdk of 34.
22+
Rather than updating the main app's minSdk, override those libraries minSdk.
23+
Removing this would otherwise cause 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"/>
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"
@@ -33,7 +43,7 @@
3343
</intent-filter>
3444
</activity>
3545

36-
<!--required for TFLite/LiteRT style transfer demo -->
46+
<!--required for TFLite/LiteRT style transfer demo -->
3747
<uses-library
3848
android:name="libOpenCL.so"
3949
android:required="false" />

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ 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.\nPhoto Picker for unified device and "
124+
+ "cloud photo access, and MediaStore for detailed local media querying.\n\n"
125+
+ "WARNING: These samples only work on devices with Android 14 or higher."
124126
)
125127

126128
val UserInterfaceAppWidgetsApiSurface = ApiSurface(

0 commit comments

Comments
 (0)