Skip to content

Commit 50b1d9e

Browse files
authored
Merge pull request #1975 from walt-id/fix/restore-main-before-mobile-prs
fix: restore main before accidental mobile PR merge
2 parents 58c3073 + 214fdb3 commit 50b1d9e

70 files changed

Lines changed: 1243 additions & 6203 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

waltid-applications/waltid-wallet-demo-compose/androidApp/src/main/AndroidManifest.xml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@
3434
<data android:scheme="openid-credential-offer" />
3535
</intent-filter>
3636

37-
<intent-filter>
38-
<action android:name="android.intent.action.VIEW" />
39-
<category android:name="android.intent.category.DEFAULT" />
40-
<category android:name="android.intent.category.BROWSABLE" />
41-
<data android:scheme="openid" />
42-
</intent-filter>
43-
4437
<intent-filter>
4538
<action android:name="android.intent.action.VIEW" />
4639
<category android:name="android.intent.category.DEFAULT" />

waltid-applications/waltid-wallet-demo-compose/iosApp/iosApp/Info-Debug.plist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<string>id.walt.walletdemo</string>
1616
<key>CFBundleURLSchemes</key>
1717
<array>
18-
<string>openid</string>
1918
<string>openid-credential-offer</string>
2019
<string>openid4vp</string>
2120
</array>

waltid-applications/waltid-wallet-demo-compose/iosApp/iosApp/Info.plist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@
1515
<string>id.walt.walletdemo</string>
1616
<key>CFBundleURLSchemes</key>
1717
<array>
18-
<string>openid</string>
1918
<string>openid-credential-offer</string>
2019
<string>openid4vp</string>
2120
</array>

waltid-applications/waltid-wallet-demo-compose/sharedLogic/src/commonMain/kotlin/id/walt/walletdemo/compose/logic/DemoWallet.kt

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,9 @@ package id.walt.walletdemo.compose.logic
33
interface DemoWallet {
44
suspend fun bootstrap(): WalletDemoBootstrapResult
55
suspend fun listCredentials(): List<WalletDemoCredential>
6-
suspend fun startIssuance(offerUrl: String, redirectUri: String, did: String?): WalletDemoIssuanceSession
7-
suspend fun continuePreAuthorizedIssuance(
8-
sessionId: String,
9-
transactionCode: String?,
10-
): WalletDemoIssuanceOutcome
11-
suspend fun continueAuthorizationIssuance(
12-
sessionId: String,
13-
callbackUri: String,
14-
): WalletDemoIssuanceOutcome
15-
suspend fun cancelIssuance(sessionId: String): WalletDemoIssuanceOutcome
16-
suspend fun resumeDeferredIssuance(deferredCredentialId: String): WalletDemoIssuanceOutcome
6+
suspend fun resolveOffer(offerUrl: String): WalletDemoOfferPreview
7+
suspend fun receive(previewHandle: WalletDemoIssuancePreviewHandle, txCode: String? = null): List<String>
8+
suspend fun discardIssuancePreview(previewHandle: WalletDemoIssuancePreviewHandle)
179
suspend fun present(requestUrl: String, did: String? = null): WalletDemoOperationResult
1810
suspend fun previewPresentation(requestUrl: String): WalletDemoPresentationPreviewResult
1911
suspend fun submitPresentation(

waltid-applications/waltid-wallet-demo-compose/sharedLogic/src/commonMain/kotlin/id/walt/walletdemo/compose/logic/LazyDemoWallet.kt

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,16 @@ internal class LazyDemoWallet(
2020
override suspend fun listCredentials(): List<WalletDemoCredential> =
2121
wallet().listCredentials()
2222

23-
override suspend fun startIssuance(offerUrl: String, redirectUri: String, did: String?) =
24-
wallet().startIssuance(offerUrl, redirectUri, did)
23+
override suspend fun resolveOffer(offerUrl: String): WalletDemoOfferPreview =
24+
wallet().resolveOffer(offerUrl)
2525

26-
override suspend fun continuePreAuthorizedIssuance(sessionId: String, transactionCode: String?) =
27-
wallet().continuePreAuthorizedIssuance(sessionId, transactionCode)
26+
override suspend fun receive(
27+
previewHandle: WalletDemoIssuancePreviewHandle,
28+
txCode: String?,
29+
): List<String> = wallet().receive(previewHandle, txCode)
2830

29-
override suspend fun continueAuthorizationIssuance(sessionId: String, callbackUri: String) =
30-
wallet().continueAuthorizationIssuance(sessionId, callbackUri)
31-
32-
override suspend fun cancelIssuance(sessionId: String) = wallet().cancelIssuance(sessionId)
33-
34-
override suspend fun resumeDeferredIssuance(deferredCredentialId: String) =
35-
wallet().resumeDeferredIssuance(deferredCredentialId)
31+
override suspend fun discardIssuancePreview(previewHandle: WalletDemoIssuancePreviewHandle) =
32+
wallet().discardIssuancePreview(previewHandle)
3633

3734
override suspend fun present(requestUrl: String, did: String?): WalletDemoOperationResult =
3835
wallet().present(requestUrl, did)

0 commit comments

Comments
 (0)