提交 9ff49204 编写于 作者: xuexiangjys's avatar xuexiangjys 😊

增加混淆配置

上级 05955327
......@@ -111,6 +111,12 @@ final LocalMediaConfig config = builder
CompressResult compressResult = XVideo.startCompressVideo(config);
```
## 混淆配置
```
-keep class com.xuexiang.xvideo.jniinterface.** { *; }
```
## 特别感谢
https://github.com/mabeijianxi/small-video-record
......
......@@ -27,7 +27,7 @@ android {
buildTypes {
release {
minifyEnabled false
minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
if (isNeedPackage.toBoolean()) {
signingConfig signingConfigs.release
......@@ -39,13 +39,16 @@ android {
applicationVariants.all { variant ->
variant.outputs.all {
if (variant.buildType.name.equals('release')) {
outputFileName = "demo.apk"
outputFileName = "xvideo_demo.apk"
}
}
}
}
aaptOptions { cruncherEnabled = false }
lintOptions {
checkReleaseBuilds false
abortOnError false
}
......
......@@ -195,3 +195,5 @@
# 如果使用了 单类注入,即不定义接口实现 IProvider,需添加下面规则,保护实现
-keep class * implements com.xuexiang.xrouter.facade.template.IProvider
# XVideo使用了JNI
-keep class com.xuexiang.xvideo.jniinterface.** { *; }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册