Skip to content

Commit

Permalink
修复不兼容java8问题
Browse files Browse the repository at this point in the history
  • Loading branch information
huangx committed Sep 29, 2021
1 parent 1bbe8bc commit 3433105
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildscript {
mavenCentral()
}
dependencies {
classpath "com.github.qq549631030:android-junk-code:1.0.9"
classpath "com.github.qq549631030:android-junk-code:1.1.0"
}
}
```
Expand Down Expand Up @@ -41,7 +41,7 @@ androidJunkCode {
}
```

**原configMap配置方式已过时,1.0.9版以后请使用variantConfig配置方式"**
**原configMap配置方式已过时,1.0.8版以后请使用variantConfig配置方式"**

如果有多个变体共用一个配置可以这样做
```groovy
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
dependencies {
classpath 'com.android.tools.build:gradle:4.2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.github.qq549631030:android-junk-code:1.0.9"
classpath "com.github.qq549631030:android-junk-code:1.1.0"
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0'
classpath "com.getkeepsafe.dexcount:dexcount-gradle-plugin:3.0.1"

Expand Down
2 changes: 1 addition & 1 deletion library/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#project
GROUP=com.github.qq549631030
VERSION_NAME=1.0.9
VERSION_NAME=1.1.0

POM_ARTIFACT_ID=android-junk-code
POM_NAME=AndroidJunkCode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package cn.hx.plugin.junkcode.ext
import org.gradle.api.NamedDomainObjectContainer

class AndroidJunkCodeExt {
@Deprecated(since = "1.0.8")
Map<String, Closure<JunkCodeConfig>> configMap = [:]

NamedDomainObjectContainer<JunkCodeConfig> variantConfig
Expand Down

0 comments on commit 3433105

Please sign in to comment.