Fix release builds by adding proguard rule for DataStore

Bug: 228863401

Change-Id: I6cd43b0ed7844f7622e362fb77e5213064a629f3
pull/2/head
Caren Chang 2 years ago committed by Don Turner
parent 9b7d6344e4
commit 4774e6c9fc

@ -28,6 +28,12 @@ plugins {
id("nowinandroid.spotless")
}
android {
defaultConfig {
consumerProguardFiles("consumer-proguard-rules.pro")
}
}
// Setup protobuf configuration, generating lite Java and Kotlin classes
protobuf {
protoc {

@ -0,0 +1,4 @@
# Keep DataStore fields
-keepclassmembers class * extends com.google.protobuf.GeneratedMessageLite* {
<fields>;
}
Loading…
Cancel
Save