android studio proguard config

Post here your questions about the Java client / Android API for SFS2X

Moderators: Lapo, Bax

mihi
Posts: 9
Joined: 03 May 2018, 18:38

android studio proguard config

Postby mihi » 16 May 2018, 13:32

Hi,

When is build my project in android with minifyEnabled=true get some errors about Sfs.
What's Sfs proguard config?

Thanks
User avatar
Lapo
Site Admin
Posts: 20831
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: android studio proguard config

Postby Lapo » 16 May 2018, 14:34

Hi,
we've already replied to your email request.

Cheers
Lapo
--
gotoAndPlay()
...addicted to flash games
mihi
Posts: 9
Joined: 03 May 2018, 18:38

Re: android studio proguard config

Postby mihi » 16 May 2018, 17:23

Hi,

I did many searches to solve the problem, but finally i solved that myself:

-keep class org.python.*{ *; }
-dontwarn org.python.**
-keep class com.smartfoxserver.*{ *; }
-dontwarn com.smartfoxserver.**
-keep class org.jaxen.*{ *; }
-dontwarn org.jaxen.**
-keep class java.rmi.*{ *; }
-dontwarn java.rmi.**
-keep class org.jboss.*{ *; }
-dontwarn org.jboss.**

just use above lines in your proguard
Thanks.
User avatar
Lapo
Site Admin
Posts: 20831
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: android studio proguard config

Postby Lapo » 17 May 2018, 07:29

Thanks
Lapo

--

gotoAndPlay()

...addicted to flash games

Return to “SFS2X Java / Android API”

Who is online

Users browsing this forum: No registered users and 1 guest