去掉android-junk-code
This commit is contained in:
@@ -6,8 +6,6 @@ apply plugin: 'com.android.application'
|
|||||||
apply plugin: 'kotlin-android'
|
apply plugin: 'kotlin-android'
|
||||||
apply plugin: 'kotlin-android-extensions'
|
apply plugin: 'kotlin-android-extensions'
|
||||||
apply plugin: 'com.huawei.agconnect'
|
apply plugin: 'com.huawei.agconnect'
|
||||||
apply plugin: 'android-junk-code'
|
|
||||||
|
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 29
|
compileSdkVersion 29
|
||||||
@@ -186,12 +184,6 @@ android {
|
|||||||
dimension 'default'
|
dimension 'default'
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: channel]
|
manifestPlaceholders = [CHANNEL_VALUE: channel]
|
||||||
}
|
}
|
||||||
|
|
||||||
oppo {
|
|
||||||
dimension 'default'
|
|
||||||
manifestPlaceholders = [CHANNEL_VALUE: channel]
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
buildToolsVersion = '28.0.3'
|
buildToolsVersion = '28.0.3'
|
||||||
|
|
||||||
@@ -315,23 +307,3 @@ repositories {
|
|||||||
url "$storageUrl/download.flutter.io"
|
url "$storageUrl/download.flutter.io"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
android.applicationVariants.all { variant ->
|
|
||||||
print("variant.name=" + variant.name)
|
|
||||||
switch (variant.name) {//变体名称,如果没有设置productFlavors就是buildType名称,如果有设置productFlavors就是flavor+buildType,例如(freeRelease、proRelease)
|
|
||||||
case "oppoRelease":
|
|
||||||
androidJunkCode.configMap.put(variant.name, {
|
|
||||||
packageBase = "com.mango.plugin.ui" //生成java类根包名
|
|
||||||
packageCount = 30 //生成包数量
|
|
||||||
activityCountPerPackage = 30 //每个包下生成Activity类数量
|
|
||||||
excludeActivityJavaFile = false
|
|
||||||
//是否排除生成Activity的Java文件,默认false(layout和写入AndroidManifest.xml还会执行),主要用于处理类似神策全埋点编译过慢问题
|
|
||||||
otherCountPerPackage = 50 //每个包下生成其它类的数量
|
|
||||||
methodCountPerClass = 20 //每个类下生成方法数量
|
|
||||||
resPrefix = "mango_" //生成的layout、drawable、string等资源名前缀
|
|
||||||
drawableCount = 300 //生成drawable资源数量
|
|
||||||
stringCount = 300 //生成string数量
|
|
||||||
})
|
|
||||||
break
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
@@ -26,8 +26,6 @@ buildscript {
|
|||||||
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.16'
|
classpath 'com.tencent.mm:AndResGuard-gradle-plugin:1.2.16'
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||||
classpath 'com.huawei.agconnect:agcp:1.3.1.300'
|
classpath 'com.huawei.agconnect:agcp:1.3.1.300'
|
||||||
classpath "com.github.qq549631030:android-junk-code:1.0.7"
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -17,8 +17,8 @@ android.injected.testOnly=false
|
|||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
|
|
||||||
version_name=3.3.0
|
version_name=3.6.3
|
||||||
version_code=330
|
version_code=363
|
||||||
|
|
||||||
with_flutter_aar=true
|
with_flutter_aar=true
|
||||||
with_jenkins=false
|
with_jenkins=false
|
||||||
|
Reference in New Issue
Block a user