feat: more release optimizations

This commit is contained in:
rushiiMachine 2024-03-03 21:08:25 -08:00
parent 0d8a04af62
commit 52e24e742e
No known key found for this signature in database
GPG key ID: DCBE5952BB3B6420
2 changed files with 8 additions and 6 deletions

View file

@ -77,6 +77,10 @@ android {
// okhttp3 is used by some lib (no cookies so publicsuffixes.gz can be dropped)
excludes += "/okhttp3/**"
}
jniLibs {
// x86 is dead
excludes += "/lib/x86/*.so"
}
}
compileOptions {

View file

@ -28,12 +28,6 @@
# Serializer for classes with named companion objects are retrieved using `getDeclaredClasses`.
# If you have any, uncomment and replace classes with those containing named companion objects.
-keepattributes InnerClasses # Needed for `getDeclaredClasses`.
#-if @kotlinx.serialization.Serializable class
#com.xinto.opencord.gateway.io.OpCode, # <-- List serializable classes with named companions.
#com.xinto.opencord.gateway.io.EventName
#{
# static **$* *;
#}
-keepnames class <1>$$serializer { # -keepnames suffices; class is kept when serializer() is kept.
static <1>$$serializer INSTANCE;
}
@ -47,6 +41,10 @@
# Amount of optimization iterations, taken from an SO post
-optimizationpasses 5
-mergeinterfacesaggressively
# Broaden access modifiers to increase results during optimization
-allowaccessmodification
# Suppress missing class warnings
-dontwarn org.slf4j.impl.StaticLoggerBinder