# game_sdk
-keep class com.ttgame.** {*;}
-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* {*;}

# 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.meituan.robust.**{*;}
-keep class com.google.gson.**{*;}
-keepattributes *Annotation*


# 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.ss.gg.Guardian {
    public *;
}

-keep class com.ss.gg.UserType {
    public static final <fields>;
}

-keep class com.ss.gg.Region {
    public static final <fields>;
}

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


# 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/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.bdlocation.*{*;}

-keep class com.bytedance.bdlocation.client.*{*;}

-keep class com.bytedance.bdlocation.network.model.*{*;}

-dontwarn android.support.annotation.Keep
-keepattributes *Annotation*
-keep @android.support.annotation.Keep class **{
@android.support.annotation.Keep <fields>;
@android.support.annotation.Keep <methods>;
}
# 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.NativeCrashMonitor {
  private static void handleNativeCrashInJava(String, String, String[], String[]);
  private static void reportEventForAnrMonitor(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

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

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

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

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

# push 模块需要
-keep class com.ss.android.common.applog.TeaAgent { public *; }
-keep class com.ss.android.common.applog.AppLog { public *; }
-keep class com.bytedance.ttgame.sdk.module.core.internal.applog.ApplogHelper { public *; }
-keep class com.bytedance.ttgame.sdk.module.core.internal.network.TTService { public *; }
-keep class com.bytedance.ttgame.sdk.module.utils.ProcessUtils { public *; }
-keep class com.ss.android.deviceregister.DeviceRegisterManager { public *; }
-keep class com.ss.android.deviceregister.DeviceRegisterManager$OnDeviceConfigUpdateListener { public *; }
-keep class com.bytedance.ttgame.sdk.module.utils.AppInfoUtil { public *; }
-keep class com.ss.android.common.applog.NetUtil { public *; }
-keep class com.bytedance.retrofit2.client.Header { public *; }
-keep class com.bytedance.retrofit2.mime.TypedOutput { public *; }
-keep class com.bytedance.frameworks.baselib.network.http.NetworkParams$ApiProcessHook { public *; }
-keep class com.bytedance.ttgame.framework.module.applog.ITeaAgent { public *; }
-keep class com.bytedance.ttgame.framework.module.applog.InternalServiceManager { public *; }
-keep class com.bytedance.ttgame.module.push.network.PushApiProcessHook { public *; }
-keep class com.bytedance.ttnet.http.HttpRequestInfo { public *; }
-keep class com.bytedance.ttgame.sdk.module.core.internal.network.ttnet.TTNetUtil { public *; }
-keep class com.bytedance.ttgame.sdk.module.core.internal.RocketConstants { public *; }

#debug_sdk 模块需要
-keep class com.bytedance.retrofit2.intercept.* { *;}
-keep class com.bytedance.retrofit2.SsResponse { *;}
-keep class com.bytedance.retrofit2.client.Request { *;}
-keep class com.bytedance.retrofit2.client.Response { *;}
-keep class com.bytedance.retrofit2.mime.FormUrlEncodedTypedOutput { *;}
-keep class com.bytedance.retrofit2.mime.TypedByteArray { *;}


# screenrecord 模块需要
-keep class com.bytedance.retrofit2.Retrofit { public *; }
-keep class com.bytedance.retrofit2.Retrofit$Builder { public *; }
-keep class com.bytedance.retrofit2.http.** { public *; }
-keep class com.bytedance.retrofit2.mime.TypedInput { public *; }
-keep class com.bytedance.retrofit2.CallAdapter** { public *; }
-keep class com.bytedance.frameworks.baselib.network.http.retrofit.SsHttpExecutor { public *; }
-keep class com.bytedance.framwork.core.monitor.MonitorUtils { public *; }
-keep class com.bytedance.ttnet.retrofit.SsRetrofitClient { public *; }

# translate 模块需要
-keep class com.bytedance.retrofit2.Callback { *; }

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

-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.frameworks.baselib.network.http.cronet.impl.CronetIOException{*;}

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

#自定义view的keep
-keep class com.bytedance.common.utility.view.DrawableCenterTextView {*;}
# 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
-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

-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>;
}
# 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.location.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.ss.android.socialbase.downloader.model.DownloadInfo {*;}

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

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


# 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.location.impl.** { *; }
-keep class com.bytedance.ttgame.module.location.impl.LocationService {*;}
#-keep class com.bytedance.ttgame.module.location.impl.BDLocationTest {*;}
# 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

#keep for spi

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

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

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

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


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

-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

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

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

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


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