# 将所有的 IService 子类 keep 住，因为 spi 会自动查找
-keep class * implements com.bytedance.ttgame.framework.module.spi.IService {*;}
# 将所有的 ModuleLifecycle 子类 keep 住，因为 ModuleManager 会查找
-keep class * implements com.bytedance.ttgame.framework.module.spi.ModuleLifecycle {*;}
# 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.framework.module.spi.ModuleLifecycle { 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.ModuleManager { 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 {*;}
-keep class com.bytedance.ttgame.framework.module.settings.APPSettings$$Impl {*;}
-keep class com.bytedance.ttgame.framework.module.settings.APPSettings {*;}

# praise dislog sdk 的 keep
-keep class com.bytedance.praisedialoglib.depend.IPraiseDialogUIConfig { *; }
-keep class com.bytedance.praisedialoglib.callback.IPraiseDialogCallback { *; }




-dontshrink
-ignorewarnings
-dontpreverify
-dontoptimize
-optimizations !class/unboxing/enum
-optimizations !code/simplification/arithmetic

-optimizationpasses 30
-mergeinterfacesaggressively

-allowaccessmodification
-keeppackagenames doNotKeepAThing
-keepattributes SourceFile, LineNumberTable

#debug_sdk模块需要
-keep class com.bytedance.ttgame.framework.module.network.log.ReleaseTree {*;}
-keep class com.bytedance.ttgame.framework.module.network.log.ThreadAwareDebugTree {*;}
-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.** {*;}

# proguard apply mapping 不靠谱
-keep class com.ss.android.message.sswo.SswoManager {*;}

#settins
-keep class com.bytedance.news.common.settings.IndividualManager {*;}
-keep class com.bytedance.news.common.settings.SettingsConfig {*;}
-keep class com.bytedance.news.common.settings.SettingsConfig$* {*;}
-keep class com.bytedance.news.common.settings.LazyConfig {*;}
-keep class com.bytedance.news.common.settings.api.annotation.ISettings {*;}
-keep class * implements com.bytedance.news.common.settings.api.annotation.ISettings {*;}
-keep class com.bytedance.news.common.settings.api.SettingsData {*;}
-keep class com.bytedance.news.common.settings.api.RequestService {*;}
-keep class com.bytedance.ttgame.module.adjust.settings.AdjustSettingsRequestServiceImpl {*;}
-keep class com.bytedance.news.common.settings.api.Response {*;}

-keep class com.bytedance.ttgame.sdk.module.entity.EmulatorResult {*;}
-keep class com.bytedance.ttgame.sdk.module.utils.ProcessUtils {*;}
-keep class com.bytedance.ttgame.sdk.module.location.LocationContext {*;}

# 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

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

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

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



# 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.impl.network.model.** {*;}
-keep class com.bytedance.ug.sdk.share.impl.provider.ShareSdkProvider {*;}

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

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


