Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Readium sdk(android) apk build error with Proguard #80

Open
gibumkim opened this issue Jan 12, 2016 · 1 comment
Open

Readium sdk(android) apk build error with Proguard #80

gibumkim opened this issue Jan 12, 2016 · 1 comment

Comments

@gibumkim
Copy link

If do not apply the proguard the error does not occur.

but

If me apply a proguard an error occurs.

!! proguard.cfg current modifications.

-keep class org.readium.sdk.* { ;}
-keepnames class org.readium.sdk.
* {
;}

-keep class .R
-keepclasseswithmembers class *
.R$* {
public static ;
}

-keepclassmembers class * {
@android.webkit.JavascriptInterface ;
}

-keepclasseswithmembernames class * {
native ;
}

Is there something more to add?
Please confirm.

@danielweck danielweck changed the title Readium sdk(android) apk build error Readium sdk(android) apk build error with Proguard Jan 13, 2016
@gibumkim
Copy link
Author

complete....

-keepnames class com.koushikdutta.async.** {;}
-keep class com.koushikdutta.async.
* { *;}

-dontwarn android.support.v4.**
-keepnames class android.support.v4.** {;}
-keep class android.support.v4.
* { *;}

-keepnames class org.readium.sdk.** {;}
-keep class org.readium.sdk.
* { *;}

-keepclassmembers class *.R$ {
public static ;
}

-keep class *.R$

-keepattributes Annotation

-keepclassmembers class * {
@android.webkit.JavascriptInterface ;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants