aboutsummaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2018-01-24 23:44:49 -0500
committerAllan Wang <me@allanwang.ca>2018-01-24 23:44:49 -0500
commit3a92363e65a29b6106cdfa98d6bcf297b0eda5ad (patch)
tree9c61fbce5d486374aad1e7767ebc2ee6f67348cc /sample
parent9c00231884c69456c2deb2918cd0ecd50f3ac0a0 (diff)
downloadkau-3a92363e65a29b6106cdfa98d6bcf297b0eda5ad.tar.gz
kau-3a92363e65a29b6106cdfa98d6bcf297b0eda5ad.tar.bz2
kau-3a92363e65a29b6106cdfa98d6bcf297b0eda5ad.zip
Create buildSrc
Diffstat (limited to 'sample')
-rw-r--r--sample/build.gradle23
-rw-r--r--sample/src/main/res/xml/kau_changelog.xml2
2 files changed, 10 insertions, 15 deletions
diff --git a/sample/build.gradle b/sample/build.gradle
index bfe5182..5bbdbb0 100644
--- a/sample/build.gradle
+++ b/sample/build.gradle
@@ -1,6 +1,3 @@
-plugins {
- id 'com.gladed.androidgitversion' version '0.4.3'
-}
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'com.github.triplet.play'
@@ -14,8 +11,8 @@ play {
}
android {
- compileSdkVersion Integer.parseInt(project.TARGET_SDK)
- buildToolsVersion project.BUILD_TOOLS
+ compileSdkVersion kau.targetSdk
+ buildToolsVersion kau.buildTools
androidGitVersion {
codeFormat = 'MMNNPPXX'
@@ -24,8 +21,8 @@ android {
defaultConfig {
applicationId "ca.allanwang.kau.sample"
- minSdkVersion Integer.parseInt(project.MIN_SDK)
- targetSdkVersion Integer.parseInt(project.TARGET_SDK)
+ minSdkVersion kau.minSdk
+ targetSdkVersion kau.targetSdk
versionName androidGitVersion.name()
versionCode androidGitVersion.code()
multiDexEnabled true
@@ -97,16 +94,14 @@ dependencies {
implementation project(':kpref-activity')
implementation project(':searchview')
implementation project(':mediapicker')
- implementation "com.mikepenz:google-material-typeface:${IICON_GOOGLE}.original@aar"
- implementation "org.jetbrains.kotlin:kotlin-stdlib:${KOTLIN}"
- androidTestImplementation("com.android.support.test.espresso:espresso-core:${ESPRESSO}") {
+ androidTestImplementation("com.android.support.test.espresso:espresso-core:${kau.espresso}") {
exclude group: 'com.android.support', module: 'support-annotations'
}
- androidTestImplementation("com.android.support.test:runner:${TEST_RUNNER}") {
+ androidTestImplementation("com.android.support.test:runner:${kau.testRunner}") {
exclude group: 'com.android.support', module: 'support-annotations'
}
- androidTestImplementation "org.jetbrains.kotlin:kotlin-test-junit:${KOTLIN}"
- testImplementation "org.jetbrains.kotlin:kotlin-test-junit:${KOTLIN}"
- testImplementation "junit:junit:${JUNIT}"
+ androidTestImplementation kauDependency.kotlinTest
+ testImplementation kauDependency.kotlinTest
+ testImplementation kauDependency.junit
}
diff --git a/sample/src/main/res/xml/kau_changelog.xml b/sample/src/main/res/xml/kau_changelog.xml
index 3eec313..cd6c41a 100644
--- a/sample/src/main/res/xml/kau_changelog.xml
+++ b/sample/src/main/res/xml/kau_changelog.xml
@@ -12,7 +12,7 @@
<item text="" />
<item text="Add Chinese, Indonesian, Norwegian, Polish, Thai, and Turkish translations" />
<item text="Add back git versioning" />
- <item text="" />
+ <item text="Created gradle plugin for getting version updates" />
<item text="" />
<version title="v3.6.2" />