Skip to content

Commit

Permalink
* version bump
Browse files Browse the repository at this point in the history
* Resolve problem in saving passphrase using biometrics for Android API version 30 or higher
  • Loading branch information
ryanamaral committed Feb 2, 2023
1 parent c026ba4 commit f2ea815
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ android {
applicationId = "com.turtlpass"
minSdk = internal.Android.minSdk
targetSdk = internal.Android.targetSdk
versionCode = 10400
versionName = "1.4.0"
versionCode = 10401
versionName = "1.4.1"
vectorDrawables { useSupportLibrary = true }
missingDimensionStrategy("device", "anyDevice")
buildConfigField("Long", "TIMEOUT_MILLIS", "5000L")
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.turtlpass.module.passphrase

import android.os.Build
import androidx.biometric.BiometricManager
import androidx.biometric.BiometricManager.Authenticators.BIOMETRIC_STRONG
import androidx.biometric.BiometricManager.Authenticators.BIOMETRIC_WEAK
import androidx.biometric.BiometricManager.Authenticators.DEVICE_CREDENTIAL
import androidx.biometric.BiometricPrompt
import androidx.fragment.app.FragmentActivity
import androidx.lifecycle.ViewModel
Expand Down Expand Up @@ -164,17 +166,18 @@ class PassphraseViewModel @Inject constructor(
negativeButton: String,
): BiometricPrompt.PromptInfo {
return BiometricPrompt.PromptInfo.Builder()
.setTitle(title)
.setSubtitle(subtitle)
.setDescription(description)
.apply {
setTitle(title)
setSubtitle(subtitle)
setDescription(description)
when {
Build.VERSION.SDK_INT >= Build.VERSION_CODES.R ->
setAllowedAuthenticators(BiometricManager.Authenticators.BIOMETRIC_STRONG)
setAllowedAuthenticators(BIOMETRIC_STRONG)
else -> {
setNegativeButtonText(negativeButton)
setAllowedAuthenticators(BIOMETRIC_WEAK and DEVICE_CREDENTIAL)
}
}
setNegativeButtonText(negativeButton)
}.build()
}
}
5 changes: 5 additions & 0 deletions fastlane/metadata/android/en-US/changelogs/10401.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
TurtlPass Android version 1.4.1 is now available for download! This update includes the following:

- Resolve problem in saving passphrase using biometrics for Android API version 30 or higher

Upgrade your online security game with TurtlPass. We hope you continue to enjoy our product and look forward to hearing your feedback and bringing you even more exciting features and improvements in the future. Thank you for choosing the ultimate password solution.

0 comments on commit f2ea815

Please sign in to comment.