@shortkitsdk/react-native 0.2.29 → 0.2.30
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/ShortKitFeedView.kt +8 -1
- package/android/src/main/java/com/shortkit/reactnative/ShortKitFeedViewManager.kt +6 -0
- package/ios/ShortKitBridge.swift +5 -1
- package/ios/ShortKitFeedView.swift +8 -1
- package/ios/ShortKitFeedViewManager.mm +1 -0
- package/ios/ShortKitModule.mm +5 -1
- 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 +198 -30
- package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +1 -1
- 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 +1 -1
- 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 +198 -30
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +1 -1
- 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 +1 -1
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.abi.json +198 -30
- package/ios/ShortKitSDK.xcframework/ios-arm64_x86_64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +1 -1
- 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 +1 -1
- 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/ShortKitFeed.tsx +2 -0
- package/src/ShortKitProvider.tsx +4 -0
- package/src/specs/NativeShortKitModule.ts +2 -0
- package/src/specs/ShortKitFeedViewNativeComponent.ts +5 -0
- package/src/types.ts +10 -0
|
Binary file
|
|
@@ -30,6 +30,12 @@ class ShortKitFeedView(context: Context) : FrameLayout(context) {
|
|
|
30
30
|
var feedId: String? = null
|
|
31
31
|
var startAtItemId: String? = null
|
|
32
32
|
var preloadId: String? = null
|
|
33
|
+
// Fabric's generated delegate maps an absent boolean prop to the Java
|
|
34
|
+
// primitive false, so Boolean? is always non-null from the bridge. Track
|
|
35
|
+
// whether the prop was explicitly set so we can fall back to the provider
|
|
36
|
+
// flag when it wasn't.
|
|
37
|
+
var debugPanel: Boolean = false
|
|
38
|
+
var debugPanelPropSet: Boolean = false
|
|
33
39
|
|
|
34
40
|
// -----------------------------------------------------------------------
|
|
35
41
|
// Fragment management
|
|
@@ -191,7 +197,8 @@ class ShortKitFeedView(context: Context) : FrameLayout(context) {
|
|
|
191
197
|
|
|
192
198
|
val fragment = ShortKitFeedFragment.newInstance(sdk, feedConfig, startAtItemId)
|
|
193
199
|
|
|
194
|
-
if (sdk.debugPanelEnabled
|
|
200
|
+
val debugPanelEnabled = if (debugPanelPropSet) debugPanel else sdk.debugPanelEnabled
|
|
201
|
+
if (debugPanelEnabled) {
|
|
195
202
|
fragment.debugPanelFactory = { active, prev, next, lifecycleOwner ->
|
|
196
203
|
com.shortkit.sdk.debug.DebugPanelView(context).also { panel ->
|
|
197
204
|
panel.subscribe(active, prev, next, lifecycleOwner)
|
|
@@ -35,6 +35,12 @@ class ShortKitFeedViewManager : SimpleViewManager<ShortKitFeedView>() {
|
|
|
35
35
|
view.preloadId = preloadId
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
+
@ReactProp(name = "debugPanel")
|
|
39
|
+
fun setDebugPanel(view: ShortKitFeedView, debugPanel: Boolean) {
|
|
40
|
+
view.debugPanel = debugPanel
|
|
41
|
+
view.debugPanelPropSet = true
|
|
42
|
+
}
|
|
43
|
+
|
|
38
44
|
override fun onDropViewInstance(view: ShortKitFeedView) {
|
|
39
45
|
view.destroy()
|
|
40
46
|
super.onDropViewInstance(view)
|
package/ios/ShortKitBridge.swift
CHANGED
|
@@ -176,6 +176,8 @@ import ShortKitSDK
|
|
|
176
176
|
clientAppVersion: String?,
|
|
177
177
|
customDimensions customDimensionsJSON: String?,
|
|
178
178
|
debugPanel: Bool,
|
|
179
|
+
serverTracingEnabled: Bool,
|
|
180
|
+
consoleTracingEnabled: Bool,
|
|
179
181
|
delegate: ShortKitBridgeDelegateProtocol,
|
|
180
182
|
surfacePresenter: AnyObject?
|
|
181
183
|
) {
|
|
@@ -190,7 +192,9 @@ import ShortKitSDK
|
|
|
190
192
|
clientAppName: clientAppName,
|
|
191
193
|
clientAppVersion: clientAppVersion,
|
|
192
194
|
customDimensions: dimensions,
|
|
193
|
-
debugPanelEnabled: debugPanel
|
|
195
|
+
debugPanelEnabled: debugPanel,
|
|
196
|
+
serverTracingEnabled: serverTracingEnabled,
|
|
197
|
+
consoleTracingEnabled: consoleTracingEnabled
|
|
194
198
|
)
|
|
195
199
|
self.shortKit = sdk
|
|
196
200
|
|
|
@@ -59,6 +59,12 @@ import ShortKitSDK
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
/// Per-surface debug panel override. NSNumber so we can distinguish
|
|
63
|
+
/// unset (fall back to provider-global) from explicit true/false.
|
|
64
|
+
@objc public var debugPanel: NSNumber? {
|
|
65
|
+
didSet { /* read once at embed time */ }
|
|
66
|
+
}
|
|
67
|
+
|
|
62
68
|
@objc var feedId: String?
|
|
63
69
|
|
|
64
70
|
// MARK: - Child VC
|
|
@@ -166,7 +172,8 @@ import ShortKitSDK
|
|
|
166
172
|
feedVC.seedThumbnail = image
|
|
167
173
|
}
|
|
168
174
|
|
|
169
|
-
|
|
175
|
+
let debugPanelEnabled = self.debugPanel?.boolValue ?? sdk.debugPanelEnabled
|
|
176
|
+
if debugPanelEnabled {
|
|
170
177
|
feedVC.debugPanelFactory = { active, prev, next in
|
|
171
178
|
let panel = DebugPanelView(frame: CGRect(
|
|
172
179
|
x: 0, y: 0,
|
package/ios/ShortKitModule.mm
CHANGED
|
@@ -134,7 +134,9 @@ RCT_EXPORT_METHOD(initialize:(NSString *)apiKey
|
|
|
134
134
|
clientAppName:(NSString *)clientAppName
|
|
135
135
|
clientAppVersion:(NSString *)clientAppVersion
|
|
136
136
|
customDimensions:(NSString *)customDimensions
|
|
137
|
-
debugPanel:(NSNumber *)debugPanel
|
|
137
|
+
debugPanel:(NSNumber *)debugPanel
|
|
138
|
+
serverTracingEnabled:(NSNumber *)serverTracingEnabled
|
|
139
|
+
consoleTracingEnabled:(NSNumber *)consoleTracingEnabled) {
|
|
138
140
|
// Tear down any existing instance to prevent leaks on re-initialize
|
|
139
141
|
[_shortKitBridge teardown];
|
|
140
142
|
|
|
@@ -144,6 +146,8 @@ RCT_EXPORT_METHOD(initialize:(NSString *)apiKey
|
|
|
144
146
|
clientAppVersion:clientAppVersion
|
|
145
147
|
customDimensions:customDimensions
|
|
146
148
|
debugPanel:[debugPanel boolValue]
|
|
149
|
+
serverTracingEnabled:[serverTracingEnabled boolValue]
|
|
150
|
+
consoleTracingEnabled:[consoleTracingEnabled boolValue]
|
|
147
151
|
delegate:self
|
|
148
152
|
surfacePresenter:_surfacePresenter];
|
|
149
153
|
|
|
@@ -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.30</string>
|
|
15
15
|
<key>CFBundleShortVersionString</key>
|
|
16
|
-
<string>0.2.
|
|
16
|
+
<string>0.2.30</string>
|
|
17
17
|
<key>MinimumOSVersion</key>
|
|
18
18
|
<string>16.0</string>
|
|
19
19
|
</dict>
|
|
@@ -39917,7 +39917,7 @@
|
|
|
39917
39917
|
{
|
|
39918
39918
|
"kind": "Constructor",
|
|
39919
39919
|
"name": "init",
|
|
39920
|
-
"printedName": "init(apiKey:userId:adProvider:clientAppName:clientAppVersion:customDimensions:loadingViewProvider:debugPanelEnabled:)",
|
|
39920
|
+
"printedName": "init(apiKey:userId:adProvider:clientAppName:clientAppVersion:customDimensions:loadingViewProvider:debugPanelEnabled:serverTracingEnabled:consoleTracingEnabled:)",
|
|
39921
39921
|
"children": [
|
|
39922
39922
|
{
|
|
39923
39923
|
"kind": "TypeNominal",
|
|
@@ -40047,6 +40047,20 @@
|
|
|
40047
40047
|
"hasDefaultArg": true,
|
|
40048
40048
|
"usr": "s:Sq"
|
|
40049
40049
|
},
|
|
40050
|
+
{
|
|
40051
|
+
"kind": "TypeNominal",
|
|
40052
|
+
"name": "Bool",
|
|
40053
|
+
"printedName": "Swift.Bool",
|
|
40054
|
+
"hasDefaultArg": true,
|
|
40055
|
+
"usr": "s:Sb"
|
|
40056
|
+
},
|
|
40057
|
+
{
|
|
40058
|
+
"kind": "TypeNominal",
|
|
40059
|
+
"name": "Bool",
|
|
40060
|
+
"printedName": "Swift.Bool",
|
|
40061
|
+
"hasDefaultArg": true,
|
|
40062
|
+
"usr": "s:Sb"
|
|
40063
|
+
},
|
|
40050
40064
|
{
|
|
40051
40065
|
"kind": "TypeNominal",
|
|
40052
40066
|
"name": "Bool",
|
|
@@ -40056,8 +40070,8 @@
|
|
|
40056
40070
|
}
|
|
40057
40071
|
],
|
|
40058
40072
|
"declKind": "Constructor",
|
|
40059
|
-
"usr": "s:
|
|
40060
|
-
"mangledName": "$
|
|
40073
|
+
"usr": "s:11ShortKitSDK0aB0C6apiKey6userId10adProvider13clientAppName0jK7Version16customDimensions011loadingViewI017debugPanelEnabled013serverTracingT007consolevT0ACSS_SSSgAA0ab2AdI0_pSgA2NSDyS2SGSgSo6UIViewCycSgS3btcfc",
|
|
40074
|
+
"mangledName": "$s11ShortKitSDK0aB0C6apiKey6userId10adProvider13clientAppName0jK7Version16customDimensions011loadingViewI017debugPanelEnabled013serverTracingT007consolevT0ACSS_SSSgAA0ab2AdI0_pSgA2NSDyS2SGSgSo6UIViewCycSgS3btcfc",
|
|
40061
40075
|
"moduleName": "ShortKitSDK",
|
|
40062
40076
|
"declAttributes": [
|
|
40063
40077
|
"AccessControl",
|
|
@@ -42232,6 +42246,27 @@
|
|
|
42232
42246
|
"declKind": "Import",
|
|
42233
42247
|
"moduleName": "ShortKitSDK"
|
|
42234
42248
|
},
|
|
42249
|
+
{
|
|
42250
|
+
"kind": "Import",
|
|
42251
|
+
"name": "Foundation",
|
|
42252
|
+
"printedName": "Foundation",
|
|
42253
|
+
"declKind": "Import",
|
|
42254
|
+
"moduleName": "ShortKitSDK"
|
|
42255
|
+
},
|
|
42256
|
+
{
|
|
42257
|
+
"kind": "Import",
|
|
42258
|
+
"name": "QuartzCore",
|
|
42259
|
+
"printedName": "QuartzCore",
|
|
42260
|
+
"declKind": "Import",
|
|
42261
|
+
"moduleName": "ShortKitSDK"
|
|
42262
|
+
},
|
|
42263
|
+
{
|
|
42264
|
+
"kind": "Import",
|
|
42265
|
+
"name": "UIKit",
|
|
42266
|
+
"printedName": "UIKit",
|
|
42267
|
+
"declKind": "Import",
|
|
42268
|
+
"moduleName": "ShortKitSDK"
|
|
42269
|
+
},
|
|
42235
42270
|
{
|
|
42236
42271
|
"kind": "Import",
|
|
42237
42272
|
"name": "UIKit",
|
|
@@ -44893,14 +44928,14 @@
|
|
|
44893
44928
|
{
|
|
44894
44929
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedCell.swift",
|
|
44895
44930
|
"kind": "IntegerLiteral",
|
|
44896
|
-
"offset":
|
|
44931
|
+
"offset": 9760,
|
|
44897
44932
|
"length": 1,
|
|
44898
44933
|
"value": "0"
|
|
44899
44934
|
},
|
|
44900
44935
|
{
|
|
44901
44936
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedCell.swift",
|
|
44902
44937
|
"kind": "StringLiteral",
|
|
44903
|
-
"offset":
|
|
44938
|
+
"offset": 13324,
|
|
44904
44939
|
"length": 3,
|
|
44905
44940
|
"value": "\"?\""
|
|
44906
44941
|
},
|
|
@@ -45131,14 +45166,21 @@
|
|
|
45131
45166
|
{
|
|
45132
45167
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedViewController.swift",
|
|
45133
45168
|
"kind": "BooleanLiteral",
|
|
45134
|
-
"offset":
|
|
45169
|
+
"offset": 103144,
|
|
45170
|
+
"length": 5,
|
|
45171
|
+
"value": "false"
|
|
45172
|
+
},
|
|
45173
|
+
{
|
|
45174
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedViewController.swift",
|
|
45175
|
+
"kind": "BooleanLiteral",
|
|
45176
|
+
"offset": 211141,
|
|
45135
45177
|
"length": 5,
|
|
45136
45178
|
"value": "false"
|
|
45137
45179
|
},
|
|
45138
45180
|
{
|
|
45139
45181
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Feed\/FeedViewController.swift",
|
|
45140
45182
|
"kind": "BooleanLiteral",
|
|
45141
|
-
"offset":
|
|
45183
|
+
"offset": 221846,
|
|
45142
45184
|
"length": 5,
|
|
45143
45185
|
"value": "false"
|
|
45144
45186
|
},
|
|
@@ -45404,14 +45446,14 @@
|
|
|
45404
45446
|
{
|
|
45405
45447
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Networking\/FeedAPI.swift",
|
|
45406
45448
|
"kind": "IntegerLiteral",
|
|
45407
|
-
"offset":
|
|
45449
|
+
"offset": 2252,
|
|
45408
45450
|
"length": 2,
|
|
45409
45451
|
"value": "10"
|
|
45410
45452
|
},
|
|
45411
45453
|
{
|
|
45412
45454
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Networking\/FeedAPI.swift",
|
|
45413
45455
|
"kind": "IntegerLiteral",
|
|
45414
|
-
"offset":
|
|
45456
|
+
"offset": 4646,
|
|
45415
45457
|
"length": 2,
|
|
45416
45458
|
"value": "10"
|
|
45417
45459
|
},
|
|
@@ -45502,112 +45544,112 @@
|
|
|
45502
45544
|
{
|
|
45503
45545
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45504
45546
|
"kind": "BooleanLiteral",
|
|
45505
|
-
"offset":
|
|
45547
|
+
"offset": 1876,
|
|
45506
45548
|
"length": 5,
|
|
45507
45549
|
"value": "false"
|
|
45508
45550
|
},
|
|
45509
45551
|
{
|
|
45510
45552
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45511
45553
|
"kind": "IntegerLiteral",
|
|
45512
|
-
"offset":
|
|
45554
|
+
"offset": 1947,
|
|
45513
45555
|
"length": 1,
|
|
45514
45556
|
"value": "0"
|
|
45515
45557
|
},
|
|
45516
45558
|
{
|
|
45517
45559
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45518
45560
|
"kind": "IntegerLiteral",
|
|
45519
|
-
"offset":
|
|
45561
|
+
"offset": 1996,
|
|
45520
45562
|
"length": 1,
|
|
45521
45563
|
"value": "0"
|
|
45522
45564
|
},
|
|
45523
45565
|
{
|
|
45524
45566
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45525
45567
|
"kind": "BooleanLiteral",
|
|
45526
|
-
"offset":
|
|
45568
|
+
"offset": 2072,
|
|
45527
45569
|
"length": 5,
|
|
45528
45570
|
"value": "false"
|
|
45529
45571
|
},
|
|
45530
45572
|
{
|
|
45531
45573
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45532
45574
|
"kind": "IntegerLiteral",
|
|
45533
|
-
"offset":
|
|
45575
|
+
"offset": 2243,
|
|
45534
45576
|
"length": 2,
|
|
45535
45577
|
"value": "-1"
|
|
45536
45578
|
},
|
|
45537
45579
|
{
|
|
45538
45580
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45539
45581
|
"kind": "IntegerLiteral",
|
|
45540
|
-
"offset":
|
|
45582
|
+
"offset": 2293,
|
|
45541
45583
|
"length": 1,
|
|
45542
45584
|
"value": "0"
|
|
45543
45585
|
},
|
|
45544
45586
|
{
|
|
45545
45587
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45546
45588
|
"kind": "IntegerLiteral",
|
|
45547
|
-
"offset":
|
|
45589
|
+
"offset": 2343,
|
|
45548
45590
|
"length": 1,
|
|
45549
45591
|
"value": "0"
|
|
45550
45592
|
},
|
|
45551
45593
|
{
|
|
45552
45594
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45553
45595
|
"kind": "StringLiteral",
|
|
45554
|
-
"offset":
|
|
45596
|
+
"offset": 2386,
|
|
45555
45597
|
"length": 2,
|
|
45556
45598
|
"value": "\"\""
|
|
45557
45599
|
},
|
|
45558
45600
|
{
|
|
45559
45601
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45560
45602
|
"kind": "IntegerLiteral",
|
|
45561
|
-
"offset":
|
|
45603
|
+
"offset": 2446,
|
|
45562
45604
|
"length": 1,
|
|
45563
45605
|
"value": "0"
|
|
45564
45606
|
},
|
|
45565
45607
|
{
|
|
45566
45608
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45567
45609
|
"kind": "IntegerLiteral",
|
|
45568
|
-
"offset":
|
|
45610
|
+
"offset": 2485,
|
|
45569
45611
|
"length": 1,
|
|
45570
45612
|
"value": "0"
|
|
45571
45613
|
},
|
|
45572
45614
|
{
|
|
45573
45615
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45574
45616
|
"kind": "IntegerLiteral",
|
|
45575
|
-
"offset":
|
|
45617
|
+
"offset": 3113,
|
|
45576
45618
|
"length": 1,
|
|
45577
45619
|
"value": "0"
|
|
45578
45620
|
},
|
|
45579
45621
|
{
|
|
45580
45622
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45581
45623
|
"kind": "FloatLiteral",
|
|
45582
|
-
"offset":
|
|
45624
|
+
"offset": 3879,
|
|
45583
45625
|
"length": 3,
|
|
45584
45626
|
"value": "5.0"
|
|
45585
45627
|
},
|
|
45586
45628
|
{
|
|
45587
45629
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45588
45630
|
"kind": "BooleanLiteral",
|
|
45589
|
-
"offset":
|
|
45631
|
+
"offset": 4061,
|
|
45590
45632
|
"length": 4,
|
|
45591
45633
|
"value": "true"
|
|
45592
45634
|
},
|
|
45593
45635
|
{
|
|
45594
45636
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45595
45637
|
"kind": "BooleanLiteral",
|
|
45596
|
-
"offset":
|
|
45638
|
+
"offset": 4172,
|
|
45597
45639
|
"length": 5,
|
|
45598
45640
|
"value": "false"
|
|
45599
45641
|
},
|
|
45600
45642
|
{
|
|
45601
45643
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45602
45644
|
"kind": "BooleanLiteral",
|
|
45603
|
-
"offset":
|
|
45645
|
+
"offset": 7140,
|
|
45604
45646
|
"length": 5,
|
|
45605
45647
|
"value": "false"
|
|
45606
45648
|
},
|
|
45607
45649
|
{
|
|
45608
45650
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerManager.swift",
|
|
45609
45651
|
"kind": "BooleanLiteral",
|
|
45610
|
-
"offset":
|
|
45652
|
+
"offset": 15451,
|
|
45611
45653
|
"length": 5,
|
|
45612
45654
|
"value": "false"
|
|
45613
45655
|
},
|
|
@@ -45754,7 +45796,7 @@
|
|
|
45754
45796
|
{
|
|
45755
45797
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Player\/PlayerPool.swift",
|
|
45756
45798
|
"kind": "BooleanLiteral",
|
|
45757
|
-
"offset":
|
|
45799
|
+
"offset": 16383,
|
|
45758
45800
|
"length": 5,
|
|
45759
45801
|
"value": "false"
|
|
45760
45802
|
},
|
|
@@ -45938,26 +45980,40 @@
|
|
|
45938
45980
|
"kind": "StringLiteral",
|
|
45939
45981
|
"offset": 124,
|
|
45940
45982
|
"length": 8,
|
|
45941
|
-
"value": "\"0.2.
|
|
45983
|
+
"value": "\"0.2.30\""
|
|
45984
|
+
},
|
|
45985
|
+
{
|
|
45986
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/ShortKit.swift",
|
|
45987
|
+
"kind": "BooleanLiteral",
|
|
45988
|
+
"offset": 5012,
|
|
45989
|
+
"length": 5,
|
|
45990
|
+
"value": "false"
|
|
45942
45991
|
},
|
|
45943
45992
|
{
|
|
45944
45993
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/ShortKit.swift",
|
|
45945
45994
|
"kind": "BooleanLiteral",
|
|
45946
|
-
"offset":
|
|
45995
|
+
"offset": 5056,
|
|
45996
|
+
"length": 5,
|
|
45997
|
+
"value": "false"
|
|
45998
|
+
},
|
|
45999
|
+
{
|
|
46000
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/ShortKit.swift",
|
|
46001
|
+
"kind": "BooleanLiteral",
|
|
46002
|
+
"offset": 5101,
|
|
45947
46003
|
"length": 5,
|
|
45948
46004
|
"value": "false"
|
|
45949
46005
|
},
|
|
45950
46006
|
{
|
|
45951
46007
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/ShortKit.swift",
|
|
45952
46008
|
"kind": "IntegerLiteral",
|
|
45953
|
-
"offset":
|
|
46009
|
+
"offset": 21553,
|
|
45954
46010
|
"length": 2,
|
|
45955
46011
|
"value": "10"
|
|
45956
46012
|
},
|
|
45957
46013
|
{
|
|
45958
46014
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/ShortKit.swift",
|
|
45959
46015
|
"kind": "IntegerLiteral",
|
|
45960
|
-
"offset":
|
|
46016
|
+
"offset": 22674,
|
|
45961
46017
|
"length": 2,
|
|
45962
46018
|
"value": "10"
|
|
45963
46019
|
},
|
|
@@ -46101,6 +46157,118 @@
|
|
|
46101
46157
|
"length": 4,
|
|
46102
46158
|
"value": "true"
|
|
46103
46159
|
},
|
|
46160
|
+
{
|
|
46161
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46162
|
+
"kind": "BooleanLiteral",
|
|
46163
|
+
"offset": 1825,
|
|
46164
|
+
"length": 5,
|
|
46165
|
+
"value": "false"
|
|
46166
|
+
},
|
|
46167
|
+
{
|
|
46168
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46169
|
+
"kind": "BooleanLiteral",
|
|
46170
|
+
"offset": 2054,
|
|
46171
|
+
"length": 5,
|
|
46172
|
+
"value": "false"
|
|
46173
|
+
},
|
|
46174
|
+
{
|
|
46175
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46176
|
+
"kind": "Dictionary",
|
|
46177
|
+
"offset": 2620,
|
|
46178
|
+
"length": 3,
|
|
46179
|
+
"value": "[]"
|
|
46180
|
+
},
|
|
46181
|
+
{
|
|
46182
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46183
|
+
"kind": "BooleanLiteral",
|
|
46184
|
+
"offset": 4259,
|
|
46185
|
+
"length": 5,
|
|
46186
|
+
"value": "false"
|
|
46187
|
+
},
|
|
46188
|
+
{
|
|
46189
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46190
|
+
"kind": "StringLiteral",
|
|
46191
|
+
"offset": 4314,
|
|
46192
|
+
"length": 20,
|
|
46193
|
+
"value": "\"dev.shortkit.trace\""
|
|
46194
|
+
},
|
|
46195
|
+
{
|
|
46196
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46197
|
+
"kind": "Array",
|
|
46198
|
+
"offset": 4389,
|
|
46199
|
+
"length": 2,
|
|
46200
|
+
"value": "[]"
|
|
46201
|
+
},
|
|
46202
|
+
{
|
|
46203
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46204
|
+
"kind": "IntegerLiteral",
|
|
46205
|
+
"offset": 4447,
|
|
46206
|
+
"length": 1,
|
|
46207
|
+
"value": "0"
|
|
46208
|
+
},
|
|
46209
|
+
{
|
|
46210
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46211
|
+
"kind": "IntegerLiteral",
|
|
46212
|
+
"offset": 4583,
|
|
46213
|
+
"length": 2,
|
|
46214
|
+
"value": "50"
|
|
46215
|
+
},
|
|
46216
|
+
{
|
|
46217
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46218
|
+
"kind": "FloatLiteral",
|
|
46219
|
+
"offset": 4642,
|
|
46220
|
+
"length": 3,
|
|
46221
|
+
"value": "2.0"
|
|
46222
|
+
},
|
|
46223
|
+
{
|
|
46224
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46225
|
+
"kind": "FloatLiteral",
|
|
46226
|
+
"offset": 4699,
|
|
46227
|
+
"length": 3,
|
|
46228
|
+
"value": "5.0"
|
|
46229
|
+
},
|
|
46230
|
+
{
|
|
46231
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46232
|
+
"kind": "IntegerLiteral",
|
|
46233
|
+
"offset": 4734,
|
|
46234
|
+
"length": 3,
|
|
46235
|
+
"value": "500"
|
|
46236
|
+
},
|
|
46237
|
+
{
|
|
46238
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46239
|
+
"kind": "BooleanLiteral",
|
|
46240
|
+
"offset": 5050,
|
|
46241
|
+
"length": 5,
|
|
46242
|
+
"value": "false"
|
|
46243
|
+
},
|
|
46244
|
+
{
|
|
46245
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46246
|
+
"kind": "StringLiteral",
|
|
46247
|
+
"offset": 7925,
|
|
46248
|
+
"length": 17,
|
|
46249
|
+
"value": "\"ShortKit\/Traces\""
|
|
46250
|
+
},
|
|
46251
|
+
{
|
|
46252
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46253
|
+
"kind": "BooleanLiteral",
|
|
46254
|
+
"offset": 7957,
|
|
46255
|
+
"length": 4,
|
|
46256
|
+
"value": "true"
|
|
46257
|
+
},
|
|
46258
|
+
{
|
|
46259
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46260
|
+
"kind": "BooleanLiteral",
|
|
46261
|
+
"offset": 8050,
|
|
46262
|
+
"length": 4,
|
|
46263
|
+
"value": "true"
|
|
46264
|
+
},
|
|
46265
|
+
{
|
|
46266
|
+
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Trace\/SKTrace.swift",
|
|
46267
|
+
"kind": "StringLiteral",
|
|
46268
|
+
"offset": 8098,
|
|
46269
|
+
"length": 14,
|
|
46270
|
+
"value": "\"pending.json\""
|
|
46271
|
+
},
|
|
46104
46272
|
{
|
|
46105
46273
|
"filePath": "\/Users\/michaelseleman\/shortkit\/swift_sdk\/Sources\/ShortKit\/Transitions\/FeedInteractiveDismissController.swift",
|
|
46106
46274
|
"kind": "StringLiteral",
|
|
@@ -1101,7 +1101,7 @@ final public class ShortKit {
|
|
|
1101
1101
|
weak final public var delegate: (any ShortKitSDK.ShortKitDelegate)?
|
|
1102
1102
|
weak final public var downloadDelegate: (any ShortKitSDK.ShortKitDownloadDelegate)?
|
|
1103
1103
|
final public var loadingViewProvider: (() -> UIKit.UIView)?
|
|
1104
|
-
public init(apiKey: Swift.String, userId: Swift.String? = nil, adProvider: (any ShortKitSDK.ShortKitAdProvider)? = nil, clientAppName: Swift.String? = nil, clientAppVersion: Swift.String? = nil, customDimensions: [Swift.String : Swift.String]? = nil, loadingViewProvider: (() -> UIKit.UIView)? = nil, debugPanelEnabled: Swift.Bool = false)
|
|
1104
|
+
public init(apiKey: Swift.String, userId: Swift.String? = nil, adProvider: (any ShortKitSDK.ShortKitAdProvider)? = nil, clientAppName: Swift.String? = nil, clientAppVersion: Swift.String? = nil, customDimensions: [Swift.String : Swift.String]? = nil, loadingViewProvider: (() -> UIKit.UIView)? = nil, debugPanelEnabled: Swift.Bool = false, serverTracingEnabled: Swift.Bool = false, consoleTracingEnabled: Swift.Bool = false)
|
|
1105
1105
|
final public func preloadFeed(filter: ShortKitSDK.FeedFilter? = nil, limit: Swift.Int = 10) -> ShortKitSDK.FeedPreload
|
|
1106
1106
|
final public func preloadFeed(items: [ShortKitSDK.FeedInput]) -> ShortKitSDK.FeedPreload
|
|
1107
1107
|
final public func fetchContent(limit: Swift.Int = 10, filter: ShortKitSDK.FeedFilter? = nil) async throws -> [ShortKitSDK.ContentItem]
|
|
Binary file
|
|
@@ -1101,7 +1101,7 @@ final public class ShortKit {
|
|
|
1101
1101
|
weak final public var delegate: (any ShortKitSDK.ShortKitDelegate)?
|
|
1102
1102
|
weak final public var downloadDelegate: (any ShortKitSDK.ShortKitDownloadDelegate)?
|
|
1103
1103
|
final public var loadingViewProvider: (() -> UIKit.UIView)?
|
|
1104
|
-
public init(apiKey: Swift.String, userId: Swift.String? = nil, adProvider: (any ShortKitSDK.ShortKitAdProvider)? = nil, clientAppName: Swift.String? = nil, clientAppVersion: Swift.String? = nil, customDimensions: [Swift.String : Swift.String]? = nil, loadingViewProvider: (() -> UIKit.UIView)? = nil, debugPanelEnabled: Swift.Bool = false)
|
|
1104
|
+
public init(apiKey: Swift.String, userId: Swift.String? = nil, adProvider: (any ShortKitSDK.ShortKitAdProvider)? = nil, clientAppName: Swift.String? = nil, clientAppVersion: Swift.String? = nil, customDimensions: [Swift.String : Swift.String]? = nil, loadingViewProvider: (() -> UIKit.UIView)? = nil, debugPanelEnabled: Swift.Bool = false, serverTracingEnabled: Swift.Bool = false, consoleTracingEnabled: Swift.Bool = false)
|
|
1105
1105
|
final public func preloadFeed(filter: ShortKitSDK.FeedFilter? = nil, limit: Swift.Int = 10) -> ShortKitSDK.FeedPreload
|
|
1106
1106
|
final public func preloadFeed(items: [ShortKitSDK.FeedInput]) -> ShortKitSDK.FeedPreload
|
|
1107
1107
|
final public func fetchContent(limit: Swift.Int = 10, filter: ShortKitSDK.FeedFilter? = nil) async throws -> [ShortKitSDK.ContentItem]
|
|
Binary file
|