Merge pull request #169 from brarcher/android-studio-3

Update gradle, et al, for Android Studio 3
This commit is contained in:
Branden Archer
2017-12-25 21:53:02 -05:00
committed by GitHub
4 changed files with 16 additions and 6 deletions

View File

@@ -4,7 +4,7 @@ sudo: true
install:
- echo y | android update sdk -u -a -t tools
- echo y | android update sdk -u -a -t platform-tools
- echo y | android update sdk -u -a -t build-tools-25.0.2
- echo y | android update sdk -u -a -t build-tools-26.0.2
- echo y | android update sdk -u -a -t android-25
- echo y | android update sdk -u -a -t extra-google-m2repository
- echo y | android update sdk -u -a -t extra-android-m2repository

View File

@@ -8,7 +8,6 @@ findbugs {
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "protect.card_locker"
@@ -30,6 +29,14 @@ android {
disable "MissingTranslation"
}
// Starting with Android Studio 3 Robolectric is unable to find resources.
// The following allows it to find the resources.
testOptions {
unitTests {
includeAndroidResources = true
}
}
// This is for Robolectric support for SDK 23
useLibrary 'org.apache.http.legacy'
}
@@ -47,7 +54,7 @@ dependencies {
testCompile "org.robolectric:robolectric:3.3.2"
}
task findbugs(type: FindBugs, dependsOn: assembleDebug) {
task findbugs(type: FindBugs, dependsOn: 'assembleDebug') {
description 'Run findbugs'
group 'verification'

View File

@@ -3,9 +3,12 @@
buildscript {
repositories {
jcenter()
// For the Android Gradle plugin
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.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

View File

@@ -1,6 +1,6 @@
#Sun Dec 04 15:17:03 EST 2016
#Mon Dec 25 19:10:53 EST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-all.zip