Skip to content

Commit 455ec23

Browse files
authored
Update dependencies + Kotlin 1.4.0 + Fix lint (#431)
1 parent 6f13537 commit 455ec23

File tree

7 files changed

+31
-33
lines changed

7 files changed

+31
-33
lines changed

gradle/dependencies.gradle

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@
1515
*/
1616

1717
def versions = [
18-
androidTest: '1.3.0-alpha02',
18+
androidTest: '1.3.0-alpha03',
1919
animalSniffer: '1.5.0',
20-
androidxLifecycle: '2.1.0',
20+
androidxLifecycle: '2.2.0',
2121
dokka: '0.9.18',
22-
errorProne: '2.3.3',
22+
errorProne: '2.4.0',
2323
errorPronePlugin: '0.7.1',
2424
gjf: '1.7',
2525
nullawayPlugin: '0.1',
26-
kotlin: '1.3.50',
27-
lint: '26.5.2',
26+
kotlin: '1.4.0',
27+
lint: '27.0.1',
2828
ktlint: '0.35.0',
2929
spotless: '3.25.0'
3030
]
3131

3232
def apt = [
33-
autoService: "com.google.auto.service:auto-service:1.0-rc6"
33+
autoService: "com.google.auto.service:auto-service:1.0-rc7"
3434
]
3535

3636
def build = [
@@ -44,11 +44,11 @@ def build = [
4444
errorProneJavac: "com.google.errorprone:javac:9+181-r4173-1",
4545
errorProneCheckApi: "com.google.errorprone:error_prone_check_api:${versions.errorProne}",
4646
errorProneTestHelpers: "com.google.errorprone:error_prone_test_helpers:${versions.errorProne}",
47-
nullAway: 'com.uber.nullaway:nullaway:0.7.5',
47+
nullAway: 'com.uber.nullaway:nullaway:0.8.0',
4848
animalSniffer: 'org.codehaus.mojo.signature:java17:1.0@signature',
4949

5050
gradlePlugins: [
51-
android: 'com.android.tools.build:gradle:3.6.0-rc01',
51+
android: 'com.android.tools.build:gradle:4.0.1',
5252
dokka: "org.jetbrains.dokka:dokka-gradle-plugin:${versions.dokka}",
5353
dokkaAndroid: "org.jetbrains.dokka:dokka-android-gradle-plugin:${versions.dokka}",
5454
kotlin: "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
@@ -62,7 +62,7 @@ def build = [
6262
]
6363

6464
def kotlin = [
65-
coroutines: "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.1",
65+
coroutines: "org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.9",
6666
stdlib: "org.jetbrains.kotlin:kotlin-stdlib:${versions.kotlin}"
6767
]
6868

@@ -77,7 +77,7 @@ def rx = [
7777
]
7878

7979
def androidx = [
80-
annotations: "androidx.annotation:annotation:1.0.2",
80+
annotations: "androidx.annotation:annotation:1.1.0",
8181
lifecycle: [
8282
compiler: "androidx.lifecycle:lifecycle-compiler:${versions.androidxLifecycle}",
8383
common: "androidx.lifecycle:lifecycle-common:${versions.androidxLifecycle}",
@@ -86,12 +86,12 @@ def androidx = [
8686
]
8787

8888
def test = [
89-
androidExtJunit: "androidx.test.ext:junit:1.1.2-alpha02",
89+
androidExtJunit: "androidx.test.ext:junit:1.1.2-rc03",
9090
androidRunner: "androidx.test:runner:${versions.androidTest}",
9191
androidRules: "androidx.test:rules:${versions.androidTest}",
9292
androidOrchestrator: "androidx.test:orchestrator:${versions.androidTest}",
93-
junit: 'junit:junit:4.12',
94-
truth: 'com.google.truth:truth:1.0'
93+
junit: 'junit:junit:4.13',
94+
truth: 'com.google.truth:truth:1.0.1'
9595
]
9696

9797
ext.deps = [

gradle/wrapper/gradle-wrapper.jar

501 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0-all.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6-all.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ esac
8282

8383
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
8484

85+
8586
# Determine the Java command to use to start the JVM.
8687
if [ -n "$JAVA_HOME" ] ; then
8788
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
@@ -129,6 +130,7 @@ fi
129130
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
130131
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
131132
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133+
132134
JAVACMD=`cygpath --unix "$JAVACMD"`
133135

134136
# We build the pattern for arguments to be converted via cygpath

gradlew.bat

Lines changed: 7 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ if "%DIRNAME%" == "" set DIRNAME=.
2929
set APP_BASE_NAME=%~n0
3030
set APP_HOME=%DIRNAME%
3131

32+
@rem Resolve any "." and ".." in APP_HOME to make it shorter.
33+
for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi
34+
3235
@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
3336
set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m"
3437

@@ -37,7 +40,7 @@ if defined JAVA_HOME goto findJavaFromJavaHome
3740

3841
set JAVA_EXE=java.exe
3942
%JAVA_EXE% -version >NUL 2>&1
40-
if "%ERRORLEVEL%" == "0" goto init
43+
if "%ERRORLEVEL%" == "0" goto execute
4144

4245
echo.
4346
echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
@@ -51,7 +54,7 @@ goto fail
5154
set JAVA_HOME=%JAVA_HOME:"=%
5255
set JAVA_EXE=%JAVA_HOME%/bin/java.exe
5356

54-
if exist "%JAVA_EXE%" goto init
57+
if exist "%JAVA_EXE%" goto execute
5558

5659
echo.
5760
echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
@@ -61,28 +64,14 @@ echo location of your Java installation.
6164

6265
goto fail
6366

64-
:init
65-
@rem Get command-line arguments, handling Windows variants
66-
67-
if not "%OS%" == "Windows_NT" goto win9xME_args
68-
69-
:win9xME_args
70-
@rem Slurp the command line arguments.
71-
set CMD_LINE_ARGS=
72-
set _SKIP=2
73-
74-
:win9xME_args_slurp
75-
if "x%~1" == "x" goto execute
76-
77-
set CMD_LINE_ARGS=%*
78-
7967
:execute
8068
@rem Setup the command line
8169

8270
set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
8371

72+
8473
@rem Execute Gradle
85-
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
74+
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %*
8675

8776
:end
8877
@rem End local scope for the variables with windows NT shell

static-analysis/autodispose-lint/build.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,13 @@ plugins {
2323
sourceCompatibility = deps.build.javaVersion
2424
targetCompatibility = deps.build.javaVersion
2525

26+
compileKotlin {
27+
kotlinOptions {
28+
// Lint runs with 1.3 still, so we need to emit 1.3-compatible code
29+
languageVersion = "1.3"
30+
}
31+
}
32+
2633
dependencies {
2734
kapt deps.apt.autoService
2835

static-analysis/autodispose-lint/src/main/kotlin/autodispose2/lint/AutoDisposeDetector.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ class AutoDisposeDetector : Detector(), SourceCodeScanner {
132132
overrideScopes = it
133133
}
134134
}
135-
// If scopes are not overriden, add the default ones.
135+
// If scopes are not overridden, add the default ones.
136136
if (!overrideScopes) {
137137
scopes.addAll(DEFAULT_SCOPES)
138138
}

0 commit comments

Comments
 (0)