Installation

To use the Wallet SDK the following information and credentials need to be provided:

Get the Wallet SDK into the app

To use the wallet sdk in an app the maven repo has to be added to the app’s settings.gradle.kts file.

dependencyResolutionManagement {
    repositories {

        maven {
            url = uri(System.getenv("WALLET_SDK_REPO_URL")) // provided by youniqx
            name = "WalletSdk Repository"
            credentials {
                username = System.getenv("WALLET_SDK_REPO_USERNAME") // provided by youniqx
                password = System.getenv("WALLET_SDK_REPO_PASSWORD") // provided by youniqx
            }
        }
    }
}

app/build.gradle.kts:

plugins {
    id("com.android.application") version "9.x.x"

}

android {
    defaultConfig {
        targetSdk = 37

    }

}

dependencies {
    implementation("com.youniqx:wallet-sdk:<version>") // get latest version from maven repo

}

Prepare the app

To provide all needed functionality the app has to react on certain deeplink schemes. Add the following intent-filters your app’s manifest.

app/src/main/AndroidManifest.xml:

<application
    >
    <activity
        
        android:name…
        >

        <intent-filter>
            <action android:name="android.intent.action.VIEW"/>
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="openid-credential-offer"/>
        </intent-filter>
        <intent-filter>
            <action android:name="android.intent.action.VIEW"/>
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="eu.europa.ec.euidi" />
            <data android:host="authorization"/>
        </intent-filter>
        <intent-filterv>
            <action android:name="android.intent.action.VIEW"/>
            <category android:name="android.intent.category.DEFAULT" />
            <category android:name="android.intent.category.BROWSABLE" />
            <data android:scheme="openid4vp"/>
        </intent-filterv>
    </activity>

</application>