Closed NishiEmed closed 4 years ago
@NishiEmed - Check with below proguard rules -
-keepclassmembers class fqcn.of.javascript.interface.for.webview { public *; }
-keepattributes SourceFile,LineNumberTable
-renamesourcefileattribute SourceFile
-keep class com.payumoney.core.entity.PaymentEntity{
;
}
-keep class com.payumoney.core.entity.CardDetail{
;
}
-keep class com.payumoney.core.entity.EmiTenure{
;
}
-keep class com.payumoney.core.entity.EmiThreshold{
;
}
-keep class com.payumoney.core.response.UserDetail{
;
}
-keep class com.payumoney.core.entity.PayumoneyConvenienceFee{
public
-dontwarn android.support. -keep class android.support.v4. { *; } -keep interface android.support.v4. { *; } -keep class android.support.v7.* { ; } -keep interface android.support.v7. { *; }
-keep public class extends android.view.View {
public
-keep class implements android.os.Parcelable { public static final android.os.Parcelable$Creator ; }
-keep class com.google.* { ; } -keep class com.zl.reik.* { ; } -keepattributes Annotation ############### END ....###########################
############################# Begin: proguard configuration for Gson ##########################
-keepattributes Signature
-keepattributes Annotation
-keep class com.google.gson.stream.* { ; } -keep class com.google.* {;}
-keep class com.google.gson.examples.android.model.* { ; }
-keep class implements com.google.gson.TypeAdapterFactory -keep class implements com.google.gson.JsonSerializer -keep class * implements com.google.gson.JsonDeserializer ############################# End: proguard configuration for Gson ############################
-keep class android.support.annotation.Keep -keep @android.support.annotation.Keep class -keepclassmembers @android.support.annotation.Keep class {
Thanks, for your quick reply Rahul-Hooda . It's a bit unclear to understand. could you please share neat code to put in proguard-rules.pro
@NishiEmed - Check below -
-keepclassmembers class fqcn.of.javascript.interface.for.webview { public *; }
-keepattributes SourceFile,LineNumberTable -renamesourcefileattribute SourceFile
-keep class com.payumoney.core.entity.PaymentEntity{
;
}
-keep class com.payumoney.core.entity.CardDetail{
;
}
-keep class com.payumoney.core.entity.EmiTenure{
;
}
-keep class com.payumoney.core.entity.EmiThreshold{
;
}
-keep class com.payumoney.core.response.UserDetail{
;
}
-keep class com.payumoney.core.entity.PayumoneyConvenienceFee{
public
-dontwarn android.support. -keep class android.support.v4. { *; } -keep interface android.support.v4. { *; } -keep class android.support.v7.* { ; } -keep interface android.support.v7. { *; }
-keep public class extends android.view.View {
public
-keep class implements android.os.Parcelable { public static final android.os.Parcelable$Creator ; }
-keep class com.google.* { ; } -keep class com.zl.reik.* { ; } -keepattributes Annotation
-keepattributes Signature -keepattributes Annotation -keep class com.google.gson.stream. { *; } -keep class com.google.* {;} -keep class com.google.gson.examples.android.model. { ; } -keep class implements com.google.gson.TypeAdapterFactory -keep class implements com.google.gson.JsonSerializer -keep class implements com.google.gson.JsonDeserializer
-keep class android.support.annotation.Keep -keep @android.support.annotation.Keep class -keepclassmembers @android.support.annotation.Keep class {
Thanks for the reply:
I finally ended up successfully with updating your given rules.
-keepclassmembers class fqcn.of.javascript.interface.for.webview {
public *;
}
-keepattributes SourceFile,LineNumberTable
-renamesourcefileattribute SourceFile
# Payumoney start
-dontwarn com.mixpanel.**
-dontwarn org.apache.http.**
-dontwarn com.android.volley.toolbox.**
-keep class com.payumoney.core.entity.PaymentEntity{
*;
}
-keep class com.payumoney.core.entity.CardDetail{
*;
}
-keep class com.payumoney.core.entity.EmiTenure{
*;
}
-keep class com.payumoney.core.entity.EmiThreshold{
*;
}
-keep class com.payumoney.core.response.UserDetail{
*;
}
-keep class com.payumoney.core.entity.PayumoneyConvenienceFee{
public *;
}
-keep class com.payumoney.core.PayUmoneyConstants{
*;
}
-keep class com.payumoney.core.PayUmoneySDK{
public *;
}
-keep interface com.payumoney.core.listener.APICallbackListener{
public *;
}
-keep interface * extends com.payumoney.core.listener.APICallbackListener{
public *;
}
-keep class com.payumoney.core.request.PaymentRequest{
public *;
}
-keep class com.payumoney.core.response.BinDetail{
public *;
}
-keep class com.payumoney.core.response.ErrorResponse{
public *;
}
-keep class com.payumoney.core.response.PaymentOptionDetails{
public *;
}
-keep class com.payumoney.core.utils.SdkHelper{
public *;
}
-keep class com.payumoney.core.response.PayUMoneyLoginResponse{
public *;
}
-keep class com.payumoney.core.response.NetBankingStatusResponse{
public *;
}
-keep class com.payumoney.core.PayUmoneySdkInitializer{
public static * ;
}
-keep class com.payumoney.core.PayUmoneySdkInitializer$PaymentParam{
*;
}
-keep class com.payumoney.core.PayUmoneySdkInitializer$PaymentParam$Builder{
*;
}
-keep class * implements android.os.Parcelable {
*;
}
-keep class * extends java.lang.Enum {
*;
}
-keep class com.payumoney.core.PayUmoneyConfig{
*;
}
-keep class com.payumoney.core.utils.SharedPrefsUtils{
*;
}
-keep class com.payumoney.core.utils.SharedPrefsUtils${
*;
}
-keep class com.payumoney.core.widget.ExpiryDate{
public *;
}
-keep class *{
public *;
public static * ;
}
-dontwarn android.support.**
-keep class android.support.v4.** { *; }
-keep interface android.support.v4.* { *; }
-keep class android.support.v7.* { *; }
-keep interface android.support.v7.* { *; }
-keep public class * extends android.view.View {
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
public void set*(...);
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keep class com.google.** { *; }
-keep class com.zl.reik.* { *; }
-keepattributes Annotation
-keepattributes Signature
-keepattributes Annotation
-keep class com.google.gson.stream.** { *; }
-keep class com.google.* {*;}
-keep class com.google.gson.examples.android.model.** { *; }
-keep class * implements com.google.gson.TypeAdapterFactory
-keep class * implements com.google.gson.JsonSerializer
-keep class * implements com.google.gson.JsonDeserializer
-keep class android.support.annotation.Keep
-keep @android.support.annotation.Keep class *
-keepclassmembers @android.support.annotation.Keep class * {
*;
}
-keep class *{
public *;
public static * ;
}
# Payumoney end
The code is working perfectly with sandbox as well as production environment.
I am getting issue only when I use proguard like
minifyEnabled true
I already applied rules in proguard-rules.pro
getting null intent in
onActivityResult
It's very much disappointing.