Files
coucou/android/app/proguard-rules.pro
T
Rhytam BiswasandClaude Sonnet 5.5 e0767fbc42 Coucou for Android: the Android app (Kotlin, Jetpack Compose)
Mochi on the phone, approvals behind the fingerprint, notifications, pairing by QR or link,
chat, plan usage, services, island over other apps. Free, no ads, no analytics. MIT, (c) Rhytam
Biswas; the name, Mochi, icon and sounds stay (c) Louis Raillé (LICENSE-ASSETS.md).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-11 15:56:15 +05:30

21 lines
1.3 KiB
Prolog

# R8 rules for the release build (minify and shrink are on; see app/build.gradle.kts).
#
# Why there are almost none: the app uses no reflection, no serialization library and no JNI. Everything the system starts (activities,
# services, receivers, the widget and the tile) is named in AndroidManifest.xml, which the build keeps by itself; Compose, CameraX,
# AndroidX and the Kotlin runtime bring their own consumer rules; ZXing is plain Java; the protocol is read with org.json by hand.
# What the app reads by name (settings keys, the protocol's field names, the sound table) is a string, not a class or member name.
# No debug logs in a release build. The Log calls are removed with their arguments, so the tags and messages are not in the APK
# (verifyReleaseNoLogs in build.gradle.kts checks that on every CI run). Nothing the app logs is a secret; this is for size and quiet.
-assumenosideeffects class android.util.Log {
public static int v(...);
public static int d(...);
public static int i(...);
public static int w(...);
public static int e(...);
}
# A crash trace is still readable with the mapping file (app/build/outputs/mapping/release/mapping.txt; keep it with the build you ship).
-keepattributes SourceFile,LineNumberTable
-renamesourcefileattribute SourceFile