From a9457b5b600325465b05eba325ed9cf5e17cbbd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juraj=20=C4=8Eurech?= Date: Thu, 21 Sep 2023 15:08:39 +0200 Subject: [PATCH] Updated migration guide. --- docs/Migration-from-1.7-to-1.8.md | 6 +++--- proj-android/build.gradle | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/Migration-from-1.7-to-1.8.md b/docs/Migration-from-1.7-to-1.8.md index 43214bd1..d30d9752 100644 --- a/docs/Migration-from-1.7-to-1.8.md +++ b/docs/Migration-from-1.7-to-1.8.md @@ -49,9 +49,9 @@ Legacy PowerAuth configuration: - `commitActivationWithAuthentication()` is now `persistActivationWithAuthentication()` - All variants of `commitActivationWithPassword()` are now `persistActivationWithPassword()` - All variants of `commitActivation()` are now `persistActivation()` - - All variants of `authenticateUsingBiometry()` are now using new `IAuthenticateWithBiometryListener` interface returning `PowerAuthAuthentication` in success. + - All variants of `authenticateUsingBiometry()` are now replaced with `authenticateUsingBiometrics()` with `IAuthenticateWithBiometricsListener` interface returning `PowerAuthAuthentication` in success. -- The `ICommitActivationWithBiometryListener` is now deprecated and you can use `IPersistActivationWithBiometryListener` as a replacement. +- The `ICommitActivationWithBiometryListener` is now deprecated and you can use `IPersistActivationWithBiometricsListener` as a replacement. - The `PowerAuthAuthentication` object is now immutable object. @@ -59,7 +59,7 @@ Legacy PowerAuth configuration: - `TIME_SYNCHRONIZATION` indicating a problem with the time synchronization. - `BIOMETRY_NOT_ENROLLED` indicating that device has no enrolled biometry. -- The biometry-related methods in `PowerAuthSDK` are no longer annotated as `@RequiresApi(api = Build.VERSION_CODES.M)`. This change may lead to a several dead code branches in your code if you still support devices older than Android 6.0. +- The biometry-related methods in `PowerAuthSDK` are no longer annotated as `@RequiresApi(api = Build.VERSION_CODES.M)`. This change may lead to a several dead code branches in your code if you still support devices older than Android 6.0. - Removed all interfaces deprecated in release `1.7.x` diff --git a/proj-android/build.gradle b/proj-android/build.gradle index 06a93eae..36c9eb3b 100644 --- a/proj-android/build.gradle +++ b/proj-android/build.gradle @@ -52,5 +52,9 @@ allprojects { tasks.withType(Javadoc) { options.addStringOption('Xdoclint:-html', '-quiet') } + // Uncomment to show usage of deprecated interfaces +// tasks.withType(JavaCompile) { +// options.compilerArgs << "-Xlint:deprecation" +// } }