enable Java 17 language features
This commit is contained in:
parent
10c47d86e9
commit
30d681bcb8
|
@ -31,6 +31,8 @@ configurations {
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.0.3'
|
||||||
|
|
||||||
implementation 'androidx.viewpager:viewpager:1.0.0'
|
implementation 'androidx.viewpager:viewpager:1.0.0'
|
||||||
|
|
||||||
playstoreImplementation('com.google.firebase:firebase-messaging:23.3.0') {
|
playstoreImplementation('com.google.firebase:firebase-messaging:23.3.0') {
|
||||||
|
@ -121,8 +123,9 @@ android {
|
||||||
}
|
}
|
||||||
|
|
||||||
compileOptions {
|
compileOptions {
|
||||||
sourceCompatibility JavaVersion.VERSION_1_8
|
coreLibraryDesugaringEnabled true
|
||||||
targetCompatibility JavaVersion.VERSION_1_8
|
sourceCompatibility JavaVersion.VERSION_17
|
||||||
|
targetCompatibility JavaVersion.VERSION_17
|
||||||
}
|
}
|
||||||
|
|
||||||
flavorDimensions("mode", "distribution")
|
flavorDimensions("mode", "distribution")
|
||||||
|
@ -231,7 +234,7 @@ android {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
lint {
|
lint {
|
||||||
disable 'MissingTranslation', 'InvalidPackage', 'AppCompatResource', 'ExtraTranslation'
|
disable 'MissingTranslation', 'InvalidPackage', 'AppCompatResource'
|
||||||
}
|
}
|
||||||
buildFeatures {
|
buildFeatures {
|
||||||
buildConfig true
|
buildConfig true
|
||||||
|
|
Loading…
Reference in a new issue