mirror of
https://github.com/beemdevelopment/Aegis.git
synced 2025-04-25 00:06:08 +00:00
This enables some minification and optimization options to shrink the size of our APK. A release APK would previously be 12 MB in size, but would now be 8.2 MB. To test, check if *all* of the functionality of the app still works, particularly parts that refer to dependencies. You'll know if ProGuard broke something when the app crashes with a ``ClassNotFoundException`` or similar exception. I think I've covered all of the cases where ProGuard removed too much in the rule file. Also, I was curious why our APK had gotten so large to begin with. I did some digging and found that this is caused by the SQLCipher dependency. The APK shrinks down to 2.7 MB without it! We should consider whether having support for importing from Authenticator Plus is worth the extra 5.5 MB in size.
20 lines
748 B
Prolog
20 lines
748 B
Prolog
# Add project specific ProGuard rules here.
|
|
# By default, the flags in this file are appended to flags specified
|
|
# in /home/alex/Android/Sdk/tools/proguard/proguard-android.txt
|
|
# You can edit the include path and order by changing the proguardFiles
|
|
# directive in build.gradle.
|
|
#
|
|
# For more details, see
|
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
|
|
# Add any project specific keep options here:
|
|
|
|
# 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 *;
|
|
#}
|
|
|
|
-keep class com.beemdevelopment.aegis.importers.** { *; }
|
|
-keep class net.sqlcipher.** { *; }
|