Skip to content

Commit

Permalink
See 05/15 log
Browse files Browse the repository at this point in the history
  • Loading branch information
Blankj committed May 15, 2019
1 parent 2a404ca commit 0bebd0b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1,3 +1,4 @@
* `19/05/15` 修复 `-keep class * implements java.lang.annotation.Annotation`,发布 1.0.1
* `19/03/26` 修复未混淆类名的问题,发布 1.0.0
* `19/03/08` 去除中文,适配 androidx,发布 0.0.12
* `19/02/26` 新增 KotlinxCoroutines,发布 0.0.11
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -60,7 +60,7 @@
1. 首先开启混淆,设置 `minifyEnabled true`
2. 添加依赖:
```groovy
implementation "com.blankj:free-proguard:1.0.0"
implementation "com.blankj:free-proguard:1.0.1"
```
3. 把项目中的实体类加入到 `proguard-rules.pro` 文件中,一般为 `-keep class urpackage.xx.bean/entity/model.** { *; }`,或者使用 `@Keep` 注解这些实体类;
4. 把项目中需要防混淆的 jar 加入到 `proguard-rules.pro` 文件中,比如支付宝 SDK 的 `-libraryjars libs/alipaySDK-20150602.jar`,如果要对所有 jar 都防混,那么使用 `-libraryjars libs` 即可;
Expand All @@ -84,7 +84,7 @@

[logo]: https://raw.githubusercontent.com/Blankj/FreeProGuard/master/art/logo.png

[fpgsvg]: https://img.shields.io/badge/FreeProGuard-v1.0.0-brightgreen.svg
[fpgsvg]: https://img.shields.io/badge/FreeProGuard-v1.0.1-brightgreen.svg
[fpg]: https://github.com/Blankj/FreeProGuard

[licensesvg]: https://img.shields.io/badge/License-Apache--2.0-brightgreen.svg
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Expand Up @@ -26,7 +26,7 @@ task clean(type: Delete) {
}

ext {
versionCode = 1_000_000
versionName = '1.0.0'
//./gradlew bintrayUpload
}
versionCode = 1_000_001
versionName = '1.0.1'
}
//./gradlew bintrayUpload
2 changes: 1 addition & 1 deletion free-proguard/proguard-AndFix.pro
@@ -1,5 +1,5 @@
# https://github.com/alibaba/AndFix
-keep class * extends java.lang.annotation.Annotation
-keep class * implements java.lang.annotation.Annotation
-keepclasseswithmembernames class * {
native <methods>;
}
Expand Down

0 comments on commit 0bebd0b

Please sign in to comment.