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

MOB-1552: add support for dynamic affiliation and connection types.#49

Open
m-revetria wants to merge 11 commits into
masterfrom
MOB-1552
Open

MOB-1552: add support for dynamic affiliation and connection types.#49
m-revetria wants to merge 11 commits into
masterfrom
MOB-1552

Conversation

@m-revetria
Copy link
Copy Markdown
Contributor

@m-revetria m-revetria commented Jul 10, 2020

Implements MOB-1552: ID.me WebVerify SDK: support for dynamic affiliations types without rebuilding the SDK

Description

Allow to pass any affiliation or connection type to the registration flow regardless of those statically defined in the SDK. This adds supports for dynamic affiliation and connection types in the ID.me mobile app.

Changes proposed in this request:

  • Define a new interface for affiliation types and accept it as parameter in the registerAffiliation method.
  • Define a new interface for connection types and accept it as parameter in the registerConneection method.
  • Existing IDmeAffiliationType enum is kept so partners have static access to supported affiliations.
  • Existing IDmeConnectionType enum is kept so partners have static access to supported connections.
  • The previous enums is updated to implement the new interface to provide backward compatibility.
  • Upgrade gradle and migrate project to androidx

mirland
mirland previously approved these changes Jul 10, 2020
Comment thread me.id.webverify/app/build.gradle Outdated
Comment on lines +36 to +37
implementation "androidx.appcompat:appcompat:${rootProject.ext.androidXAppCompat}"
implementation project(':webverifylib')
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
implementation "androidx.appcompat:appcompat:${rootProject.ext.androidXAppCompat}"
implementation project(':webverifylib')
implementation project(':webverifylib')
implementation "androidx.appcompat:appcompat:${rootProject.ext.androidXAppCompat}"

* The type of supported affiliations
*/
public enum IDmeAffiliationType {
public enum IDmeAffiliationType implements IDmeAffiliation {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

override annotation is missing

* @see IDmeAffiliationType
*/
public interface IDmeAffiliation {
String getKey();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add NonNull annotation so we can use it in kotlin

public void registerAffiliation(@NonNull Activity activity,
@NonNull IDmeScope scope,
IDmeAffiliationType affiliationType,
IDmeAffiliation affiliation,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add nullability here, it's required for kotlin

@mirland mirland changed the title MOB-1552: add support for dynamic affiliation types. MOB-1552: add support for dynamic affiliation and connection types. Dec 22, 2020
BryanVision
BryanVision previously approved these changes Feb 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants