Skip to content

Commit

Permalink
Merge pull request #124 from mash-up-kr/feature/proguard
Browse files Browse the repository at this point in the history
Proguard 추가(릴리즈 빌드 안되는 이슈)
  • Loading branch information
ddyeon authored Aug 4, 2024
2 parents 759367b + 0760b52 commit 81f3897
Showing 3 changed files with 18 additions and 2 deletions.
1 change: 1 addition & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@ android {
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro",
)
signingConfig = signingConfigs.getByName("debug")
}
}
compileOptions {
17 changes: 16 additions & 1 deletion app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -18,4 +18,19 @@

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
#-renamesourcefileattribute SourceFile
# Do not strip any method/class that is annotated with @DoNotStrip
-keep class com.facebook.jni.** { *; }
-keep class com.facebook.flipper.** { *; }

-dontwarn com.facebook.litho.**
-dontwarn com.facebook.flipper.**
-dontwarn com.facebook.yoga.**
-dontwarn org.mozilla.**
-dontwarn com.facebook.fbui.**

-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation

# R8 full mode strips generic signatures from return types if not kept.
-if interface * { @retrofit2.http.* public *** *(...); }
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
compile-sdk = "34"
min-sdk = "28"
target-sdk = "33"
version-code = "1"
version-code = "2"
versionName = "1.0.0"

agp = "8.1.3"

0 comments on commit 81f3897

Please sign in to comment.