aboutsummaryrefslogtreecommitdiff
path: root/sample/build.gradle
diff options
context:
space:
mode:
authorAllan Wang <me@allanwang.ca>2017-07-09 00:24:40 -0700
committerAllan Wang <me@allanwang.ca>2017-07-09 00:24:40 -0700
commit40d6788abfa46ac99f46b32fd4aeb78e67c3b6f6 (patch)
tree523f72bd0c53817815fd0ab1aa7c3124a3264745 /sample/build.gradle
parentbcc7dd36752829b650b583fd6ee6168de3e6f95a (diff)
downloadkau-40d6788abfa46ac99f46b32fd4aeb78e67c3b6f6.tar.gz
kau-40d6788abfa46ac99f46b32fd4aeb78e67c3b6f6.tar.bz2
kau-40d6788abfa46ac99f46b32fd4aeb78e67c3b6f6.zip
Clean up gradle and test build
Diffstat (limited to 'sample/build.gradle')
-rw-r--r--sample/build.gradle22
1 files changed, 15 insertions, 7 deletions
diff --git a/sample/build.gradle b/sample/build.gradle
index 11b7a60..be204d0 100644
--- a/sample/build.gradle
+++ b/sample/build.gradle
@@ -1,10 +1,16 @@
plugins {
id 'com.gladed.androidgitversion' version '0.3.4'
}
-
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
+repositories {
+ jcenter()
+ mavenCentral()
+ maven { url "https://jitpack.io" }
+ maven { url "https://maven.google.com" }
+}
+
android {
compileSdkVersion Integer.parseInt(project.TARGET_SDK)
buildToolsVersion project.BUILD_TOOLS
@@ -15,20 +21,25 @@ android {
}
defaultConfig {
- applicationId "${project.APP_GROUP}." + project.APP_ID.toLowerCase() + ".sample"
minSdkVersion Integer.parseInt(project.MIN_SDK)
targetSdkVersion Integer.parseInt(project.TARGET_SDK)
versionCode androidGitVersion.code()
versionName androidGitVersion.name()
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
+
buildTypes {
release {
- minifyEnabled false
+ minifyEnabled true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
+ lintOptions {
+ abortOnError false
+ checkReleaseBuilds false
+ }
+
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
test.java.srcDirs += 'src/test/kotlin'
@@ -50,8 +61,5 @@ dependencies {
})
testCompile 'junit:junit:4.12'
compile "com.mikepenz:google-material-typeface:${IICON_GOOGLE}.original@aar"
- compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
-}
-repositories {
- mavenCentral()
+ compile "org.jetbrains.kotlin:kotlin-stdlib:${KOTLIN}"
}