@app-swiss-knife/react-native-sdk 0.2.0 → 0.2.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.
|
@@ -10,7 +10,22 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.homepage = "https://github.com/Remneys/swiss-knife"
|
|
11
11
|
s.license = "MIT"
|
|
12
12
|
s.authors = "App Swiss Knife"
|
|
13
|
-
|
|
13
|
+
# 15.1 == the React Native / Expo default `ios.deploymentTarget`, so this pod
|
|
14
|
+
# resolves in a stock app with no `expo-build-properties` override.
|
|
15
|
+
#
|
|
16
|
+
# This is deliberately NOT the `.iOS(.v16)` from the standalone SPM package
|
|
17
|
+
# (packages/swiss-knife-ios/Package.swift). That floor is an SPM-consumer
|
|
18
|
+
# contract; here the SDK's Swift is VENDORED and compiled in-tree, so the real
|
|
19
|
+
# floor is whatever the code needs. Verified empirically: the vendored sources
|
|
20
|
+
# compile clean at 15.1 and use no iOS 16 API. Everything StoreKit 2 is behind
|
|
21
|
+
# `@available(iOS 15.0, *)` (Services/PurchaseService.swift,
|
|
22
|
+
# Services/OfferingsService.swift), which is what sets the true floor —
|
|
23
|
+
# do not drop below 15.0 or the entire purchase path becomes dead code.
|
|
24
|
+
#
|
|
25
|
+
# Raising this number is a BREAKING change for consumers: CocoaPods fails
|
|
26
|
+
# resolution with "required a higher minimum deployment target" and the error
|
|
27
|
+
# never names the version. See integrations/claude-code-plugin/skills/setup.
|
|
28
|
+
s.platforms = { :ios => "15.1" }
|
|
14
29
|
s.source = { :git => "https://github.com/Remneys/swiss-knife.git", :tag => "#{s.version}" }
|
|
15
30
|
|
|
16
31
|
# `ios/**` covers BOTH the RN bridge files and the vendored native SDK under
|
|
@@ -42,7 +42,7 @@ internal object DeviceContextProvider {
|
|
|
42
42
|
* eventually inject this via `BuildConfig`, but for now keep it in
|
|
43
43
|
* source so we don't have to thread build settings through every test.
|
|
44
44
|
*/
|
|
45
|
-
const val SDK_VERSION: String = "0.2.
|
|
45
|
+
const val SDK_VERSION: String = "0.2.1"
|
|
46
46
|
|
|
47
47
|
private val cacheLock = Any()
|
|
48
48
|
|
|
@@ -99,7 +99,7 @@ internal enum DeviceContextProvider {
|
|
|
99
99
|
/// Round A baseline. The build pipeline (`swiss-build`) will eventually
|
|
100
100
|
/// inject this via `-D` flag, but for now keep it in source so we don't
|
|
101
101
|
/// have to thread build settings through the SPM Package.swift.
|
|
102
|
-
static let sdkVersionConstant: String = "0.2.
|
|
102
|
+
static let sdkVersionConstant: String = "0.2.1"
|
|
103
103
|
|
|
104
104
|
private static let cacheLock = DispatchQueue(label: "com.swissknife.context.device")
|
|
105
105
|
private static var cached: DeviceContext?
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@app-swiss-knife/react-native-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Subscriptions-only React Native SDK for App Swiss Knife — a drop-in replacement for RevenueCat's react-native-purchases public API.",
|
|
5
5
|
"source": "./src/index.ts",
|
|
6
6
|
"main": "./lib/commonjs/index.js",
|