# 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

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

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

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


