# game_sdk
-keep class g.main.** {*;}
-keep class com.bytedance.** {*;}
-keep class com.ss.** {*;}

#debug_sdk模块需要
-keep class com.bytedance.ttgame.framework.module.network.log.ReleaseTree {*;}
-keep class com.bytedance.ttgame.framework.module.network.log.ThreadAwareDebugTree {*;}
-keep class org.chromium.CronetClient* {*;}
-keep class timber.log.Timber {*;}
-keep class g.cronet.asm.CronetUtil {*;}

#thanos需要
-keep class com.bytedance.framwork.core.sdkmonitor.SDKMonitor {*;}
-keep class com.bytedance.framwork.core.sdkmonitor.SDKMonitorUtils {*;}
-keep class com.ss.android.socialbase.downloader.** {*;}
-keep class com.ss.android.socialbase.appdownloader.** {*;}

# 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

# 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

# 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

# Preserve annotated Javascript interface methods.
-keepclassmembers class * {
    @android.webkit.JavascriptInterface <methods>;
}
# 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
-keep class com.bytedance.sdk.bridge.BridgeIndex_*  {*;}
-keepclassmembers class ** {
    @com.bytedance.sdk.bridge.annotation.BridgeMethod <methods>;
}
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/fuzhengchao/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# 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 *;
#}


-keep class com.bytedance.router.IMappingInitializer {
    *;
}

-keep class * implements com.bytedance.router.IMappingInitializer {
    *;
}
-keep class com.bytedance.ug.sdk.share.keep.impl.** {*;}
# 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


-optimizationpasses 5

-dontusemixedcaseclassnames
-dontwarn com.ss.android.common.applog.**

# old source
-keep class com.ss.android.common.applog.* {*;}
-keep public class com.ss.sys.ces.utils.NetInterface {
    public *;
}

# SecSDK Interface
-keep public class com.ss.sys.ces.out.* {
    public *;
}

# SecSDK Main Function
-keep public class com.ss.sys.ces.a {*;}

# for gorgon in 20181128
-keep class com.ss.sys.ces.gg.tt {
    public *;
}

# for defendence about default usage
-keep class com.ss.sys.ces.die.xx {
    public *;
}

# VerifyCode
-keep public class com.ss.sys.ck.SCCheckUtils {*;}
-keep public class com.ss.sys.ck.SCCheckListener {*;}

# delete all log
#-assumenosideeffects class android.util.Log{
#    public static int v(...);
#    public static int i(...);
#    public static int d(...);
#    public static int w(...);
#    public static int e(...);
#}

# GPSDK API
-keep public class com.bytedance.gameprotect.GameProtect {
    public *;
}

-keep class com.bytedance.gameprotect.UserType {
    public static final <fields>;
}

-keep class com.bytedance.gameprotect.Region {
    public static final <fields>;
}

#Check GPSDK
-keep public class com.ss.cgpa.BaseDataHelp {
    public *;
}

-keep public class com.ss.cgpa.DataClientHelp {
    public *;
}

-keep public class com.ss.cgpa.NativeDataHelp {
    public *;
}

-keep public class com.ss.cgpa.SocketChannelStream {
    public *;
}

# Generated keep rule for Lifecycle observer adapter.
-if class com.bytedance.gameprotect.AppLifecycleListener {
    <init>(...);
}
-keep class com.bytedance.gameprotect.AppLifecycleListener_LifecycleAdapter {
    <init>(...);
}




# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/douj/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# 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 *;
#}
-keep interface com.bytedance.news.common.settings.api.annotation.ISettings {*;}
-keep class * implements com.bytedance.news.common.settings.api.annotation.ISettings {*;}
-keep interface com.bytedance.news.common.settings.api.annotation.ILocalSettings {*;}
-keep class * implements com.bytedance.news.common.settings.api.annotation.ILocalSettings {*;}

# 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
-keep class com.bytedance.apm.internal.ApmDelegate {
    private void initEvilMethodTraceInject();
    private static void initTraceEvilMethod();
}

-keep class com.bytedance.apm.PerfConfig {
    public void setReportMessage();
}
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/chenzhiyong/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# 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


# 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

-keep class com.bytedance.frameworks.apm.trace.MethodCollector {
    public static void i(int);
    public static void o(int);
}



-keep class com.bytedance.ug.sdk.share.impl.network.model.** {*;}
-keep class com.bytedance.ug.sdk.share.impl.provider.ShareSdkProvider {*;}
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/chenjian/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# 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 *;
#}

-dontskipnonpubliclibraryclassmembers
-printconfiguration
-keep,allowobfuscation @interface android.support.annotation.Keep

-keep @android.support.annotation.Keep class *
-keepclassmembers class * {
    @android.support.annotation.Keep *;
}

-keep class com.bytedance.crash.nativecrash.NativeImpl {
  private static void handleNativeCrashInJava(String, String, String[], String[]);
  private static void reportEventForAnrMonitor();
}


# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
#   http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# 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 *;
#}
-keep class com.squareup.wire.** { *; }
-keep class com.bytedance.common.wschannel.model.Frame { *; }
-keep interface com.bytedance.common.wschannel.channel.IWsChannelClient { *; }
-keep class com.bytedance.common.wschannel.WsConstants { *; }
-keep interface com.bytedance.common.wschannel.channel.IWsChannelDepend { *; }
-keep class org.chromium.wschannel.MySelfChannelImpl {*;}

# Keep our interfaces so they can be used by other ProGuard rules.
# See http://sourceforge.net/p/proguard/bugs/466/
-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip
-keep,allowobfuscation @interface com.facebook.soloader.DoNotOptimize

# Do not strip any method/class that is annotated with @DoNotStrip
-keep @com.facebook.common.internal.DoNotStrip class *
-keepclassmembers class * {
    @com.facebook.common.internal.DoNotStrip *;
}

# Do not strip any method/class that is annotated with @DoNotOptimize
-keep @com.facebook.soloader.DoNotOptimize class *
-keepclassmembers class * {
    @com.facebook.soloader.DoNotOptimize *;
}

# Keep native methods
-keepclassmembers class * {
    native <methods>;
}

-dontwarn okio.**
-dontwarn com.squareup.okhttp.**
-dontwarn okhttp3.**
-dontwarn javax.annotation.**
-dontwarn com.android.volley.toolbox.**
-dontwarn com.facebook.infer.**

# 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

# ServiceManager keep rules
-keep class com.bytedance.news.common.service.manager.IServiceProxy {*;}
-keep class * implements com.bytedance.news.common.service.manager.IServiceProxy {*;}
-keep interface com.bytedance.news.common.service.manager.IService {*;}
-keep interface * extends com.bytedance.news.common.service.manager.IService {*;}
-keep class * implements com.bytedance.news.common.service.manager.IService {*;}


# 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
-dontshrink
-dontpreverify
-dontoptimize

-keep class com.ss.android.socialbase.downloader.model.DownloadInfo {*;}

-keep class com.ss.android.vesdk.** { *; }
-keep class com.ss.ttuploader.** { *; }

-keep class com.bytedance.ttgame.module.rn.GReactNativeActivity {*;}
-keep class com.bytedance.ttgame.channel.smartRouter.NotifyRouter {*;}


# download库
-keep class com.ss.android.downloadlib.** { *; }
-keep class com.ss.android.download.api.** { *; }
-keep class com.ss.android.downloadad.api.** { *; }

-keep interface com.ss.android.downloadlib.** { *; }
-keep interface com.ss.android.download.api.** { *; }
-keep interface com.ss.android.downloadad.api.** { *; }

# appdownloader
-keep class com.ss.android.socialbase.appdownloader.** { *; }
-keep class com.ss.android.socialbase.downloader.** { *; }

-keep interface com.ss.android.socialbase.appdownloader.** { *; }
-keep interface com.ss.android.socialbase.downloader.** { *; }

#huawei
-keep class com.hianalytics.android.**{*;}
-keep class com.huawei.updatesdk.**{*;}
-keep class com.huawei.hms.**{*;}
-keep class com.huawei.android.hms.agent.**{*;}
-keep class com.huawei.gamebox.plugin.gameservice.**{*;}

#push
-keep public class * extends android.app.Activity
-keep public class * extends android.app.Service
-keep public class * extends android.content.BroadcastReceiver
-keep public class * extends android.content.ContentProvider

#push 主工程
-keepnames class org.msgpack.MessageTypeException.** {*;}
-keepnames class org.msgpack.packer.** {*;}
-keepnames class org.msgpack.template.** {*;}
-keepnames class org.msgpack.type.** {*;}
-keepnames class org.msgpack.unpacker.** {*;}
-keepnames class org.msgpack.MessagePack.** {*;}
-dontwarn org.msgpack.**
-ignorewarnings

-keep interface com.ss.android.pushmanager.thirdparty.I* {*;}
-keep class * implements com.ss.android.pushmanager.thirdparty.IPushAdapter {*;}
-keep class * implements com.ss.android.pushmanager.thirdparty.IPushDepend {*;}

-keep interface com.ss.android.pushmanager.IMessageAppAdapter {*;}
-keep class * implements com.ss.android.pushmanager.IMessageAppAdapter {*;}

# 友盟 PUSH STATR
-dontwarn com.taobao.**
-dontwarn anet.channel.**
-dontwarn anetwork.channel.**
-dontwarn org.android.**
-dontwarn org.apache.thrift.**
-dontwarn com.xiaomi.**
-dontwarn com.huawei.**
-dontwarn com.alibaba.sdk.android.**
-dontwarn com.ut.**
-dontwarn com.hianalytics.**

-keepattributes *Annotation*

-keep class com.taobao.** {*;}
-keep class org.android.** {*;}
-keep class anet.channel.** {*;}
-keep class com.umeng.** {*;}
-keep class com.xiaomi.** {*;}
-keep class com.huawei.** {*;}
-keep class org.apache.thrift.** {*;}
-keep class anetwork.channel.** {*;}

-keep class com.alibaba.sdk.android.**{*;}
-keep class com.ut.**{*;}
-keep class com.ta.**{*;}
-keep class com.hianalytics.**{*;}

