Skip to content

Commit 99cedf9

Browse files
committed
update proguard configuration
1 parent 53d6507 commit 99cedf9

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

cli/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ val buildWithR8 by tasks.registering(JavaExec::class) {
4343
val proguardRulesFile = layout.projectDirectory.file("proguard-rules.pro").asFile
4444
val jar = layout.buildDirectory.file("install/cli-shadow/lib/$baseName-$version-all.jar").map { it.asFile }
4545

46-
inputs.file(jar)
47-
inputs.file(proguardRulesFile)
46+
inputs.files(jar, proguardRulesFile)
4847
outputs.file(jar)
4948

5049
classpath(r8)

cli/proguard-rules.pro

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
public static ** valueOf(java.lang.String);
1212
}
1313

14-
-keep class org.xmlpull.v1.** { *; }
15-
-keep class org.xmlpull.mxp1.** { *; }
14+
-keep class org.xmlpull.v1.XmlPullParser { *; }
15+
-keep class * extends org.xmlpull.v1.XmlPullParser {
16+
<init>(...);
17+
<methods>;
18+
}
1619

17-
-dontwarn com.google.j2objc.annotations.**
18-
-dontwarn org.graalvm.nativeimage.**
19-
-dontwarn org.graalvm.word.**
20-
-dontwarn com.oracle.svm.core.annotate.**
20+
-dontwarn org.xmlpull.mxp1.**

0 commit comments

Comments
 (0)