Skip to content

Commit

Permalink
新增混淆配置
Browse files Browse the repository at this point in the history
  • Loading branch information
yangjie10930 committed Jan 31, 2018
1 parent fb30a13 commit b9d52be
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions joevideolib/proguard-rules.pro
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}

#打印混淆信息
-verbose
#代码优化选项,不加该行会将没有用到的类删除,这里为了验证时间结果而使用,在实际生产环境中可根据实际需要选择是否使用
-dontshrink
-dontwarn android.support.annotation.Keep
#保留注解,如果不添加改行会导致我们的@Keep注解失效
-keepattributes *Annotation*
-keep @android.support.annotation.Keep class **

0 comments on commit b9d52be

Please sign in to comment.