# R8 rules for the release build (isMinifyEnabled = true in build.gradle.kts). # # Keep as little as possible: everything else — Compose, media3, DataStore, # coroutines — ships its own consumer rules inside its AAR, and the app itself # uses no reflection over its own classes (songs, presets, themes and bindings # are all read and written as text by hand-written parsers in io/). # JNI. The native library resolves Java___ by # name at *runtime*, so a renamed class or method is an UnsatisfiedLinkError on # first play — not a build error. Both halves of the bridge must keep their # names: audio/NativeEngine (the engine, src/main/cpp/jni_engine.cpp) and # audio/NativeAudioBridge (the Oboe stream, src/main/cpp/native_audio.cpp). -keepclasseswithmembernames,includedescriptorclasses class * { native ; } # Kotlin tells R8 what is nullable through these; dropping them makes R8's # warnings about the Kotlin stdlib noisy for no gain. -dontwarn kotlin.Unit