-keep public class **.R$*{
   public static final int *;
}
# 友盟 PUSH END


# 阿里 PUSH STARTD
-keep class com.aliyun.**{*;}
# 阿里 PUSH END


# 小米 PUSH STATR
-keep class com.google.protobuf.micro.** {*;}
-keep class com.xiaomi.** {*;}
-dontwarn com.xiaomi.**
-keep class org.apache.thrift.** {*;}
-dontwarn org.apache.thrift.**
# 小米 PUSH END


# 魅族 PUSH STATR
# for google protobuf
-keep public class * extends com.google.protobuf.GeneratedMessage { *; }
-keep class com.google.protobuf.** { *; }
-keep public class * extends com.google.protobuf.** { *; }

#for okhttp
-keep class okio.** {*;}
-dontwarn okio.**
-keep class com.squareup.okhttp.** {*;}
-dontwarn com.squareup.okhttp.**

# for push sdk
-keep class com.meizu.** {*;}
-dontwarn com.meizu.**

-keep class com.ss.android.push.third.**{*;}
-keep class com.squareup.okio.**{*;}
-keep class com.squareup.okhttp3.**{*;}

-dontwarn com.squareup.okio.**
-dontwarn com.squareup.okhttp3.**
-dontwarn com.ss.android.push.third.**
# 魅族 PUSH END

# OPPO PUSH STATR
-keep class com.coloros.**{*;}
-dontwarn com.coloros.**
-keep public class * extends android.app.Service
# OPPO PUSH END

#华为 PUSH STATR
-keep class com.huawei.** {*;}
-dontwarn com.huawei.**
#华为 PUSH END


#-dontwarn org.msgpack.**
#-dontwarn com.ss.android.usergrowth.**
-keep class com.ss.android.push.PushDependManager{*;}


# keep 自己定义的 AliyunMessageReceiver 和 MzMessageReceiver
-keep public class * extends com.aliyun.AliyunMessageReceiver { *; }
-keep public class * extends com.meizu.message.MzMessageReceiver { *; }

# VIVO push
-dontwarn com.vivo.push.**
-keep class com.vivo.push.**{*; }
-keep class com.vivo.VivoPushMessageReceiver{*;}

# share
-keep class com.tencent.** {*;}
-keep class com.tencent.**$* {*;}
-keep class com.bytedance.sdk.share.keep.impl.** {*;}
-keep class com.bytedance.sdk.share.api.** {*;}
-keep class com.bytedance.sdk.share.partner.** {*;}
-keep class com.bytedance.sdk.share.network.model.** {*;}
-keep class com.bytedance.sdk.share.manager.** {*;}
-keep class com.bytedance.sdk.share.channel.douyin.view.**{*;}
-keep class com.bytedance.sdk.share.channel.wechat.view.**{*;}
-keep class com.bytedance.sdk.share.channel.qq.action.**{*;}
-keep class com.bytedance.sdk.open.** {*;}

# 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

# 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

-keep class com.just.agentweb.** {
    *;
}
-dontwarn com.just.agentweb.**
-keep class com.bytedance.ttgame.module.webview.GChromeClient{*;}

-keep class com.bytedance.sdk.bridge.BridgeIndex_*  {*;}
-keepclassmembers class ** {
    @com.bytedance.sdk.bridge.annotation.BridgeMethod <methods>;
}
-keepclassmembers class * {
    @android.webkit.JavascriptInterface <methods>;
}

-keep class com.bytedance.ttgame.module.bridge.base.type.ShareBridgeModule$*{*;}

-keep class com.bytedance.ttgame.module.bridge.base.type.SpeechRecognitionBridgeModule {*;}
-keep class com.bytedance.ttgame.module.bridge.base.type.SpeechRecognitionBridgeModule$* {*;}

# netdiagnose
-keep class com.bytedance.ttgame.module.bridge.base.type.NetDiagnoseBridgeModule {*;}
-keep class com.bytedance.ttgame.module.bridge.base.type.NetDiagnoseBridgeModule$* {*;}
# 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
-keepclasseswithmembernames class com.bytedance.ttgame.module.notice.FetchNoticesResponse {*;}

# 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
-keep class com.bytedance.ttgame.module.loccom.api** { *; }
# 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

-keep class * implements com.bytedance.ttgame.rocketapi.** {*;}
-keep class com.bytedance.ttgame.rocketapi.** {*;}
# 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
# 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
-keep class com.bytedance.ttgame.module.floating.api.** { *; }

# 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
-keepclasseswithmembernames class com.bytedance.ttgame.module.cdkey.CDKeyResponse {*;}

# 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
-keep class com.bytedance.ttgame.module.abtest.impl.GsdkABTestSettings { *; }
-keep class com.bytedance.ttgame.module.abtest.impl.GsdkABTestSettings$$Impl { *; }

# 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
-keep class com.bytedance.ttgame.module.crash.api.** { *; }
# 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.

# 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
-keep class com.bytedance.ttgame.module.abtest.api.** { *; }
# 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
-keep class com.bytedance.ttgame.module.log.api.** { *; }
# 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
-keep class com.bytedance.ttgame.module.cdkey.api.** { *; }

