Skip to content

Commit

Permalink
Enable desugaring on all projects
Browse files Browse the repository at this point in the history
  • Loading branch information
kylecorry31 committed Jan 6, 2024
1 parent cfaeb35 commit ec5f9e8
Show file tree
Hide file tree
Showing 21 changed files with 38 additions and 41 deletions.
2 changes: 2 additions & 0 deletions alerts/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -60,6 +61,7 @@ dependencies {
implementation "androidx.core:core-ktx:${coreKtxVersion}"
implementation "androidx.appcompat:appcompat:${appCompatVersion}"
implementation "com.google.android.material:material:${materialVersion}"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions battery/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -56,6 +57,7 @@ afterEvaluate {
dependencies {
implementation project(path: ':core')
implementation "androidx.core:core-ktx:${coreKtxVersion}"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions canvas/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -55,6 +56,7 @@ afterEvaluate {

dependencies {
implementation "androidx.core:core-ktx:${coreKtxVersion}"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions clipboard/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -56,6 +57,7 @@ afterEvaluate {
dependencies {
implementation project(':alerts')
implementation "androidx.core:core-ktx:${coreKtxVersion}"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions compression/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -55,6 +56,7 @@ afterEvaluate {

dependencies {
implementation "androidx.core:core-ktx:${coreKtxVersion}"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions csv/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -62,6 +63,7 @@ dependencies {
implementation project(':core')
implementation "androidx.core:core-ktx:${coreKtxVersion}"
implementation 'com.github.doyaaaaaken:kotlin-csv-jvm:1.9.2'
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'org.junit.platform:junit-platform-runner:1.10.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.1'
Expand Down
2 changes: 2 additions & 0 deletions files/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -57,6 +58,7 @@ dependencies {
implementation project(':core')
implementation "androidx.core:core-ktx:${coreKtxVersion}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${coroutinesVersion}"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions forms/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -61,6 +62,7 @@ dependencies {
implementation "androidx.core:core-ktx:${coreKtxVersion}"
implementation "androidx.appcompat:appcompat:${appCompatVersion}"
implementation "com.google.android.material:material:${materialVersion}"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions json/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -58,6 +59,7 @@ dependencies {
implementation "androidx.core:core-ktx:${coreKtxVersion}"
testImplementation 'junit:junit:4.13.2'
implementation 'com.google.code.gson:gson:2.10.1'
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
2 changes: 2 additions & 0 deletions list/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -59,6 +60,7 @@ dependencies {
implementation project(':core')
implementation "androidx.core:core-ktx:${coreKtxVersion}"
implementation 'androidx.recyclerview:recyclerview:1.3.2'
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions markdown/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -58,6 +59,7 @@ dependencies {
testImplementation 'junit:junit:4.13.2'
implementation "io.noties.markwon:core:4.6.2"
implementation "io.noties.markwon:linkify:4.6.2"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
2 changes: 2 additions & 0 deletions print/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -58,6 +59,7 @@ dependencies {
implementation "androidx.core:core-ktx:${coreKtxVersion}"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${coroutinesVersion}"
implementation 'androidx.print:print:1.0.0'
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions qr/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -56,6 +57,7 @@ afterEvaluate {
dependencies {
implementation "androidx.core:core-ktx:${coreKtxVersion}"
implementation 'com.google.zxing:core:3.5.2'
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down

This file was deleted.

This file was deleted.

2 changes: 2 additions & 0 deletions sms/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -56,6 +57,7 @@ afterEvaluate {
dependencies {
implementation "androidx.core:core-ktx:${coreKtxVersion}"
implementation project(path: ':core')
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions speech/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -56,6 +57,7 @@ afterEvaluate {
dependencies {
implementation project(':core')
implementation "androidx.core:core-ktx:${coreKtxVersion}"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions tensorflow/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -58,4 +59,5 @@ dependencies {
implementation "org.tensorflow:tensorflow-lite-support:0.4.4"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:${coroutinesVersion}"
implementation "androidx.core:core-ktx:${coreKtxVersion}"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
}
2 changes: 2 additions & 0 deletions torch/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -56,6 +57,7 @@ afterEvaluate {
dependencies {
implementation project(':core')
implementation "androidx.core:core-ktx:${coreKtxVersion}"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down
2 changes: 2 additions & 0 deletions wkt/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -60,6 +61,7 @@ afterEvaluate {

dependencies {
implementation project(':core')
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'org.junit.platform:junit-platform-runner:1.10.1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.10.1'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.10.1'
Expand Down
2 changes: 2 additions & 0 deletions xml/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ android {
}
}
compileOptions {
coreLibraryDesugaringEnabled true
sourceCompatibility JavaVersion.VERSION_11
targetCompatibility JavaVersion.VERSION_11
}
Expand Down Expand Up @@ -56,6 +57,7 @@ afterEvaluate {
dependencies {
implementation project(':core')
implementation "androidx.core:core-ktx:${coreKtxVersion}"
coreLibraryDesugaring "com.android.tools:desugar_jdk_libs:${desugarVersion}"
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
Expand Down

0 comments on commit ec5f9e8

Please sign in to comment.