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
A
Andreas Fötschl
said
about 11 years ago
Hi there!
Please try:
-keep class com.wikitude.wikitude.architect.** { *; }
Hi Andreas, noted with thanks. It works now. -Eric
E
Eric Y.
said
about 11 years ago
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
A
Andreas Fötschl
said
about 11 years ago
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.
Eric Y.