File tree Expand file tree Collapse file tree
src/main/groovy/cn/hx/plugin/junkcode/ext Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# Android垃圾代码生成插件
22
3- 此插件用于做马甲包时,减小马甲包与主包的代码相似度,避免被OPPO、VIVO等应用市场识别为马甲包 。
3+ 此插件用于做马甲包时,减小马甲包与主包的代码相似度,避免被某些应用市场识别为马甲包 。
44
55### 使用方法
66
@@ -11,12 +11,10 @@ buildscript {
1111 mavenCentral()
1212 }
1313 dependencies {
14- classpath "com.github.qq549631030:android-junk-code:1.1.0 "
14+ classpath "com.github.qq549631030:android-junk-code:1.1.1 "
1515 }
1616}
1717```
18- ** 由于jcenter即将关闭后续版本将不再发布到jcenter,转为发布到mavenCentral,groupId从原来的"cn.hx.plugin"改为"com.github.qq549631030"**
19-
2018
2119
2220app目录的build.gradle模块中:
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ buildscript {
99 dependencies {
1010 classpath ' com.android.tools.build:gradle:4.2.1'
1111 classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version "
12- classpath " com.github.qq549631030:android-junk-code:1.1.0 "
12+ classpath " com.github.qq549631030:android-junk-code:1.1.1 "
1313 classpath ' com.vanniktech:gradle-maven-publish-plugin:0.18.0'
1414 classpath " com.getkeepsafe.dexcount:dexcount-gradle-plugin:3.0.1"
1515
Original file line number Diff line number Diff line change 11# project
22GROUP =com.github.qq549631030
3- VERSION_NAME =1.1.0
3+ VERSION_NAME =1.1.1
44
55POM_ARTIFACT_ID =android-junk-code
66POM_NAME =AndroidJunkCode
Original file line number Diff line number Diff line change 11package cn.hx.plugin.junkcode.ext
22
3+ import org.gradle.api.Action
34import org.gradle.api.NamedDomainObjectContainer
45
56class AndroidJunkCodeExt {
67 Map<String , Closure<JunkCodeConfig > > configMap = [:]
78
89 NamedDomainObjectContainer<JunkCodeConfig > variantConfig
10+
11+ void variantConfig (Action<? super NamedDomainObjectContainer<JunkCodeConfig > > action ) {
12+ action. execute(variantConfig)
13+ }
914}
You can’t perform that action at this time.
0 commit comments