aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Lin (Tzu Hsiang Lin) <ericth@google.com>2021-02-15 22:46:24 +0800
committerGitHub <noreply@github.com>2021-02-15 22:46:24 +0800
commita5482446d3c9ad943242d3b0040a77ed06deb71e (patch)
tree19b941f24194d1f02c4ebbef980137cba1b6573e
parent9190cc3a9d64c1067f332a4dc6daa499a8162904 (diff)
downloadmobly-bundled-snippets-a5482446d3c9ad943242d3b0040a77ed06deb71e.tar.gz
Refresh mbs project with latest gradle, build tools and dependencies. (#139)
-rw-r--r--.gitignore12
-rw-r--r--build.gradle39
-rw-r--r--gradle/wrapper/gradle-wrapper.properties4
3 files changed, 28 insertions, 27 deletions
diff --git a/.gitignore b/.gitignore
index 18c6879..faf530b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,10 @@
-.DS_Store
*.iml
-.gradle/
-.idea/
-build/
+.gradle
+/local.properties
+/.idea/
+.DS_Store
+/build
+/captures
+.externalNativeBuild
+.cxx
local.properties
diff --git a/build.gradle b/build.gradle
index b0bcbfd..82e103d 100644
--- a/build.gradle
+++ b/build.gradle
@@ -1,29 +1,24 @@
-// For android studio 2.3 and plugin 2.3.3
-
buildscript {
repositories {
jcenter()
google()
}
dependencies {
- classpath 'com.android.tools.build:gradle:3.4.1'
+ classpath 'com.android.tools.build:gradle:4.1.2'
// NOTE: Do not place your application dependencies here.
}
}
plugins {
- id "com.github.sherter.google-java-format" version "0.8"
-}
-
-repositories {
- jcenter()
- google()
+ id "com.github.sherter.google-java-format" version "0.9"
}
-apply plugin: 'com.android.application'
-
allprojects {
+ repositories {
+ google()
+ jcenter()
+ }
gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:all"
@@ -31,8 +26,11 @@ allprojects {
}
}
+apply plugin: 'com.android.application'
+
android {
compileSdkVersion 29
+ buildToolsVersion "30.0.2"
defaultConfig {
applicationId "com.google.android.mobly.snippet.bundled"
@@ -54,7 +52,6 @@ android {
warningsAsErrors true
disable 'HardwareIds','MissingApplicationIcon','GoogleAppIndexingWarning','InvalidPackage','OldTargetApi'
}
- buildToolsVersion '28.0.3'
}
// Produces a jar of source files. Needed for compliance reasons.
@@ -74,16 +71,16 @@ artifacts {
}
dependencies {
- implementation 'androidx.test:runner:1.2.0'
+ implementation 'androidx.test:runner:1.3.0'
implementation 'com.google.android.mobly:mobly-snippet-lib:1.2.0'
- implementation 'com.google.code.gson:gson:2.8.5'
- implementation 'com.google.guava:guava:27.0.1-android'
- implementation 'com.google.errorprone:error_prone_annotations:2.3.2'
-
- testImplementation 'com.google.errorprone:error_prone_annotations:2.3.2'
- testImplementation 'com.google.guava:guava:27.0.1-android'
- testImplementation 'com.google.truth:truth:0.42'
- testImplementation 'junit:junit:4.12'
+ implementation 'com.google.code.gson:gson:2.8.6'
+ implementation 'com.google.guava:guava:30.1-jre'
+ implementation 'com.google.errorprone:error_prone_annotations:2.5.1'
+
+ testImplementation 'com.google.errorprone:error_prone_annotations:2.5.1'
+ testImplementation 'com.google.guava:guava:30.1-jre'
+ testImplementation 'com.google.truth:truth:1.1.2'
+ testImplementation 'junit:junit:4.13.2'
}
googleJavaFormat {
diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index b7be566..1ba6cc2 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Tue Jun 11 17:51:34 PDT 2019
+#Sun Feb 14 02:01:02 CST 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip