From 01ee3d6c5acef14faaf88d487802d6958a01198a Mon Sep 17 00:00:00 2001 From: Michael Rozumyanskiy Date: Mon, 11 Jun 2018 17:37:05 +0300 Subject: [PATCH] Move some constants from sample's build.gradle to the root one --- build.gradle | 6 ++++++ sample/build.gradle | 14 ++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/build.gradle b/build.gradle index d8fc3a3..b0c7ad1 100644 --- a/build.gradle +++ b/build.gradle @@ -17,6 +17,11 @@ allprojects { ext.runnerVersion = '1.0.2' ext.espressoVersion = '3.0.2' + ext.androidBuildToolsVersion = '27.0.3' + ext.androidCompileSdkVersion = 27 + ext.androidMinSdkVersion = 16 + ext.androidTargetSdkVersion = ext.androidCompileSdkVersion + buildscript { repositories { mavenLocal() @@ -25,6 +30,7 @@ allprojects { } dependencies { + classpath "com.android.tools.build:gradle:$androidToolsVersion" classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" classpath "io.michaelrocks.pablo:pablo:$pabloVersion" } diff --git a/sample/build.gradle b/sample/build.gradle index b30839c..54f53f5 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -1,25 +1,23 @@ buildscript { dependencies { - classpath "com.android.tools.build:gradle:$androidToolsVersion" - classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" classpath "io.michaelrocks:paranoid-gradle-plugin:$version" } } apply plugin: 'com.android.application' -apply plugin: "kotlin-android" +apply plugin: 'kotlin-android' apply plugin: 'io.michaelrocks.paranoid' android { - compileSdkVersion 27 - buildToolsVersion "27.0.3" + compileSdkVersion androidCompileSdkVersion + buildToolsVersion androidBuildToolsVersion defaultConfig { applicationId "io.michaelrocks.paranoid.sample" - minSdkVersion 16 - targetSdkVersion 27 + minSdkVersion androidMinSdkVersion + targetSdkVersion androidTargetSdkVersion versionCode 1 - versionName "1.0" + versionName version testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" }