# 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
-keep class com.bytedance.ttgame.sdk.module.account.api.** { *; }

# 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

# 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
# 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

# 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
-keep class com.bytedance.ttgame.module.redpacket.api.** { *; }

# 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
-keep class com.bytedance.ttgame.module.privacy.api.** { *; }

# 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
-keep class com.bytedance.crash.nativecrash.NativeCrashMonitor {
  private static void handleNativeCrashInJava(String, String, String[], String[]);
}
# 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

# applog 老代码相关，先建议保留
-keep class com.ss.android.common.applog.UserInfo { *; }
-keep class com.ss.android.common.applog.GlobalContext { *; }
-keep class com.ss.android.common.applog.EstrBean {*;}
-keep class com.bytedance.ttgame.sdk.module.core.internal.monitor.MonitorManager { public *; }
-keep class com.bytedance.ttgame.sdk.module.core.internal.monitor.SdkMonitorManager { public *; }
-keep class com.bytedance.ttgame.sdk.constants.ErrorCodeConstants { public *;}
-keep class com.bytedance.ttgame.sdk.module.core.internal.ChannelConstants { public *;}
-keep class com.bytedance.ttgame.sdk.module.core.internal.GameSdkConfig { public *;}
-keep class com.bytedance.ttgame.sdk.module.core.internal.SdkCoreData { public *;}
-keep class com.bytedance.ttgame.sdk.module.core.internal.InitHook { public *;}
-keep class com.bytedance.ttgame.sdk.module.core.internal.alog.LogManager {*;}
-keep class com.bytedance.ttgame.sdk.module.core.internal.alog.Level {*;}
-keep class com.bytedance.ttgame.sdk.module.utils.AesCbcUtils {*;}
-keep class com.bytedance.ttgame.sdk.module.utils.I18nUtils {*;}
-keep class com.bytedance.ttgame.sdk.module.utils.ClipboardUtils {*;}
-keep class com.ss.android.common.lib.AppLogNewUtils{*;}

# push
-keep class com.bytedance.ttgame.sdk.module.utils.NumberUtils { public *;}


# voice
-keepclassmembers class okhttp3.Dns { public *; }

# location
-keep class com.bytedance.ttgame.sdk.module.location.model.** {  *; }

-keep class com.ss.sys.ck.SCCheckUtils {*;}
#adjust todo完善proguard规则
-keep public class com.adjust.sdk.** { *; }
-keep class com.google.android.gms.common.ConnectionResult {
    int SUCCESS;
}
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient {
    com.google.android.gms.ads.identifier.AdvertisingIdClient$Info getAdvertisingIdInfo(android.content.Context);
}
-keep class com.google.android.gms.ads.identifier.AdvertisingIdClient$Info {
    java.lang.String getId();
    boolean isLimitAdTrackingEnabled();
}
-keep public class com.android.installreferrer.** { *; }

#########Lancet
-keep class com.ss.android.common.applog.AppLog { *; }
#########Lancet

# todo fix bili apply mapping crash
-keep class com.bytedance.ttgame.sdk.module.account.utils.PlatformDebug { *; }

#keep for spi
-keep class com.bytedance.ttgame.framework.module.spi.ServiceManager { public *; }
-keep public interface com.bytedance.ttgame.framework.module.spi.IReleasable { *; }

# moved from original framework
#keep for spi
-keep class * implements com.bytedance.ttgame.framework.module.spi.IService {*;}
-keep class com.bytedance.ttgame.framework.module.callback.** {*;}

# Retrofit  todo:proguard 规则完善
#-keep class com.bytedance.retrofit2.** { *; }
#-dontwarn com.bytedance.retrofit2.**
#-dontwarn rx.**
# Platform calls Class.forName on types which do not exist on Android to determine platform.
-keepattributes *Annotation*
-dontnote com.bytedance.retrofit2.Platform
-keepclasseswithmembers class * {
    @com.bytedance.retrofit2.http.* <methods>;
}
-keepattributes Signature
-keepattributes Exceptions

-keepclassmembers class * {
    @org.greenrobot.eventbus.Subscribe <methods>;
}
-keep enum org.greenrobot.eventbus.ThreadMode { *; }

# Only required if you use AsyncExecutor
-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent {
    <init>(java.lang.Throwable);
}

-keep class com.bytedance.ttgame.framework.module.util.PermissionUtil { public *; }
-keep class com.bytedance.ttgame.framework.module.applog.AppLogContext { public *; }
-keep class com.bytedance.ttgame.framework.module.network.AppExecutors { public *; }
-keep class com.bytedance.ttgame.framework.module.network.ApiResponse { public *; }
-keep class com.bytedance.ttgame.framework.module.network.Resource { public *; }
-keep class com.bytedance.ttgame.framework.module.network.Resource$Status { public *; }
-keep class com.bytedance.ttgame.framework.module.network.livedata.NetworkOnlyBoundResource { public *; protected *; }
-keep class com.ss.android.agilelogger.ALog { public *; }
-keep class com.bytedance.retrofit2.http.* { public *; }
-keep class com.bytedance.retrofit2.mime.TypedByteArray { public *; }
-keep class com.bytedance.ttgame.framework.module.network.IRetrofit { public *; }
-keep class com.bytedance.retrofit2.Call { public *; }
-keep class com.bytedance.ttnet.http.RequestContext { public *; }

