Update all dependencies (#1358)

* build: update all dependencies

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>

* autofill-parser: add new hints

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>

* build: force the right annotation version manually

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
This commit is contained in:
Harsh Shandilya 2021-04-01 05:52:43 +05:30 committed by GitHub
parent 62b514cae4
commit 4c8c0f44c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 29 additions and 16 deletions

View file

@ -49,11 +49,13 @@ internal class FormField(
HINTS_NEW_PASSWORD + HINTS_NEW_PASSWORD +
listOf( listOf(
HintConstants.AUTOFILL_HINT_PASSWORD, HintConstants.AUTOFILL_HINT_PASSWORD,
HintConstants.AUTOFILL_HINT_WIFI_PASSWORD,
) )
private val HINTS_OTP = private val HINTS_OTP =
listOf( listOf(
HintConstants.AUTOFILL_HINT_SMS_OTP, HintConstants.AUTOFILL_HINT_SMS_OTP,
HintConstants.AUTOFILL_HINT_TFA_APP_OTP,
) )
@Suppress("DEPRECATION") @Suppress("DEPRECATION")

View file

@ -12,10 +12,21 @@ buildscript { dependencies { classpath(Plugins.ktfmtGradlePlugin) } }
allprojects { apply(plugin = "com.ncorti.ktfmt.gradle") } allprojects { apply(plugin = "com.ncorti.ktfmt.gradle") }
subprojects { subprojects {
// Gradle's automatic resolution fails to handle AndroidX annotation for
// some reason so here we simply hack it up to use the correct version manually.
val annotationParts = Dependencies.AndroidX.annotation.split(":")
val annotationGroup = annotationParts[0]
val annotationModule = annotationParts[1]
val annotationVersion = annotationParts[2]
configurations.all { configurations.all {
resolutionStrategy.dependencySubstitution { resolutionStrategy.dependencySubstitution {
substitute(module("org.jetbrains.trove4j:trove4j:20160824")) substitute(module("org.jetbrains.trove4j:trove4j:20160824"))
.using(module("org.jetbrains.intellij.deps:trove4j:1.0.20200330")) .using(module("org.jetbrains.intellij.deps:trove4j:1.0.20200330"))
} }
resolutionStrategy.eachDependency {
if (requested.group == annotationGroup && requested.name == annotationModule) {
useVersion(annotationVersion)
}
}
} }
} }

View file

@ -11,7 +11,7 @@ object Plugins {
const val dokkaPlugin = "org.jetbrains.dokka:dokka-gradle-plugin:1.4.20" const val dokkaPlugin = "org.jetbrains.dokka:dokka-gradle-plugin:1.4.20"
const val downloadTaskPlugin = "de.undercouch:gradle-download-task:4.1.1" const val downloadTaskPlugin = "de.undercouch:gradle-download-task:4.1.1"
const val kotlinGradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION" const val kotlinGradlePlugin = "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
const val ktfmtGradlePlugin = "com.ncorti.ktfmt.gradle:plugin:0.4.0" const val ktfmtGradlePlugin = "com.ncorti.ktfmt.gradle:plugin:0.5.0"
const val mavenPublishPlugin = "com.vanniktech:gradle-maven-publish-plugin:0.13.0" const val mavenPublishPlugin = "com.vanniktech:gradle-maven-publish-plugin:0.13.0"
const val semver4j = "com.vdurmont:semver4j:3.1.0" const val semver4j = "com.vdurmont:semver4j:3.1.0"
} }
@ -20,7 +20,7 @@ object Dependencies {
object Kotlin { object Kotlin {
object Coroutines { object Coroutines {
private const val version = "1.4.2" private const val version = "1.4.3"
const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version" const val android = "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version"
const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version" const val core = "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version"
} }
@ -28,23 +28,23 @@ object Dependencies {
object AndroidX { object AndroidX {
private const val lifecycleVersion = "2.3.0-rc01" private const val lifecycleVersion = "2.4.0-alpha01"
const val activity_ktx = "androidx.activity:activity-ktx:1.3.0-alpha03" const val activity_ktx = "androidx.activity:activity-ktx:1.3.0-alpha05"
const val annotation = "androidx.annotation:annotation:1.1.0" const val annotation = "androidx.annotation:annotation:1.2.0"
const val autofill = "androidx.autofill:autofill:1.1.0" const val autofill = "androidx.autofill:autofill:1.2.0-alpha01"
const val appcompat = "androidx.appcompat:appcompat:1.3.0-beta01" const val appcompat = "androidx.appcompat:appcompat:1.3.0-rc01"
const val biometric_ktx = "androidx.biometric:biometric-ktx:1.2.0-alpha03" const val biometric_ktx = "androidx.biometric:biometric-ktx:1.2.0-alpha03"
const val constraint_layout = "androidx.constraintlayout:constraintlayout:2.1.0-alpha2" const val constraint_layout = "androidx.constraintlayout:constraintlayout:2.1.0-beta01"
const val core_ktx = "androidx.core:core-ktx:1.5.0-beta02" const val core_ktx = "androidx.core:core-ktx:1.6.0-alpha01"
const val documentfile = "androidx.documentfile:documentfile:1.0.1" const val documentfile = "androidx.documentfile:documentfile:1.0.1"
const val fragment_ktx = "androidx.fragment:fragment-ktx:1.3.0" const val fragment_ktx = "androidx.fragment:fragment-ktx:1.3.2"
const val lifecycle_common = "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion" const val lifecycle_common = "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
const val lifecycle_livedata_ktx = "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion" const val lifecycle_livedata_ktx = "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
const val lifecycle_viewmodel_ktx = "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion" const val lifecycle_viewmodel_ktx = "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
const val material = "com.google.android.material:material:1.3.0" const val material = "com.google.android.material:material:1.4.0-alpha01"
const val preference = "androidx.preference:preference:1.1.1" const val preference = "androidx.preference:preference:1.1.1"
const val recycler_view = "androidx.recyclerview:recyclerview:1.2.0-beta02" const val recycler_view = "androidx.recyclerview:recyclerview:1.2.0-rc01"
const val recycler_view_selection = "androidx.recyclerview:recyclerview-selection:1.1.0" const val recycler_view_selection = "androidx.recyclerview:recyclerview-selection:1.1.0"
const val security = "androidx.security:security-crypto:1.1.0-alpha03" const val security = "androidx.security:security-crypto:1.1.0-alpha03"
const val swiperefreshlayout = "androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01" const val swiperefreshlayout = "androidx.swiperefreshlayout:swiperefreshlayout:1.2.0-alpha01"
@ -57,12 +57,12 @@ object Dependencies {
object ThirdParty { object ThirdParty {
const val bouncycastle = "org.bouncycastle:bcprov-jdk15on:1.67" const val bouncycastle = "org.bouncycastle:bcprov-jdk15on:1.68"
const val commons_codec = "commons-codec:commons-codec:1.14" const val commons_codec = "commons-codec:commons-codec:1.14"
const val eddsa = "net.i2p.crypto:eddsa:0.3.0" const val eddsa = "net.i2p.crypto:eddsa:0.3.0"
const val fastscroll = "me.zhanghai.android.fastscroll:library:1.1.5" const val fastscroll = "me.zhanghai.android.fastscroll:library:1.1.5"
const val jgit = "org.eclipse.jgit:org.eclipse.jgit:3.7.1.201504261725-r" const val jgit = "org.eclipse.jgit:org.eclipse.jgit:3.7.1.201504261725-r"
const val kotlin_result = "com.michael-bull.kotlin-result:kotlin-result:1.1.10" const val kotlin_result = "com.michael-bull.kotlin-result:kotlin-result:1.1.11"
const val leakcanary = "com.squareup.leakcanary:leakcanary-android:2.6" const val leakcanary = "com.squareup.leakcanary:leakcanary-android:2.6"
const val modern_android_prefs = "de.maxr1998:modernandroidpreferences:2.0" const val modern_android_prefs = "de.maxr1998:modernandroidpreferences:2.0"
const val plumber = "com.squareup.leakcanary:plumber-android:2.6" const val plumber = "com.squareup.leakcanary:plumber-android:2.6"
@ -80,12 +80,12 @@ object Dependencies {
object Testing { object Testing {
const val junit = "junit:junit:4.13.1" const val junit = "junit:junit:4.13.2"
const val kotlin_test_junit = "org.jetbrains.kotlin:kotlin-test-junit:$KOTLIN_VERSION" const val kotlin_test_junit = "org.jetbrains.kotlin:kotlin-test-junit:$KOTLIN_VERSION"
object AndroidX { object AndroidX {
private const val version = "1.3.1-alpha03" private const val version = "1.4.0-alpha05"
const val runner = "androidx.test:runner:$version" const val runner = "androidx.test:runner:$version"
const val rules = "androidx.test:rules:$version" const val rules = "androidx.test:rules:$version"
} }