美文网首页
Android Proguard(混淆)

Android Proguard(混淆)

作者: 2b75747cf703 | 来源:发表于2017-05-05 15:31 被阅读195次

http://www.jianshu.com/p/60e82aafcfd0

proguard-rules.pro

# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/L/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 *;
#}

-obfuscationdictionary keywords.txt

#-classobfuscationdictionary keywords.txt
#-packageobfuscationdictionary keywords.txt

# Unity
-keep class bitter.jnibridge.** {*;}
-keep class com.unity3d.player.** {*;}
-keep class org.fmod.** {*;}

# Umeng
-keep class com.umeng.** {*;}
-keep class a.a.a.** {*;}
-keep class u.aly.** {*;}

-keep class com.sinyee.babybus.** {
    public *;
}

-keep class com.babybus.bbmodule.system.jni.PlatformSystem
-keepclassmembers class com.babybus.bbmodule.system.jni.PlatformSystem{
    public *;
}

-keep class * extends com.babybus.plugins.BBPlugin
-keepclassmembers class * extends com.babybus.plugins.BBPlugin{
    public *;
}

-dontwarn com.vungle.**
-keep class com.vungle.** {*;}

-dontwarn okio.**
-keep class okio.** {*;}

-dontwarn retrofit2.**
-keep class retrofit2.** {*;}

-dontwarn rx.internal.**
-keep class rx.internal.** {*;}

keywords.txt

#
# This obfuscation dictionary contains reserved Java keywords. They can't
# be used in Java source files, but they can be used in compiled class files.
# Note that this hardly improves the obfuscation. Decent decompilers can
# automatically replace reserved keywords, and the effect can fairly simply be
# undone by obfuscating again with simpler names.
# Usage:
#     java -jar proguard.jar ..... -obfuscationdictionary keywords.txt
#

do
if
for
int
new
try
byte
case
char
else
goto
long
this
void
break
catch
class
const
final
float
short
super
throw
while
double
import
native
public
return
static
switch
throws
boolean
default
extends
finally
package
private
abstract
continue
strictfp
volatile
interface
protected
transient
implements
instanceof
synchronized

相关文章

网友评论

      本文标题:Android Proguard(混淆)

      本文链接:https://www.haomeiwen.com/subject/qbqstxtx.html