Fixed: Online library cannot be retrieved in the Play Store variant.

* The issue arose after upgrading the Gradle version of our project (which introduced Android 14). The new Gradle version includes an updated minify tool that excludes SimpleXML attributes from the code. As a result, this error occurred. To resolve this, we added specific rules to the ProGuard file to ensure these attributes are retained in the release variant.
This commit is contained in:
MohitMaliFtechiz 2024-09-12 16:22:12 +05:30
parent e3844e5e28
commit fe2f4a376d

View File

@ -48,11 +48,20 @@
## keep everything in MetaLinkNetworkEntity.kt
-keep class org.kiwix.kiwixmobile.core.entity.MetaLinkNetworkEntity { *; }
-keep class org.kiwix.kiwixmobile.core.entity.MetaLinkNetworkEntity$* { *; }
-keepnames class org.kiwix.kiwixmobile.core.entity.MetaLinkNetworkEntity$*
-keepclassmembers class org.kiwix.kiwixmobile.core.entity.MetaLinkNetworkEntity$* {
<init>(...);
}
## keep everything in LibraryNetworkEntity.kt
-keep class org.kiwix.kiwixmobile.core.entity.LibraryNetworkEntity { *; }
-keep class org.kiwix.kiwixmobile.core.entity.LibraryNetworkEntity$* { *; }
-keepclassmembers class org.kiwix.kiwixmobile.core.entity.LibraryNetworkEntity$* {
<init>(...);
}
-keep class javax.xml.stream.** { *; }
-dontwarn javax.xml.stream.Location
-dontwarn javax.xml.stream.XMLEventReader
@ -82,3 +91,5 @@
-dontwarn org.openjsse.javax.net.ssl.SSLParameters
-dontwarn org.openjsse.javax.net.ssl.SSLSocket
-dontwarn org.openjsse.net.ssl.OpenJSSE
-keep class io.reactivex.** { *; }