- Home /
proguard obfuscation
Hello friends, i am trying to obfuscate my game with proguard but not with the desired success. I am also using facebook sdk to work with facebook (all game's logic works 100% but not the obfuscation) My game has Package Name: com.Home.SomePackage and Class Name: com.facebook.unity.FBUnityDeepLinkingActivity
i have monobehaviour classes, and classes defined by me inside a namespace called Todo
when I publish my game on my android phone, only monobehaviour classes are obfuscated, and the rest of the C# classes defined by me remain unobfuscated, and these classes contain sensitive data.
i don't know what to do anymore
this is what I am using now for proguard:
-optimizationpasses 5 -dontusemixedcaseclassnames -dontskipnonpubliclibraryclasses -dontpreverify -verbose -optimizations !code/simplification/arithmetic,!field/,!class/merging/,!code/allocation/variable
-keep public class extends android.app.Activity -keep public class extends android.app.Application -keep public class extends android.app.Service -keep public class extends android.content.BroadcastReceiver -keep public class extends android.content.ContentProvider -keep public class extends android.app.backup.BackupAgentHelper -keep public class * extends android.preference.Preference -keep public class com.android.vending.licensing.ILicensingService
keep all classes that might be used in XML layouts
keep public class extends android.view.View -keep public class extends android.app.Fragment -keep public class * extends android.support.v4.Fragment
keep all public and protected methods that could be used by java reflection
keepclassmembernames class * { public protected ; }
-keepclasseswithmembernames class * { native ; }
-keepclasseswithmembernames class * { public (android.content.Context, android.util.AttributeSet); }
-keepclasseswithmembernames class * { public (android.content.Context, android.util.AttributeSet, int); }
-keepclassmembers enum { public static [] values(); public static * valueOf(java.lang.String); }
-keep class implements android.os.Parcelable { public static final android.os.Parcelable$Creator ; }
-dontwarn **CompatHoneycomb -dontwarn org.htmlcleaner.*
The namespace Todo must be obfuscated. Any help would be much appreciated. Thank you