Instruction for upgrading the Onegini Android SDK to version 5.03

When upgrading from old SDK version to the version 5.03, several changes have to be applied in the end application:

Pin dialogs

From now on "Create PIN" and "Login with PIN" dialogs use newly added UserProfile ValueObject which can be used to customize those screens with user's profile specific data.

OneginiCreatePinDialog

The com.onegini.mobile.sdk.android.library.utils.dialogs.OneginiCreatePinDialog interface uses new UserProfile userProfile ValueObject as first parameter in createPin method:

  @Override
  public void createPin(final UserProfile userProfile, final OneginiPinProvidedHandler oneginiPinProvidedHandler) {
    // ...
  }

OneginiCurrentPinDialog

The com.onegini.mobile.sdk.android.library.utils.dialogs.OneginiCurrentPinDialog interface uses new UserProfile userProfile ValueObject as first parameter in getCurrentPin method:

  @Override
  public void getCurrentPin(final UserProfile userProfile, final OneginiPinProvidedHandler oneginiPinProvidedHandler) {
    // ...
  }

Fingerprint dialog

The com.onegini.mobile.sdk.android.library.utils.dialogs.OneginiFingerprintDialog interface uses new UserProfile userProfile ValueObject as first parameter in showFingerprintPopup method:

  @Override
  public void showFingerprintPopup(final UserProfile userProfile) {
    // ...
  }

Push authentication dialogs

Push authentication dialogs now use new UserProfile ValueObject that can be used to check which user profile is a receiver of the push message confirmation.

AlertInterface

The com.onegini.mobile.sdk.android.library.utils.dialogs.AlertInterface interface uses new UserProfile receiver ValueObject as parameter in showAlert method:

  @Override
  public void showAlert(final String title, final String message, final UserProfile receiver, final String positiveButton,
                        final String negativeButton, final AlertHandler alertHandler) {
    // ...
  }

ConfirmationWithPin

The com.onegini.mobile.sdk.android.library.utils.dialogs.ConfirmationWithPin interface uses new UserProfile receiver ValueObject as parameter in showConfirmation method:

  @Override
  public void showConfirmation(final String title, final String message, final UserProfile receiver, final int attemptCount, final int maxAllowedAttempts,
                               final ConfirmationWithPinHandler confirmationWithPinHandler) {
    // ...
  }

ConfirmationWithFingerprint

The com.onegini.mobile.sdk.android.library.utils.dialogs.ConfirmationWithFingerprint interface uses new UserProfile receiver ValueObject as parameter in showConfirmation method:

  @Override
  public void showConfirmation(final String title, final UserProfile receiver, final ConfirmationWithFingerprintHandler confirmationWithFingerprintHandler) {
    // ...
  }

OneginiClientAuthenticationHandler

The com.onegini.mobile.sdk.android.library.handlers.OneginiClientAuthenticationHandler interface has new requestErrorInvalidProfile() method that's being called when the Token Server returns invalid_profile error.