Hello, I’m working on a Kotlin Multiplatform (KMP)...
# multiplatform
a
Hello, I’m working on a Kotlin Multiplatform (KMP) project and have enabled R8 for code shrinking and obfuscation in the release build. However, I’m encountering issues where DataStore fails to load data in the release version. Here’s my current
build.gradle.kts
android {
buildTypes { getByName(“release”) { isMinifyEnabled = true isShrinkResources = true isDebuggable = false proguardFiles( getDefaultProguardFile(“proguard-android-optimize.txt”), “proguard-rules.pro” ) } } } The application functions correctly in debug mode, but in release mode, DataStore doesn’t retrieve any data. I suspect this might be due to R8 removing necessary classes or metadata during the obfuscation process