From 3b4e59c59fee42cb1c32044a89edee812239bf33 Mon Sep 17 00:00:00 2001 From: maltaisn Date: Thu, 2 Jul 2020 08:12:11 -0400 Subject: [PATCH] Removed a few unused things from sync --- CHANGELOG.md | 2 -- app/build.gradle | 1 - .../kotlin/com/maltaisn/notes/extensions.kt | 19 ------------------- firebase.json | 8 -------- gradle.properties | 4 ++-- 5 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 firebase.json diff --git a/CHANGELOG.md b/CHANGELOG.md index c8fb99aa..3aa0d8cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,5 @@ ## v1.1.0 - Removed synchronization feature. - -### v1.0.2 - Fixed crash when navigating to two destination at the same time. ### v1.0.1 diff --git a/app/build.gradle b/app/build.gradle index f2a8c998..515de07f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -108,7 +108,6 @@ dependencies { implementation "androidx.recyclerview:recyclerview:$recyclerViewVersion" implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion" implementation "androidx.preference:preference:$preferenceVersion" - implementation "androidx.swiperefreshlayout:swiperefreshlayout:$swipeRefreshVersion" implementation "com.google.android.material:material:$materialVersion" implementation "com.google.android.gms:play-services-oss-licenses:$ossLicensesVersion" diff --git a/app/src/main/kotlin/com/maltaisn/notes/extensions.kt b/app/src/main/kotlin/com/maltaisn/notes/extensions.kt index f3ae0f06..d1cec3fd 100644 --- a/app/src/main/kotlin/com/maltaisn/notes/extensions.kt +++ b/app/src/main/kotlin/com/maltaisn/notes/extensions.kt @@ -17,12 +17,10 @@ package com.maltaisn.notes import android.content.Context -import android.text.method.PasswordTransformationMethod import android.view.View import android.view.inputmethod.InputMethodManager import androidx.navigation.NavController import androidx.navigation.NavDirections -import com.google.android.material.textfield.TextInputLayout fun NavController.navigateSafe(directions: NavDirections) { @@ -51,20 +49,3 @@ fun View.showKeyboard() { val imm = context.getSystemService(Context.INPUT_METHOD_SERVICE) as InputMethodManager imm.showSoftInput(this.findFocus(), 0) } - -/** - * [TextInputLayout] doesn't really allow customizing the end icon click listener so this - * is a copy of the click listener used internally, but this one also calls [listener]. - */ -fun TextInputLayout.setCustomEndIconOnClickListener(listener: (View) -> Unit) = - this.setEndIconOnClickListener { view -> - // Store the current cursor position - val edt = this.editText ?: return@setEndIconOnClickListener - val oldSelection = edt.selectionEnd - val hidePassword = edt.transformationMethod !is PasswordTransformationMethod - edt.transformationMethod = PasswordTransformationMethod.getInstance().takeIf { hidePassword } - if (oldSelection >= 0) { - edt.setSelection(oldSelection) - } - listener(view) - } diff --git a/firebase.json b/firebase.json deleted file mode 100644 index 67a15010..00000000 --- a/firebase.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "functions": { - "predeploy": [ - "npm --prefix \"$RESOURCE_DIR\" run lint", - "npm --prefix \"$RESOURCE_DIR\" run build" - ] - } -} diff --git a/gradle.properties b/gradle.properties index d8cfc7b0..d4f2da52 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,12 +21,12 @@ preferenceVersion=1.1.1 swipeRefreshVersion=1.0.0 roomVersion=2.2.5 materialVersion=1.3.0-alpha01 -navVersion=2.2.2 +navVersion=2.3.0 lifecycleVersion=2.2.0 ossLicensesVersion=17.0.0 # Other -daggerVersion=2.27 +daggerVersion=2.28 assistedInjectVersion=0.5.2 leakCanaryVersion=2.2