Skip to content

Commit

Permalink
Update the Android plugin for Gradle. (#677)
Browse files Browse the repository at this point in the history
Add Android SDK components in .travis.yml
  • Loading branch information
abdulwd authored and mhutti1 committed Apr 1, 2018
1 parent ebac71a commit 1e03a4a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Expand Up @@ -18,6 +18,14 @@ cache:
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache

android:
components:
- tools
- platform-tools
- tools
- build-tools-27.0.3
- android-27

licenses:
- '.+'

Expand Down
4 changes: 3 additions & 1 deletion app/build.gradle
Expand Up @@ -8,7 +8,7 @@ buildscript {
}

dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.testdroid:gradle:1.5.0'
classpath 'org.apache.httpcomponents:httpclient-android:4.3.3'
}
Expand Down Expand Up @@ -79,6 +79,8 @@ dependencies {
implementation 'com.google.dagger:dagger:2.0.2'
annotationProcessor "com.google.dagger:dagger-compiler:2.0.2"
androidTestAnnotationProcessor "com.google.dagger:dagger-compiler:2.0.2"
compileOnly "javax.annotation:javax.annotation-api:$javaxAnnotationVersion"
androidTestCompileOnly "javax.annotation:javax.annotation-api:$javaxAnnotationVersion"

// SquiDB
implementation 'com.yahoo.squidb:squidb:2.0.0'
Expand Down
3 changes: 2 additions & 1 deletion build.gradle
Expand Up @@ -6,7 +6,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
classpath 'com.android.tools.build:gradle:3.1.0'
classpath 'com.squareup.spoon:spoon-runner:1.7.1'
classpath 'com.stanfy.spoon:spoon-gradle-plugin:1.2.2'

Expand All @@ -21,6 +21,7 @@ ext {
rxAndroidVersion = '2.0.2'
okHttpVersion = '3.9.1'
retrofitVersion = '2.3.0'
javaxAnnotationVersion = '1.3.2'
}

allprojects {
Expand Down
3 changes: 2 additions & 1 deletion gradle.properties
@@ -1 +1,2 @@
android.enableD8=true
android.enableD8=true
android.enableD8.desugaring=true
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
#Sat Nov 25 16:36:07 GMT 2017
#Tue Mar 27 23:53:46 IST 2018
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip

0 comments on commit 1e03a4a

Please sign in to comment.