Update dependencies (#1039)
* build: uprev dependencies Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Address deprecation warnings Signed-off-by: Harsh Shandilya <me@msfjarvis.dev> * Update autofill, appcompat and core Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
parent
1b8fedd8fa
commit
80e43e5675
3 changed files with 16 additions and 14 deletions
|
@ -279,7 +279,8 @@ class UserPreference : AppCompatActivity() {
|
||||||
findPreference<CheckBoxPreference>(PreferenceKeys.ENABLE_DEBUG_LOGGING)?.isVisible = !BuildConfig.ENABLE_DEBUG_FEATURES
|
findPreference<CheckBoxPreference>(PreferenceKeys.ENABLE_DEBUG_LOGGING)?.isVisible = !BuildConfig.ENABLE_DEBUG_FEATURES
|
||||||
|
|
||||||
findPreference<CheckBoxPreference>(PreferenceKeys.BIOMETRIC_AUTH)?.apply {
|
findPreference<CheckBoxPreference>(PreferenceKeys.BIOMETRIC_AUTH)?.apply {
|
||||||
val isFingerprintSupported = BiometricManager.from(requireContext()).canAuthenticate() == BiometricManager.BIOMETRIC_SUCCESS
|
val isFingerprintSupported = BiometricManager.from(requireContext())
|
||||||
|
.canAuthenticate(BiometricManager.Authenticators.DEVICE_CREDENTIAL) == BiometricManager.BIOMETRIC_SUCCESS
|
||||||
if (!isFingerprintSupported) {
|
if (!isFingerprintSupported) {
|
||||||
isEnabled = false
|
isEnabled = false
|
||||||
isChecked = false
|
isChecked = false
|
||||||
|
|
|
@ -63,10 +63,9 @@ object BiometricAuthenticator {
|
||||||
val biometricPrompt = BiometricPrompt(activity, { handler.post(it) }, authCallback)
|
val biometricPrompt = BiometricPrompt(activity, { handler.post(it) }, authCallback)
|
||||||
val promptInfo = BiometricPrompt.PromptInfo.Builder()
|
val promptInfo = BiometricPrompt.PromptInfo.Builder()
|
||||||
.setTitle(activity.getString(dialogTitleRes))
|
.setTitle(activity.getString(dialogTitleRes))
|
||||||
.setDeviceCredentialAllowed(true)
|
|
||||||
.build()
|
.build()
|
||||||
if (BiometricManager.from(activity).canAuthenticate() == BiometricManager.BIOMETRIC_SUCCESS ||
|
if (BiometricManager.from(activity).canAuthenticate(BiometricManager.Authenticators.DEVICE_CREDENTIAL)
|
||||||
activity.getSystemService<KeyguardManager>()?.isDeviceSecure == true) {
|
== BiometricManager.BIOMETRIC_SUCCESS || activity.getSystemService<KeyguardManager>()?.isDeviceSecure == true) {
|
||||||
biometricPrompt.authenticate(promptInfo)
|
biometricPrompt.authenticate(promptInfo)
|
||||||
} else {
|
} else {
|
||||||
callback(Result.HardwareUnavailableOrDisabled)
|
callback(Result.HardwareUnavailableOrDisabled)
|
||||||
|
|
|
@ -23,18 +23,20 @@ object Dependencies {
|
||||||
|
|
||||||
object AndroidX {
|
object AndroidX {
|
||||||
|
|
||||||
const val activity_ktx = "androidx.activity:activity-ktx:1.2.0-alpha07"
|
private const val lifecycleVersion = "2.3.0-alpha07"
|
||||||
|
|
||||||
|
const val activity_ktx = "androidx.activity:activity-ktx:1.2.0-alpha08"
|
||||||
const val annotation = "androidx.annotation:annotation:1.2.0-alpha01"
|
const val annotation = "androidx.annotation:annotation:1.2.0-alpha01"
|
||||||
const val autofill = "androidx.autofill:autofill:1.1.0-alpha01"
|
const val autofill = "androidx.autofill:autofill:1.1.0-alpha02"
|
||||||
const val appcompat = "androidx.appcompat:appcompat:1.3.0-alpha01"
|
const val appcompat = "androidx.appcompat:appcompat:1.3.0-alpha02"
|
||||||
const val biometric = "androidx.biometric:biometric:1.1.0-alpha01"
|
const val biometric = "androidx.biometric:biometric:1.1.0-alpha02"
|
||||||
const val constraint_layout = "androidx.constraintlayout:constraintlayout:2.0.0-rc1"
|
const val constraint_layout = "androidx.constraintlayout:constraintlayout:2.0.0-rc1"
|
||||||
const val core_ktx = "androidx.core:core-ktx:1.5.0-alpha01"
|
const val core_ktx = "androidx.core:core-ktx:1.5.0-alpha02"
|
||||||
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-alpha07"
|
const val fragment_ktx = "androidx.fragment:fragment-ktx:1.3.0-alpha08"
|
||||||
const val lifecycle_common = "androidx.lifecycle:lifecycle-common-java8:2.3.0-alpha06"
|
const val lifecycle_common = "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
|
||||||
const val lifecycle_livedata_ktx = "androidx.lifecycle:lifecycle-livedata-ktx:2.3.0-alpha06"
|
const val lifecycle_livedata_ktx = "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
|
||||||
const val lifecycle_viewmodel_ktx = "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-alpha06"
|
const val lifecycle_viewmodel_ktx = "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
|
||||||
const val material = "com.google.android.material:material:1.3.0-alpha02"
|
const val material = "com.google.android.material:material:1.3.0-alpha02"
|
||||||
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-alpha05"
|
const val recycler_view = "androidx.recyclerview:recyclerview:1.2.0-alpha05"
|
||||||
|
@ -62,7 +64,7 @@ object Dependencies {
|
||||||
const val ssh_auth = "org.sufficientlysecure:sshauthentication-api:1.0"
|
const val ssh_auth = "org.sufficientlysecure:sshauthentication-api:1.0"
|
||||||
const val timber = "com.jakewharton.timber:timber:4.7.1"
|
const val timber = "com.jakewharton.timber:timber:4.7.1"
|
||||||
const val timberkt = "com.github.ajalt:timberkt:1.5.1"
|
const val timberkt = "com.github.ajalt:timberkt:1.5.1"
|
||||||
const val whatthestack = "com.github.haroldadmin:WhatTheStack:0.0.4"
|
const val whatthestack = "com.github.haroldadmin:WhatTheStack:0.0.5"
|
||||||
}
|
}
|
||||||
|
|
||||||
object NonFree {
|
object NonFree {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue