diff --git a/app/build.gradle b/app/build.gradle index 630757a..1894977 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -29,14 +29,15 @@ storePassword keystoreProperties['storePassword'] } } - compileSdkVersion 25 - buildToolsVersion "25.0.2" + compileSdkVersion rootProject.ext.compileSdkVersion + buildToolsVersion rootProject.ext.buildToolsVersion defaultConfig { applicationId "nl.digital_me.dummyandroidapp" minSdkVersion 10 - targetSdkVersion 24 + targetSdkVersion rootProject.ext.compileSdkVersion versionCode project.hasProperty('versionCode') ? project.property('versionCode') as int : 25 versionName project.hasProperty('versionName') ? project.property('versionName') : "0.0.1" + multiDexEnabled true } dexOptions { maxProcessCount 1 @@ -73,8 +74,9 @@ } dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) + //compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' - compile 'com.android.support:appcompat-v7:25.1.0' + compile "com.android.support:appcompat-v7:${rootProject.ext.supportLibVersion}" compile 'com.android.support:design:25.3.1' + compile 'com.android.support:multidex:1.0.2' } diff --git a/build.gradle b/build.gradle index 74b2ab0..64a5bac 100644 --- a/build.gradle +++ b/build.gradle @@ -18,6 +18,14 @@ } } +//This block encapsulates custom properties and makes them available to all +//modules in the project. +ext { + compileSdkVersion = 26 + buildToolsVersion = "26.0.2" + supportLibVersion = "26.0.2" +} + task clean(type: Delete) { delete rootProject.buildDir }