Skip to content

Commit 35a613c

Browse files
lukstbitdavid-allison
authored andcommitted
Mark preference property used in reflection as keep in Proguard
'notificationsPermissionRequested' property in PrefsRepository was used with reflection but it was not marked in Proguard to be kept. This was crashing the login system.
1 parent e1fbf2b commit 35a613c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

AnkiDroid/proguard-rules.pro

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
-keep class androidx.core.app.ActivityCompat$* { *; }
3030
-keep class androidx.concurrent.futures.** { *; }
3131
-keep class androidx.appcompat.view.menu.MenuItemImpl { *; } # .utils.ext.MenuItemImpl
32+
-keep class com.ichi2.anki.settings.PrefsRepository { *; } # PrefsRepository.notificationsPermissionRequested
3233

3334
# Ignore unused packages
3435
-dontwarn javax.naming.**

0 commit comments

Comments
 (0)