diff --git a/app/build.gradle b/app/build.gradle index 2a29af128..3bab9bad3 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -2,13 +2,13 @@ apply plugin: 'com.android.application' apply plugin: 'io.fabric' android { - compileSdkVersion 25 - buildToolsVersion '25.0.2' + compileSdkVersion rootProject.compileSdkVersion + buildToolsVersion rootProject.buildToolsVersion defaultConfig { applicationId "naman14.timber" - minSdkVersion 16 - targetSdkVersion 25 + minSdkVersion rootProject.minSdkVersion + targetSdkVersion rootProject.targetSdkVersion versionCode 19 versionName "0.5b" //renderscript support mode is not supported for 21+ with gradle version 2.0 @@ -50,12 +50,12 @@ repositories { dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) - compile 'com.android.support:appcompat-v7:25.1.0' - compile 'com.android.support:recyclerview-v7:25.1.0' - compile 'com.android.support:cardview-v7:25.1.0' - compile 'com.android.support:palette-v7:25.1.0' - compile 'com.android.support:design:25.1.0' - compile 'com.android.support:percent:25.1.0' + compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion" + compile "com.android.support:design:$rootProject.supportLibraryVersion" + compile "com.android.support:cardview-v7:$rootProject.supportLibraryVersion" + compile "com.android.support:recyclerview-v7:$rootProject.supportLibraryVersion" + compile "com.android.support:palette-v7:$rootProject.supportLibraryVersion" + compile "com.android.support:percent:$rootProject.supportLibraryVersion" compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4' compile 'net.steamcrafted:materialiconlib:1.0.3' diff --git a/build.gradle b/build.gradle index 18beaf194..21fc49047 100644 --- a/build.gradle +++ b/build.gradle @@ -3,10 +3,11 @@ buildscript { repositories { jcenter() + google() maven { url 'https://maven.fabric.io/public' } } dependencies { - classpath 'com.android.tools.build:gradle:2.2.0' + classpath 'com.android.tools.build:gradle:3.0.0-beta7' classpath 'io.fabric.tools:gradle:1.+' // NOTE: Do not place your application dependencies here; they belong @@ -17,6 +18,21 @@ buildscript { allprojects { repositories { jcenter() + google() maven { url "https://jitpack.io" } } } + +ext { + // Sdk and tools + minSdkVersion = 21 + targetSdkVersion = 26 + compileSdkVersion = 26 + buildToolsVersion = '26.0.2' + + // App dependencies + supportLibraryVersion = '26.1.0' + retrofitVersion = '2.3.0' + okHttp3Version = '3.9.0' +} + diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 04a221d82..bf1b63c34 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip