Skip to content

Commit

Permalink
Updated build.gradle that enables desugaring
Browse files Browse the repository at this point in the history
  • Loading branch information
sacOO7 committed May 9, 2024
1 parent 751fd95 commit de17a07
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ android {
compileSdkVersion 30

defaultConfig {
// Required when setting minSdkVersion to 20 or lower
multiDexEnabled true
buildConfigField 'String', 'LIBRARY_NAME', '"android"'
buildConfigField 'String', 'VERSION', "\"$version\""
minSdkVersion 19
Expand All @@ -43,6 +45,8 @@ android {
}

compileOptions {
// Flag to enable support for the new language APIs
coreLibraryDesugaringEnabled true
sourceCompatibility 1.8
targetCompatibility 1.8
}
Expand Down Expand Up @@ -86,6 +90,7 @@ tasks.withType(com.android.build.gradle.internal.tasks.AndroidTestTask) { task -

apply from: '../dependencies.gradle'
dependencies {
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.9'
implementation 'com.google.firebase:firebase-messaging:22.0.0'
androidTestImplementation 'com.android.support.test:runner:0.5'
androidTestImplementation 'com.android.support.test:rules:0.5'
Expand Down

0 comments on commit de17a07

Please sign in to comment.