Skip to content

Commit b44553a

Browse files
Don't obfuscate the code when running R8
1 parent 8706ec0 commit b44553a

File tree

4 files changed

+14
-12
lines changed

4 files changed

+14
-12
lines changed

app/build.gradle.kts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ android {
2121
buildTypes {
2222
getByName("release") {
2323
isMinifyEnabled = true
24+
isShrinkResources = true
2425
proguardFiles(
25-
getDefaultProguardFile(
26-
"proguard-android-optimize.txt"
27-
),
28-
"proguard-rules.pro"
26+
getDefaultProguardFile(
27+
"proguard-android.txt"
28+
),
29+
"proguard-rules.pro"
2930
)
30-
3131
}
3232
}
3333
compileOptions {

app/proguard-rules.pro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@
1818

1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
21+
#-renamesourcefileattribute SourceFile
22+
-dontobfuscate
23+
24+
-keep class com.afollestad.rxkprefs.* { *; }

data/build.gradle.kts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,11 @@ android {
2828
isMinifyEnabled = true
2929
proguardFiles(
3030
getDefaultProguardFile(
31-
"proguard-android-optimize.txt"
31+
"proguard-android.txt"
3232
),
3333
"proguard-rules.pro"
3434
)
3535
}
36-
getByName("debug") {
37-
buildConfigField("String", "ACCESS_TOKEN", "\"$accessToken\"")
38-
isMinifyEnabled = false
39-
}
4036
}
4137
compileOptions {
4238
sourceCompatibility = JavaVersion.VERSION_1_8

data/proguard-rules.pro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@
1818

1919
# If you keep the line number information, uncomment this to
2020
# hide the original source file name.
21-
#-renamesourcefileattribute SourceFile
21+
#-renamesourcefileattribute SourceFile
22+
-dontobfuscate
23+
24+
-keep class com.afollestad.rxkprefs.* { *; }

0 commit comments

Comments
 (0)