Skip to content

Commit

Permalink
feat: more release optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
rushiiMachine committed Mar 4, 2024
1 parent 0d8a04a commit 52e24e7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 4 additions & 0 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 4 additions & 6 deletions app/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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

0 comments on commit 52e24e7

Please sign in to comment.