Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

Commit 80e43e5

Browse files
authored
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>
1 parent 1b8fedd commit 80e43e5

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

app/src/main/java/com/zeapo/pwdstore/UserPreference.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,8 @@ class UserPreference : AppCompatActivity() {
279279
findPreference<CheckBoxPreference>(PreferenceKeys.ENABLE_DEBUG_LOGGING)?.isVisible = !BuildConfig.ENABLE_DEBUG_FEATURES
280280

281281
findPreference<CheckBoxPreference>(PreferenceKeys.BIOMETRIC_AUTH)?.apply {
282-
val isFingerprintSupported = BiometricManager.from(requireContext()).canAuthenticate() == BiometricManager.BIOMETRIC_SUCCESS
282+
val isFingerprintSupported = BiometricManager.from(requireContext())
283+
.canAuthenticate(BiometricManager.Authenticators.DEVICE_CREDENTIAL) == BiometricManager.BIOMETRIC_SUCCESS
283284
if (!isFingerprintSupported) {
284285
isEnabled = false
285286
isChecked = false

app/src/main/java/com/zeapo/pwdstore/utils/BiometricAuthenticator.kt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,9 @@ object BiometricAuthenticator {
6363
val biometricPrompt = BiometricPrompt(activity, { handler.post(it) }, authCallback)
6464
val promptInfo = BiometricPrompt.PromptInfo.Builder()
6565
.setTitle(activity.getString(dialogTitleRes))
66-
.setDeviceCredentialAllowed(true)
6766
.build()
68-
if (BiometricManager.from(activity).canAuthenticate() == BiometricManager.BIOMETRIC_SUCCESS ||
69-
activity.getSystemService<KeyguardManager>()?.isDeviceSecure == true) {
67+
if (BiometricManager.from(activity).canAuthenticate(BiometricManager.Authenticators.DEVICE_CREDENTIAL)
68+
== BiometricManager.BIOMETRIC_SUCCESS || activity.getSystemService<KeyguardManager>()?.isDeviceSecure == true) {
7069
biometricPrompt.authenticate(promptInfo)
7170
} else {
7271
callback(Result.HardwareUnavailableOrDisabled)

buildSrc/src/main/java/Dependencies.kt

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,20 @@ object Dependencies {
2323

2424
object AndroidX {
2525

26-
const val activity_ktx = "androidx.activity:activity-ktx:1.2.0-alpha07"
26+
private const val lifecycleVersion = "2.3.0-alpha07"
27+
28+
const val activity_ktx = "androidx.activity:activity-ktx:1.2.0-alpha08"
2729
const val annotation = "androidx.annotation:annotation:1.2.0-alpha01"
28-
const val autofill = "androidx.autofill:autofill:1.1.0-alpha01"
29-
const val appcompat = "androidx.appcompat:appcompat:1.3.0-alpha01"
30-
const val biometric = "androidx.biometric:biometric:1.1.0-alpha01"
30+
const val autofill = "androidx.autofill:autofill:1.1.0-alpha02"
31+
const val appcompat = "androidx.appcompat:appcompat:1.3.0-alpha02"
32+
const val biometric = "androidx.biometric:biometric:1.1.0-alpha02"
3133
const val constraint_layout = "androidx.constraintlayout:constraintlayout:2.0.0-rc1"
32-
const val core_ktx = "androidx.core:core-ktx:1.5.0-alpha01"
34+
const val core_ktx = "androidx.core:core-ktx:1.5.0-alpha02"
3335
const val documentfile = "androidx.documentfile:documentfile:1.0.1"
34-
const val fragment_ktx = "androidx.fragment:fragment-ktx:1.3.0-alpha07"
35-
const val lifecycle_common = "androidx.lifecycle:lifecycle-common-java8:2.3.0-alpha06"
36-
const val lifecycle_livedata_ktx = "androidx.lifecycle:lifecycle-livedata-ktx:2.3.0-alpha06"
37-
const val lifecycle_viewmodel_ktx = "androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.0-alpha06"
36+
const val fragment_ktx = "androidx.fragment:fragment-ktx:1.3.0-alpha08"
37+
const val lifecycle_common = "androidx.lifecycle:lifecycle-common-java8:$lifecycleVersion"
38+
const val lifecycle_livedata_ktx = "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycleVersion"
39+
const val lifecycle_viewmodel_ktx = "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycleVersion"
3840
const val material = "com.google.android.material:material:1.3.0-alpha02"
3941
const val preference = "androidx.preference:preference:1.1.1"
4042
const val recycler_view = "androidx.recyclerview:recyclerview:1.2.0-alpha05"
@@ -62,7 +64,7 @@ object Dependencies {
6264
const val ssh_auth = "org.sufficientlysecure:sshauthentication-api:1.0"
6365
const val timber = "com.jakewharton.timber:timber:4.7.1"
6466
const val timberkt = "com.github.ajalt:timberkt:1.5.1"
65-
const val whatthestack = "com.github.haroldadmin:WhatTheStack:0.0.4"
67+
const val whatthestack = "com.github.haroldadmin:WhatTheStack:0.0.5"
6668
}
6769

6870
object NonFree {

0 commit comments

Comments
 (0)