Proguard Settings

While proguarding the host application code, below rules for proguard should be added in proguard config.

-keepclassmembernames class * { public protected ; }
-keepclasseswithmembers class * { native ; }
-keepclassmembers class * { @android.webkit.JavascriptInterface ; }
-keep public interface com.openmobile.proguard.NonObfuscateable
-keep public class * implements com.openmobile.proguard.NonObfuscateable
-keepclassmembers class * implements com.openmobile.proguard.NonObfuscateable{ public *; ; native ; }
-keep public class com.ipass.smartconnect.activation.ActivationManager$*{ *; }
-keep class * extends java.util.ListResourceBundle { protected Object[][] getContents(); }

 

# Keep SafeParcelable value, needed for reflection. This is required to support backwards # compatibility of some classes.

-keep public class com.google.android.gms.common.internal.safeparcel.SafeParcelable { public static final *** NULL; }

 

# Needed by google -api -client to keep generic types and @Key annotations accessed via reflection

-keepclassmembers class * { @com.google.api.client.util.Key ; }
-keepattributes Signature,RuntimeVisibleAnnotations,AnnotationDefault

 

# Keep the names of classes/members we need for client functionality.

-keepnames @com.google.android.gms.common.annotation.KeepName class *
-keepclassmembernames class * { @com.google.android.gms.common.annotation.KeepName *; }

 

# Needed for Parcelable/SafeParcelable Creators to not get stripped

-keepnames class * implements android.os.Parcelable { public static final ** CREATOR; }
-keep class org.apache.** { *; }
-keep class org.slf4j.** { *; }
-keep class org.xbill.** { *; }
-keep class org.spongycastle.** { *; }
-keep class org.jsoup.** { *; }
-keep class org.json.** { *; }
-keep class ch.qos.** { *; }
-keep class com.google.** { *; }
-keep class com.devicescape. ** { *; }
-keep class com.dd .** { *; }
-keep class com.google.gson .** { *; }
-keep class com.private_wifi .** { *; }
-keep class okhttp3.** { *; }
-keep interface okhttp3.** { *; }
-keepattributes Signature
-keepattributes *Annotation*
-dontwarn sun.net.**
-dontwarn com.accurisnetworks.**
-dontwarn org.apache.**
-dontwarn javax.annotation.**
-dontwarn org.slf4j.**
-dontwarn sun.net.**
-dontwarn org.xbill.**
-dontwarn de.blinkt.**
-dontwarn com.google.**
-dontwarn org.spongycastle.**
-dontwarn org.jsoup.**
-dontwarn org.json.**
-dontwarn ch.qos.**
-dontwarn com.devicescape.**
-dontwarn okhttp3.**
-dontwarn okio.**

 

Importing / Linking SDK BinariesInitializing the SDK