Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# Digital Credentials Sample App
# Digital Credentials Sample

This is a sample repository for the **Digital Credentials API** integration in Android, showcasing how to request and parse verifiable credentials using the Credential Manager.

The Digital Credentials Sample App is a functional Android app built with Kotlin and Jetpack Compose. It is designed to help developers understand the workflow for retrieving and presenting digital credentials, such as Mobile Driver's Licenses (mDL) and Verified Emails, using the OpenID4VP and DCQL standards.
The Digital Credentials Sample is a functional Android app built with Kotlin and Jetpack Compose. It is designed to help developers understand the workflow for retrieving and presenting digital credentials, such as Mobile Driver's Licenses (mDL) and Verified Emails, using the OpenID4VP and DCQL standards.

## Features

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ plugins {
}

android {
namespace 'com.example.digitalcredentialsapp'
namespace 'com.example.digitalcredentials'
compileSdk 35

defaultConfig {
applicationId "com.example.digitalcredentialsapp"
applicationId "com.example.digitalcredentials"
minSdk 26
targetSdk 35
versionCode 1
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.example.digitalcredentialsapp
package com.example.digitalcredentials

import android.app.Activity
import android.util.Base64
Expand All @@ -15,10 +15,10 @@ import androidx.credentials.exceptions.GetCredentialException
import androidx.credentials.exceptions.GetCredentialInterruptedException
import androidx.credentials.exceptions.GetCredentialUnknownException
import androidx.credentials.exceptions.NoCredentialException
import com.example.digitalcredentialsapp.data.CborTag
import com.example.digitalcredentialsapp.data.cborDecode
import com.example.digitalcredentialsapp.data.RequestedClaim
import com.example.digitalcredentialsapp.data.Requests
import com.example.digitalcredentials.data.CborTag
import com.example.digitalcredentials.data.cborDecode
import com.example.digitalcredentials.data.RequestedClaim
import com.example.digitalcredentials.data.Requests
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.withContext
import org.json.JSONArray
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.example.digitalcredentialsapp
package com.example.digitalcredentials

import android.app.Activity
import android.content.Context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.example.digitalcredentialsapp
package com.example.digitalcredentials

import android.os.Bundle
import androidx.activity.ComponentActivity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.example.digitalcredentialsapp
package com.example.digitalcredentials

import android.app.Activity
import androidx.compose.foundation.layout.Column
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.example.digitalcredentialsapp
package com.example.digitalcredentials

/**
* Represents a single field or "claim" extracted from a digital credential.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.example.digitalcredentialsapp
package com.example.digitalcredentials

import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.example.digitalcredentialsapp.data
package com.example.digitalcredentials.data

import java.io.ByteArrayOutputStream

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* limitations under the License.
*/

package com.example.digitalcredentialsapp.data
package com.example.digitalcredentials.data

import org.json.JSONArray
import org.json.JSONObject
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<resources>
<string name="app_name">Digital Credentials App</string>
<string name="header_title">Digital Credentials API sample app</string>
<string name="app_name">Digital Credentials</string>
<string name="header_title">Digital Credentials API sample</string>
<string name="get_digital_credential">Get Digital Credential from Wallets</string>
<string name="get_verified_email">Get Verified Email from Device</string>
<string name="results_placeholder">Results will appear here</string>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions DigitalCredentials/settings.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
rootProject.name = "DigitalCredentials"
include ':app'
2 changes: 0 additions & 2 deletions DigitalCredentialsApp/settings.gradle

This file was deleted.

Loading