mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 10:37:05 +05:30
android: make it clearer that minify is disabled
This commit is contained in:
parent
3e028e8852
commit
5eff482c0a
3 changed files with 1 additions and 87 deletions
|
@ -1,36 +0,0 @@
|
||||||
-allowaccessmodification
|
|
||||||
-dontpreverify
|
|
||||||
-dontusemixedcaseclassnames
|
|
||||||
-dontskipnonpubliclibraryclasses
|
|
||||||
-verbose
|
|
||||||
|
|
||||||
-keepattributes *Annotation*
|
|
||||||
|
|
||||||
-keepclasseswithmembernames class * {
|
|
||||||
native <methods>;
|
|
||||||
}
|
|
||||||
|
|
||||||
-keepclassmembers enum * {
|
|
||||||
public static **[] values();
|
|
||||||
public static ** valueOf(java.lang.String);
|
|
||||||
}
|
|
||||||
|
|
||||||
-keepclassmembers class * implements android.os.Parcelable {
|
|
||||||
public static final ** CREATOR;
|
|
||||||
}
|
|
||||||
|
|
||||||
-keep class androidx.annotation.Keep
|
|
||||||
|
|
||||||
-keep @androidx.annotation.Keep class * {*;}
|
|
||||||
|
|
||||||
-keepclasseswithmembers class * {
|
|
||||||
@androidx.annotation.Keep <methods>;
|
|
||||||
}
|
|
||||||
|
|
||||||
-keepclasseswithmembers class * {
|
|
||||||
@androidx.annotation.Keep <fields>;
|
|
||||||
}
|
|
||||||
|
|
||||||
-keepclasseswithmembers class * {
|
|
||||||
@androidx.annotation.Keep <init>(...);
|
|
||||||
}
|
|
42
android/proguard-rules.pro
vendored
42
android/proguard-rules.pro
vendored
|
@ -1,42 +0,0 @@
|
||||||
-keepattributes SourceFile,LineNumberTable
|
|
||||||
-keepattributes RuntimeVisibleAnnotations,
|
|
||||||
RuntimeVisibleParameterAnnotations,
|
|
||||||
RuntimeVisibleTypeAnnotations,
|
|
||||||
AnnotationDefault
|
|
||||||
-renamesourcefileattribute SourceFile
|
|
||||||
# Retain the generic signature of retrofit2.Call until added to Retrofit.
|
|
||||||
# Issue: https://github.com/square/retrofit/issues/3580.
|
|
||||||
# Pull request: https://github.com/square/retrofit/pull/3579.
|
|
||||||
-keep,allowobfuscation,allowshrinking class retrofit2.Call
|
|
||||||
|
|
||||||
-keep,allowobfuscation,allowshrinking class dev.msfjarvis.claw.android.** { *; }
|
|
||||||
|
|
||||||
-dontobfuscate
|
|
||||||
|
|
||||||
-keepattributes *Annotation*, InnerClasses
|
|
||||||
-dontnote kotlinx.serialization.AnnotationsKt
|
|
||||||
|
|
||||||
-keepclassmembers class kotlinx.serialization.json.** {
|
|
||||||
*** Companion;
|
|
||||||
}
|
|
||||||
-keepclasseswithmembers class kotlinx.serialization.json.** {
|
|
||||||
kotlinx.serialization.KSerializer serializer(...);
|
|
||||||
}
|
|
||||||
|
|
||||||
-keep,includedescriptorclasses class dev.msfjarvis.claw.model.**$$serializer { *; }
|
|
||||||
-keepclassmembers class dev.msfjarvis.claw.model.** {
|
|
||||||
*** Companion;
|
|
||||||
}
|
|
||||||
-keepclasseswithmembers class dev.msfjarvis.claw.model.** {
|
|
||||||
kotlinx.serialization.KSerializer serializer(...);
|
|
||||||
}
|
|
||||||
|
|
||||||
-dontwarn org.bouncycastle.jsse.BCSSLParameters
|
|
||||||
-dontwarn org.bouncycastle.jsse.BCSSLSocket
|
|
||||||
-dontwarn org.bouncycastle.jsse.provider.BouncyCastleJsseProvider
|
|
||||||
-dontwarn org.conscrypt.Conscrypt$Version
|
|
||||||
-dontwarn org.conscrypt.Conscrypt
|
|
||||||
-dontwarn org.conscrypt.ConscryptHostnameVerifier
|
|
||||||
-dontwarn org.openjsse.javax.net.ssl.SSLParameters
|
|
||||||
-dontwarn org.openjsse.javax.net.ssl.SSLSocket
|
|
||||||
-dontwarn org.openjsse.net.ssl.OpenJSSE
|
|
|
@ -22,15 +22,7 @@ android {
|
||||||
buildFeatures { buildConfig = true }
|
buildFeatures { buildConfig = true }
|
||||||
|
|
||||||
buildTypes {
|
buildTypes {
|
||||||
named("release") {
|
named("release") { isMinifyEnabled = false }
|
||||||
setProguardFiles(
|
|
||||||
listOf(
|
|
||||||
"proguard-android-optimize.txt",
|
|
||||||
"proguard-rules.pro",
|
|
||||||
"proguard-rules-missing-classes.pro",
|
|
||||||
)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
named("debug") {
|
named("debug") {
|
||||||
applicationIdSuffix = ".debug"
|
applicationIdSuffix = ".debug"
|
||||||
versionNameSuffix = "-debug"
|
versionNameSuffix = "-debug"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue