-keepclassmembers enum ir.metrix.** { *; }

-keep class * extends ir.metrix.internal.init.MetrixComponentInitializer {
    public void preInitialize(android.content.Context);
    public void postInitialize(android.content.Context);
}

-keep class * extends ir.metrix.utils.common.di.Provider { *; }

# Keep Exception names
-keepnames class ir.metrix.** extends java.lang.Exception

# -- Moshi --
-dontwarn okio.**
-dontwarn javax.annotation.**
-keepclasseswithmembers class * {
    @com.squareup.moshi.* <methods>;
}
-keep @com.squareup.moshi.JsonQualifier interface *

-keep class **JsonAdapter {
    <init>(...);
    <fields>;
}
-keepnames @com.squareup.moshi.JsonClass class *

-dontwarn org.codehaus.mojo.animal_sniffer.*

# Fix application release build problem with R8
-keep class io.reactivex.rxjava3.disposables.RunnableDisposable { <init>(...); }
-keeppackagenames ir.metrix.sentry
-if class ir.metrix.sentry.model.ContextModel
-keepnames class ir.metrix.sentry.model.ContextModel
-if class ir.metrix.sentry.model.ContextModel
-keep class ir.metrix.sentry.model.ContextModelJsonAdapter {
    public <init>(com.squareup.moshi.Moshi);
}
-if class ir.metrix.sentry.model.ContextModel
-keepnames class kotlin.jvm.internal.DefaultConstructorMarker
-if class ir.metrix.sentry.model.ContextModel
-keepclassmembers class ir.metrix.sentry.model.ContextModel {
    public synthetic <init>(ir.metrix.sentry.model.SdkModel,ir.metrix.sentry.model.AppModel,ir.metrix.sentry.model.OSModel,ir.metrix.sentry.model.DeviceModel,ir.metrix.sentry.model.UserModel,int,kotlin.jvm.internal.DefaultConstructorMarker);
}

-if class ir.metrix.sentry.model.OSModel
-keepnames class ir.metrix.sentry.model.OSModel
-if class ir.metrix.sentry.model.OSModel
-keep class ir.metrix.sentry.model.OSModelJsonAdapter {
    public <init>(com.squareup.moshi.Moshi);
}
-if class ir.metrix.sentry.model.OSModel
-keepnames class kotlin.jvm.internal.DefaultConstructorMarker
-if class ir.metrix.sentry.model.OSModel
-keepclassmembers class ir.metrix.sentry.model.OSModel {
    public synthetic <init>(java.lang.String,java.lang.String,int,java.lang.Boolean,int,kotlin.jvm.internal.DefaultConstructorMarker);
}

-if class ir.metrix.sentry.model.FrameModel
-keepnames class ir.metrix.sentry.model.FrameModel
-if class ir.metrix.sentry.model.FrameModel
-keep class ir.metrix.sentry.model.FrameModelJsonAdapter {
    public <init>(com.squareup.moshi.Moshi);
}
-if class ir.metrix.sentry.model.FrameModel
-keepnames class kotlin.jvm.internal.DefaultConstructorMarker
-if class ir.metrix.sentry.model.FrameModel
-keepclassmembers class ir.metrix.sentry.model.FrameModel {
    public synthetic <init>(java.lang.String,java.lang.String,boolean,java.lang.String,int,int,kotlin.jvm.internal.DefaultConstructorMarker);
}

-if class ir.metrix.sentry.model.SentryEventModel
-keepnames class ir.metrix.sentry.model.SentryEventModel
-if class ir.metrix.sentry.model.SentryEventModel
-keep class ir.metrix.sentry.model.SentryEventModelJsonAdapter {
    public <init>(com.squareup.moshi.Moshi);
}
-if class ir.metrix.sentry.model.SentryEventModel
-keepnames class kotlin.jvm.internal.DefaultConstructorMarker
-if class ir.metrix.sentry.model.SentryEventModel
-keepclassmembers class ir.metrix.sentry.model.SentryEventModel {
    public synthetic <init>(java.lang.String,java.lang.String,java.lang.String,java.lang.String,ir.metrix.sentry.model.ContextModel,java.util.Map,java.lang.String,java.util.Map,java.util.List,int,kotlin.jvm.internal.DefaultConstructorMarker);
}