# for cronet plugin
-keep interface com.bytedance.frameworks.baselib.network.http.cronet.I* {*;}
-keep class com.bytedance.common.utility.Logger { *; }
-keep class com.bytedance.common.utility.collection.WeakHandler { *; }
-keep interface com.bytedance.common.utility.collection.WeakHandler$IHandler { *; }
-keep class com.bytedance.common.utility.reflect.Reflect { *; }
-keep class com.bytedance.ttnet.TTNetInit {*;}

#####################################以下为 cronet 配置###########################################

# Proguard config for apps that depend on cronet_impl_common_java.jar.

# This constructor is called using the reflection from Cronet API (cronet_api.jar).

-keep class org.chromium.net.impl.CronetEngineBuilderImpl {
    public <init>(android.content.Context);
}

# cronet 1.3.1 之后
-keep class com.ttnet.org.chromium.net.impl.** {*;}
-keep class com.ttnet.org.chromium.base.JNIUtils {*;}
-keep class com.ttnet.org.chromium.** {*;}

-keep class com.bytedance.org.chromium.net.impl.** {*;}
-keep class com.bytedance.org.chromium.base.JNIUtils {*;}
-keep class com.bytedance.org.chromium.** {*;}
-keepattributes *Annotation*
-keep class org.chromium.CronetClient* {*;}
# This class should be explicitly kept to avoid failure if
# class/merging/horizontal proguard optimization is enabled.
-keep class org.chromium.net.impl.ImplVersion

# Proguard config for apps that depend on cronet_impl_native_java.jar.

-keep class org.chromium.net.impl.CronetUrlRequest$HeadersList
-keep class org.chromium.net.impl.ChromiumUrlRequest$ResponseHeadersMap

# Suppress unnecessary warnings.
-dontnote org.chromium.net.ProxyChangeListener$ProxyReceiver
-dontnote org.chromium.net.AndroidKeyStore
# Needs 'void setTextAppearance(int)' (API level 23).
-dontwarn org.chromium.base.ApiCompatibilityUtils
# Needs 'boolean onSearchRequested(android.view.SearchEvent)' (API level 23).
-dontwarn org.chromium.base.WindowCallbackWrapper

# Generated for chrome apk and not included into cronet.
-dontwarn org.chromium.base.BuildConfig
-dontwarn org.chromium.base.library_loader.NativeLibraries
-dontwarn org.chromium.base.multidex.ChromiumMultiDexInstaller

# Objects of this type are passed around by native code, but the class
# is never used directly by native code. Since the class is not loaded, it does
# not need to be preserved as an entry point.
-dontnote org.chromium.net.UrlRequest$ResponseHeadersMap
# https://android.googlesource.com/platform/sdk/+/marshmallow-mr1-release/files/proguard-android.txt#54
-dontwarn android.support.**

# This class should be explicitly kept to avoid failure if
# class/merging/horizontal proguard optimization is enabled.
-keep class org.chromium.base.CollectionUtil

-keep class org.chromium.base.** {
    public <fields>;
    public <methods>;
    public *;
}

# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Contains flags that can be safely shared with Cronet, and thus would be
# appropriate for third-party apps to include.

# Keep all annotation related attributes that can affect runtime
-keepattributes RuntimeVisible*Annotations
-keepattributes AnnotationDefault

-dontwarn com.appsflyer.AFKeystoreWrapper

# Keep the annotations, because if we don't, the ProGuard rules that use them
# will not be respected. These classes then show up in our final dex, which we
# do not want - see crbug.com/628226.
-keep @interface org.chromium.base.annotations.AccessedByNative
-keep @interface org.chromium.base.annotations.CalledByNative
-keep @interface org.chromium.base.annotations.CalledByNativeUnchecked
-keep @interface org.chromium.base.annotations.RemovableInRelease
-keep @interface org.chromium.base.annotations.UsedByReflection

# Keeps for class level annotations.
-keep @org.chromium.base.annotations.UsedByReflection class *

# Keeps for method level annotations.
-keepclasseswithmembers class * {
  @org.chromium.base.annotations.AccessedByNative <fields>;
}
-keepclasseswithmembers,includedescriptorclasses class * {
  @org.chromium.base.annotations.CalledByNative <methods>;
}
-keepclasseswithmembers,includedescriptorclasses class * {
  @org.chromium.base.annotations.CalledByNativeUnchecked <methods>;
}
-keepclasseswithmembers class * {
  @org.chromium.base.annotations.UsedByReflection <methods>;
}
-keepclasseswithmembers class * {
  @org.chromium.base.annotations.UsedByReflection <fields>;
}
-keepclasseswithmembers,includedescriptorclasses class * {
  native <methods>;
}

