App42 - 需要 Proguard 设置(因为调试模式有效而发布模式失败)

App42 - Proguard setting necessary (because debug mode works and release mode fails)

我创建了一个查询来检查是否存在新数据。我在调试模式下编译我的应用程序,运行 它一切正常。如果我在发布模式下编译它,我会得到 NullPointerException...

这与混淆器有关吗?实际上,我没有找到 App42...

的任何 proguard 设置

我用的是3.0.1版本...

Storage storage =  storageService.findDocumentsByQueryWithPaging(db, collection, query, 1, 0);
storage.getRecordCount(); // <= this is NULL!!! But only in RELEASE build

以下 proguard 设置似乎有效:

-keep class com.shephertz.** {*;}

可能有更好的解决方案,但我找不到任何文档...