Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@ android {
}
release {
// R8 is what makes Compose fast in release: it strips the debug-only paths, inlines
// and devirtualises the runtime. Every library we use ships its own keep rules.
// and devirtualises the runtime. Libraries ship their own keep rules;
// proguard-rules.pro holds workarounds.
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"), "proguard-rules.pro")
}
create("benchmark") {
initWith(getByName("release"))
Expand Down
2 changes: 2 additions & 0 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Works around a native crash in JIT-compiled OkHttp hostname parsing by keeping the IDN table out of that method.
-keep,allowobfuscation class okhttp3.internal.idn.** { <fields>; <methods>; }
Loading