Enabling R8 in the previous commit surfaced two build issues; fixed here so
assembleDebug AND assembleRelease both succeed (verified on this machine:
Android Studio JBR 21 + SDK android-36).
- proguard-rules.pro: add `-dontwarn com.google.errorprone.annotations.**`.
Tink (pulled in by androidx.security-crypto / EncryptedSharedPreferences)
references compile-only Error Prone annotations that aren't on the runtime
classpath, which R8 treated as fatal "missing class" errors.
- ApiClient.await(): @OptIn(ExperimentalCoroutinesApi::class) for the
resume(value){ onCancellation } overload (experimental in coroutines 1.8.1).
Release APK is R8-shrunk (~1.8 MB vs ~18 MB debug). It is unsigned — wire a
signing config / keystore (kept out of VCS) before distributing.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| src/main | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||