Reputation: 671
I am trying to enable ProGuard on a Cordova/CrossWalk application project.
The project is using a CrossWalk v13 jar rather thank compiling.
I have tried both of the following ProGaurd config options:
I keep getting an 'occasional' startup crash with the following:
Mostly on first launches.
Any suggestions ?
Thanks!
Upvotes: 2
Views: 814
Reputation: 14600
I've added the following to my crosswalk and have not been having issues.
# XWalk
-keep class org.xwalk.core.** { *; }
-keep class org.crosswalk.engine.** { *; }
-keep class org.chromium.** { *; }
-keepattributes **
-dontwarn android.view.**
-dontwarn android.media.**
-dontwarn org.chromium.**
I'm including crosswalk not as a jar but as a gradle dependency by first adding the repo in the repository block:
maven { url 'https://download.01.org/crosswalk/releases/crosswalk/android/maven2' }
And then adding the dependency
compile 'org.xwalk:xwalk_core_library_beta:18.48.477.2'
Upvotes: 2