enable Java 17 language features

This commit is contained in:
Daniel Gultsch 2023-10-25 20:00:44 +02:00
parent 10c47d86e9
commit 30d681bcb8
No known key found for this signature in database
GPG key ID: F43D18AD2A0982C2

View file

@ -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