Skip to content

Commit

Permalink
Move some constants from sample's build.gradle to the root one
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelRocks committed Jun 12, 2018
1 parent 49b8dcc commit 01ee3d6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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"
}
Expand Down
14 changes: 6 additions & 8 deletions sample/build.gradle
Original file line number Diff line number Diff line change
@@ -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"
}
Expand Down

0 comments on commit 01ee3d6

Please sign in to comment.