8a6cb02dc0
Replace 36 MB of MP3 files with 4.6 MB of M4A (AAC-LC) files encoded at 32kbps mono. M4A is required for iOS/Safari compatibility in Capacitor's WKWebView. Enable R8 minification and resource shrinking in the Android release build to further reduce APK size. Add ProGuard rules to keep Capacitor and OkHttp classes.
29 lines
855 B
Prolog
29 lines
855 B
Prolog
# Add project specific ProGuard rules here.
|
|
# You can control the set of applied configuration files using the
|
|
# proguardFiles setting in build.gradle.
|
|
#
|
|
# For more details, see
|
|
# http://developer.android.com/guide/developing/tools/proguard.html
|
|
|
|
# Keep Capacitor classes (WebView JS bridge)
|
|
-keep class com.getcapacitor.** { *; }
|
|
-keep class pub.ditto.app.** { *; }
|
|
|
|
# Keep WebView JS interfaces
|
|
-keepclassmembers class * {
|
|
@android.webkit.JavascriptInterface <methods>;
|
|
}
|
|
|
|
# Keep OkHttp (used by Capacitor)
|
|
-dontwarn okhttp3.**
|
|
-dontwarn okio.**
|
|
-keep class okhttp3.** { *; }
|
|
|
|
# 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
|