Skip to content

Commit

Permalink
Remove the profiling variant and add the R8 rule to the consumer file
Browse files Browse the repository at this point in the history
  • Loading branch information
jayohms committed Aug 29, 2023
1 parent 17c78e9 commit c4709d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
7 changes: 0 additions & 7 deletions turbo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@ android {
}

buildTypes {
create("profiling") {
debuggable false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
signingConfig getByName("debug").signingConfig
}

release {
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
Expand Down
3 changes: 3 additions & 0 deletions turbo/proguard-consumer-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@
-keep class sun.misc.Unsafe { *; }

-keep class dev.hotwire.turbo.** { *; }

# Resolve R8 issue: "ERROR: R8: Missing class java.lang.invoke.StringConcatFactory"
-dontwarn java.lang.invoke.StringConcatFactory

0 comments on commit c4709d2

Please # to comment.