walle打包
分别在对应的文件中添加
classpath 'com.meituan.android.walle:plugin:1.1.6'
implementation 'com.meituan.android.walle:library:1.1.6'
apply plugin: 'walle'
打包命令
生成所有渠道包 gradlew clean assembleReleaseChannels
生成单个渠道包: gradlew clean assembleReleaseChannels -PchannelList= Qh360
生成多个渠道包: gradlew clean assembleReleaseChannels -PchannelList= Qh360, Wdj
方法过时
API ‘variantOutput.getProcessManifest()’ is obsolete and has been replaced with ‘variantOutput.getProcessManifestProvider()’. It will be removed at the end of 2019.
解决方法
android.applicationVariants.all { variant ->
variant.outputs.each { output ->
output.processManifestProvider.get().doLast {
def manifestPath = "${manifestOutputDirectory.get()}/AndroidManifest.xml"
}
}
}