@shortkitsdk/react-native 0.2.39 → 0.2.41
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/android/libs/shortkit-release.aar +0 -0
- package/android/src/main/java/com/shortkit/reactnative/ShortKitBridge.kt +54 -0
- package/ios/ReactVideoCarouselOverlayHost.swift +10 -2
- package/ios/ShortKitSDK.xcframework/Info.plist +5 -5
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Info.plist +2 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json +24 -10
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +2 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface +2 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/_CodeSignature/CodeResources +9 -9
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Info.plist +2 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +24 -10
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +2 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +2 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +24 -10
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +2 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +2 -2
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/_CodeSignature/CodeResources +17 -17
- package/package.json +1 -1
- package/src/types.ts +6 -0
|
Binary file
|
|
@@ -160,6 +160,9 @@ class ShortKitBridge(
|
|
|
160
160
|
item.articleUrl?.let { put("articleUrl", it) }
|
|
161
161
|
item.commentCount?.let { put("commentCount", it) }
|
|
162
162
|
item.fallbackUrl?.let { put("fallbackUrl", it) }
|
|
163
|
+
item.videoWidth?.let { put("videoWidth", it) }
|
|
164
|
+
item.videoHeight?.let { put("videoHeight", it) }
|
|
165
|
+
item.aspectRatio?.let { put("aspectRatio", it) }
|
|
163
166
|
}
|
|
164
167
|
obj.toString()
|
|
165
168
|
} catch (_: Exception) {
|
|
@@ -502,12 +505,60 @@ class ShortKitBridge(
|
|
|
502
505
|
streamingUrl = streamingUrl,
|
|
503
506
|
thumbnailUrl = thumbnailUrl,
|
|
504
507
|
captionTracks = emptyList(),
|
|
508
|
+
customMetadata = parseCustomMetadata(obj.optJSONObject("customMetadata")),
|
|
505
509
|
author = obj.optString("author", null),
|
|
506
510
|
articleUrl = obj.optString("articleUrl", null),
|
|
507
511
|
fallbackUrl = obj.optString("fallbackUrl", null),
|
|
512
|
+
videoWidth = obj.optPositiveInt("videoWidth") ?: obj.optPositiveInt("width"),
|
|
513
|
+
videoHeight = obj.optPositiveInt("videoHeight") ?: obj.optPositiveInt("height"),
|
|
514
|
+
aspectRatio = obj.optPositiveDouble("aspectRatio"),
|
|
508
515
|
)
|
|
509
516
|
}
|
|
510
517
|
|
|
518
|
+
private fun JSONObject.optPositiveInt(key: String): Int? {
|
|
519
|
+
if (!has(key) || isNull(key)) return null
|
|
520
|
+
val value = when (val raw = opt(key)) {
|
|
521
|
+
is Number -> raw.toDouble()
|
|
522
|
+
is String -> raw.toDoubleOrNull()
|
|
523
|
+
else -> null
|
|
524
|
+
} ?: return null
|
|
525
|
+
val intValue = value.toInt()
|
|
526
|
+
return intValue.takeIf { value > 0.0 && intValue > 0 }
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
private fun JSONObject.optPositiveDouble(key: String): Double? {
|
|
530
|
+
if (!has(key) || isNull(key)) return null
|
|
531
|
+
val value = when (val raw = opt(key)) {
|
|
532
|
+
is Number -> raw.toDouble()
|
|
533
|
+
is String -> raw.toDoubleOrNull()
|
|
534
|
+
else -> null
|
|
535
|
+
} ?: return null
|
|
536
|
+
return value.takeIf { it > 0.0 && !it.isNaN() && !it.isInfinite() }
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
private fun parseCustomMetadata(obj: JSONObject?): Map<String, JsonValue>? {
|
|
540
|
+
obj ?: return null
|
|
541
|
+
val result = mutableMapOf<String, JsonValue>()
|
|
542
|
+
val keys = obj.keys()
|
|
543
|
+
while (keys.hasNext()) {
|
|
544
|
+
val key = keys.next()
|
|
545
|
+
result[key] = jsonAnyToJsonValue(obj.opt(key))
|
|
546
|
+
}
|
|
547
|
+
return result.ifEmpty { null }
|
|
548
|
+
}
|
|
549
|
+
|
|
550
|
+
private fun jsonAnyToJsonValue(value: Any?): JsonValue {
|
|
551
|
+
return when (value) {
|
|
552
|
+
null, JSONObject.NULL -> JsonValue.NullValue
|
|
553
|
+
is String -> JsonValue.StringValue(value)
|
|
554
|
+
is Number -> JsonValue.NumberValue(value.toDouble())
|
|
555
|
+
is Boolean -> JsonValue.BoolValue(value)
|
|
556
|
+
is JSONObject -> JsonValue.ObjectValue(parseCustomMetadata(value).orEmpty())
|
|
557
|
+
is JSONArray -> JsonValue.NullValue
|
|
558
|
+
else -> JsonValue.StringValue(value.toString())
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
|
|
511
562
|
private fun buildCaptionTracksJSONArray(tracks: List<CaptionTrack>): JSONArray {
|
|
512
563
|
val arr = JSONArray()
|
|
513
564
|
for (track in tracks) {
|
|
@@ -1251,6 +1302,9 @@ class ShortKitBridge(
|
|
|
1251
1302
|
item.articleUrl?.let { putString("articleUrl", it) }
|
|
1252
1303
|
item.commentCount?.let { putInt("commentCount", it) }
|
|
1253
1304
|
item.fallbackUrl?.let { putString("fallbackUrl", it) }
|
|
1305
|
+
item.videoWidth?.let { putInt("videoWidth", it) }
|
|
1306
|
+
item.videoHeight?.let { putInt("videoHeight", it) }
|
|
1307
|
+
item.aspectRatio?.let { putDouble("aspectRatio", it) }
|
|
1254
1308
|
}
|
|
1255
1309
|
}
|
|
1256
1310
|
|
|
@@ -127,7 +127,7 @@ import ShortKitSDK
|
|
|
127
127
|
if !hasPushedInitialProps {
|
|
128
128
|
let props = buildInitialProps(item: item, json: json)
|
|
129
129
|
if let surface {
|
|
130
|
-
surface.setProperties(props)
|
|
130
|
+
surface.setProperties(propsWithCurrentPlaybackState(props))
|
|
131
131
|
hasPushedInitialProps = true
|
|
132
132
|
} else {
|
|
133
133
|
pendingProps = props
|
|
@@ -412,7 +412,7 @@ import ShortKitSDK
|
|
|
412
412
|
|
|
413
413
|
// Flush any props that arrived before surface was ready
|
|
414
414
|
if let pending = pendingProps {
|
|
415
|
-
surf.setProperties(pending)
|
|
415
|
+
surf.setProperties(propsWithCurrentPlaybackState(pending))
|
|
416
416
|
pendingProps = nil
|
|
417
417
|
hasPushedInitialProps = true
|
|
418
418
|
}
|
|
@@ -438,6 +438,14 @@ import ShortKitSDK
|
|
|
438
438
|
|
|
439
439
|
// MARK: - Helpers
|
|
440
440
|
|
|
441
|
+
private func propsWithCurrentPlaybackState(_ props: [String: Any]) -> [String: Any] {
|
|
442
|
+
var refreshed = props
|
|
443
|
+
refreshed["isActive"] = isActive
|
|
444
|
+
refreshed["playerState"] = cachedPlayerState
|
|
445
|
+
refreshed["isMuted"] = cachedIsMuted
|
|
446
|
+
return refreshed
|
|
447
|
+
}
|
|
448
|
+
|
|
441
449
|
private static func playerStateString(_ state: PlayerState) -> String {
|
|
442
450
|
switch state {
|
|
443
451
|
case .idle: return "idle"
|
|
@@ -8,32 +8,32 @@
|
|
|
8
8
|
<key>BinaryPath</key>
|
|
9
9
|
<string>ShortKitSDK.framework/ShortKitSDK</string>
|
|
10
10
|
<key>LibraryIdentifier</key>
|
|
11
|
-
<string>ios-
|
|
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-
|
|
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.
|
|
14
|
+
<string>0.2.41</string>
|
|
15
15
|
<key>CFBundleShortVersionString</key>
|
|
16
|
-
<string>0.2.
|
|
16
|
+
<string>0.2.41</string>
|
|
17
17
|
<key>MinimumOSVersion</key>
|
|
18
18
|
<string>16.0</string>
|
|
19
19
|
</dict>
|
|
@@ -22629,17 +22629,24 @@
|
|
|
22629
22629
|
{
|
|
22630
22630
|
"kind": "Function",
|
|
22631
22631
|
"name": "activate",
|
|
22632
|
-
"printedName": "activate()",
|
|
22632
|
+
"printedName": "activate(caller:)",
|
|
22633
22633
|
"children": [
|
|
22634
22634
|
{
|
|
22635
22635
|
"kind": "TypeNominal",
|
|
22636
22636
|
"name": "Void",
|
|
22637
22637
|
"printedName": "()"
|
|
22638
|
+
},
|
|
22639
|
+
{
|
|
22640
|
+
"kind": "TypeNominal",
|
|
22641
|
+
"name": "String",
|
|
22642
|
+
"printedName": "Swift.String",
|
|
22643
|
+
"hasDefaultArg": true,
|
|
22644
|
+
"usr": "s:SS"
|
|
22638
22645
|
}
|
|
22639
22646
|
],
|
|
22640
22647
|
"declKind": "Func",
|
|
22641
|
-
"usr": "s:
|
|
22642
|
-
"mangledName": "$
|
|
22648
|
+
"usr": "s:11ShortKitSDK0aB18FeedViewControllerC8activate6callerySS_tF",
|
|
22649
|
+
"mangledName": "$s11ShortKitSDK0aB18FeedViewControllerC8activate6callerySS_tF",
|
|
22643
22650
|
"moduleName": "ShortKitSDK",
|
|
22644
22651
|
"declAttributes": [
|
|
22645
22652
|
"Preconcurrency",
|
|
@@ -22651,17 +22658,24 @@
|
|
|
22651
22658
|
{
|
|
22652
22659
|
"kind": "Function",
|
|
22653
22660
|
"name": "deactivate",
|
|
22654
|
-
"printedName": "deactivate()",
|
|
22661
|
+
"printedName": "deactivate(caller:)",
|
|
22655
22662
|
"children": [
|
|
22656
22663
|
{
|
|
22657
22664
|
"kind": "TypeNominal",
|
|
22658
22665
|
"name": "Void",
|
|
22659
22666
|
"printedName": "()"
|
|
22667
|
+
},
|
|
22668
|
+
{
|
|
22669
|
+
"kind": "TypeNominal",
|
|
22670
|
+
"name": "String",
|
|
22671
|
+
"printedName": "Swift.String",
|
|
22672
|
+
"hasDefaultArg": true,
|
|
22673
|
+
"usr": "s:SS"
|
|
22660
22674
|
}
|
|
22661
22675
|
],
|
|
22662
22676
|
"declKind": "Func",
|
|
22663
|
-
"usr": "s:
|
|
22664
|
-
"mangledName": "$
|
|
22677
|
+
"usr": "s:11ShortKitSDK0aB18FeedViewControllerC10deactivate6callerySS_tF",
|
|
22678
|
+
"mangledName": "$s11ShortKitSDK0aB18FeedViewControllerC10deactivate6callerySS_tF",
|
|
22665
22679
|
"moduleName": "ShortKitSDK",
|
|
22666
22680
|
"declAttributes": [
|
|
22667
22681
|
"Preconcurrency",
|
|
@@ -52612,21 +52626,21 @@
|
|
|
52612
52626
|
{
|
|
52613
52627
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedViewController.swift",
|
|
52614
52628
|
"kind": "BooleanLiteral",
|
|
52615
|
-
"offset":
|
|
52629
|
+
"offset": 126724,
|
|
52616
52630
|
"length": 5,
|
|
52617
52631
|
"value": "false"
|
|
52618
52632
|
},
|
|
52619
52633
|
{
|
|
52620
52634
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedViewController.swift",
|
|
52621
52635
|
"kind": "BooleanLiteral",
|
|
52622
|
-
"offset":
|
|
52636
|
+
"offset": 256197,
|
|
52623
52637
|
"length": 5,
|
|
52624
52638
|
"value": "false"
|
|
52625
52639
|
},
|
|
52626
52640
|
{
|
|
52627
52641
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedViewController.swift",
|
|
52628
52642
|
"kind": "BooleanLiteral",
|
|
52629
|
-
"offset":
|
|
52643
|
+
"offset": 266902,
|
|
52630
52644
|
"length": 5,
|
|
52631
52645
|
"value": "false"
|
|
52632
52646
|
},
|
|
@@ -53517,7 +53531,7 @@
|
|
|
53517
53531
|
"kind": "StringLiteral",
|
|
53518
53532
|
"offset": 154,
|
|
53519
53533
|
"length": 8,
|
|
53520
|
-
"value": "\"0.2.
|
|
53534
|
+
"value": "\"0.2.41\""
|
|
53521
53535
|
},
|
|
53522
53536
|
{
|
|
53523
53537
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/ShortKit.swift",
|
|
@@ -600,8 +600,8 @@ public enum VideoCarouselCellLongPressState : Swift.String {
|
|
|
600
600
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillDisappear(_ animated: Swift.Bool)
|
|
601
601
|
@available(*, deprecated, message: "Pass lifecycle: .manual to ShortKitFeedViewController's initializer instead.")
|
|
602
602
|
@_Concurrency.MainActor @preconcurrency public func setBridgeManaged()
|
|
603
|
-
@_Concurrency.MainActor @preconcurrency public func activate()
|
|
604
|
-
@_Concurrency.MainActor @preconcurrency public func deactivate()
|
|
603
|
+
@_Concurrency.MainActor @preconcurrency public func activate(caller: Swift.String = #function)
|
|
604
|
+
@_Concurrency.MainActor @preconcurrency public func deactivate(caller: Swift.String = #function)
|
|
605
605
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidDisappear(_ animated: Swift.Bool)
|
|
606
606
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
|
|
607
607
|
@objc get
|
|
Binary file
|
|
@@ -600,8 +600,8 @@ public enum VideoCarouselCellLongPressState : Swift.String {
|
|
|
600
600
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillDisappear(_ animated: Swift.Bool)
|
|
601
601
|
@available(*, deprecated, message: "Pass lifecycle: .manual to ShortKitFeedViewController's initializer instead.")
|
|
602
602
|
@_Concurrency.MainActor @preconcurrency public func setBridgeManaged()
|
|
603
|
-
@_Concurrency.MainActor @preconcurrency public func activate()
|
|
604
|
-
@_Concurrency.MainActor @preconcurrency public func deactivate()
|
|
603
|
+
@_Concurrency.MainActor @preconcurrency public func activate(caller: Swift.String = #function)
|
|
604
|
+
@_Concurrency.MainActor @preconcurrency public func deactivate(caller: Swift.String = #function)
|
|
605
605
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidDisappear(_ animated: Swift.Bool)
|
|
606
606
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
|
|
607
607
|
@objc get
|
|
Binary file
|
package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/_CodeSignature/CodeResources
CHANGED
|
@@ -10,23 +10,23 @@
|
|
|
10
10
|
</data>
|
|
11
11
|
<key>Info.plist</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
V9J9eMGWzaliMW0uQsJyoH3jGBc=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json</key>
|
|
16
16
|
<data>
|
|
17
|
-
|
|
17
|
+
qcZLEr1R9JNuG9FMnjRA9ZgLOnY=
|
|
18
18
|
</data>
|
|
19
19
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
20
20
|
<data>
|
|
21
|
-
|
|
21
|
+
9FqsjTg24DzaleUB7JnSq8UQqsY=
|
|
22
22
|
</data>
|
|
23
23
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
WDYFmyxlo+9gLMt6pL15d/2NK5w=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
9FqsjTg24DzaleUB7JnSq8UQqsY=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/module.modulemap</key>
|
|
32
32
|
<data>
|
|
@@ -50,28 +50,28 @@
|
|
|
50
50
|
<dict>
|
|
51
51
|
<key>hash2</key>
|
|
52
52
|
<data>
|
|
53
|
-
|
|
53
|
+
CyjNRWcvyZshsrzm2gQaIOQz+vcv68Ydb91m3UtqKGY=
|
|
54
54
|
</data>
|
|
55
55
|
</dict>
|
|
56
56
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface</key>
|
|
57
57
|
<dict>
|
|
58
58
|
<key>hash2</key>
|
|
59
59
|
<data>
|
|
60
|
-
|
|
60
|
+
eZ8oFee1rUs7ne3rIUBvSKdlQGoaO+7wds7ouBenXQM=
|
|
61
61
|
</data>
|
|
62
62
|
</dict>
|
|
63
63
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc</key>
|
|
64
64
|
<dict>
|
|
65
65
|
<key>hash2</key>
|
|
66
66
|
<data>
|
|
67
|
-
|
|
67
|
+
Fbc2YsVV3eEvWzjX2AhdqAZOrrqNyD/dVZR0rjVgDxQ=
|
|
68
68
|
</data>
|
|
69
69
|
</dict>
|
|
70
70
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface</key>
|
|
71
71
|
<dict>
|
|
72
72
|
<key>hash2</key>
|
|
73
73
|
<data>
|
|
74
|
-
|
|
74
|
+
eZ8oFee1rUs7ne3rIUBvSKdlQGoaO+7wds7ouBenXQM=
|
|
75
75
|
</data>
|
|
76
76
|
</dict>
|
|
77
77
|
<key>Modules/module.modulemap</key>
|
package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Info.plist
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
<key>CFBundlePackageType</key>
|
|
12
12
|
<string>FMWK</string>
|
|
13
13
|
<key>CFBundleVersion</key>
|
|
14
|
-
<string>0.2.
|
|
14
|
+
<string>0.2.41</string>
|
|
15
15
|
<key>CFBundleShortVersionString</key>
|
|
16
|
-
<string>0.2.
|
|
16
|
+
<string>0.2.41</string>
|
|
17
17
|
<key>MinimumOSVersion</key>
|
|
18
18
|
<string>16.0</string>
|
|
19
19
|
</dict>
|
|
@@ -22629,17 +22629,24 @@
|
|
|
22629
22629
|
{
|
|
22630
22630
|
"kind": "Function",
|
|
22631
22631
|
"name": "activate",
|
|
22632
|
-
"printedName": "activate()",
|
|
22632
|
+
"printedName": "activate(caller:)",
|
|
22633
22633
|
"children": [
|
|
22634
22634
|
{
|
|
22635
22635
|
"kind": "TypeNominal",
|
|
22636
22636
|
"name": "Void",
|
|
22637
22637
|
"printedName": "()"
|
|
22638
|
+
},
|
|
22639
|
+
{
|
|
22640
|
+
"kind": "TypeNominal",
|
|
22641
|
+
"name": "String",
|
|
22642
|
+
"printedName": "Swift.String",
|
|
22643
|
+
"hasDefaultArg": true,
|
|
22644
|
+
"usr": "s:SS"
|
|
22638
22645
|
}
|
|
22639
22646
|
],
|
|
22640
22647
|
"declKind": "Func",
|
|
22641
|
-
"usr": "s:
|
|
22642
|
-
"mangledName": "$
|
|
22648
|
+
"usr": "s:11ShortKitSDK0aB18FeedViewControllerC8activate6callerySS_tF",
|
|
22649
|
+
"mangledName": "$s11ShortKitSDK0aB18FeedViewControllerC8activate6callerySS_tF",
|
|
22643
22650
|
"moduleName": "ShortKitSDK",
|
|
22644
22651
|
"declAttributes": [
|
|
22645
22652
|
"Preconcurrency",
|
|
@@ -22651,17 +22658,24 @@
|
|
|
22651
22658
|
{
|
|
22652
22659
|
"kind": "Function",
|
|
22653
22660
|
"name": "deactivate",
|
|
22654
|
-
"printedName": "deactivate()",
|
|
22661
|
+
"printedName": "deactivate(caller:)",
|
|
22655
22662
|
"children": [
|
|
22656
22663
|
{
|
|
22657
22664
|
"kind": "TypeNominal",
|
|
22658
22665
|
"name": "Void",
|
|
22659
22666
|
"printedName": "()"
|
|
22667
|
+
},
|
|
22668
|
+
{
|
|
22669
|
+
"kind": "TypeNominal",
|
|
22670
|
+
"name": "String",
|
|
22671
|
+
"printedName": "Swift.String",
|
|
22672
|
+
"hasDefaultArg": true,
|
|
22673
|
+
"usr": "s:SS"
|
|
22660
22674
|
}
|
|
22661
22675
|
],
|
|
22662
22676
|
"declKind": "Func",
|
|
22663
|
-
"usr": "s:
|
|
22664
|
-
"mangledName": "$
|
|
22677
|
+
"usr": "s:11ShortKitSDK0aB18FeedViewControllerC10deactivate6callerySS_tF",
|
|
22678
|
+
"mangledName": "$s11ShortKitSDK0aB18FeedViewControllerC10deactivate6callerySS_tF",
|
|
22665
22679
|
"moduleName": "ShortKitSDK",
|
|
22666
22680
|
"declAttributes": [
|
|
22667
22681
|
"Preconcurrency",
|
|
@@ -52612,21 +52626,21 @@
|
|
|
52612
52626
|
{
|
|
52613
52627
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedViewController.swift",
|
|
52614
52628
|
"kind": "BooleanLiteral",
|
|
52615
|
-
"offset":
|
|
52629
|
+
"offset": 126724,
|
|
52616
52630
|
"length": 5,
|
|
52617
52631
|
"value": "false"
|
|
52618
52632
|
},
|
|
52619
52633
|
{
|
|
52620
52634
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedViewController.swift",
|
|
52621
52635
|
"kind": "BooleanLiteral",
|
|
52622
|
-
"offset":
|
|
52636
|
+
"offset": 256197,
|
|
52623
52637
|
"length": 5,
|
|
52624
52638
|
"value": "false"
|
|
52625
52639
|
},
|
|
52626
52640
|
{
|
|
52627
52641
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedViewController.swift",
|
|
52628
52642
|
"kind": "BooleanLiteral",
|
|
52629
|
-
"offset":
|
|
52643
|
+
"offset": 266902,
|
|
52630
52644
|
"length": 5,
|
|
52631
52645
|
"value": "false"
|
|
52632
52646
|
},
|
|
@@ -53517,7 +53531,7 @@
|
|
|
53517
53531
|
"kind": "StringLiteral",
|
|
53518
53532
|
"offset": 154,
|
|
53519
53533
|
"length": 8,
|
|
53520
|
-
"value": "\"0.2.
|
|
53534
|
+
"value": "\"0.2.41\""
|
|
53521
53535
|
},
|
|
53522
53536
|
{
|
|
53523
53537
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/ShortKit.swift",
|
|
@@ -600,8 +600,8 @@ public enum VideoCarouselCellLongPressState : Swift.String {
|
|
|
600
600
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillDisappear(_ animated: Swift.Bool)
|
|
601
601
|
@available(*, deprecated, message: "Pass lifecycle: .manual to ShortKitFeedViewController's initializer instead.")
|
|
602
602
|
@_Concurrency.MainActor @preconcurrency public func setBridgeManaged()
|
|
603
|
-
@_Concurrency.MainActor @preconcurrency public func activate()
|
|
604
|
-
@_Concurrency.MainActor @preconcurrency public func deactivate()
|
|
603
|
+
@_Concurrency.MainActor @preconcurrency public func activate(caller: Swift.String = #function)
|
|
604
|
+
@_Concurrency.MainActor @preconcurrency public func deactivate(caller: Swift.String = #function)
|
|
605
605
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidDisappear(_ animated: Swift.Bool)
|
|
606
606
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
|
|
607
607
|
@objc get
|
|
Binary file
|
|
@@ -600,8 +600,8 @@ public enum VideoCarouselCellLongPressState : Swift.String {
|
|
|
600
600
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillDisappear(_ animated: Swift.Bool)
|
|
601
601
|
@available(*, deprecated, message: "Pass lifecycle: .manual to ShortKitFeedViewController's initializer instead.")
|
|
602
602
|
@_Concurrency.MainActor @preconcurrency public func setBridgeManaged()
|
|
603
|
-
@_Concurrency.MainActor @preconcurrency public func activate()
|
|
604
|
-
@_Concurrency.MainActor @preconcurrency public func deactivate()
|
|
603
|
+
@_Concurrency.MainActor @preconcurrency public func activate(caller: Swift.String = #function)
|
|
604
|
+
@_Concurrency.MainActor @preconcurrency public func deactivate(caller: Swift.String = #function)
|
|
605
605
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidDisappear(_ animated: Swift.Bool)
|
|
606
606
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
|
|
607
607
|
@objc get
|
|
@@ -22629,17 +22629,24 @@
|
|
|
22629
22629
|
{
|
|
22630
22630
|
"kind": "Function",
|
|
22631
22631
|
"name": "activate",
|
|
22632
|
-
"printedName": "activate()",
|
|
22632
|
+
"printedName": "activate(caller:)",
|
|
22633
22633
|
"children": [
|
|
22634
22634
|
{
|
|
22635
22635
|
"kind": "TypeNominal",
|
|
22636
22636
|
"name": "Void",
|
|
22637
22637
|
"printedName": "()"
|
|
22638
|
+
},
|
|
22639
|
+
{
|
|
22640
|
+
"kind": "TypeNominal",
|
|
22641
|
+
"name": "String",
|
|
22642
|
+
"printedName": "Swift.String",
|
|
22643
|
+
"hasDefaultArg": true,
|
|
22644
|
+
"usr": "s:SS"
|
|
22638
22645
|
}
|
|
22639
22646
|
],
|
|
22640
22647
|
"declKind": "Func",
|
|
22641
|
-
"usr": "s:
|
|
22642
|
-
"mangledName": "$
|
|
22648
|
+
"usr": "s:11ShortKitSDK0aB18FeedViewControllerC8activate6callerySS_tF",
|
|
22649
|
+
"mangledName": "$s11ShortKitSDK0aB18FeedViewControllerC8activate6callerySS_tF",
|
|
22643
22650
|
"moduleName": "ShortKitSDK",
|
|
22644
22651
|
"declAttributes": [
|
|
22645
22652
|
"Preconcurrency",
|
|
@@ -22651,17 +22658,24 @@
|
|
|
22651
22658
|
{
|
|
22652
22659
|
"kind": "Function",
|
|
22653
22660
|
"name": "deactivate",
|
|
22654
|
-
"printedName": "deactivate()",
|
|
22661
|
+
"printedName": "deactivate(caller:)",
|
|
22655
22662
|
"children": [
|
|
22656
22663
|
{
|
|
22657
22664
|
"kind": "TypeNominal",
|
|
22658
22665
|
"name": "Void",
|
|
22659
22666
|
"printedName": "()"
|
|
22667
|
+
},
|
|
22668
|
+
{
|
|
22669
|
+
"kind": "TypeNominal",
|
|
22670
|
+
"name": "String",
|
|
22671
|
+
"printedName": "Swift.String",
|
|
22672
|
+
"hasDefaultArg": true,
|
|
22673
|
+
"usr": "s:SS"
|
|
22660
22674
|
}
|
|
22661
22675
|
],
|
|
22662
22676
|
"declKind": "Func",
|
|
22663
|
-
"usr": "s:
|
|
22664
|
-
"mangledName": "$
|
|
22677
|
+
"usr": "s:11ShortKitSDK0aB18FeedViewControllerC10deactivate6callerySS_tF",
|
|
22678
|
+
"mangledName": "$s11ShortKitSDK0aB18FeedViewControllerC10deactivate6callerySS_tF",
|
|
22665
22679
|
"moduleName": "ShortKitSDK",
|
|
22666
22680
|
"declAttributes": [
|
|
22667
22681
|
"Preconcurrency",
|
|
@@ -52612,21 +52626,21 @@
|
|
|
52612
52626
|
{
|
|
52613
52627
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedViewController.swift",
|
|
52614
52628
|
"kind": "BooleanLiteral",
|
|
52615
|
-
"offset":
|
|
52629
|
+
"offset": 126724,
|
|
52616
52630
|
"length": 5,
|
|
52617
52631
|
"value": "false"
|
|
52618
52632
|
},
|
|
52619
52633
|
{
|
|
52620
52634
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedViewController.swift",
|
|
52621
52635
|
"kind": "BooleanLiteral",
|
|
52622
|
-
"offset":
|
|
52636
|
+
"offset": 256197,
|
|
52623
52637
|
"length": 5,
|
|
52624
52638
|
"value": "false"
|
|
52625
52639
|
},
|
|
52626
52640
|
{
|
|
52627
52641
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedViewController.swift",
|
|
52628
52642
|
"kind": "BooleanLiteral",
|
|
52629
|
-
"offset":
|
|
52643
|
+
"offset": 266902,
|
|
52630
52644
|
"length": 5,
|
|
52631
52645
|
"value": "false"
|
|
52632
52646
|
},
|
|
@@ -53517,7 +53531,7 @@
|
|
|
53517
53531
|
"kind": "StringLiteral",
|
|
53518
53532
|
"offset": 154,
|
|
53519
53533
|
"length": 8,
|
|
53520
|
-
"value": "\"0.2.
|
|
53534
|
+
"value": "\"0.2.41\""
|
|
53521
53535
|
},
|
|
53522
53536
|
{
|
|
53523
53537
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/ShortKit.swift",
|
|
@@ -600,8 +600,8 @@ public enum VideoCarouselCellLongPressState : Swift.String {
|
|
|
600
600
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillDisappear(_ animated: Swift.Bool)
|
|
601
601
|
@available(*, deprecated, message: "Pass lifecycle: .manual to ShortKitFeedViewController's initializer instead.")
|
|
602
602
|
@_Concurrency.MainActor @preconcurrency public func setBridgeManaged()
|
|
603
|
-
@_Concurrency.MainActor @preconcurrency public func activate()
|
|
604
|
-
@_Concurrency.MainActor @preconcurrency public func deactivate()
|
|
603
|
+
@_Concurrency.MainActor @preconcurrency public func activate(caller: Swift.String = #function)
|
|
604
|
+
@_Concurrency.MainActor @preconcurrency public func deactivate(caller: Swift.String = #function)
|
|
605
605
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidDisappear(_ animated: Swift.Bool)
|
|
606
606
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
|
|
607
607
|
@objc get
|
|
Binary file
|
|
@@ -600,8 +600,8 @@ public enum VideoCarouselCellLongPressState : Swift.String {
|
|
|
600
600
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewWillDisappear(_ animated: Swift.Bool)
|
|
601
601
|
@available(*, deprecated, message: "Pass lifecycle: .manual to ShortKitFeedViewController's initializer instead.")
|
|
602
602
|
@_Concurrency.MainActor @preconcurrency public func setBridgeManaged()
|
|
603
|
-
@_Concurrency.MainActor @preconcurrency public func activate()
|
|
604
|
-
@_Concurrency.MainActor @preconcurrency public func deactivate()
|
|
603
|
+
@_Concurrency.MainActor @preconcurrency public func activate(caller: Swift.String = #function)
|
|
604
|
+
@_Concurrency.MainActor @preconcurrency public func deactivate(caller: Swift.String = #function)
|
|
605
605
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public func viewDidDisappear(_ animated: Swift.Bool)
|
|
606
606
|
@_Concurrency.MainActor @preconcurrency @objc override dynamic public var supportedInterfaceOrientations: UIKit.UIInterfaceOrientationMask {
|
|
607
607
|
@objc get
|
package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/ShortKitSDK
CHANGED
|
Binary file
|
|
@@ -10,39 +10,39 @@
|
|
|
10
10
|
</data>
|
|
11
11
|
<key>Info.plist</key>
|
|
12
12
|
<data>
|
|
13
|
-
|
|
13
|
+
V9J9eMGWzaliMW0uQsJyoH3jGBc=
|
|
14
14
|
</data>
|
|
15
15
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.abi.json</key>
|
|
16
16
|
<data>
|
|
17
|
-
|
|
17
|
+
qcZLEr1R9JNuG9FMnjRA9ZgLOnY=
|
|
18
18
|
</data>
|
|
19
19
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
20
20
|
<data>
|
|
21
|
-
|
|
21
|
+
kMD88dAC4/UAXQveBEVyu416rZk=
|
|
22
22
|
</data>
|
|
23
23
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
24
24
|
<data>
|
|
25
|
-
|
|
25
|
+
VOTbFDsFlUk+zeSbdHV3CUJ4sbs=
|
|
26
26
|
</data>
|
|
27
27
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
28
28
|
<data>
|
|
29
|
-
|
|
29
|
+
kMD88dAC4/UAXQveBEVyu416rZk=
|
|
30
30
|
</data>
|
|
31
31
|
<key>Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
32
32
|
<data>
|
|
33
|
-
|
|
33
|
+
qcZLEr1R9JNuG9FMnjRA9ZgLOnY=
|
|
34
34
|
</data>
|
|
35
35
|
<key>Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
36
36
|
<data>
|
|
37
|
-
|
|
37
|
+
S7MSFMJ213kJdVpeQfSzi4JI0aY=
|
|
38
38
|
</data>
|
|
39
39
|
<key>Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
40
40
|
<data>
|
|
41
|
-
|
|
41
|
+
fULOA1HVzJwVPDNXTIp5uNMx9R8=
|
|
42
42
|
</data>
|
|
43
43
|
<key>Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
44
44
|
<data>
|
|
45
|
-
|
|
45
|
+
S7MSFMJ213kJdVpeQfSzi4JI0aY=
|
|
46
46
|
</data>
|
|
47
47
|
<key>Modules/module.modulemap</key>
|
|
48
48
|
<data>
|
|
@@ -66,56 +66,56 @@
|
|
|
66
66
|
<dict>
|
|
67
67
|
<key>hash2</key>
|
|
68
68
|
<data>
|
|
69
|
-
|
|
69
|
+
CyjNRWcvyZshsrzm2gQaIOQz+vcv68Ydb91m3UtqKGY=
|
|
70
70
|
</data>
|
|
71
71
|
</dict>
|
|
72
72
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface</key>
|
|
73
73
|
<dict>
|
|
74
74
|
<key>hash2</key>
|
|
75
75
|
<data>
|
|
76
|
-
|
|
76
|
+
4q40ucTr1qUkFbVYoihDDoBnnICmQ/lO/7JH1WKQzcw=
|
|
77
77
|
</data>
|
|
78
78
|
</dict>
|
|
79
79
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
|
|
80
80
|
<dict>
|
|
81
81
|
<key>hash2</key>
|
|
82
82
|
<data>
|
|
83
|
-
|
|
83
|
+
dKQ8XFw0Is3GUAQat76xrMwYPR/5ZRiZoANThtyA56Q=
|
|
84
84
|
</data>
|
|
85
85
|
</dict>
|
|
86
86
|
<key>Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
|
|
87
87
|
<dict>
|
|
88
88
|
<key>hash2</key>
|
|
89
89
|
<data>
|
|
90
|
-
|
|
90
|
+
4q40ucTr1qUkFbVYoihDDoBnnICmQ/lO/7JH1WKQzcw=
|
|
91
91
|
</data>
|
|
92
92
|
</dict>
|
|
93
93
|
<key>Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json</key>
|
|
94
94
|
<dict>
|
|
95
95
|
<key>hash2</key>
|
|
96
96
|
<data>
|
|
97
|
-
|
|
97
|
+
CyjNRWcvyZshsrzm2gQaIOQz+vcv68Ydb91m3UtqKGY=
|
|
98
98
|
</data>
|
|
99
99
|
</dict>
|
|
100
100
|
<key>Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface</key>
|
|
101
101
|
<dict>
|
|
102
102
|
<key>hash2</key>
|
|
103
103
|
<data>
|
|
104
|
-
|
|
104
|
+
E1GiseiMFLYmROiZwBW1bJ9EOsVO+0XjhLoQF9rW+Gk=
|
|
105
105
|
</data>
|
|
106
106
|
</dict>
|
|
107
107
|
<key>Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
|
|
108
108
|
<dict>
|
|
109
109
|
<key>hash2</key>
|
|
110
110
|
<data>
|
|
111
|
-
|
|
111
|
+
T8grir+EcdMC7s5ILrY4dZfCi++IEzyJW4sMxHJ6QYc=
|
|
112
112
|
</data>
|
|
113
113
|
</dict>
|
|
114
114
|
<key>Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
|
|
115
115
|
<dict>
|
|
116
116
|
<key>hash2</key>
|
|
117
117
|
<data>
|
|
118
|
-
|
|
118
|
+
E1GiseiMFLYmROiZwBW1bJ9EOsVO+0XjhLoQF9rW+Gk=
|
|
119
119
|
</data>
|
|
120
120
|
</dict>
|
|
121
121
|
<key>Modules/module.modulemap</key>
|
package/package.json
CHANGED
package/src/types.ts
CHANGED
|
@@ -103,6 +103,12 @@ export interface ContentItem {
|
|
|
103
103
|
commentCount?: number;
|
|
104
104
|
fallbackUrl?: string;
|
|
105
105
|
downloadUrl?: string;
|
|
106
|
+
/** Source video width in pixels, when known before playback starts. */
|
|
107
|
+
videoWidth?: number;
|
|
108
|
+
/** Source video height in pixels, when known before playback starts. */
|
|
109
|
+
videoHeight?: number;
|
|
110
|
+
/** Source video width / height ratio, when dimensions are not available. */
|
|
111
|
+
aspectRatio?: number;
|
|
106
112
|
}
|
|
107
113
|
|
|
108
114
|
export type DownloadStatus = 'idle' | 'downloading' | 'completed' | 'failed';
|