Skip to content

Commit 34b4c01

Browse files
authored
Merge pull request #2232 from HuiSF/fix/datastore-android-java8
fix(datastore): enable java8 desugaring for amplify-android datastore…
2 parents 84396c9 + b72d52e commit 34b4c01

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/amplify_datastore/android/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ android {
5353
htmlReport false
5454
}
5555
compileOptions {
56+
// Support for Java 8 features
57+
coreLibraryDesugaringEnabled true
5658
sourceCompatibility JavaVersion.VERSION_1_8
5759
targetCompatibility JavaVersion.VERSION_1_8
5860
}
@@ -69,6 +71,9 @@ android {
6971
}
7072

7173
dependencies {
74+
// Support for Java 8 features
75+
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
76+
7277
implementation "com.amplifyframework:aws-datastore:1.37.2"
7378
implementation "com.amplifyframework:aws-api-appsync:1.37.2"
7479

0 commit comments

Comments
 (0)