-if class ir.metrix.sentry.model.StackTraceModel
-keepnames class ir.metrix.sentry.model.StackTraceModel
-if class ir.metrix.sentry.model.StackTraceModel
-keep class ir.metrix.sentry.model.StackTraceModelJsonAdapter {
    public <init>(com.squareup.moshi.Moshi);
}
-if class ir.metrix.sentry.model.StackTraceModel
-keepnames class kotlin.jvm.internal.DefaultConstructorMarker
-if class ir.metrix.sentry.model.StackTraceModel
-keepclassmembers class ir.metrix.sentry.model.StackTraceModel {
    public synthetic <init>(java.util.List,int,kotlin.jvm.internal.DefaultConstructorMarker);
}

-if class ir.metrix.sentry.model.DeviceModel
-keepnames class ir.metrix.sentry.model.DeviceModel
-if class ir.metrix.sentry.model.DeviceModel
-keep class ir.metrix.sentry.model.DeviceModelJsonAdapter {
    public <init>(com.squareup.moshi.Moshi);
}
-if class ir.metrix.sentry.model.DeviceModel
-keepnames class kotlin.jvm.internal.DefaultConstructorMarker
-if class ir.metrix.sentry.model.DeviceModel
-keepclassmembers class ir.metrix.sentry.model.DeviceModel {
    public synthetic <init>(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Long,java.lang.Long,java.lang.Boolean,boolean,java.lang.Integer,java.lang.String,java.lang.String,int,kotlin.jvm.internal.DefaultConstructorMarker);
}

-if class ir.metrix.sentry.model.SdkModel
-keepnames class ir.metrix.sentry.model.SdkModel
-if class ir.metrix.sentry.model.SdkModel
-keep class ir.metrix.sentry.model.SdkModelJsonAdapter {
    public <init>(com.squareup.moshi.Moshi);
}
-if class ir.metrix.sentry.model.SdkModel
-keepnames class kotlin.jvm.internal.DefaultConstructorMarker
-if class ir.metrix.sentry.model.SdkModel
-keepclassmembers class ir.metrix.sentry.model.SdkModel {
    public synthetic <init>(java.lang.String,int,int,kotlin.jvm.internal.DefaultConstructorMarker);
}

-if class ir.metrix.sentry.model.ExceptionModel
-keepnames class ir.metrix.sentry.model.ExceptionModel
-if class ir.metrix.sentry.model.ExceptionModel
-keep class ir.metrix.sentry.model.ExceptionModelJsonAdapter {
    public <init>(com.squareup.moshi.Moshi);
}
-if class ir.metrix.sentry.model.ExceptionModel
-keepnames class kotlin.jvm.internal.DefaultConstructorMarker
-if class ir.metrix.sentry.model.ExceptionModel
-keepclassmembers class ir.metrix.sentry.model.ExceptionModel {
    public synthetic <init>(java.lang.String,java.lang.String,java.lang.String,ir.metrix.sentry.model.StackTraceModel,int,kotlin.jvm.internal.DefaultConstructorMarker);
}

-if class ir.metrix.sentry.model.UserModel
-keepnames class ir.metrix.sentry.model.UserModel
-if class ir.metrix.sentry.model.UserModel
-keep class ir.metrix.sentry.model.UserModelJsonAdapter {
    public <init>(com.squareup.moshi.Moshi);
}
-if class ir.metrix.sentry.model.UserModel
-keepnames class kotlin.jvm.internal.DefaultConstructorMarker
-if class ir.metrix.sentry.model.UserModel
-keepclassmembers class ir.metrix.sentry.model.UserModel {
    public synthetic <init>(java.lang.String,java.lang.String,java.lang.String,int,kotlin.jvm.internal.DefaultConstructorMarker);
}

-if class ir.metrix.sentry.model.AppModel
-keepnames class ir.metrix.sentry.model.AppModel
-if class ir.metrix.sentry.model.AppModel
-keep class ir.metrix.sentry.model.AppModelJsonAdapter {
    public <init>(com.squareup.moshi.Moshi);
}
-if class ir.metrix.sentry.model.AppModel
-keepnames class kotlin.jvm.internal.DefaultConstructorMarker
-if class ir.metrix.sentry.model.AppModel
-keepclassmembers class ir.metrix.sentry.model.AppModel {
    public synthetic <init>(java.lang.String,java.lang.String,java.lang.Long,java.lang.String,java.lang.Integer,java.lang.Integer,int,kotlin.jvm.internal.DefaultConstructorMarker);
}


