Skip to content

Commit

Permalink
发布2.8.0版本
Browse files Browse the repository at this point in the history
  • Loading branch information
azhon committed Feb 21, 2020
1 parent 76ff381 commit 4f45f96
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,17 @@ manager.setApkName("appupdate.apk")
.download();
```

#### Step3:ProGuard Rules
#### Step3:Compatible with Android N and above,Add the following code to your app's `build.gradle`

```java
defaultConfig {

//Each application has different authorities, preventing the same cannot be installed on the same phone at the same time
resValue "string", "authorities", applicationId
}
```

#### Step4:ProGuard Rules

```groovy
-keep public class * extends android.app.Activity
Expand Down
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,17 @@ manager.setApkName("appupdate.apk")
.download();
```

#### 第三步:混淆打包,只需保持`Activity``Service`不混淆
#### 第三步:兼容Android N 及以上版本,在你应用的`build.gradle`添加如下代码

```java
defaultConfig {

//每个应用拥有不同的authorities,防止相同的在同一个手机上无法同时安装
resValue "string", "authorities", applicationId
}
```

#### 第四步:混淆打包,只需保持`Activity``Service`不混淆

```groovy
-keep public class * extends android.app.Activity
Expand Down
Binary file modified apk/appupdate.apk
Binary file not shown.

0 comments on commit 4f45f96

Please sign in to comment.