@shortkitsdk/react-native 0.2.2 → 0.2.4

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.
Files changed (26) hide show
  1. package/ShortKitReactNative.podspec +8 -1
  2. package/ios/ShortKitBridge.swift +1 -1
  3. package/ios/ShortKitCarouselOverlayBridge.swift +1 -1
  4. package/ios/ShortKitFeedView.swift +1 -1
  5. package/ios/ShortKitOverlayBridge.swift +1 -1
  6. package/ios/ShortKitPlayerNativeView.swift +1 -1
  7. package/ios/ShortKitSDK.xcframework/Info.plist +43 -0
  8. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +417 -0
  9. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Info.plist +16 -0
  10. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.abi.json +27739 -0
  11. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.private.swiftinterface +790 -0
  12. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
  13. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios.swiftinterface +790 -0
  14. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/Modules/module.modulemap +4 -0
  15. package/ios/ShortKitSDK.xcframework/ios-arm64/ShortKitSDK.framework/ShortKitSDK +0 -0
  16. package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/Headers/ShortKitSDK-Swift.h +417 -0
  17. package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/Info.plist +16 -0
  18. package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.abi.json +27739 -0
  19. package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +790 -0
  20. package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
  21. package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/Modules/ShortKitSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +790 -0
  22. package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/Modules/module.modulemap +4 -0
  23. package/ios/ShortKitSDK.xcframework/ios-arm64-simulator/ShortKitSDK.framework/ShortKitSDK +0 -0
  24. package/ios/ShortKitWidgetNativeView.swift +1 -1
  25. package/package.json +1 -1
  26. package/ios/ShortKitReactNative.podspec +0 -19
@@ -13,7 +13,14 @@ Pod::Spec.new do |s|
13
13
  s.source_files = "ios/*.{h,m,mm,cpp,swift}"
14
14
  s.requires_arc = true
15
15
 
16
- s.dependency "ShortKit"
16
+ # When the vendored XCFramework is present (npm published package), use it.
17
+ # Otherwise fall back to the local ShortKit pod (development).
18
+ xcframework_path = File.join(__dir__, "ios", "ShortKitSDK.xcframework")
19
+ if File.exist?(xcframework_path)
20
+ s.vendored_frameworks = "ios/ShortKitSDK.xcframework"
21
+ else
22
+ s.dependency "ShortKit"
23
+ end
17
24
 
18
25
  install_modules_dependencies(s)
19
26
  end
@@ -1,6 +1,6 @@
1
1
  import Foundation
2
2
  import Combine
3
- import ShortKit
3
+ import ShortKitSDK
4
4
 
5
5
  /// Swift bridge between the ShortKit SDK and the Obj-C++ TurboModule.
6
6
  ///
@@ -1,5 +1,5 @@
1
1
  import UIKit
2
- import ShortKit
2
+ import ShortKitSDK
3
3
 
4
4
  /// A transparent UIView that conforms to `CarouselOverlay` and bridges
5
5
  /// carousel overlay lifecycle calls to JS events via `ShortKitBridge`.
@@ -1,5 +1,5 @@
1
1
  import UIKit
2
- import ShortKit
2
+ import ShortKitSDK
3
3
 
4
4
  /// Fabric native view that embeds `ShortKitFeedViewController` using
5
5
  /// UIViewController containment. Props are set by the view manager via
@@ -1,5 +1,5 @@
1
1
  import UIKit
2
- import ShortKit
2
+ import ShortKitSDK
3
3
 
4
4
  /// A transparent UIView that conforms to `FeedOverlay` and bridges overlay
5
5
  /// lifecycle calls to JS events via `ShortKitBridge`.
@@ -1,5 +1,5 @@
1
1
  import UIKit
2
- import ShortKit
2
+ import ShortKitSDK
3
3
 
4
4
  /// Fabric native view wrapping `ShortKitPlayerViewController` for use as
5
5
  /// a single-video player in React Native.
