From e1d0a39cf47ecf423c3cdd478f709bc8d001cc94 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 3 Feb 2022 14:01:09 +0100 Subject: [PATCH] Add proguard configuration to tutorial (#1786) --- .../README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tutorials/Native_distributions_and_local_execution/README.md b/tutorials/Native_distributions_and_local_execution/README.md index 154c889f21..27f7d473a2 100755 --- a/tutorials/Native_distributions_and_local_execution/README.md +++ b/tutorials/Native_distributions_and_local_execution/README.md @@ -610,3 +610,19 @@ tasks.register("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.** { *; } +```