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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ playground.xcworkspace
# .swiftpm

.build/
.codex/

# CocoaPods
#
Expand Down Expand Up @@ -59,4 +60,4 @@ Carthage/Build/
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output
fastlane/test_output
9 changes: 6 additions & 3 deletions API.md
Original file line number Diff line number Diff line change
Expand Up @@ -808,13 +808,16 @@ struct OmsSdkError: Error, LocalizedError, Sendable {
}
```

Public wallet, indexer, and pending wallet selection APIs normalize recoverable
SDK failures to `OmsSdkError`. Use `code` for stable app handling, `operation`
for logging and analytics, `status` for HTTP-backed failures, `txnId` for
Public `WalletClient` and `IndexerClient` methods normalize recoverable SDK
failures to `OmsSdkError`. Use `code` for stable app handling, `operation` for
logging and analytics, `status` for HTTP-backed failures, `txnId` for
transaction status lookup failures, and `retryable` for retry UI. The
`underlyingError` preserves lower-level details such as `WebRPCError`,
`TransactionError`, or decoding/transport errors.

`PendingWalletSelection` validation failures, such as stale selections or
unavailable wallet IDs, also throw `OmsSdkError`.

`CancellationError` is not wrapped.

```swift
Expand Down
2 changes: 1 addition & 1 deletion Examples/trails-actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ through the OMS wallet client.
xcodebuild \
-project Examples/trails-actions/trails-actions.xcodeproj \
-scheme trails-actions \
-destination 'platform=iOS Simulator,name=iPhone 17'
-destination 'generic/platform=iOS Simulator'
```
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ https://github.com/0xsequence/swift-sdk.git
Add the pod to your `Podfile`:

```ruby
pod 'oms-client-swift-sdk', '0.1.0-alpha.1'
pod 'oms-client-swift-sdk', '0.1.0-alpha.2'
```

## Quick Start
Expand Down
2 changes: 1 addition & 1 deletion TESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ place them in `Tests/Swift SDKIntegrationTests/` and document prerequisites here
|---|---|
| Run all tests | `swift test` |
| Build without running tests | `swift build` |
| Run a specific test file | `swift test --filter <TestSuiteName>` |
| Run tests matching a filter | `swift test --filter <TestNamePattern>` |
| Verbose output | `swift test --verbose` |
| Build demo app | `xcodebuild -project Examples/sdk-demo/oms-sdk-demo.xcodeproj -scheme oms-sdk-demo build` |
4 changes: 2 additions & 2 deletions oms-client-swift-sdk.podspec
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
Pod::Spec.new do |s|
s.name = "oms-client-swift-sdk"
s.version = "0.1.0-alpha.1"
s.version = "0.1.0-alpha.2"
s.summary = "OMS Client Swift SDK."
s.description = <<-DESC
OMS Client Swift SDK provides email and OIDC redirect wallet authentication,
OMS Client Swift SDK provides email, OIDC ID-token, and OIDC redirect wallet authentication,
request signing, session persistence, transaction helpers, signature verification, token balance queries, and
base-unit formatting helpers for iOS and macOS apps.
DESC
Expand Down
Loading