Browse Source

Add proguard configuration to tutorial (#1786)

pull/1793/head
Sebastian 3 years ago committed by GitHub
parent
commit
e1d0a39cf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      tutorials/Native_distributions_and_local_execution/README.md

16
tutorials/Native_distributions_and_local_execution/README.md

@ -610,3 +610,19 @@ tasks.register<ProGuardTask>("obfuscate") {
configuration("proguard-rules.pro")
}
```
This ProGuard configuration should get you started:
```
# proguard-rules.pro
-dontoptimize
-dontobfuscate
-dontwarn kotlinx.**
-keepclasseswithmembers public class com.example.MainKt {
public static void main(java.lang.String[]);
}
-keep class org.jetbrains.skia.** { *; }
-keep class org.jetbrains.skiko.** { *; }
```

Loading…
Cancel
Save