# Remove methods annotated with this if their return value is unused.
-assumenosideeffects class ** {
  @org.chromium.base.annotations.RemovableInRelease <methods>;
}

# Keep all class implements Parcelable
-keep class * implements android.os.Parcelable {*;}
# Keep all CREATOR fields within Parcelable that are kept.
-keepclassmembers class org.chromium.** implements android.os.Parcelable {
  public static *** CREATOR;
}

# Don't obfuscate Parcelables as they might be marshalled outside Chrome.
# If we annotated all Parcelables that get put into Bundles other than
# for saveInstanceState (e.g. PendingIntents), then we could actually keep the
# names of just those ones. For now, we'll just keep them all.
-keepnames class org.chromium.** implements android.os.Parcelable

# Keep all enum values and valueOf methods. See
# http://proguard.sourceforge.net/index.html#manual/examples.html
# for the reason for this. Also, see http://crbug.com/248037.
-keepclassmembers enum org.chromium.** {
    public static **[] values();
}

# Proguard config for apps that depend on cronet_impl_platform_java.jar.

# This constructor is called using the reflection from the Cronet common
# implementation (cronet_impl_platform_java.jar).
-keep class org.chromium.net.impl.JavaCronetEngine {
    public <init>(java.lang.String);
}

-keep class org.chromium.wschannel.MySelfChannelImpl {*;}
-keepclasseswithmembers class * {
    @com.bytedance.retrofit2.http.* <methods>;
}

# for cronet plugin
-keep interface com.bytedance.frameworks.baselib.network.http.cronet.I* {*;}

-keep class com.ss.android.ugc.effectmanager.DownloadableModelSupport {*;}

# Retrofit
#-keep class com.bytedance.retrofit2.** { *; }
#-dontwarn com.bytedance.retrofit2.**
#-dontwarn rx.**
# Platform calls Class.forName on types which do not exist on Android to determine platform.
-keepattributes *Annotation*
-dontnote com.bytedance.retrofit2.Platform
-keepclasseswithmembers class * {
  @com.bytedance.retrofit2.http.* <methods>;
}
-keepattributes Signature
-keepattributes Exceptions

-keep class com.bytedance.org.chromium.** {*;}
-keep class com.ttnet.org.chromium.** {*;}
-keep class com.bytedance.ttnet.TTNetInit { *; }


# Proguard config for apps that depend on cronet_impl_common_java.jar.

# This constructor is called using the reflection from Cronet API (cronet_api.jar).
-keep class org.chromium.net.impl.CronetEngineBuilderImpl {
    public <init>(android.content.Context);
}

# This class should be explicitly kept to avoid failure if
# class/merging/horizontal proguard optimization is enabled.
-keep class org.chromium.net.impl.ImplVersion

# Proguard config for apps that depend on cronet_impl_native_java.jar.

-keep class org.chromium.net.impl.CronetUrlRequest$HeadersList
-keep class org.chromium.net.impl.ChromiumUrlRequest$ResponseHeadersMap

# Suppress unnecessary warnings.
-dontnote org.chromium.net.ProxyChangeListener$ProxyReceiver
-dontnote org.chromium.net.AndroidKeyStore
# Needs 'void setTextAppearance(int)' (API level 23).
-dontwarn org.chromium.base.ApiCompatibilityUtils
# Needs 'boolean onSearchRequested(android.view.SearchEvent)' (API level 23).
-dontwarn org.chromium.base.WindowCallbackWrapper

# Generated for chrome apk and not included into cronet.
-dontwarn org.chromium.base.BuildConfig
-dontwarn org.chromium.base.library_loader.NativeLibraries
-dontwarn org.chromium.base.multidex.ChromiumMultiDexInstaller

# Objects of this type are passed around by native code, but the class
# is never used directly by native code. Since the class is not loaded, it does
# not need to be preserved as an entry point.
-dontnote org.chromium.net.UrlRequest$ResponseHeadersMap
# https://android.googlesource.com/platform/sdk/+/marshmallow-mr1-release/files/proguard-android.txt#54
-dontwarn android.support.**

# This class should be explicitly kept to avoid failure if
# class/merging/horizontal proguard optimization is enabled.
-keep class org.chromium.base.CollectionUtil

-keep class org.chromium.base.** {
    public <fields>;
    public <methods>;
    public *;
}

# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Contains flags that can be safely shared with Cronet, and thus would be
# appropriate for third-party apps to include.

# Keep all annotation related attributes that can affect runtime
-keepattributes RuntimeVisible*Annotations
-keepattributes AnnotationDefault

# Keep the annotations, because if we don't, the ProGuard rules that use them
# will not be respected. These classes then show up in our final dex, which we
# do not want - see crbug.com/628226.
-keep @interface org.chromium.base.annotations.AccessedByNative
-keep @interface org.chromium.base.annotations.CalledByNative
-keep @interface org.chromium.base.annotations.CalledByNativeUnchecked
-keep @interface org.chromium.base.annotations.RemovableInRelease
-keep @interface org.chromium.base.annotations.UsedByReflection

# Keeps for class level annotations.
-keep @org.chromium.base.annotations.UsedByReflection class *

