From 3a92363e65a29b6106cdfa98d6bcf297b0eda5ad Mon Sep 17 00:00:00 2001 From: Allan Wang Date: Wed, 24 Jan 2018 23:44:49 -0500 Subject: Create buildSrc --- sample/build.gradle | 23 +++++++++-------------- sample/src/main/res/xml/kau_changelog.xml | 2 +- 2 files changed, 10 insertions(+), 15 deletions(-) (limited to 'sample') 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 @@ - + -- cgit v1.2.3