android - Proguard JavascriptInterface <print> -
i have problems proguard export apk. proguard says: proguard.parseexception: expecting class member name before ';' line : print;
i need this in class:
public class jiface { @javascriptinterface public void print(string data) {
when removed progurad interface dont call.
progurad:
-keepclassmembers class * { @android.webkit.javascriptinterface <methods>; } -keepattributes javascriptinterface -keepattributes *annotation* -keepattributes javascriptinterface -keep public class com.imh.sos.webcpu_mail$jiface -keep public class * implements com.imh.sos.webcpu_mail$jiface -keepclassmembers class com.imh.sos.webcpu_mail$jiface { <methods>; } -keepattributes javascriptinterface -keep public class com.imh.sos.webcpu_mail$print -keep public class * implements com.imh.sos.webcpu_mail$print -keepclassmembers class com.imh.sos.webcpu_mail$print { <methods>; } -keepattributes javascriptinterface -keep public class com.imh.sos.webcpu_mail$jiface -keep public class * implements com.imh.sos.webcpu_mail$jiface -keepclassmembers class com.imh.sos.webcpu_mail$jiface { <print>; } -keepattributes javascriptinterface -keep public class com.imh.sos.webcpu_mail$print -keep public class * implements com.imh.sos.webcpu_mail$print -keepclassmembers class com.imh.sos.webcpu_mail$print { <print>; }
sdk 19.
thank you
this works me:
-keep public class package_name.activity_name$myjavascriptinterface -keep public class * implements package_name.activity_name$myjavascriptinterface -keepclassmembers class package_name.activity_name$myjavascriptinterface { <methods>;} -keepattributes javascriptinterface
Comments
Post a Comment