productFlavors {
def path="./channel.txt"
file(path).eachLine { line->
def words = line.split(':')
def key = words[0]
def channel = words[1]
if (key == '') {
key = channel
}
def name = 's'+channel
"$name" {
manifestPlaceholders=[APP_KEY_PLACEHOLDER:key, APP_PID_PLACEHOLDER:name]
}
}
}
批量读取productFlavors
最新推荐文章于 2022-09-22 18:12:30 发布