Skip to content

Commit

Permalink
兼容AGP4.1
Browse files Browse the repository at this point in the history
1. 使用新版本对dx.jar
2. 在gradle-plugin 中去除RobustApkHashAction,避免兼容性问题
  • Loading branch information
wutongke committed Oct 30, 2020
1 parent 955adcc commit 06b7564
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
Binary file modified auto-patch-plugin/src/main/resources/libs/dx.jar
Binary file not shown.
8 changes: 8 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ buildscript {
repositories {
mavenLocal()
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.0'
Expand All @@ -28,6 +32,10 @@ allprojects {
url "http://depot.sankuai.com/nexus/content/groups/public/"
}
jcenter()
maven {
url 'https://maven.google.com/'
name 'Google'
}
}
tasks.withType(JavaCompile) { options.encoding = "UTF-8" }
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,15 @@ class RobustTransform extends Transform implements Plugin<Project> {
}
if (!isDebugTask) {
project.android.registerTransform(this)
project.afterEvaluate(new RobustApkHashAction())
// project.afterEvaluate(new RobustApkHashAction())
logger.quiet "Register robust transform successful !!!"
}
if (null != robust.switch.turnOnRobust && !"true".equals(String.valueOf(robust.switch.turnOnRobust))) {
return;
}
} else {
project.android.registerTransform(this)
project.afterEvaluate(new RobustApkHashAction())
// project.afterEvaluate(new RobustApkHashAction())
}
}

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@
# This option should only be used with decoupled projects. More details, visit
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
# org.gradle.parallel=true
VERSION_NAME=0.4.99
VERSION_NAME=0.4.100
GROUP=com.meituan.robust

0 comments on commit 06b7564

Please sign in to comment.