我正在使用Crashlytics Gradle插件最新版本(09/03/2015)。用于定义测试版的组,发行说明或电子邮件的风味维度的额外属性将被忽略。
flavorDimensions "source", "type"
productFlavors {
network {
flavorDimension "source"
}
simulator {
versionName "-SIMULATOR"
flavorDimension "beaconSource"
buildConfigField "boolean", "IS_SIMULATOR_ENABLED", "true"
}
paid {
flavorDimension "type"
ext.betaDistributionReleaseNotes="My Paid Release Notes"
ext.betaDistributionGroupAliases="my_paid_group_alias"
}
free {
flavorDimension "type"
ext.betaDistributionReleaseNotes="My Free Release Notes"
ext.betaDistributionGroupAliases="my_free_group_alias"
}
}
当我运行以下命令时:
./gradlew assembleNetworkPaidRelease crashlyticsUploadDistributionNetworkPaidRelease
crashlytics插件会忽略额外的属性信息。
如果我将额外的属性移动到BuildType,它可以工作:
release {
ext.betaDistributionReleaseNotes="My Universal Release Notes"
ext.betaDistributionGroupAliases="my_universal_group_alias"
}