# Add project specific ProGuard events here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
#   public *;
#}

# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable

# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
-printmapping out.map

-optimizationpasses 5
-dontusemixedcaseclassnames
-dontskipnonpubliclibraryclasses
-dontpreverify
-verbose
-optimizations !code/simplification/arithmetic,!field/*,!class/merging/*,!code/allocation/variable
-ignorewarnings
-keepparameternames

-keepattributes Signature, Exceptions, *Annotation*, JavascriptInterface, SourceFile, LineNumberTable
#LocalVariableTable, LocalVariableTypeTable


# Android suff
-dontnote **apache.http.**

-dontwarn android.support.v4.**

-keepclassmembers class * implements android.os.Parcelable {
      public static final android.os.Parcelable$Creator *;
}

-dontnote android.net.http.*
-dontnote org.apache.commons.codec.**
-dontnote org.apache.http.**

-keep public class android.webkit.JavascriptInterface {}

# Support for Android Advertiser ID.
-keep class com.google.android.gms.common.GooglePlayServicesUtil {*;}
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient {*;}
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info {*;}


# Support for Google Play Services
# http://developer.android.com/google/play-services/setup.html
-keep class * extends java.util.ListResourceBundle {
    protected Object[][] getContents();
}

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

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



-keep class com.android.volley.** { *; }
-keep class org.apache.commons.logging.**

-keepattributes *Annotation*

-dontwarn org.apache.**

-keep public class com.najva.sdk.Najva {
    public static <methods>;
    public static <fields>;
}

-keep public class com.najva.sdk.NajvaClient {
    public <init>(android.content.Context);
    public <init>(android.content.Context,com.najva.sdk.NajvaConfiguration);
    public java.lang.String getSubscribedToken();
    public void getCachedJsonData();
    public void onAppTerminated();
    public static getInstance();
    public static getInstance(android.content.Context, com.najva.sdk.NajvaConfiguration);
    public static com.najva.sdk.NajvaConfiguration configuration;
    public static com.najva.sdk.core.ad.AdvertisingIdClient.AdInfo adInfo;
}

-keep public class com.najva.sdk.NajvaConfiguration {
    *;
}

-keep public class com.najva.sdk.push_notification.NajvaPushNotificationHandler {
    public static void handleMessage(android.content.Context, com.google.firebase.messaging.RemoteMessage);
    public static void handleNewToken(android.content.Context);
    public static boolean isNajvaMessage(android.content.Context, com.google.firebase.messaging.RemoteMessage);
}

-keep public interface com.najva.sdk.UserSubscriptionListener {
    *;
}

-keep public interface com.najva.sdk.NajvaJsonDataListener {
    *;
}

-keep public interface com.najva.sdk.NotificationClickListener {
    *;
}

-keep public interface com.najva.sdk.NotificationReceiveListener {
    *;
}
