Skip to content

Commit

Permalink
Improve proguard rules
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisCAD committed Jul 22, 2019
1 parent 7370488 commit 3b6f548
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
File renamed without changes.
8 changes: 7 additions & 1 deletion samples/android-app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ android {
versionCode = 1
versionName = ProjectVersions.thisLibrary
resConfigs("en", "fr")
proguardFile(getDefaultProguardFile("proguard-android-optimize.txt"))
proguardFile("../proguard-android-really-optimize.txt")
proguardFile("proguard-rules.pro")
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
Expand All @@ -46,6 +46,12 @@ android {
manifest.srcFile("src/androidMain/AndroidManifest.xml")
res.srcDir("src/androidMain/res")
}
packagingOptions {
exclude("**/*.kotlin_module")
exclude("**/*.kotlin_builtins")
exclude("**/*.kotlin_metadata")
exclude("META-INF/kotlinx-coroutines-core.kotlin_module")
}
}

kotlin {
Expand Down
4 changes: 4 additions & 0 deletions samples/android-app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,7 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

-keep class com.google.android.material.theme.MaterialComponentsViewInflater {
<init>(...);
}

0 comments on commit 3b6f548

Please sign in to comment.