diff --git a/android/proguard-android-optimize.txt b/android/proguard-android-optimize.txt deleted file mode 100644 index e2095ad6..00000000 --- a/android/proguard-android-optimize.txt +++ /dev/null @@ -1,36 +0,0 @@ --allowaccessmodification --dontpreverify --dontusemixedcaseclassnames --dontskipnonpubliclibraryclasses --verbose - --keepattributes *Annotation* - --keepclasseswithmembernames class * { - native ; -} - --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 ; -} - --keepclasseswithmembers class * { - @androidx.annotation.Keep ; -} - --keepclasseswithmembers class * { - @androidx.annotation.Keep (...); -} diff --git a/android/proguard-rules.pro b/android/proguard-rules.pro deleted file mode 100644 index a8812399..00000000 --- a/android/proguard-rules.pro +++ /dev/null @@ -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 diff --git a/build-logic/android-plugins/src/main/kotlin/dev.msfjarvis.claw.android-application.gradle.kts b/build-logic/android-plugins/src/main/kotlin/dev.msfjarvis.claw.android-application.gradle.kts index 0fab3627..8cca92c8 100644 --- a/build-logic/android-plugins/src/main/kotlin/dev.msfjarvis.claw.android-application.gradle.kts +++ b/build-logic/android-plugins/src/main/kotlin/dev.msfjarvis.claw.android-application.gradle.kts @@ -22,15 +22,7 @@ android { buildFeatures { buildConfig = true } buildTypes { - named("release") { - setProguardFiles( - listOf( - "proguard-android-optimize.txt", - "proguard-rules.pro", - "proguard-rules-missing-classes.pro", - ) - ) - } + named("release") { isMinifyEnabled = false } named("debug") { applicationIdSuffix = ".debug" versionNameSuffix = "-debug"