Skip to content
This repository was archived by the owner on Oct 20, 2023. It is now read-only.

Commit 4a31b8a

Browse files
authored
Merge pull request #54 from w4123/fix_compat
Fix compatibility issue with desugared plugins
2 parents 3850bd7 + 49a8ccb commit 4a31b8a

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
2+
import com.android.build.gradle.internal.tasks.L8DexDesugarLibTask
23

34
apply plugin: 'com.android.application'
45
apply plugin: 'kotlin-android'
@@ -87,6 +88,10 @@ android {
8788
configurations {
8889
nnio
8990
}
91+
92+
tasks.withType(L8DexDesugarLibTask) {
93+
keepRulesFiles.from("desugar-rules.pro")
94+
}
9095
}
9196

9297
kotlin.sourceSets.all {

app/desugar-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
-keepclassmembers class ** { *; }

0 commit comments

Comments
 (0)