@shortkitsdk/react-native 0.2.33 → 0.2.34

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.
Binary file
@@ -8,32 +8,32 @@
8
8
  <key>BinaryPath</key>
9
9
  <string>ShortKitSDK.framework/ShortKitSDK</string>
10
10
  <key>LibraryIdentifier</key>
11
- <string>ios-arm64_x86_64-simulator</string>
11
+ <string>ios-arm64</string>
12
12
  <key>LibraryPath</key>
13
13
  <string>ShortKitSDK.framework</string>
14
14
  <key>SupportedArchitectures</key>
15
15
  <array>
16
16
  <string>arm64</string>
17
- <string>x86_64</string>
18
17
  </array>
19
18
  <key>SupportedPlatform</key>
20
19
  <string>ios</string>
21
- <key>SupportedPlatformVariant</key>
22
- <string>simulator</string>
23
20
  </dict>
24
21
  <dict>
25
22
  <key>BinaryPath</key>
26
23
  <string>ShortKitSDK.framework/ShortKitSDK</string>
27
24
  <key>LibraryIdentifier</key>
28
- <string>ios-arm64</string>
25
+ <string>ios-arm64_x86_64-simulator</string>
29
26
  <key>LibraryPath</key>
30
27
  <string>ShortKitSDK.framework</string>
31
28
  <key>SupportedArchitectures</key>
32
29
  <array>
33
30
  <string>arm64</string>
31
+ <string>x86_64</string>
34
32
  </array>
35
33
  <key>SupportedPlatform</key>
36
34
  <string>ios</string>
35
+ <key>SupportedPlatformVariant</key>
36
+ <string>simulator</string>
37
37
  </dict>
38
38
  </array>
39
39
  <key>CFBundlePackageType</key>
@@ -11,9 +11,9 @@
11
11
  <key>CFBundlePackageType</key>
12
12
  <string>FMWK</string>
13
13
  <key>CFBundleVersion</key>
14
- <string>0.2.33</string>
14
+ <string>0.2.34</string>
15
15
  <key>CFBundleShortVersionString</key>
16
- <string>0.2.33</string>
16
+ <string>0.2.34</string>
17
17
  <key>MinimumOSVersion</key>
18
18
  <string>16.0</string>
19
19
  </dict>
@@ -52354,7 +52354,7 @@
52354
52354
  "kind": "StringLiteral",
52355
52355
  "offset": 154,
52356
52356
  "length": 8,
52357
- "value": "\"0.2.33\""
52357
+ "value": "\"0.2.34\""
52358
52358
  },
52359
52359
  {
52360
52360
  "filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/ShortKit.swift",
@@ -10,11 +10,11 @@
10
10
  </data>
11
11
  <key>Info.plist</key>
12
12
  <data>
13
- n0YLuilzX/YSi0+YLLdVwkcv7iY=
13
+ kXOjURx+Z1d6/6VN46mtXJY4tGs=
14
14
  </data>
15
15
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json</key>
16
16
  <data>
17
- bMjJDoSuuCRYFpWH3EhlvZ0CS50=
17
+ IFMuyXGMCXuNezRhYjKHLUu9xA4=
18
18
  </data>
19
19
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
20
20
  <data>
@@ -50,7 +50,7 @@
50
50
  <dict>
51
51
  <key>hash2</key>
52
52
  <data>
53
- G1RQHMm3BbfBLq07m9FgoUDszw3xw2Qb1+b9K0VYrr4=
53
+ N/7VIAsF7mG+qU52BV03Pbvk+uQA/UoDg7z3aLRvEm4=
54
54
  </data>
55
55
  </dict>
56
56
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
@@ -11,9 +11,9 @@
11
11
  <key>CFBundlePackageType</key>
12
12
  <string>FMWK</string>
13
13
  <key>CFBundleVersion</key>
14
- <string>0.2.33</string>
14
+ <string>0.2.34</string>
15
15
  <key>CFBundleShortVersionString</key>
16
- <string>0.2.33</string>
16
+ <string>0.2.34</string>
17
17
  <key>MinimumOSVersion</key>
18
18
  <string>16.0</string>
19
19
  </dict>
@@ -52354,7 +52354,7 @@
52354
52354
  "kind": "StringLiteral",
52355
52355
  "offset": 154,
52356
52356
  "length": 8,
52357
- "value": "\"0.2.33\""
52357
+ "value": "\"0.2.34\""
52358
52358
  },
