Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
ac13
GSYVideoPlayer
提交
a03c7738
G
GSYVideoPlayer
项目概览
ac13
/
GSYVideoPlayer
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
GSYVideoPlayer
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
a03c7738
编写于
2月 07, 2018
作者:
G
guoshuyu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
混淆支持
上级
651f4881
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
62 addition
and
10 deletion
+62
-10
README.md
README.md
+14
-2
app/proguard-rules.pro
app/proguard-rules.pro
+48
-8
未找到文件。
README.md
浏览文件 @
a03c7738
...
...
@@ -173,10 +173,22 @@ compile 'com.shuyu:gsyVideoPlayer-ex_so:4.0.0-beat1'
## 七、混淆
```
-keep class com.shuyu.gsyvideoplayer.video.** { *; }
-dontwarn com.shuyu.gsyvideoplayer.video.**
-keep class com.shuyu.gsyvideoplayer.video.base.** { *; }
-dontwarn com.shuyu.gsyvideoplayer.video.base.**
-keep class com.shuyu.gsyvideoplayer.utils.** { *; }
-dontwarn com.shuyu.gsyvideoplayer.utils.**
-keep class tv.danmaku.ijk.** { *; }
-dontwarn tv.danmaku.ijk.**
-keep class com.shuyu.gsyvideoplayer.** { *; }
-dontwarn com.shuyu.gsyvideoplayer.**
-keep public class * extends android.view.View{
*** get*();
void set*(***);
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
}
```
## 温馨提示
...
...
app/proguard-rules.pro
浏览文件 @
a03c7738
...
...
@@ -40,12 +40,6 @@
native <methods>;
}
-keepclassmembers class fqcn.of.javascript.interface.for.webview {
public *;
}
-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
private static final java.io.ObjectStreamField[] serialPersistentFields;
...
...
@@ -77,7 +71,53 @@ public static ** valueOf(java.lang.String);
}
-keep class com.shuyu.gsyvideoplayer.
*
* { *; }
-dontwarn com.shuyu.gsyvideoplayer.
*
*
# 对于带有回调函数的onXXEvent、
*
*On*Listener的,不能被混淆
-keepclassmembers class * {
void *(
*
*On*Event);
void *(
*
*On*Listener);
}
-keepclassmembers class * extends android.webkit.webViewClient {
public void *(android.webkit.WebView, java.lang.String, android.graphics.Bitmap);
public boolean *(android.webkit.WebView, java.lang.String);
}
-keepclassmembers class * extends android.webkit.webViewClient {
public void *(android.webkit.webView, jav.lang.String);
}
# ButterKnife
-keep class butterknife.
*
* { *; }
-dontwarn butterknife.internal.
*
*
-keep class
*
*$$ViewBinder { *; }
-keepclasseswithmembernames class * {
@butterknife.* <fields>;
}
-keepclasseswithmembernames class * {
@butterknife.* <methods>;
}
# Glide
-keep public class * implements com.bumptech.glide.module.GlideModule
-keep public enum com.bumptech.glide.load.resource.bitmap.ImageHeaderParser$
*
* {
*
*[] $VALUES;
public *;
}
# 保留我们自定义控件(继承自View)不被混淆
-keep public class * extends android.view.View{
**
* get*();
void set*(
**
*);
public <init>(android.content.Context);
public <init>(android.content.Context, android.util.AttributeSet);
public <init>(android.content.Context, android.util.AttributeSet, int);
}
-keep class com.shuyu.gsyvideoplayer.video.
*
* { *; }
-dontwarn com.shuyu.gsyvideoplayer.video.
*
*
-keep class com.shuyu.gsyvideoplayer.video.base.
*
* { *; }
-dontwarn com.shuyu.gsyvideoplayer.video.base.
*
*
-keep class com.shuyu.gsyvideoplayer.utils.
*
* { *; }
-dontwarn com.shuyu.gsyvideoplayer.utils.
*
*
-keep class tv.danmaku.ijk.
*
* { *; }
-dontwarn tv.danmaku.ijk.
**
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录