From 46ca39d51083309f25bb2ed6cc5b0b226d82c98c Mon Sep 17 00:00:00 2001 From: akurasov <86794754+akurasov@users.noreply.github.com> Date: Mon, 27 Dec 2021 14:16:37 +0300 Subject: [PATCH] Adding obfuscation info (#1624) * Update README.md * Update README.md --- .../Native_distributions_and_local_execution/README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tutorials/Native_distributions_and_local_execution/README.md b/tutorials/Native_distributions_and_local_execution/README.md index 351c013726..b8481000fd 100755 --- a/tutorials/Native_distributions_and_local_execution/README.md +++ b/tutorials/Native_distributions_and_local_execution/README.md @@ -544,3 +544,9 @@ fun main() { ``` 3. Run `./gradlew runDistributable`. 4. Links like `compose://foo/bar` are now redirected from a browser to your application. + +## Obfuscation + +To obfuscate Compose Multiplatform JVM applications standard approach for JVM application works. Using task packageUberJarForCurrentOS one could generate JAR file which could be later obfuscated using ProGuard or R8, see for example https://stackoverflow.com/questions/64355998/proguard-example-for-gradle-java-application. + +Also example in the document using Kotlin DSL would be better, as above link uses Groovy.