# Keeps for method level annotations.
-keepclasseswithmembers class * {
  @org.chromium.base.annotations.AccessedByNative <fields>;
}
-keepclasseswithmembers,includedescriptorclasses class * {
  @org.chromium.base.annotations.CalledByNative <methods>;
}
-keepclasseswithmembers,includedescriptorclasses class * {
  @org.chromium.base.annotations.CalledByNativeUnchecked <methods>;
}
-keepclasseswithmembers class * {
  @org.chromium.base.annotations.UsedByReflection <methods>;
}
-keepclasseswithmembers class * {
  @org.chromium.base.annotations.UsedByReflection <fields>;
}
-keepclasseswithmembers,includedescriptorclasses class * {
  native <methods>;
}

# Remove methods annotated with this if their return value is unused.
-assumenosideeffects class ** {
  @org.chromium.base.annotations.RemovableInRelease <methods>;
}

# Keep all CREATOR fields within Parcelable that are kept.
-keepclassmembers class org.chromium.** implements android.os.Parcelable {
  public static *** CREATOR;
}

# Don't obfuscate Parcelables as they might be marshalled outside Chrome.
# If we annotated all Parcelables that get put into Bundles other than
# for saveInstanceState (e.g. PendingIntents), then we could actually keep the
# names of just those ones. For now, we'll just keep them all.
-keepnames class org.chromium.** implements android.os.Parcelable

# Keep all enum values and valueOf methods. See
# http://proguard.sourceforge.net/index.html#manual/examples.html
# for the reason for this. Also, see http://crbug.com/248037.
-keepclassmembers enum org.chromium.** {
    public static **[] values();
}

# Proguard config for apps that depend on cronet_impl_platform_java.jar.

# This constructor is called using the reflection from the Cronet common
# implementation (cronet_impl_platform_java.jar).
-keep class org.chromium.net.impl.JavaCronetEngine {
    public <init>(java.lang.String);
}

# for cronet plugin
-keep interface com.bytedance.frameworks.baselib.network.http.cronet.I* {*;}

# Proguard config for apps that depend on cronet_impl_common_java.jar.

# This constructor is called using the reflection from Cronet API (cronet_api.jar).
-keep class org.chromium.net.impl.CronetEngineBuilderImpl {
    public <init>(android.content.Context);
}

# This class should be explicitly kept to avoid failure if
# class/merging/horizontal proguard optimization is enabled.
-keep class org.chromium.net.impl.ImplVersion

# Proguard config for apps that depend on cronet_impl_native_java.jar.

-keep class org.chromium.net.impl.CronetUrlRequest$HeadersList
-keep class org.chromium.net.impl.ChromiumUrlRequest$ResponseHeadersMap

# Suppress unnecessary warnings.
-dontnote org.chromium.net.ProxyChangeListener$ProxyReceiver
-dontnote org.chromium.net.AndroidKeyStore
# Needs 'void setTextAppearance(int)' (API level 23).
-dontwarn org.chromium.base.ApiCompatibilityUtils
# Needs 'boolean onSearchRequested(android.view.SearchEvent)' (API level 23).
-dontwarn org.chromium.base.WindowCallbackWrapper

# Generated for chrome apk and not included into cronet.
-dontwarn org.chromium.base.BuildConfig
-dontwarn org.chromium.base.library_loader.NativeLibraries
-dontwarn org.chromium.base.multidex.ChromiumMultiDexInstaller

# Objects of this type are passed around by native code, but the class
# is never used directly by native code. Since the class is not loaded, it does
# not need to be preserved as an entry point.
-dontnote org.chromium.net.UrlRequest$ResponseHeadersMap
# https://android.googlesource.com/platform/sdk/+/marshmallow-mr1-release/files/proguard-android.txt#54
-dontwarn android.support.**

# This class should be explicitly kept to avoid failure if
# class/merging/horizontal proguard optimization is enabled.
-keep class org.chromium.base.CollectionUtil

-keep class org.chromium.base.** {
    public <fields>;
    public <methods>;
    public *;
}

# Copyright 2016 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

# Contains flags that can be safely shared with Cronet, and thus would be
# appropriate for third-party apps to include.

# Keep all annotation related attributes that can affect runtime
-keepattributes RuntimeVisible*Annotations
-keepattributes AnnotationDefault

# Keep the annotations, because if we don't, the ProGuard rules that use them
# will not be respected. These classes then show up in our final dex, which we
# do not want - see crbug.com/628226.
-keep @interface org.chromium.base.annotations.AccessedByNative
-keep @interface org.chromium.base.annotations.CalledByNative
-keep @interface org.chromium.base.annotations.CalledByNativeUnchecked
-keep @interface org.chromium.base.annotations.RemovableInRelease
-keep @interface org.chromium.base.annotations.UsedByReflection

# Keeps for class level annotations.
-keep @org.chromium.base.annotations.UsedByReflection class *

