ITECOMMPAY / mobile-sdk-android-ui

8 stars 1 forks source link

SERVER_CONTENT_PARSING_ERROR due to Proguard #4

Closed Kolyall closed 1 year ago

Kolyall commented 1 year ago
com.ecommpay:msdk-ui:3.3.5
com.ecommpay:msdk-core-android:0.9.2

there is an Error If we set:

buildTypes {
        release {
            minifyEnabled true
            debuggable false

Error:

500 SERVER_CONTENT_PARSING_ERROR Not possible to parse content from method: /v2/init - Serializer for class 'h' is not found.
                                 Mark the class as @Serializable or provide the serializer explicitly.}
Kolyall commented 1 year ago

we decided to add following rules to fix the problem:

-keep, allowobfuscation, allowoptimization class org.kodein.type.TypeReference
-keep, allowobfuscation, allowoptimization class org.kodein.type.JVMAbstractTypeToken$Companion$WrappingTest

-keep, allowobfuscation, allowoptimization class * extends org.kodein.type.TypeReference
-keep, allowobfuscation, allowoptimization class * extends org.kodein.type.JVMAbstractTypeToken$Companion$WrappingTest

-keep class com.ecommpay.msdk.ui.** { *; }
-keepclassmembers class com.ecommpay.msdk.ui.** { *; }
-keep interface com.ecommpay.msdk.ui.**

-keep class com.paymentpage.msdk.core.** { *; }
-keepclassmembers class com.paymentpage.msdk.core.** { *; }
-keep interface com.paymentpage.msdk.core.**
savelyevdm commented 1 month ago

Hi, @Kolyall ! Why did you close the issue? As far as I can see - the issue is still relevant: no proguard files added to the repo.