Privacy-preserving location sharing with end-to-end encryption coord.is
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Enable minification and ABI splits for Android

- Enable R8 minification and resource shrinking for release builds
- Add ABI splits to produce per-architecture APKs
- Add ProGuard keep rules for JNA and UniFFI (required for native bindings)
- Gitignore jniLibs build artifacts

+31 -2
+2 -1
android/app/.gitignore
··· 1 - /build 1 + /build 2 + /src/main/jniLibs/
+18 -1
android/app/build.gradle.kts
··· 44 44 buildTypes { 45 45 debug { 46 46 buildConfigField("Boolean", "USE_MOCK_FRIENDS", "true") 47 + // Temporarily test minification 48 + isMinifyEnabled = true 49 + isShrinkResources = true 50 + proguardFiles( 51 + getDefaultProguardFile("proguard-android-optimize.txt"), 52 + "proguard-rules.pro" 53 + ) 47 54 } 48 55 release { 49 - isMinifyEnabled = false 56 + isMinifyEnabled = true 57 + isShrinkResources = true 50 58 proguardFiles( 51 59 getDefaultProguardFile("proguard-android-optimize.txt"), 52 60 "proguard-rules.pro" ··· 65 73 buildFeatures { 66 74 compose = true 67 75 buildConfig = true 76 + } 77 + 78 + splits { 79 + abi { 80 + isEnable = true 81 + reset() 82 + include("arm64-v8a", "armeabi-v7a", "x86_64", "x86") 83 + isUniversalApk = false 84 + } 68 85 } 69 86 } 70 87
+11
android/app/proguard-rules.pro
··· 5 5 # For more details, see 6 6 # http://developer.android.com/guide/developing/tools/proguard.html 7 7 8 + # JNA - required for UniFFI native bindings 9 + # JNA uses reflection to find native methods 10 + -dontwarn java.awt.* 11 + -keep class com.sun.jna.** { *; } 12 + -keep class * implements com.sun.jna.** { *; } 13 + -keepclassmembers class * extends com.sun.jna.** { public *; } 14 + 15 + # UniFFI generated bindings 16 + -keep class uniffi.** { *; } 17 + -keepclassmembers class uniffi.** { *; } 18 + 8 19 # If your project uses WebView with JS, uncomment the following 9 20 # and specify the fully qualified class name to the JavaScript interface 10 21 # class: