Aspose Words for Android AND proguard

Hello,

how to configure proguard to handle Aspose.Words.jar (Version 1.6, Release 2014.02.10)?

During the build I get the following errors:

[proguard] Warning: asposewobfuscated.ZSS: can’t find referenced class com.aspose.ms.java.xml.security.encryption.EncryptedKey
[proguard] Warning: com.aspose.words.Document: can’t find referenced class javax.print.attribute.AttributeSet
[proguard] Warning: com.aspose.words.Document: can’t find referenced class javax.print.attribute.AttributeSet
[proguard] Warning: com.aspose.words.Document: can’t find referenced class javax.print.attribute.AttributeSet
[proguard] Warning: com.aspose.words.Document: can’t find referenced class javax.print.attribute.AttributeSet
[proguard] Note: android.support.v4.text.ICUCompatIcs: can’t find dynamically referenced class libcore.icu.ICU
[proguard] Note: asposewobfuscated.F0: can’t find dynamically referenced class javax.media.jai.JAI
[proguard] Note: asposewobfuscated.F0: can’t find dynamically referenced class com.sun.media.jai.codec.TIFFEncodeParam
[proguard] Note: asposewobfuscated.F0: can’t find dynamically referenced class javax.media.jai.PlanarImage
[proguard] Note: asposewobfuscated.F0: can’t find dynamically referenced class com.sun.media.jai.codec.ImageCodec
[proguard] Note: asposewobfuscated.F0: can’t find dynamically referenced class com.sun.media.jai.codec.ImageEncoder
[proguard] Note: asposewobfuscated.F0: can’t find dynamically referenced class com.sun.media.jai.codec.TIFFField
[proguard] Note: asposewobfuscated.FK: can’t find dynamically referenced class javax.media.jai.JAI
[proguard] Note: there were 8 unresolved dynamic references to classes or interfaces.
[proguard] You should check if you need to specify additional program jars.
[proguard] Warning: there were 5 unresolved references to classes or interfaces.


Hi Ojars,

Thanks for your inquiry.

I suggest you please read the following documentation article for your kind reference.
http://www.aspose.com/docs/display/wordsandroid/Your+First+Application+Using+Aspose.Words+for+Android

It would be great if you please share your document and code here for testing. I will investigate the issue on my side and provide you more information.

Hi,

Thank you, I resolved the problem with the following ProGuard configuration:

-keep class asposewobfuscated.** { ; }
-keep class com.aspose.
* { *; }
-dontnote asposewobfuscated.
-dontwarn com.aspose.



Hi Ojars,

Thanks for your feedback. It is nice to hear from you that you have solved your problem. Please feel free to ask if you have any question about Aspose.Words, we will be happy to help you.