# Keeps for method level annotations.
-keepclasseswithmembers class * {
  @org.chromium.base.annotations.AccessedByNative <fields>;
}
-keepclasseswithmembers,includedescriptorclasses class * {
  @org.chromium.base.annotations.CalledByNative <methods>;
}
-keepclasseswithmembers,includedescriptorclasses class * {
  @org.chromium.base.annotations.CalledByNativeUnchecked <methods>;
}
-keepclasseswithmembers class * {
  @org.chromium.base.annotations.UsedByReflection <methods>;
}
-keepclasseswithmembers class * {
  @org.chromium.base.annotations.UsedByReflection <fields>;
}
-keepclasseswithmembers,includedescriptorclasses class * {
  native <methods>;
}

# Remove methods annotated with this if their return value is unused.
-assumenosideeffects class ** {
  @org.chromium.base.annotations.RemovableInRelease <methods>;
}

# Keep all CREATOR fields within Parcelable that are kept.
-keepclassmembers class org.chromium.** implements android.os.Parcelable {
  public static *** CREATOR;
}

# Don't obfuscate Parcelables as they might be marshalled outside Chrome.
# If we annotated all Parcelables that get put into Bundles other than
# for saveInstanceState (e.g. PendingIntents), then we could actually keep the
# names of just those ones. For now, we'll just keep them all.
-keepnames class org.chromium.** implements android.os.Parcelable

# Keep all enum values and valueOf methods. See
# http://proguard.sourceforge.net/index.html#manual/examples.html
# for the reason for this. Also, see http://crbug.com/248037.
-keepclassmembers enum org.chromium.** {
    public static **[] values();
}

# Proguard config for apps that depend on cronet_impl_platform_java.jar.

# This constructor is called using the reflection from the Cronet common
# implementation (cronet_impl_platform_java.jar).
-keep class org.chromium.net.impl.JavaCronetEngine {
    public <init>(java.lang.String);
}

# for cronet plugin
-keep interface com.bytedance.frameworks.baselib.network.http.cronet.I* {*;}
#ExoPlayer
#-keep class com.google.android.exoplayer2.** { *; }

-keepclassmembers class * implements android.os.Parcelable {
    static ** CREATOR;
}

-keep class com.bytedance.ttgame.framework.module.util.PermissionMediator {*;}
-keep interface com.bytedance.ttgame.framework.module.util.PermissionMediator$* {*;}

-keep class com.bytedance.ttgame.framework.module.util.FlavorUtilKt {*;}
-keep class com.bytedance.ttgame.framework.module.util.CountDownTimer {*;}

-keep class com.bytedance.frameworks.baselib.network.http.cronet.impl.CronetIOException{*;}

# ttuploader相关
-keep class com.ss.android.vesdk.** { *; }
-keep class com.ss.ttuploader.** { *; }

#自定义view的ke
-keep class com.bytedance.common.utility.view.DrawableCenterTextView {*;}

##fresco
-keep class com.facebook.** { *; }

##keep 保证native demo编译通过
-keep class com.bytedance.ttgame.framework.module.util.StringUtil {*;}

# copied from orginal base_common_api
-keep class com.bytedance.ttgame.core.** {*;}

# ttnet动态限速需要通过反射来调用该方法
-keep class com.bytedance.retrofit2.ExecutorCallAdapterFactory$ExecutorCallbackCall {
     public boolean setThrottleNetSpeed(long);
}

-keep class com.bytedance.ttgame.framework.module.settings.SDKSettingsRequestServiceImpl {*;}
-keep class com.bytedance.ttgame.framework.module.settings.SDKSettings$$Impl {*;}
-keep class com.bytedance.ttgame.framework.module.settings.SDKSettings {*;}


# 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
-keep class com.bytedance.ttgame.module.notice.api.** { *; }

# 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

# 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
-keep class com.bytedance.ttgame.module.fileupload.api.** { *; }
# 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
-keep class com.bytedance.ttgame.module.netdiagnose.api.** { *; }

# 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
-keep class com.bytedance.ttgame.module.webview.api** { *; }
# 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

# 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
-keep class com.bytedance.ttgame.module.godzilla.api.** { *; }


# 安全SDK相关
-keep class com.ss.sys.ces.a {*;}
-keep public class com.ss.sys.ces.out.*{
    public *;
}
# 2018-11-28 新增；0.5.11.30版本更新（后期将用于程序反调用参考依据，不添加或将使SDK禁止使用）
-keep class com.ss.sys.ces.gg.tt {*;}

# 唯一识别相关
-keep public class com.ss.secuni.b.c {
    public *;
}

# 验证码相关

-keep public class com.ss.sys.ck.SCCheckUtils {*;}
-keep public class com.ss.sys.ck.SCCheckListener {*;}

# 默认前置防御相关
#2018-11-30 新增；0.5.11.30版本更新（默认前置防御建议添加，业务方自实现弹框可以不加）
-keep class com.ss.sys.ces.die.xx {public *;}

-keep class com.ss.sys.ck.SCCheckUtils {*;}
# 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
# 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
-keep class com.bytedance.ttgame.module.gameinfo.api.** { *; }

# 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

# 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
-keepclasseswithmembernames class com.bytedance.ttgame.module.gameinfo.GameInfoResponse {*;}

