diff options
Diffstat (limited to 'sample/build.gradle')
-rw-r--r-- | sample/build.gradle | 22 |
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}" } |