在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):hamsterksu/android-appversion-gradle-plugin开源软件地址(OpenSource Url):https://github.com/hamsterksu/android-appversion-gradle-plugin开源编程语言(OpenSource Language):Groovy 100.0%开源软件介绍(OpenSource Introduction):android-appversion-gradle-plugin
Supported version of gradle-android-plugin
Сontents
Typical usecasesDo you want to use package name, app version name and version code in file name? Just use the following Result - Use brackets in some casesWhy do you need to use brackets
In this case you need to use How to useAdd plugin to dependenciesbuildscript {
repositories {
mavenCentral()
}
dependencies{
classpath 'com.github.hamsterksu:android-appversion-gradle-plugin:1.+'
}
} Apply pluginapply plugin: 'versionPlugin' Configure pluginversionPlugin{
buildTypesMatcher = 'release'
supportBuildNumber = true
buildNumberPrefix = 'b'
fileNameFormat = '$appPkg-v_$versionName-c_$versionCode'
} Available options:##
Example: customNameMapping = [
'debug':'MySuperApp',
'releae':'MySuperApp'
] customNameMapping = [
'flavourDebug':'MySuperApp',
'flavourRelease':'MySuperApp'
] What is versions.properties file?If you turn on Config examplesversionPlugin{
buildTypesMatcher = 'release|debug'
supportBuildNumber = true
buildNumberPrefix = 'b'
fileNameFormat = '$customName-$versionName($versionCode)-$buildType'
customNameMapping = [
'debug':'mysuperapp',
'release':'mysuperapp'
]
} versionPlugin{
buildTypesMatcher = 'release'
supportBuildNumber = true
fileNameFormat = '$appPkg-$versionName($versionCode)'
} versionPlugin{
buildTypesMatcher = 'release'
supportBuildNumber = false
fileNameFormat = '$projectName-$flavorName-$versionName($versionCode)-$date-$time'
dateFormat = 'dd-MM-yyyy'
timeFormat = 'HH:mm'
} |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论