@onramper/onramper-react-native 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +18 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/Modules/OnramperSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/Modules/OnramperSDK.swiftmodule/arm64-apple-ios.swiftinterface +3 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/OnramperSDK.framework/OnramperSDK +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/DWARF/OnramperSDK +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/OnramperSDK.yml +3562 -3560
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/Modules/OnramperSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/Modules/OnramperSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/Modules/OnramperSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/Modules/OnramperSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/OnramperSDK.framework/OnramperSDK +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/DWARF/OnramperSDK +0 -0
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/Relocations/aarch64/OnramperSDK.yml +3562 -3560
- package/ios/Frameworks/OnramperSDK.xcframework/ios-arm64_x86_64-simulator/dSYMs/OnramperSDK.framework.dSYM/Contents/Resources/Relocations/x86_64/OnramperSDK.yml +3525 -3523
- package/ios/HybridOnramperNitro.swift +2 -0
- package/lib/commonjs/OnramperClient.js +12 -0
- package/lib/commonjs/OnramperClient.js.map +1 -1
- package/lib/module/OnramperClient.js +12 -0
- package/lib/module/OnramperClient.js.map +1 -1
- package/lib/typescript/commonjs/src/OnramperClient.d.ts +5 -0
- package/lib/typescript/commonjs/src/OnramperClient.d.ts.map +1 -1
- package/lib/typescript/commonjs/src/specs/OnramperNitro.nitro.d.ts +1 -0
- package/lib/typescript/commonjs/src/specs/OnramperNitro.nitro.d.ts.map +1 -1
- package/lib/typescript/module/src/OnramperClient.d.ts +5 -0
- package/lib/typescript/module/src/OnramperClient.d.ts.map +1 -1
- package/lib/typescript/module/src/specs/OnramperNitro.nitro.d.ts +1 -0
- package/lib/typescript/module/src/specs/OnramperNitro.nitro.d.ts.map +1 -1
- package/nitrogen/generated/ios/c++/HybridOnramperNitroSpecSwift.hpp +5 -2
- package/nitrogen/generated/ios/swift/HybridOnramperNitroSpec.swift +1 -1
- package/nitrogen/generated/ios/swift/HybridOnramperNitroSpec_cxx.swift +6 -1
- package/nitrogen/generated/shared/c++/HybridOnramperNitroSpec.cpp +1 -0
- package/nitrogen/generated/shared/c++/HybridOnramperNitroSpec.hpp +2 -2
- package/package.json +2 -2
- package/src/OnramperClient.ts +13 -0
- package/src/specs/OnramperNitro.nitro.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.3.1]
|
|
6
|
+
|
|
7
|
+
Bundles `OnramperSDK@1.3.1` from its published, checksum-verified release.
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
|
|
11
|
+
- **Runtime native SDK version.** `OnramperClient.sdkVersion` returns the iOS SDK
|
|
12
|
+
version actually loaded by the app, as plain semver (for example, `"1.3.1"`).
|
|
13
|
+
It is synchronous and read-only, and requires no client instance, credentials,
|
|
14
|
+
or initialization. Use it in diagnostics, analytics, or a support screen.
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
const sdkVersion = OnramperClient.sdkVersion;
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
This reports the native SDK version, not the React Native package or app
|
|
21
|
+
version. Do not infer it from the framework bundle's version fields.
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- The bare RN demo's Settings screen now reads the SDK version from native code
|
|
26
|
+
instead of inferring it from the JavaScript package version. The Expo demo
|
|
27
|
+
also shows the native SDK version in its build information.
|
|
28
|
+
- The bare RN demo records TestFlight build number 2 and declares its use of
|
|
29
|
+
exempt encryption in `Info.plist`, avoiding a repeated encryption questionnaire
|
|
30
|
+
for future uploads. Already uploaded builds still need their declaration in
|
|
31
|
+
App Store Connect.
|
|
32
|
+
|
|
33
|
+
### Upgrading from 1.3.0
|
|
34
|
+
|
|
35
|
+
- Existing checkout, event, error, and logging APIs are unchanged. No existing
|
|
36
|
+
call sites need to change; the runtime version property is optional and iOS-only.
|
|
37
|
+
- Run `pod install` and rebuild the native app after updating the package. A
|
|
38
|
+
JavaScript-only update cannot add the native version getter.
|
|
39
|
+
|
|
5
40
|
## [1.3.0]
|
|
6
41
|
|
|
7
42
|
Bundles the published, checksum-verified `OnramperSDK@1.3.0` for iOS.
|
package/README.md
CHANGED
|
@@ -147,6 +147,24 @@ See [debugging](docs/DEBUGGING.md) for the record shape and retention guidance.
|
|
|
147
147
|
For migration details, including new enum cases and one-time OnramperID sign-in,
|
|
148
148
|
see [1.3.0 release notes](CHANGELOG.md#130).
|
|
149
149
|
|
|
150
|
+
## Runtime SDK version
|
|
151
|
+
|
|
152
|
+
Read `OnramperClient.sdkVersion` to identify the native iOS SDK loaded by the app:
|
|
153
|
+
|
|
154
|
+
```ts
|
|
155
|
+
import { OnramperClient } from '@onramper/onramper-react-native';
|
|
156
|
+
|
|
157
|
+
const sdkVersion = OnramperClient.sdkVersion; // e.g. "1.3.1"
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
This is a synchronous, read-only property. It needs no client instance, API key,
|
|
161
|
+
SDK session, or initialization. Use it in diagnostics and support screens;
|
|
162
|
+
read the RN package version separately from its `package.json`. Wrapper-only
|
|
163
|
+
releases can have a different version from their bundled native SDK.
|
|
164
|
+
|
|
165
|
+
Available on iOS with RN package 1.3.1 or newer. Run `pod install` and rebuild the
|
|
166
|
+
native app after upgrading; a JavaScript-only update cannot add the native getter.
|
|
167
|
+
|
|
150
168
|
## Versioning
|
|
151
169
|
|
|
152
170
|
`@onramper/onramper-react-native@X.Y.Z` always bundles `OnramperSDK@X.Y.Z` (iOS). Wrapper-only patches are published as `X.Y.Z-N` pre-releases (`npm install @onramper/onramper-react-native@next` to opt in).
|
|
Binary file
|
|
@@ -621,6 +621,9 @@ public struct OnramperConfiguration : Swift.Sendable {
|
|
|
621
621
|
public init(apiKey: Swift.String, clientId: Swift.String, environment: OnramperSDK.OnramperConfiguration.Environment = .production, theme: OnramperSDK.OnramperConfiguration.Theme = .system, logLevel: OnramperSDK.LogLevel = .off, logHandler: OnramperSDK.OnramperLogHandler? = nil, isEventLoggingEnabled: Swift.Bool = false, isEventConsoleLoggingEnabled: Swift.Bool = false, sessionExpirationHandler: @escaping @Sendable () async throws -> OnramperSDK.SessionCredentials)
|
|
622
622
|
#endif
|
|
623
623
|
}
|
|
624
|
+
extension OnramperSDK.OnramperClient {
|
|
625
|
+
nonisolated public static let sdkVersion: Swift.String
|
|
626
|
+
}
|
|
624
627
|
public enum OnramperState : Swift.Sendable {
|
|
625
628
|
case idle
|
|
626
629
|
case initializing
|
|
Binary file
|