To use the Wallet SDK the following information and credentials need to be provided:
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
}
}
}
}build.gradle.kts file.targetSdk has to be 37+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
…
}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>Presentation with the
incoming Intent data. See Presentation for
details.