diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 625fc5d3d..792286e34 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -46,24 +46,12 @@ android { } buildTypes { - release { - isMinifyEnabled = true - isShrinkResources = true - proguardFiles( - getDefaultProguardFile("proguard-android-optimize.txt"), - "proguard-rules.pro" - ) - } - getByName("prerelease") { initWith(getByName("release")) - isMinifyEnabled = false - isShrinkResources = false - applicationIdSuffix = ".pre_release" - versionNameSuffix = "-PreR-[${getCommitVersion()}]" + versionNameSuffix = "-[${getCommitVersion()}]" - resValue("string", "app_name", "$applicationName Pre-Release") + resValue("string", "app_name", "$applicationName Beta") resValue("string", "application_id", _applicationId + applicationIdSuffix) resValue("string", "version_name", _versionName + versionNameSuffix) } diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro deleted file mode 100644 index a2c2d2735..000000000 --- a/app/proguard-rules.pro +++ /dev/null @@ -1,89 +0,0 @@ -# Add project specific ProGuard rules here. -# You can control the set of applied configuration files using the -# proguardFiles setting in build.gradle.kts. -# -# For more details, see -# http://developer.android.com/guide/developing/tools/proguard.html - -# If your project uses WebView with JS, uncomment the following -# and specify the fully qualified class name to the JavaScript interface -# class: -#-keepclassmembers class fqcn.of.javascript.interface.for.webview { -# public *; -#} - -# Uncomment this to preserve the line number information for -# debugging stack traces. -#-keepattributes SourceFile,LineNumberTable - -# If you keep the line number information, uncomment this to -# hide the original source file name. -#-renamesourcefileattribute SourceFile - -# Silence these mfs --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 --dontwarn edu.umd.cs.findbugs.annotations.SuppressFBWarnings --dontwarn java.lang.instrument.UnmodifiableClassException --dontwarn org.apiguardian.api.API$Status --dontwarn org.apiguardian.api.API --dontwarn org.slf4j.Logger --dontwarn org.slf4j.LoggerFactory -# ================ - -##---------------Begin: proguard configuration for Retrofit2 ----------## - -# Keep generic signature of Call, Response (R8 full mode strips signatures from non-kept items). --keep,allowobfuscation,allowshrinking interface retrofit2.Call --keep,allowobfuscation,allowshrinking class retrofit2.Response - -# With R8 full mode generic signatures are stripped for classes that are not -# kept. Suspend functions are wrapped in continuations where the type argument -# is used. --keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation -##---------------End: proguard configuration for Retrofit2 ----------## - - -##---------------Begin: proguard configuration for Gson ----------## -# Gson uses generic type information stored in a class file when working with fields. Proguard -# removes such information by default, so configure it to keep all of it. --keepattributes Signature - -# For using GSON @Expose annotation --keepattributes *Annotation* - -# Gson specific classes --dontwarn sun.misc.** -#-keep class com.google.gson.stream.** { *; } - -# Application classes that will be serialized/deserialized over Gson --keep class com.flixclusive.model.** { *; } --keep class com.flixclusive.provider.** { *; } --keep class com.flixclusive.extractor.** { *; } --keep class com.flixclusive.core.network.retrofit.dto.** { *; } - -# Prevent proguard from stripping interface information from TypeAdapter, TypeAdapterFactory, -# JsonSerializer, JsonDeserializer instances (so they can be used in @JsonAdapter) --keep class * extends com.google.gson.TypeAdapter --keep class * implements com.google.gson.TypeAdapterFactory --keep class * implements com.google.gson.JsonSerializer --keep class * implements com.google.gson.JsonDeserializer - -# Prevent R8 from leaving Data object members always null --keepclassmembers,allowobfuscation class * { - @com.google.gson.annotations.SerializedName *; -} - - -# Retain generic signatures of TypeToken and its subclasses with R8 version 3.0 and higher. --keep,allowobfuscation,allowshrinking class com.google.gson.reflect.TypeToken --keep,allowobfuscation,allowshrinking class * extends com.google.gson.reflect.TypeToken -##---------------End: proguard configuration for Gson ----------## -