@@ -0,0 +1,43 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>AvailableLibraries</key>
6
+ <array>
7
+ <dict>
8
+ <key>BinaryPath</key>
9
+ <string>ShortKitSDK.framework/ShortKitSDK</string>
10
+ <key>LibraryIdentifier</key>
11
+ <string>ios-arm64-simulator</string>
12
+ <key>LibraryPath</key>
13
+ <string>ShortKitSDK.framework</string>
14
+ <key>SupportedArchitectures</key>
15
+ <array>
16
+ <string>arm64</string>
17
+ </array>
18
+ <key>SupportedPlatform</key>
19
+ <string>ios</string>
20
+ <key>SupportedPlatformVariant</key>
21
+ <string>simulator</string>
22
+ </dict>
23
+ <dict>
24
+ <key>BinaryPath</key>
25
+ <string>ShortKitSDK.framework/ShortKitSDK</string>
26
+ <key>LibraryIdentifier</key>
27
+ <string>ios-arm64</string>
28
+ <key>LibraryPath</key>
29
+ <string>ShortKitSDK.framework</string>
30
+ <key>SupportedArchitectures</key>
31
+ <array>
32
+ <string>arm64</string>
33
+ </array>
34
+ <key>SupportedPlatform</key>
35
+ <string>ios</string>
36
+ </dict>
37
+ </array>
38
+ <key>CFBundlePackageType</key>
39
+ <string>XFWK</string>
40
+ <key>XCFrameworkFormatVersion</key>
41
+ <string>1.0</string>
42
+ </dict>
43
+ </plist>
@@ -0,0 +1,417 @@
1
+ // Generated by Apple Swift version 6.1 effective-5.10 (swiftlang-6.1.0.110.21 clang-1700.0.13.3)
2
+ #ifndef SHORTKITSDK_SWIFT_H
3
+ #define SHORTKITSDK_SWIFT_H
4
+ #pragma clang diagnostic push
5
+ #pragma clang diagnostic ignored "-Wgcc-compat"
6
+
7
+ #if !defined(__has_include)
8
+ # define __has_include(x) 0
9
+ #endif
10
+ #if !defined(__has_attribute)
11
+ # define __has_attribute(x) 0
12
+ #endif
13
+ #if !defined(__has_feature)
14
+ # define __has_feature(x) 0
15
+ #endif
16
+ #if !defined(__has_warning)
17
+ # define __has_warning(x) 0
18
+ #endif
19
+
20
+ #if __has_include(<swift/objc-prologue.h>)
21
+ # include <swift/objc-prologue.h>
22
+ #endif
23
+
24
+ #pragma clang diagnostic ignored "-Wauto-import"
25
+ #if defined(__OBJC__)
26
+ #include <Foundation/Foundation.h>
27
+ #endif
28
+ #if defined(__cplusplus)
29
+ #include <cstdint>
30
+ #include <cstddef>
31
+ #include <cstdbool>
32
+ #include <cstring>
33
+ #include <stdlib.h>
34
+ #include <new>
35
+ #include <type_traits>
36
+ #else
37
+ #include <stdint.h>
38
+ #include <stddef.h>
39
+ #include <stdbool.h>
40
+ #include <string.h>
41
+ #endif
42
+ #if defined(__cplusplus)
43
+ #pragma clang diagnostic push
44
+ #pragma clang diagnostic ignored "-Wnon-modular-include-in-framework-module"
45
+ #if defined(__arm64e__) && __has_include(<ptrauth.h>)
46
+ # include <ptrauth.h>
47
+ #else
48
+ #pragma clang diagnostic push
49
+ #pragma clang diagnostic ignored "-Wreserved-macro-identifier"
50
+ # ifndef __ptrauth_swift_value_witness_function_pointer
51
+ # define __ptrauth_swift_value_witness_function_pointer(x)
52
+ # endif
53
+ # ifndef __ptrauth_swift_class_method_pointer
54
+ # define __ptrauth_swift_class_method_pointer(x)
55
+ # endif
56
+ #pragma clang diagnostic pop
57
+ #endif
58
+ #pragma clang diagnostic pop
59
+ #endif
60
+
61
+ #if !defined(SWIFT_TYPEDEFS)
62
+ # define SWIFT_TYPEDEFS 1
63
+ # if __has_include(<uchar.h>)
64
+ # include <uchar.h>
65
+ # elif !defined(__cplusplus)
66
+ typedef unsigned char char8_t;
67
+ typedef uint_least16_t char16_t;
68
+ typedef uint_least32_t char32_t;
69
+ # endif
70
+ typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
71
+ typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
72
+ typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
73
+ typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
74
+ typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
75
+ typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
76
+ typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
77
+ typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
78
+ typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
79
+ typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
80
+ typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
81
+ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
82
+ #endif
83
+
84
+ #if !defined(SWIFT_PASTE)
85
+ # define SWIFT_PASTE_HELPER(x, y) x##y
86
+ # define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
87
+ #endif
88
+ #if !defined(SWIFT_METATYPE)
89
+ # define SWIFT_METATYPE(X) Class
90
+ #endif
91
+ #if !defined(SWIFT_CLASS_PROPERTY)
92
+ # if __has_feature(objc_class_property)
93
+ # define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
94
+ # else
95
+ # define SWIFT_CLASS_PROPERTY(...)
96
+ # endif
97
+ #endif
98
+ #if !defined(SWIFT_RUNTIME_NAME)
99
+ # if __has_attribute(objc_runtime_name)
100
+ # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
101
+ # else
102
+ # define SWIFT_RUNTIME_NAME(X)
103
+ # endif
104
+ #endif
105
+ #if !defined(SWIFT_COMPILE_NAME)
106
+ # if __has_attribute(swift_name)
107
+ # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
108
+ # else
109
+ # define SWIFT_COMPILE_NAME(X)
110
+ # endif
111
+ #endif
112
+ #if !defined(SWIFT_METHOD_FAMILY)
113
+ # if __has_attribute(objc_method_family)
114
+ # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
115
+ # else
116
+ # define SWIFT_METHOD_FAMILY(X)
117
+ # endif
118
+ #endif
119
+ #if !defined(SWIFT_NOESCAPE)
120
+ # if __has_attribute(noescape)
121
+ # define SWIFT_NOESCAPE __attribute__((noescape))
122
+ # else
123
+ # define SWIFT_NOESCAPE
124
+ # endif
125
+ #endif
126
+ #if !defined(SWIFT_RELEASES_ARGUMENT)
127
+ # if __has_attribute(ns_consumed)
128
+ # define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
129
+ # else
130
+ # define SWIFT_RELEASES_ARGUMENT
131
+ # endif
132
+ #endif
133
+ #if !defined(SWIFT_WARN_UNUSED_RESULT)
134
+ # if __has_attribute(warn_unused_result)
135
+ # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
136
+ # else
137
+ # define SWIFT_WARN_UNUSED_RESULT
138
+ # endif
139
+ #endif
140
+ #if !defined(SWIFT_NORETURN)
141
+ # if __has_attribute(noreturn)
142
+ # define SWIFT_NORETURN __attribute__((noreturn))
143
+ # else
144
+ # define SWIFT_NORETURN
145
+ # endif
146
+ #endif
147
+ #if !defined(SWIFT_CLASS_EXTRA)
148
+ # define SWIFT_CLASS_EXTRA
149
+ #endif
150
+ #if !defined(SWIFT_PROTOCOL_EXTRA)
151
+ # define SWIFT_PROTOCOL_EXTRA
152
+ #endif
153
+ #if !defined(SWIFT_ENUM_EXTRA)
154
+ # define SWIFT_ENUM_EXTRA
155
+ #endif
156
+ #if !defined(SWIFT_CLASS)
157
+ # if __has_attribute(objc_subclassing_restricted)
158
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
159
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
160
+ # else
161
+ # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
162
+ # define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
163
+ # endif
164
+ #endif
165
+ #if !defined(SWIFT_RESILIENT_CLASS)
166
+ # if __has_attribute(objc_class_stub)
167
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
168
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
169
+ # else
170
+ # define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
171
+ # define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
172
+ # endif
173
+ #endif
174
+ #if !defined(SWIFT_PROTOCOL)
175
+ # define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
176
+ # define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
177
+ #endif
178
+ #if !defined(SWIFT_EXTENSION)
179
+ # define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
180
+ #endif
181
+ #if !defined(OBJC_DESIGNATED_INITIALIZER)
182
+ # if __has_attribute(objc_designated_initializer)
183
+ # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
184
+ # else
185
+ # define OBJC_DESIGNATED_INITIALIZER
186
+ # endif
187
+ #endif
188
+ #if !defined(SWIFT_ENUM_ATTR)
189
+ # if __has_attribute(enum_extensibility)
190
+ # define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
191
+ # else
192
+ # define SWIFT_ENUM_ATTR(_extensibility)
193
+ # endif
194
+ #endif
195
+ #if !defined(SWIFT_ENUM)
196
+ # define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
197
+ # if __has_feature(generalized_swift_name)
198
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
199
+ # else
200
+ # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
201
+ # endif
202
+ #endif
203
+ #if !defined(SWIFT_UNAVAILABLE)
204
+ # define SWIFT_UNAVAILABLE __attribute__((unavailable))
205
+ #endif
206
+ #if !defined(SWIFT_UNAVAILABLE_MSG)
207
+ # define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
208
+ #endif
209
+ #if !defined(SWIFT_AVAILABILITY)
210
+ # define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
211
+ #endif
212
+ #if !defined(SWIFT_WEAK_IMPORT)
213
+ # define SWIFT_WEAK_IMPORT __attribute__((weak_import))
214
+ #endif
215
+ #if !defined(SWIFT_DEPRECATED)
216
+ # define SWIFT_DEPRECATED __attribute__((deprecated))
217
+ #endif
218
+ #if !defined(SWIFT_DEPRECATED_MSG)
219
+ # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
220
+ #endif
221
+ #if !defined(SWIFT_DEPRECATED_OBJC)
222
+ # if __has_feature(attribute_diagnose_if_objc)
223
+ # define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
224
+ # else
225
+ # define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
226
+ # endif
227
+ #endif
228
+ #if defined(__OBJC__)
229
+ #if !defined(IBSegueAction)
230
+ # define IBSegueAction
231
+ #endif
232
+ #endif
233
+ #if !defined(SWIFT_EXTERN)
234
+ # if defined(__cplusplus)
235
+ # define SWIFT_EXTERN extern "C"
236
+ # else
237
+ # define SWIFT_EXTERN extern
238
+ # endif
239
+ #endif
240
+ #if !defined(SWIFT_CALL)
241
+ # define SWIFT_CALL __attribute__((swiftcall))
242
+ #endif
243
+ #if !defined(SWIFT_INDIRECT_RESULT)
244
+ # define SWIFT_INDIRECT_RESULT __attribute__((swift_indirect_result))
245
+ #endif
246
+ #if !defined(SWIFT_CONTEXT)
247
+ # define SWIFT_CONTEXT __attribute__((swift_context))
248
+ #endif
249
+ #if !defined(SWIFT_ERROR_RESULT)
250
+ # define SWIFT_ERROR_RESULT __attribute__((swift_error_result))
251
+ #endif
252
+ #if defined(__cplusplus)
253
+ # define SWIFT_NOEXCEPT noexcept
254
+ #else
255
+ # define SWIFT_NOEXCEPT
256
+ #endif
257
+ #if !defined(SWIFT_C_INLINE_THUNK)
258
+ # if __has_attribute(always_inline)
259
+ # if __has_attribute(nodebug)
260
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline)) __attribute__((nodebug))
261
+ # else
262
+ # define SWIFT_C_INLINE_THUNK inline __attribute__((always_inline))
263
+ # endif
264
+ # else
265
+ # define SWIFT_C_INLINE_THUNK inline
266
+ # endif
267
+ #endif
268
+ #if defined(_WIN32)
269
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
270
+ # define SWIFT_IMPORT_STDLIB_SYMBOL __declspec(dllimport)
271
+ #endif
272
+ #else
273
+ #if !defined(SWIFT_IMPORT_STDLIB_SYMBOL)
274
+ # define SWIFT_IMPORT_STDLIB_SYMBOL
275
+ #endif
276
+ #endif
277
+ #if defined(__OBJC__)
278
+ #if __has_feature(objc_modules)
279
+ #if __has_warning("-Watimport-in-framework-header")
280
+ #pragma clang diagnostic ignored "-Watimport-in-framework-header"
281
+ #endif
282
+ @import AVFoundation;
283
+ @import CoreFoundation;
284
+ @import Foundation;
285
+ @import ObjectiveC;
286
+ @import UIKit;
287
+ #endif
288
+
289
+ #endif
290
+ #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
291
+ #pragma clang diagnostic ignored "-Wduplicate-method-arg"
292
+ #if __has_warning("-Wpragma-clang-attribute")
293
+ # pragma clang diagnostic ignored "-Wpragma-clang-attribute"
294
+ #endif
295
+ #pragma clang diagnostic ignored "-Wunknown-pragmas"
296
+ #pragma clang diagnostic ignored "-Wnullability"
297
+ #pragma clang diagnostic ignored "-Wdollar-in-identifier-extension"
298
+ #pragma clang diagnostic ignored "-Wunsafe-buffer-usage"
299
+
300
+ #if __has_attribute(external_source_symbol)
301
+ # pragma push_macro("any")
302
+ # undef any
303
+ # pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="ShortKitSDK",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
304
+ # pragma pop_macro("any")
305
+ #endif
306
+
307
+ #if defined(__OBJC__)
308
+
309
+ @class AVAssetResourceLoader;
310
+ @class AVAssetResourceLoadingRequest;
311
+ /// Intercepts AVPlayer’s resource loading requests under the <code>shortkit-cache://</code> URL scheme.
312
+ /// Serves cached HLS segments from disk and proxies cache misses to the network.
313
+ /// Usage:
314
+ /// <ol>
315
+ /// <li>
316
+ /// Call <code>makeAsset(for:videoID:rendition:)</code> with the original HTTPS streaming URL.
317
+ /// </li>
318
+ /// <li>
319
+ /// Hand the returned <code>AVURLAsset</code> to AVPlayer. The loader handles the rest.
320
+ /// </li>
321
+ /// </ol>
322
+ /// Thread safety: Each asset’s video ID and rendition are stored in a per-asset
323
+ /// dictionary, so multiple AVPlayer instances sharing this loader don’t race.
324
+ SWIFT_CLASS("_TtC11ShortKitSDK21CachingResourceLoader")
325
+ @interface CachingResourceLoader : NSObject <AVAssetResourceLoaderDelegate>
326
+ - (BOOL)resourceLoader:(AVAssetResourceLoader * _Nonnull)resourceLoader shouldWaitForLoadingOfRequestedResource:(AVAssetResourceLoadingRequest * _Nonnull)loadingRequest SWIFT_WARN_UNUSED_RESULT;
327
+ - (void)resourceLoader:(AVAssetResourceLoader * _Nonnull)resourceLoader didCancelLoadingRequest:(AVAssetResourceLoadingRequest * _Nonnull)loadingRequest;
328
+ - (nonnull instancetype)init SWIFT_UNAVAILABLE;
329
+ + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
330
+ @end
331
+
332
+ @class NSCoder;
333
+ @class NSString;
334
+ @class NSBundle;
335
+ /// The core UICollectionView-based short-form video feed controller.
336
+ SWIFT_CLASS("_TtC11ShortKitSDK26ShortKitFeedViewController")
337
+ @interface ShortKitFeedViewController : UIViewController
338
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
339
+ - (void)viewDidLoad;
340
+ - (void)viewWillAppear:(BOOL)animated;
341
+ - (void)viewDidAppear:(BOOL)animated;
342
+ - (void)viewWillDisappear:(BOOL)animated;
343
+ - (void)viewDidDisappear:(BOOL)animated;
344
+ @property (nonatomic, readonly) UIInterfaceOrientationMask supportedInterfaceOrientations;
345
+ - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
346
+ @end
347
+
348
+ @class UICollectionView;
349
+ @class NSIndexPath;
350
+ @interface ShortKitFeedViewController (SWIFT_EXTENSION(ShortKitSDK)) <UICollectionViewDataSourcePrefetching>
351
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView prefetchItemsAtIndexPaths:(NSArray<NSIndexPath *> * _Nonnull)indexPaths;
352
+ @end
353
+
354
+ @class UICollectionViewCell;
355
+ @class UIScrollView;
356
+ @interface ShortKitFeedViewController (SWIFT_EXTENSION(ShortKitSDK)) <UICollectionViewDelegate>
357
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView willDisplayCell:(UICollectionViewCell * _Nonnull)cell forItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
358
+ - (void)scrollViewWillEndDragging:(UIScrollView * _Nonnull)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(CGPoint * _Nonnull)targetContentOffset;
359
+ - (void)scrollViewWillBeginDragging:(UIScrollView * _Nonnull)scrollView;
360
+ - (void)scrollViewDidEndDecelerating:(UIScrollView * _Nonnull)scrollView;
361
+ - (void)scrollViewDidEndDragging:(UIScrollView * _Nonnull)scrollView willDecelerate:(BOOL)decelerate;
362
+ - (void)scrollViewDidScroll:(UIScrollView * _Nonnull)scrollView;
363
+ @end
364
+
365
+ /// Public single-video player view controller.
366
+ /// Starts in thumbnail-only mode and borrows an AVPlayer from the shared
367
+ /// <code>TilePlayerPool</code> when activated. Call <code>activate()</code> when the tile becomes
368
+ /// visible and <code>deactivate()</code> when it scrolls offscreen.
369
+ SWIFT_CLASS("_TtC11ShortKitSDK28ShortKitPlayerViewController")
370
+ @interface ShortKitPlayerViewController : UIViewController
371
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
372
+ - (void)viewDidLoad;
373
+ - (void)viewWillDisappear:(BOOL)animated;
374
+ - (void)viewDidLayoutSubviews;
375
+ - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
376
+ @end
377
+
378
+ @protocol UIViewControllerAnimatedTransitioning;
379
+ @interface ShortKitPlayerViewController (SWIFT_EXTENSION(ShortKitSDK)) <UIViewControllerTransitioningDelegate>
380
+ - (id <UIViewControllerAnimatedTransitioning> _Nullable)animationControllerForPresentedController:(UIViewController * _Nonnull)presented presentingController:(UIViewController * _Nonnull)presenting sourceController:(UIViewController * _Nonnull)source SWIFT_WARN_UNUSED_RESULT;
381
+ - (id <UIViewControllerAnimatedTransitioning> _Nullable)animationControllerForDismissedController:(UIViewController * _Nonnull)dismissed SWIFT_WARN_UNUSED_RESULT;
382
+ @end
383
+
384
+ /// Public horizontal carousel widget that displays a row of video cards.
385
+ /// Each card embeds a <code>ShortKitPlayerViewController</code>. One card plays at a time,
386
+ /// rotating at the configured interval. Tap opens the full-screen feed.
387
+ SWIFT_CLASS("_TtC11ShortKitSDK28ShortKitWidgetViewController")
388
+ @interface ShortKitWidgetViewController : UIViewController
389
+ - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)coder SWIFT_UNAVAILABLE;
390
+ - (void)viewDidLoad;
391
+ - (void)viewDidAppear:(BOOL)animated;
392
+ - (void)viewWillDisappear:(BOOL)animated;
393
+ - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil SWIFT_UNAVAILABLE;
394
+ @end
395
+
396
+ @interface ShortKitWidgetViewController (SWIFT_EXTENSION(ShortKitSDK)) <UICollectionViewDataSource>
397
+ - (NSInteger)collectionView:(UICollectionView * _Nonnull)collectionView numberOfItemsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT;
398
+ - (UICollectionViewCell * _Nonnull)collectionView:(UICollectionView * _Nonnull)collectionView cellForItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT;
399
+ @end
400
+
401
+ @interface ShortKitWidgetViewController (SWIFT_EXTENSION(ShortKitSDK)) <UIViewControllerTransitioningDelegate>
402
+ - (id <UIViewControllerAnimatedTransitioning> _Nullable)animationControllerForPresentedController:(UIViewController * _Nonnull)presented presentingController:(UIViewController * _Nonnull)presenting sourceController:(UIViewController * _Nonnull)source SWIFT_WARN_UNUSED_RESULT;
403
+ - (id <UIViewControllerAnimatedTransitioning> _Nullable)animationControllerForDismissedController:(UIViewController * _Nonnull)dismissed SWIFT_WARN_UNUSED_RESULT;
404
+ @end
405
+
406
+ @interface ShortKitWidgetViewController (SWIFT_EXTENSION(ShortKitSDK)) <UICollectionViewDelegate>
407
+ - (void)collectionView:(UICollectionView * _Nonnull)collectionView didSelectItemAtIndexPath:(NSIndexPath * _Nonnull)indexPath;
408
+ @end
409
+
410
+ #endif
411
+ #if __has_attribute(external_source_symbol)
412
+ # pragma clang attribute pop
413
+ #endif
414
+ #if defined(__cplusplus)
415
+ #endif
416
+ #pragma clang diagnostic pop
417
+ #endif
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
+ <plist version="1.0">
4
+ <dict>
5
+ <key>CFBundleExecutable</key>
6
+ <string>ShortKitSDK</string>
7
+ <key>CFBundleIdentifier</key>
8
+ <string>dev.shortkit.ShortKitSDK</string>
9
+ <key>CFBundleName</key>
10
+ <string>ShortKitSDK</string>
11
+ <key>CFBundlePackageType</key>
12
+ <string>FMWK</string>
13
+ <key>CFBundleVersion</key>
14
+ <string>1</string>
15
+ </dict>
16
+ </plist>