Skip to content

Update iOS and Android holder sample apps for new Holder SDK release#301

Open
avner-m wants to merge 2 commits into
masterfrom
am/holder-sdk-release-sample-apps
Open

Update iOS and Android holder sample apps for new Holder SDK release#301
avner-m wants to merge 2 commits into
masterfrom
am/holder-sdk-release-sample-apps

Conversation

@avner-m

@avner-m avner-m commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Update the iOS and Android holder sample apps to work with the new Holder SDK release
  • Handle the now-optional OfferedCredential.claims field in the iOS holder sample

Changes

  • Android holder tutorial: bump SDK dependency version and update MainActivity.kt / OnlinePresentationScreen.kt for the new release
  • iOS holder tutorial: update ContentView.swift, DocumentView.swift, PresentCredentialsView.swift, and TransactionCodeInputView.swift for the new SDK, including safe handling of optional OfferedCredential.claims

Test plan

  • Build and run the Android holder sample app
  • Build and run the iOS holder sample app
  • Verify credential offer and online presentation flows

🤖 Generated with Claude Code

avner-m added 2 commits June 16, 2026 11:00
Align the iOS and Android holder tutorial sample apps with the iOS Holder
SDK v6.0.0 and Android Holder SDK v7.0.0 APIs, matching the updated
tutorials in MATTR Learn.

iOS (v6.0.0):
- Migrate ViewModel from ObservableObject/@published to @Observable/@State
- Handle async initialize() via a .task modifier
- Switch RetrieveCredentialResult to .success/.failure enum handling
- Use OnlinePresentationSession.getMatchedCredentials()
- Drop optional chaining on non-optional MobileCredential(Metadata).claims
- Remove unused Combine imports

Android (v7.0.0):
- Bump holder SDK dependency to 7.0.0
- Handle RetrieveCredentialResult sealed interface (Success/Failure)
- Rename OfferedCredential.doctype to docType
- Use OnlinePresentationSession.getMatchedCredentials()
OfferedCredential.claims is now optional in iOS Holder SDK v6.0.0; guard the
claim count shown for a discovered credential offer.
@avner-m avner-m requested a review from a team as a code owner June 16, 2026 04:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant