0
沒有人知道如何獨立簽署多個風格和尺寸的應用程序? 我試圖檢索提供簽名配置的任務的名稱,但它不起作用。Gradle與風味和尺寸簽署
這裏是我的gradle這個文件:
signingConfigs {
vanillaPaid {
...
}
vanillaFree {
...
}
chocolatePaid {
...
}
chocolateFree {
...
}
}
flavorDimensions "taste", "type"
productFlavors {
vanilla {
dimension "taste"
applicationIdSuffix ".vanilla"
}
chocolate {
dimension "taste"
applicationIdSuffix ".chocolate"
}
free {
dimension "type"
...
}
paid {
dimension "type"
...
}
}
buildTypes {
release {
def taskNames = project.gradle.startParameter.taskNames
if (taskNames.size() > 0) {
if (taskNames.get(0).contains('VanillaPaid')) {
signingConfig signingConfigs.vanillaPaid
} else if (taskNames.get(0).contains('VanillaFree')) {
signingConfig signingConfigs.vanillaFree
} else if(...) {
...
}
}
...
}
debug {
...
}
}
什麼是'維'這裏 –
這裏的維度是什麼?太? – Sodino