Start a new topic

proguard configuration issue

proguard configuration issue


Hi there

  I encountered errors (a black blank screen) if I turned on the proguard.config setting for Android project.  I am wondering if there is any wikitude specific configurations I should add into the proguard.cfg file in order to make sure AR related stuffs won't get removed after the build.  I have searched the forum and googled the internet with no hits. Any suggestions? Thanks in advance.

-Eric

Hi there!

Please try:

-keep class com.wikitude.wikitude.architect.** { *; }


Find more details at the proguard website.

Cheers,
Andreas

Hi Andreas, noted with thanks. It works now. -Eric

Hi Andreas

  I forgot proguard protection only kicks in when you are doing a signed production build. My previous reply is incorrect. I tested it again and the problem remains unresolved. Any suggestions? TIA.

-Eric

Hi Eric,

I guess you like to leave any 3rd party library's sources unobfuscated.
Could you try

 

-keep class !YOUR.PACKAGENAME.** { *; }

This should then only obfuscate your sources.

In case this also does not work for your project: please mail to android (at) wikitude (dot) com, so we can chat about details via mail and post solution in forum later on.

 

Cheers,
Andreas
Login or Signup to post a comment