
# Add project specific ProGuard rules 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

# SDK Public classes
-keep public class dev.kiki.core.update.model.UpdateInfo {
  public *;
}
-keep public enum dev.kiki.core.update.UpdateType {
  public *;
}
-keep public interface dev.kiki.core.update.UpdateInfoListener {
  public *;
}
-keep public class dev.kiki.core.UpdateManagerFactory {
  public *;
}
-keep public interface dev.kiki.core.UpdateManager {
  public *;
}

-keep public class dev.kiki.core.install.** {
  public *;
}
-keep public enum dev.kiki.core.install.** {
   **[] $VALUES;
  public *;
}
-keep public interface dev.kiki.core.install.** {
 public *;
}

# HMS
-keep class com.hianalytics.android.** { *; }
-keep class com.huawei.updatesdk.** { *; }
-keep class com.huawei.hms.** { *; }
-keep class com.huawei.hianalytics.**{*;}
-keep class * extends com.huawei.hms.core.aidl.IMessageEntity{ *; }
-keep public class com.huawei.location.nlp.network.** {*; }

# GSON
-keep class * implements com.google.gson.TypeAdapter
-keep class * implements com.google.gson.TypeAdapterFactory
-keep class * implements com.google.gson.JsonSerializer
-keep class * implements com.google.gson.JsonDeserializer
-keepclassmembers,allowobfuscation class * {
  @com.google.gson.annotations.SerializedName <fields>;
}

# Required rules for GSON
-keep class **.response.* { *; }
-keep class **.entity.* { *; }
-keep class **.model.* { *; }
-keep class **.request.* { *; }
-keep class * implements java.io.Serializable { *; }
-keepattributes Signature
-keepattributes *Annotation*
-keepattributes InnerClasses
-dontwarn sun.misc.**
#########################################
-keep class org.openudid.** { *; }

# InstallReferrer
-keep public class com.android.installreferrer.** { *; }

# Kotlin meta-data
-keep class kotlin.Metadata { *; }

-keepattributes RuntimeVisibleAnnotations

-keep class kotlinx.coroutines.android.** {*;}
