mirror of
https://github.com/tapframe/NuvioStreaming.git
synced 2026-05-17 07:21:58 +00:00
minify build
This commit is contained in:
parent
46d12464bb
commit
d9695acec9
2 changed files with 45 additions and 1 deletions
|
|
@ -318,7 +318,12 @@ android {
|
|||
}
|
||||
buildTypes {
|
||||
getByName("release") {
|
||||
isMinifyEnabled = false
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
proguardFiles(
|
||||
getDefaultProguardFile("proguard-android-optimize.txt"),
|
||||
"proguard-rules.pro",
|
||||
)
|
||||
signingConfig = signingConfigs.getByName("release")
|
||||
ndk {
|
||||
debugSymbolLevel = "FULL"
|
||||
|
|
|
|||
39
composeApp/proguard-rules.pro
vendored
Normal file
39
composeApp/proguard-rules.pro
vendored
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# Project-specific ProGuard rules for composeApp Android release builds.
|
||||
|
||||
# Keep useful metadata for crash reports.
|
||||
-keepattributes SourceFile,LineNumberTable
|
||||
-renamesourcefileattribute SourceFile
|
||||
|
||||
# Preserve Kotlin metadata/signatures needed by reflection/generics-heavy libraries.
|
||||
-keepattributes *Annotation*
|
||||
-keepattributes Signature
|
||||
-keepattributes InnerClasses
|
||||
-keepattributes EnclosingMethod
|
||||
-keepattributes RuntimeVisibleAnnotations
|
||||
|
||||
# Ktor / Supabase client stack (runtime reflective paths in serializers/plugins).
|
||||
-keep class io.github.jan.supabase.** { *; }
|
||||
-keep class io.ktor.** { *; }
|
||||
-dontwarn io.ktor.**
|
||||
|
||||
# Keep @Serializable generated serializers.
|
||||
-keepclassmembers class * {
|
||||
kotlinx.serialization.KSerializer serializer(...);
|
||||
}
|
||||
|
||||
# QuickJS plugin runtime is dynamic; keep runtime and app plugin classes.
|
||||
-keep class com.dokar.quickjs.** { *; }
|
||||
-keep class com.nuvio.app.features.plugins.** { *; }
|
||||
|
||||
# Media3 / ExoPlayer classes from local AAR decoders and stock modules.
|
||||
-dontwarn androidx.media3.**
|
||||
-keep class androidx.media3.** { *; }
|
||||
-keep interface androidx.media3.** { *; }
|
||||
-keep class com.google.android.exoplayer2.** { *; }
|
||||
-keep interface com.google.android.exoplayer2.** { *; }
|
||||
|
||||
# Common optional security providers used by okhttp on some devices.
|
||||
-dontwarn okhttp3.internal.platform.**
|
||||
-dontwarn org.conscrypt.**
|
||||
-dontwarn org.bouncycastle.**
|
||||
-dontwarn org.openjsse.**
|
||||
Loading…
Reference in a new issue