52359
52359
  {
52360
52360
  "filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/ShortKit.swift",
@@ -52354,7 +52354,7 @@
52354
52354
  "kind": "StringLiteral",
52355
52355
  "offset": 154,
52356
52356
  "length": 8,
52357
- "value": "\"0.2.33\""
52357
+ "value": "\"0.2.34\""
52358
52358
  },
52359
52359
  {
52360
52360
  "filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/ShortKit.swift",
@@ -10,11 +10,11 @@
10
10
  </data>
11
11
  <key>Info.plist</key>
12
12
  <data>
13
- n0YLuilzX/YSi0+YLLdVwkcv7iY=
13
+ kXOjURx+Z1d6/6VN46mtXJY4tGs=
14
14
  </data>
15
15
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
16
16
  <data>
17
- bMjJDoSuuCRYFpWH3EhlvZ0CS50=
17
+ IFMuyXGMCXuNezRhYjKHLUu9xA4=
18
18
  </data>
19
19
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
20
20
  <data>
@@ -30,7 +30,7 @@
30
30
  </data>
31
31
  <key>Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
32
32
  <data>
33
- bMjJDoSuuCRYFpWH3EhlvZ0CS50=
33
+ IFMuyXGMCXuNezRhYjKHLUu9xA4=
34
34
  </data>
35
35
  <key>Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
36
36
  <data>
@@ -66,7 +66,7 @@
66
66
  <dict>
67
67
  <key>hash2</key>
68
68
  <data>
69
- G1RQHMm3BbfBLq07m9FgoUDszw3xw2Qb1+b9K0VYrr4=
69
+ N/7VIAsF7mG+qU52BV03Pbvk+uQA/UoDg7z3aLRvEm4=
70
70
  </data>
71
71
  </dict>
72
72
  <key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
@@ -94,7 +94,7 @@
94
94
  <dict>
95
95
  <key>hash2</key>
96
96
  <data>
97
- G1RQHMm3BbfBLq07m9FgoUDszw3xw2Qb1+b9K0VYrr4=
97
+ N/7VIAsF7mG+qU52BV03Pbvk+uQA/UoDg7z3aLRvEm4=
98
98
  </data>
99
99
  </dict>
100
100
  <key>Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
@@ -229,11 +229,17 @@ import ShortKitSDK
229
229
  let obj = try? JSONSerialization.jsonObject(with: data) as? [String: Any] else {
230
230
  return .none
231
231
  }
232
- // The serializer emits feedMask either as the string "none" or
233
- // as a {type, name} object both arrive nested as a sub-JSON
234
- // value (not stringified again, unlike feedConfig).
232
+ // The serializer emits feedMask either as the bare string "none"
233
+ // or as a {type, name} object. JSONSerialization.data rejects
234
+ // top-level fragments without .fragmentsAllowed and raises an
235
+ // Obj-C NSInvalidArgumentException — which `try?` cannot catch
236
+ // — so the String case must be handled before re-serializing.
235
237
  if let mask = obj["feedMask"] {
236
- if let data = try? JSONSerialization.data(withJSONObject: mask),
238
+ if mask is String {
239
+ return .none
240
+ }
241
+ if let dict = mask as? [String: Any],
242
+ let data = try? JSONSerialization.data(withJSONObject: dict),
237
243
  let json = String(data: data, encoding: .utf8) {
238
244
  return ShortKitBridge.parseFeedMask(json)
239
245
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shortkitsdk/react-native",
3
- "version": "0.2.33",
3
+ "version": "0.2.34",
4
4
  "description": "ShortKit React Native SDK — short-form video feed",
5
5
  "react-native": "src/index",
6
6
  "source": "src/index",