Skip to content

Commit 442d941

Browse files
committed
Fix broken builds with minify through androidx
Recent androidx upgrade seems to have broken proguard, removing viewmodels Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
1 parent de49633 commit 442d941

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/proguard-rules.pro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@
2525
#-renamesourcefileattribute SourceFile
2626
-dontobfuscate
2727

28-
-keepattributes SourceFile,LineNumberTable
28+
-keepattributes SourceFile,LineNumberTable
29+
-keepclassmembers class * extends androidx.lifecycle.AndroidViewModel {
30+
<init>(...);
31+
}

0 commit comments

Comments
 (0)