在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):oliviergauthier/gradle-appcenter-plugin开源软件地址(OpenSource Url):https://github.com/oliviergauthier/gradle-appcenter-plugin开源编程语言(OpenSource Language):Kotlin 100.0%开源软件介绍(OpenSource Introduction):AppCenter Gradle PluginSummaryThis plugin allow you to upload android application to AppCenter. You can declare several applications, the plugin will take care of build variant to upload the apk on the right AppCenter application Find last version on Gradle Repository Quick StartFile : buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "gradle.plugin.com.betomorrow.gradle:appcenter-plugin:2.0.4"
}
}
File : apply plugin: "com.betomorrow.appcenter"
android {
// ...
flavorDimensions "environment"
productFlavors {
alpha {
dimension "environment"
applicationIdSuffix ".alpha"
versionNameSuffix "-alpha"
}
beta {
dimension "environment"
applicationIdSuffix ".beta"
versionNameSuffix "-beta"
}
prod {
dimension "environment"
}
}
buildTypes {
release {
signingConfig android.signingConfigs.release
}
}
}
appcenter {
apiToken = "XXXXXXXX" // Api Token from AppCenter user profile
ownerName = "ACME" // Owner Name from AppCenter Application (see following note)
distributionGroups = ["Beta"] // Name of the AppCenter Distribution Group
releaseNotes = file("../changelog.md") // Can be a file or text
notifyTesters = true // Send mail to testers
apps { // Here we manage 3 AppCenter applications : alpha, beta and prod
alpha { // When dimension is provided, this name match the productFlavor name
dimension = "environment" // This dimension match the flavor dimension
appName = "GradleSample-Alpha" // The AppCenter application name
}
beta {
dimension = "environment"
appName = "GradleSample-Beta"
}
prodRelease { // When no dimension is provided, this name match the full variant name
appName = "GradleSample" // Application Name from AppCenter (see following note)
}
}
}
Note : The plugin will generate severals tasks for each variant :
To upload an apk, just run tasks assemble and appCenterUpload
Override propertiesEach appcenter {
apiToken = "XXXXXXXX"
ownerName = "ACME"
distributionGroups = ["Beta"]
releaseNotes = file("../changelog.md")
notifyTesters = false
symbols = ["symbols.zip"]
apps {
alpha {
dimension = "environment"
apiToken = "YYYYYYYY"
ownerName = "AnotherOwner"
distributionGroups = ["Alpha"]
releaseNotes = "No Changes"
appName = "GradleSample-Alpha"
notifyTesters = true
uploadMappingFiles = true
symbols = ["symbols.zip"]
}
prodRelease {
appName = "GradleSample"
}
}
} Gradle Android Plugin Compatibility Matrix
Use Environment Variables (for CI use)
TimeoutsBy default, plugin set timeouts to 60 seconds. You can override them with the following properties :
You can define those properties in your local Common mistakesYou have integrated the plugin and you didn't found generated tasks ?
|
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论