Add versioning plugin.
This will allow to easy automate auto publishing of the app. Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
This commit is contained in:
parent
0a67f175fc
commit
c84482729d
|
@ -13,6 +13,7 @@ buildscript {
|
|||
classpath gradlePlugins.ktlintGradle
|
||||
classpath gradlePlugins.detekt
|
||||
classpath gradlePlugins.jacocoAndroid
|
||||
classpath gradlePlugins.buildVersioning
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ ext.versions = [
|
|||
detekt : "1.0.0.RC6",
|
||||
jacoco : "0.7.9",
|
||||
jacocoAndroid : "0.1.2",
|
||||
buildVersioning : "1.6.0",
|
||||
|
||||
androidSupport : "23.4.0",
|
||||
|
||||
|
@ -31,7 +32,8 @@ ext.gradlePlugins = [
|
|||
kotlin : "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin",
|
||||
ktlintGradle : "gradle.plugin.org.jlleitschuh.gradle:ktlint-gradle:$versions.ktlintGradle",
|
||||
detekt : "gradle.plugin.io.gitlab.arturbosch.detekt:detekt-gradle-plugin:$versions.detekt",
|
||||
jacocoAndroid : "com.dicedmelon.gradle:jacoco-android:$versions.jacocoAndroid"
|
||||
jacocoAndroid : "com.dicedmelon.gradle:jacoco-android:$versions.jacocoAndroid",
|
||||
buildVersioning : "org.moallemi.gradle.advanced-build-version:gradle-plugin:$versions.buildVersioning",
|
||||
]
|
||||
|
||||
ext.androidSupport = [
|
||||
|
|
|
@ -1,13 +1,31 @@
|
|||
apply plugin: 'com.android.application'
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'jacoco-android'
|
||||
apply plugin: 'org.moallemi.advanced-build-version'
|
||||
apply from: "../gradle_scripts/code_quality.gradle"
|
||||
|
||||
advancedVersioning {
|
||||
nameOptions {
|
||||
versionMajor 2
|
||||
versionMinor 0
|
||||
versionPatch 0
|
||||
}
|
||||
codeOptions {
|
||||
versionCodeType org.moallemi.gradle.internal.VersionCodeType.AUTO_INCREMENT_ONE_STEP
|
||||
}
|
||||
outputOptions {
|
||||
renameOutput true
|
||||
}
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdkVersion versions.compileSdk
|
||||
|
||||
defaultConfig {
|
||||
applicationId "org.moire.ultrasonic"
|
||||
versionCode advancedVersioning.versionCode
|
||||
versionName advancedVersioning.versionName
|
||||
|
||||
minSdkVersion versions.minSdk
|
||||
targetSdkVersion versions.targetSdk
|
||||
|
||||
|
|
|
@ -1,9 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:a="http://schemas.android.com/apk/res/android"
|
||||
package="org.moire.ultrasonic"
|
||||
a:installLocation="auto"
|
||||
a:versionCode="59"
|
||||
a:versionName="2.0.0">
|
||||
a:installLocation="auto">
|
||||
|
||||
<uses-permission a:name="android.permission.INTERNET"/>
|
||||
<uses-permission a:name="android.permission.ACCESS_NETWORK_STATE"/>
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#Tue Dec 26 22:52:35 CET 2017
|
||||
AI_VERSION_CODE=59
|
Loading…
Reference in New Issue