diff --git a/build.gradle b/build.gradle index 21d8887..fd5e680 100644 --- a/build.gradle +++ b/build.gradle @@ -13,3 +13,12 @@ allprojects { jcenter() } } + +ext { + compileSdkVersion = 23 + targetSdkVersion = 21 + buildToolsVersion = "23.0.1" + minSdkVersion = 14 + versionCode = 13 + versionName = "1.1.3" +} \ No newline at end of file diff --git a/sample/build.gradle b/sample/build.gradle index a21333c..39de607 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -1,15 +1,14 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 21 - buildToolsVersion "21.1.2" + compileSdkVersion rootProject.ext.compileSdkVersion + buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { - applicationId "pl.aprilapps.switcher.sample" - minSdkVersion 14 - targetSdkVersion 21 - versionCode 1 - versionName "1.0" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode rootProject.ext.versionCode + versionName rootProject.ext.versionName renderscriptTargetApi 22 renderscriptSupportModeEnabled true } @@ -23,7 +22,7 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:21.0.3' + compile 'com.android.support:appcompat-v7:23.0.1' compile(project(':switcher-library')) compile 'com.jakewharton:butterknife:6.0.0' compile 'com.netflix.rxjava:rxjava-core:0.20.7' diff --git a/switcher-library/build.gradle b/switcher-library/build.gradle index 3ffbe23..5a3d666 100644 --- a/switcher-library/build.gradle +++ b/switcher-library/build.gradle @@ -2,14 +2,14 @@ apply plugin: 'com.android.library' apply plugin: 'android-maven' android { - compileSdkVersion 22 - buildToolsVersion "22.0.0" + compileSdkVersion rootProject.ext.compileSdkVersion + buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { - minSdkVersion 14 - targetSdkVersion 22 - versionCode 12 - versionName "1.1.2" + minSdkVersion rootProject.ext.minSdkVersion + targetSdkVersion rootProject.ext.targetSdkVersion + versionCode rootProject.ext.versionCode + versionName rootProject.ext.versionName renderscriptTargetApi 22 renderscriptSupportModeEnabled true } @@ -23,6 +23,6 @@ android { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:22.1.1' + compile 'com.android.support:appcompat-v7:23.0.1' } \ No newline at end of file