From 9406efe5a1496388e873c4b01d7e5677edd28975 Mon Sep 17 00:00:00 2001 From: Omar El Hefny Date: Wed, 14 Feb 2018 13:09:18 +0200 Subject: [PATCH 1/2] fix: 1-update gradle version 2-update android support libraries to 27.02 3-update compileSdkVersion to 27 4-using implementation keyword instead of compile keyword --- app/build.gradle | 14 +++++++------- build.gradle | 2 +- gradle/wrapper/gradle-wrapper.properties | 4 ++-- lib/build.gradle | 12 ++++++------ 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 82946b17..d28aae14 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -1,13 +1,13 @@ apply plugin: 'com.android.application' android { - compileSdkVersion 26 + compileSdkVersion 27 buildToolsVersion '26.0.2' defaultConfig { applicationId "com.github.orangegangsters.lollipin" minSdkVersion 14 - targetSdkVersion 24 + targetSdkVersion 27 versionCode 1 versionName "1.0" } @@ -20,16 +20,16 @@ android { } dependencies { - compile fileTree(dir: 'libs', include: ['*.jar']) + implementation fileTree(dir: 'libs', include: ['*.jar']) - compile project(':lib') - compile 'com.android.support:appcompat-v7:26.0.2' + implementation project(':lib') + implementation 'com.android.support:appcompat-v7:27.0.2' //Lollipop dialogs https://github.com/lewisjdeane/L-Dialogs and buttons, animations etc... - compile 'uk.me.lewisdeane.ldialogs:ldialogs:1.2.0@aar' + implementation 'uk.me.lewisdeane.ldialogs:ldialogs:1.2.0@aar' //test - androidTestCompile 'com.jayway.android.robotium:robotium-solo:5.5.2' + androidTestImplementation 'com.jayway.android.robotium:robotium-solo:5.5.2' } // REQUIRED: Google's new Maven repo is required for the latest diff --git a/build.gradle b/build.gradle index dbe7511e..8ac31ed6 100644 --- a/build.gradle +++ b/build.gradle @@ -5,7 +5,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 451394e5..b51c7938 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Mon Apr 17 11:56:01 PDT 2017 +#Wed Feb 14 12:54:53 EET 2018 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip diff --git a/lib/build.gradle b/lib/build.gradle index 55f30cb8..5f251793 100644 --- a/lib/build.gradle +++ b/lib/build.gradle @@ -1,12 +1,12 @@ apply plugin: 'com.android.library' android { - compileSdkVersion 26 - buildToolsVersion '26.0.1' + compileSdkVersion 27 + buildToolsVersion '26.0.2' defaultConfig { minSdkVersion 14 - targetSdkVersion 26 + targetSdkVersion 27 versionCode 2 versionName VERSION_NAME } @@ -26,9 +26,9 @@ dependencies { compile 'com.github.omadahealth.typefaceview:typefaceview:1.5.0@aar' //TypefaceTextView //Compat - compile 'com.android.support:support-v4:26.0.2' - compile 'com.android.support:appcompat-v7:26.0.2' - compile "com.android.support:support-v13:26.0.2" + compile 'com.android.support:support-v4:27.0.2' + compile 'com.android.support:appcompat-v7:27.0.2' + compile "com.android.support:support-v13:27.0.2" } repositories { maven { From 6097488c9bc15406ad8d2bb19bff01dc721e010e Mon Sep 17 00:00:00 2001 From: Omar El Hefny Date: Wed, 14 Feb 2018 13:12:31 +0200 Subject: [PATCH 2/2] fix: 1-update gradle version 2-update android support libraries to 27.02 3-update compileSdkVersion to 27 4-using implementation keyword instead of compile keyword resolves issue #168 --- app/build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/app/build.gradle b/app/build.gradle index d28aae14..a3982ed6 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -20,6 +20,7 @@ android { } dependencies { + //update compile to implementation implementation fileTree(dir: 'libs', include: ['*.jar']) implementation project(':lib')