Skip to content

Commit 6a3a323

Browse files
update the AGP version and enable core library in test app to support Java8+ APIs.
PiperOrigin-RevId: 747546396
1 parent fed6329 commit 6a3a323

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

lite/examples/image_classification/android_play_services/app/build.gradle

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ android {
2828
// ImageClassificationHelper class uses android.util.Size(), which is
2929
// available from SDK 21.
3030
minSdkVersion 21
31-
targetSdkVersion 31
31+
targetSdkVersion 33
3232
versionCode 1
3333
versionName "0.0.1"
3434

@@ -44,6 +44,7 @@ android {
4444
compileOptions {
4545
sourceCompatibility rootProject.ext.java_version
4646
targetCompatibility rootProject.ext.java_version
47+
coreLibraryDesugaringEnabled true
4748
}
4849

4950
kotlinOptions {
@@ -117,6 +118,8 @@ dependencies {
117118
androidTestImplementation 'com.google.truth:truth:1.1.3'
118119
androidTestImplementation 'com.google.android.gms:play-services-tasks:18.0.1'
119120

121+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.3'
122+
120123
}
121124

122125
// Download default models; if you wish to use your own models then

lite/examples/image_classification/android_play_services/app/src/java/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
-->
2121
<uses-sdk
2222
android:minSdkVersion="21"
23-
android:targetSdkVersion="31" />
23+
android:targetSdkVersion="33" />
2424
</manifest>

lite/examples/image_classification/android_play_services/app/src/kotlin/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
-->
2121
<uses-sdk
2222
android:minSdkVersion="21"
23-
android:targetSdkVersion="31" />
23+
android:targetSdkVersion="33" />
2424
</manifest>

lite/examples/image_classification/android_play_services/app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
-->
2121
<uses-sdk
2222
android:minSdkVersion="21"
23-
android:targetSdkVersion="31" />
23+
android:targetSdkVersion="33" />
2424
<!-- Declare features -->
2525
<uses-feature android:name="android.hardware.camera" />
2626

lite/examples/image_classification/android_play_services/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ buildscript {
1818

1919
ext {
2020
// Top-level variables used for versioning
21-
ext.kotlin_version = '1.8.20'
21+
ext.kotlin_version = '2.1.0'
2222
ext.java_version = JavaVersion.VERSION_1_8
2323
}
2424

@@ -28,7 +28,7 @@ buildscript {
2828
}
2929

3030
dependencies {
31-
classpath 'com.android.tools.build:gradle:8.1.1'
31+
classpath 'com.android.tools.build:gradle:8.2.0'
3232
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
3333
classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.11.1'
3434
classpath 'de.undercouch:gradle-download-task:5.5.0'

0 commit comments

Comments
 (0)