Skip to content

Commit

Permalink
Merge pull request #178 from akitikkx/feature/176-generate-updated-ba…
Browse files Browse the repository at this point in the history
…seline-profile

Generate updated baseline profile
  • Loading branch information
akitikkx committed Jun 24, 2023
2 parents 2fe9cc4 + 3cf3c89 commit 4092ea1
Show file tree
Hide file tree
Showing 7 changed files with 7,277 additions and 7,714 deletions.
10 changes: 7 additions & 3 deletions app/build.gradle
Expand Up @@ -47,8 +47,8 @@ android {
applicationId "com.theupnextapp"
minSdkVersion 22
targetSdkVersion 33
versionCode 188
versionName "3.5.7"
versionCode 190
versionName "3.5.9"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

ksp {
Expand All @@ -70,7 +70,7 @@ android {

buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
Expand Down Expand Up @@ -106,6 +106,10 @@ android {
ksp {
arg("compose-destinations.generateNavGraphs", "true")
}

hilt {
enableAggregatingTask = true
}
}

dependencies {
Expand Down
79 changes: 78 additions & 1 deletion app/proguard-rules.pro
Expand Up @@ -20,9 +20,86 @@
# hide the original source file name.
#-renamesourcefileattribute SourceFile

# Repackage classes into the top-level.
#-repackageclasses

-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public class * extends com.bumptech.glide.module.AppGlideModule
-keep public enum com.bumptech.glide.load.ImageHeaderParser$** {
**[] $VALUES;
public *;
}
}

# Please add these rules to your existing keep rules in order to suppress warnings.
# This is generated automatically by the Android Gradle plugin.
-dontwarn org.slf4j.impl.StaticLoggerBinder
-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

-keepattributes Signature

# GSON
-keep class com.google.gson.reflect.TypeToken { *; }
-keep class * extends com.google.gson.reflect.TypeToken

#Kotlin
-keep,allowobfuscation,allowshrinking class kotlin.coroutines.Continuation
-keepclassmembers class kotlin.SafePublicationLazyImpl {
java.lang.Object _value;
}

# JSR 305 annotations are for embedding nullability information.
-dontwarn javax.annotation.**

# A resource is loaded with a relative path so the package of this class must be preserved.
-adaptresourcefilenames okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz

# Animal Sniffer compileOnly dependency to ensure APIs are compatible with older versions of Java.
-dontwarn org.codehaus.mojo.animal_sniffer.*

# OkHttp platform used only on JVM and when Conscrypt and other security providers are available.
-dontwarn okhttp3.internal.platform.**
-dontwarn org.conscrypt.**
-dontwarn org.bouncycastle.**
-dontwarn org.openjsse.**

#Retrofit
-keep,allowobfuscation,allowshrinking interface retrofit2.Call
-keep,allowobfuscation,allowshrinking class retrofit2.Response
-if interface * { @retrofit2.http.* public *** *(...); }
-keep,allowoptimization,allowshrinking,allowobfuscation class <3>

-if @kotlinx.serialization.Serializable class **
-keepclassmembers class <1> {
static <1>$Companion Companion;
}

# Keep `serializer()` on companion objects (both default and named) of serializable classes.
-if @kotlinx.serialization.Serializable class ** {
static **$* *;
}
-keepclassmembers class <2>$<3> {
kotlinx.serialization.KSerializer serializer(...);
}

# Keep `INSTANCE.serializer()` of serializable objects.
-if @kotlinx.serialization.Serializable class ** {
public static ** INSTANCE;
}
-keepclassmembers class <1> {
public static <1> INSTANCE;
kotlinx.serialization.KSerializer serializer(...);
}

# @Serializable and @Polymorphic are used at runtime for polymorphic serialization.
-keepattributes RuntimeVisibleAnnotations,AnnotationDefault

-keep class com.theupnextapp.domain.** { *; }
-keep class com.theupnextapp.network.** { *; }
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Expand Up @@ -36,8 +36,9 @@
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.Upnext"
android:enableOnBackInvokedCallback="true"
tools:ignore="GoogleAppIndexingWarning"
tools:targetApi="s"
tools:targetApi="tiramisu"
android:fullBackupContent="false"
android:dataExtractionRules="@xml/data_extraction_rules">
<activity
Expand Down

0 comments on commit 4092ea1

Please sign in to comment.