chengyanfang

sdk upgrade

Showing 33 changed files with 545 additions and 2 deletions
@@ -19,8 +19,8 @@ Pod::Spec.new do |s| @@ -19,8 +19,8 @@ Pod::Spec.new do |s|
19 # s.dependency 'TXIMSDK_iOS' 19 # s.dependency 'TXIMSDK_iOS'
20 20
21 s.subspec 'Base' do |base| 21 s.subspec 'Base' do |base|
22 - base.vendored_frameworks = 'HHSDKBase/*.framework'  
23 - base.resources = 'HHSDKBase/resources/*.bundle' 22 + base.vendored_frameworks = 'HHSDKVideo/*.framework'
  23 + base.resources = 'HHSDKVideo/resources/*.bundle'
24 24
25 base.frameworks = 'SystemConfiguration', 'MobileCoreServices', 'AVFoundation', 'CoreTelephony', 'VideoToolbox', 'AudioToolbox', 'CoreMedia' 25 base.frameworks = 'SystemConfiguration', 'MobileCoreServices', 'AVFoundation', 'CoreTelephony', 'VideoToolbox', 'AudioToolbox', 'CoreMedia'
26 base.libraries = 'z', 'sqlite3.0', 'c++', 'resolv.9' 26 base.libraries = 'z', 'sqlite3.0', 'c++', 'resolv.9'
No preview for this file type
  1 +#if 0
  2 +#elif defined(__arm64__) && __arm64__
  3 +// Generated by Apple Swift version 5.3.1 effective-4.1.50 (swiftlang-1200.0.41 clang-1200.0.32.8)
  4 +#ifndef HHSDKVIDEO_SWIFT_H
  5 +#define HHSDKVIDEO_SWIFT_H
  6 +#pragma clang diagnostic push
  7 +#pragma clang diagnostic ignored "-Wgcc-compat"
  8 +
  9 +#if !defined(__has_include)
  10 +# define __has_include(x) 0
  11 +#endif
  12 +#if !defined(__has_attribute)
  13 +# define __has_attribute(x) 0
  14 +#endif
  15 +#if !defined(__has_feature)
  16 +# define __has_feature(x) 0
  17 +#endif
  18 +#if !defined(__has_warning)
  19 +# define __has_warning(x) 0
  20 +#endif
  21 +
  22 +#if __has_include(<swift/objc-prologue.h>)
  23 +# include <swift/objc-prologue.h>
  24 +#endif
  25 +
  26 +#pragma clang diagnostic ignored "-Wauto-import"
  27 +#include <Foundation/Foundation.h>
  28 +#include <stdint.h>
  29 +#include <stddef.h>
  30 +#include <stdbool.h>
  31 +
  32 +#if !defined(SWIFT_TYPEDEFS)
  33 +# define SWIFT_TYPEDEFS 1
  34 +# if __has_include(<uchar.h>)
  35 +# include <uchar.h>
  36 +# elif !defined(__cplusplus)
  37 +typedef uint_least16_t char16_t;
  38 +typedef uint_least32_t char32_t;
  39 +# endif
  40 +typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
  41 +typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
  42 +typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
  43 +typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
  44 +typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
  45 +typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
  46 +typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
  47 +typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
  48 +typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
  49 +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
  50 +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
  51 +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
  52 +#endif
  53 +
  54 +#if !defined(SWIFT_PASTE)
  55 +# define SWIFT_PASTE_HELPER(x, y) x##y
  56 +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
  57 +#endif
  58 +#if !defined(SWIFT_METATYPE)
  59 +# define SWIFT_METATYPE(X) Class
  60 +#endif
  61 +#if !defined(SWIFT_CLASS_PROPERTY)
  62 +# if __has_feature(objc_class_property)
  63 +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
  64 +# else
  65 +# define SWIFT_CLASS_PROPERTY(...)
  66 +# endif
  67 +#endif
  68 +
  69 +#if __has_attribute(objc_runtime_name)
  70 +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
  71 +#else
  72 +# define SWIFT_RUNTIME_NAME(X)
  73 +#endif
  74 +#if __has_attribute(swift_name)
  75 +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
  76 +#else
  77 +# define SWIFT_COMPILE_NAME(X)
  78 +#endif
  79 +#if __has_attribute(objc_method_family)
  80 +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
  81 +#else
  82 +# define SWIFT_METHOD_FAMILY(X)
  83 +#endif
  84 +#if __has_attribute(noescape)
  85 +# define SWIFT_NOESCAPE __attribute__((noescape))
  86 +#else
  87 +# define SWIFT_NOESCAPE
  88 +#endif
  89 +#if __has_attribute(ns_consumed)
  90 +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
  91 +#else
  92 +# define SWIFT_RELEASES_ARGUMENT
  93 +#endif
  94 +#if __has_attribute(warn_unused_result)
  95 +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
  96 +#else
  97 +# define SWIFT_WARN_UNUSED_RESULT
  98 +#endif
  99 +#if __has_attribute(noreturn)
  100 +# define SWIFT_NORETURN __attribute__((noreturn))
  101 +#else
  102 +# define SWIFT_NORETURN
  103 +#endif
  104 +#if !defined(SWIFT_CLASS_EXTRA)
  105 +# define SWIFT_CLASS_EXTRA
  106 +#endif
  107 +#if !defined(SWIFT_PROTOCOL_EXTRA)
  108 +# define SWIFT_PROTOCOL_EXTRA
  109 +#endif
  110 +#if !defined(SWIFT_ENUM_EXTRA)
  111 +# define SWIFT_ENUM_EXTRA
  112 +#endif
  113 +#if !defined(SWIFT_CLASS)
  114 +# if __has_attribute(objc_subclassing_restricted)
  115 +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
  116 +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  117 +# else
  118 +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  119 +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  120 +# endif
  121 +#endif
  122 +#if !defined(SWIFT_RESILIENT_CLASS)
  123 +# if __has_attribute(objc_class_stub)
  124 +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
  125 +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
  126 +# else
  127 +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
  128 +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
  129 +# endif
  130 +#endif
  131 +
  132 +#if !defined(SWIFT_PROTOCOL)
  133 +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  134 +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  135 +#endif
  136 +
  137 +#if !defined(SWIFT_EXTENSION)
  138 +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
  139 +#endif
  140 +
  141 +#if !defined(OBJC_DESIGNATED_INITIALIZER)
  142 +# if __has_attribute(objc_designated_initializer)
  143 +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
  144 +# else
  145 +# define OBJC_DESIGNATED_INITIALIZER
  146 +# endif
  147 +#endif
  148 +#if !defined(SWIFT_ENUM_ATTR)
  149 +# if defined(__has_attribute) && __has_attribute(enum_extensibility)
  150 +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
  151 +# else
  152 +# define SWIFT_ENUM_ATTR(_extensibility)
  153 +# endif
  154 +#endif
  155 +#if !defined(SWIFT_ENUM)
  156 +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
  157 +# if __has_feature(generalized_swift_name)
  158 +# 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
  159 +# else
  160 +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
  161 +# endif
  162 +#endif
  163 +#if !defined(SWIFT_UNAVAILABLE)
  164 +# define SWIFT_UNAVAILABLE __attribute__((unavailable))
  165 +#endif
  166 +#if !defined(SWIFT_UNAVAILABLE_MSG)
  167 +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
  168 +#endif
  169 +#if !defined(SWIFT_AVAILABILITY)
  170 +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
  171 +#endif
  172 +#if !defined(SWIFT_WEAK_IMPORT)
  173 +# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
  174 +#endif
  175 +#if !defined(SWIFT_DEPRECATED)
  176 +# define SWIFT_DEPRECATED __attribute__((deprecated))
  177 +#endif
  178 +#if !defined(SWIFT_DEPRECATED_MSG)
  179 +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
  180 +#endif
  181 +#if __has_feature(attribute_diagnose_if_objc)
  182 +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
  183 +#else
  184 +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
  185 +#endif
  186 +#if !defined(IBSegueAction)
  187 +# define IBSegueAction
  188 +#endif
  189 +#if __has_feature(modules)
  190 +#if __has_warning("-Watimport-in-framework-header")
  191 +#pragma clang diagnostic ignored "-Watimport-in-framework-header"
  192 +#endif
  193 +@import ObjectiveC;
  194 +#endif
  195 +
  196 +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
  197 +#pragma clang diagnostic ignored "-Wduplicate-method-arg"
  198 +#if __has_warning("-Wpragma-clang-attribute")
  199 +# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
  200 +#endif
  201 +#pragma clang diagnostic ignored "-Wunknown-pragmas"
  202 +#pragma clang diagnostic ignored "-Wnullability"
  203 +
  204 +#if __has_attribute(external_source_symbol)
  205 +# pragma push_macro("any")
  206 +# undef any
  207 +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="HHSDKVideo",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
  208 +# pragma pop_macro("any")
  209 +#endif
  210 +
  211 +
  212 +/// 基础全局配置
  213 +SWIFT_CLASS("_TtC10HHSDKVideo12HHSDKOptions")
  214 +@interface HHSDKOptions : NSObject
  215 +/// 调试模式(打印日志)
  216 +@property (nonatomic) BOOL isDebug;
  217 +/// 是否开启测试服
  218 +@property (nonatomic) BOOL isDevelopment;
  219 +/// 产品ID
  220 +@property (nonatomic, copy) NSString * _Nonnull sdkProductId;
  221 +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHSDKOptions * _Nonnull default_;)
  222 ++ (HHSDKOptions * _Nonnull)default SWIFT_WARN_UNUSED_RESULT;
  223 +- (nonnull instancetype)initWithSdkProductId:(NSString * _Nonnull)sdkProductId isDebug:(BOOL)isDebug isDevelop:(BOOL)isDevelop OBJC_DESIGNATED_INITIALIZER;
  224 +- (nonnull instancetype)init SWIFT_UNAVAILABLE;
  225 ++ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
  226 +@end
  227 +
  228 +
  229 +SWIFT_CLASS("_TtC10HHSDKVideo7HHVideo")
  230 +@interface HHVideo : NSObject
  231 +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHVideo * _Nonnull default_;)
  232 ++ (HHVideo * _Nonnull)default SWIFT_WARN_UNUSED_RESULT;
  233 +/// 初始化 SDK
  234 +/// \param option 可选的 SDK 配置
  235 +///
  236 +- (void)startWithOption:(HHSDKOptions * _Nullable)option;
  237 +/// 登录账户
  238 +/// <ul>
  239 +/// <li>
  240 +/// Parameters:
  241 +/// </li>
  242 +/// <li>
  243 +/// userToken: 用户的唯一标志
  244 +/// </li>
  245 +/// <li>
  246 +/// completion: 完成的回调
  247 +/// </li>
  248 +/// </ul>
  249 +- (void)loginWithUserToken:(NSString * _Nonnull)userToken completion:(void (^ _Nonnull)(NSError * _Nullable))completion;
  250 +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  251 +@end
  252 +
  253 +#if __has_attribute(external_source_symbol)
  254 +# pragma clang attribute pop
  255 +#endif
  256 +#pragma clang diagnostic pop
  257 +#endif
  258 +
  259 +#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__
  260 +// Generated by Apple Swift version 5.3.1 effective-4.1.50 (swiftlang-1200.0.41 clang-1200.0.32.8)
  261 +#ifndef HHSDKVIDEO_SWIFT_H
  262 +#define HHSDKVIDEO_SWIFT_H
  263 +#pragma clang diagnostic push
  264 +#pragma clang diagnostic ignored "-Wgcc-compat"
  265 +
  266 +#if !defined(__has_include)
  267 +# define __has_include(x) 0
  268 +#endif
  269 +#if !defined(__has_attribute)
  270 +# define __has_attribute(x) 0
  271 +#endif
  272 +#if !defined(__has_feature)
  273 +# define __has_feature(x) 0
  274 +#endif
  275 +#if !defined(__has_warning)
  276 +# define __has_warning(x) 0
  277 +#endif
  278 +
  279 +#if __has_include(<swift/objc-prologue.h>)
  280 +# include <swift/objc-prologue.h>
  281 +#endif
  282 +
  283 +#pragma clang diagnostic ignored "-Wauto-import"
  284 +#include <Foundation/Foundation.h>
  285 +#include <stdint.h>
  286 +#include <stddef.h>
  287 +#include <stdbool.h>
  288 +
  289 +#if !defined(SWIFT_TYPEDEFS)
  290 +# define SWIFT_TYPEDEFS 1
  291 +# if __has_include(<uchar.h>)
  292 +# include <uchar.h>
  293 +# elif !defined(__cplusplus)
  294 +typedef uint_least16_t char16_t;
  295 +typedef uint_least32_t char32_t;
  296 +# endif
  297 +typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
  298 +typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
  299 +typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
  300 +typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
  301 +typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
  302 +typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
  303 +typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
  304 +typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
  305 +typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
  306 +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
  307 +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
  308 +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
  309 +#endif
  310 +
  311 +#if !defined(SWIFT_PASTE)
  312 +# define SWIFT_PASTE_HELPER(x, y) x##y
  313 +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
  314 +#endif
  315 +#if !defined(SWIFT_METATYPE)
  316 +# define SWIFT_METATYPE(X) Class
  317 +#endif
  318 +#if !defined(SWIFT_CLASS_PROPERTY)
  319 +# if __has_feature(objc_class_property)
  320 +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
  321 +# else
  322 +# define SWIFT_CLASS_PROPERTY(...)
  323 +# endif
  324 +#endif
  325 +
  326 +#if __has_attribute(objc_runtime_name)
  327 +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
  328 +#else
  329 +# define SWIFT_RUNTIME_NAME(X)
  330 +#endif
  331 +#if __has_attribute(swift_name)
  332 +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
  333 +#else
  334 +# define SWIFT_COMPILE_NAME(X)
  335 +#endif
  336 +#if __has_attribute(objc_method_family)
  337 +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
  338 +#else
  339 +# define SWIFT_METHOD_FAMILY(X)
  340 +#endif
  341 +#if __has_attribute(noescape)
  342 +# define SWIFT_NOESCAPE __attribute__((noescape))
  343 +#else
  344 +# define SWIFT_NOESCAPE
  345 +#endif
  346 +#if __has_attribute(ns_consumed)
  347 +# define SWIFT_RELEASES_ARGUMENT __attribute__((ns_consumed))
  348 +#else
  349 +# define SWIFT_RELEASES_ARGUMENT
  350 +#endif
  351 +#if __has_attribute(warn_unused_result)
  352 +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
  353 +#else
  354 +# define SWIFT_WARN_UNUSED_RESULT
  355 +#endif
  356 +#if __has_attribute(noreturn)
  357 +# define SWIFT_NORETURN __attribute__((noreturn))
  358 +#else
  359 +# define SWIFT_NORETURN
  360 +#endif
  361 +#if !defined(SWIFT_CLASS_EXTRA)
  362 +# define SWIFT_CLASS_EXTRA
  363 +#endif
  364 +#if !defined(SWIFT_PROTOCOL_EXTRA)
  365 +# define SWIFT_PROTOCOL_EXTRA
  366 +#endif
  367 +#if !defined(SWIFT_ENUM_EXTRA)
  368 +# define SWIFT_ENUM_EXTRA
  369 +#endif
  370 +#if !defined(SWIFT_CLASS)
  371 +# if __has_attribute(objc_subclassing_restricted)
  372 +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
  373 +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  374 +# else
  375 +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  376 +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  377 +# endif
  378 +#endif
  379 +#if !defined(SWIFT_RESILIENT_CLASS)
  380 +# if __has_attribute(objc_class_stub)
  381 +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
  382 +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
  383 +# else
  384 +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
  385 +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
  386 +# endif
  387 +#endif
  388 +
  389 +#if !defined(SWIFT_PROTOCOL)
  390 +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  391 +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  392 +#endif
  393 +
  394 +#if !defined(SWIFT_EXTENSION)
  395 +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
  396 +#endif
  397 +
  398 +#if !defined(OBJC_DESIGNATED_INITIALIZER)
  399 +# if __has_attribute(objc_designated_initializer)
  400 +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
  401 +# else
  402 +# define OBJC_DESIGNATED_INITIALIZER
  403 +# endif
  404 +#endif
  405 +#if !defined(SWIFT_ENUM_ATTR)
  406 +# if defined(__has_attribute) && __has_attribute(enum_extensibility)
  407 +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
  408 +# else
  409 +# define SWIFT_ENUM_ATTR(_extensibility)
  410 +# endif
  411 +#endif
  412 +#if !defined(SWIFT_ENUM)
  413 +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
  414 +# if __has_feature(generalized_swift_name)
  415 +# 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
  416 +# else
  417 +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
  418 +# endif
  419 +#endif
  420 +#if !defined(SWIFT_UNAVAILABLE)
  421 +# define SWIFT_UNAVAILABLE __attribute__((unavailable))
  422 +#endif
  423 +#if !defined(SWIFT_UNAVAILABLE_MSG)
  424 +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
  425 +#endif
  426 +#if !defined(SWIFT_AVAILABILITY)
  427 +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
  428 +#endif
  429 +#if !defined(SWIFT_WEAK_IMPORT)
  430 +# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
  431 +#endif
  432 +#if !defined(SWIFT_DEPRECATED)
  433 +# define SWIFT_DEPRECATED __attribute__((deprecated))
  434 +#endif
  435 +#if !defined(SWIFT_DEPRECATED_MSG)
  436 +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
  437 +#endif
  438 +#if __has_feature(attribute_diagnose_if_objc)
  439 +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
  440 +#else
  441 +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
  442 +#endif
  443 +#if !defined(IBSegueAction)
  444 +# define IBSegueAction
  445 +#endif
  446 +#if __has_feature(modules)
  447 +#if __has_warning("-Watimport-in-framework-header")
  448 +#pragma clang diagnostic ignored "-Watimport-in-framework-header"
  449 +#endif
  450 +@import ObjectiveC;
  451 +#endif
  452 +
  453 +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
  454 +#pragma clang diagnostic ignored "-Wduplicate-method-arg"
  455 +#if __has_warning("-Wpragma-clang-attribute")
  456 +# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
  457 +#endif
  458 +#pragma clang diagnostic ignored "-Wunknown-pragmas"
  459 +#pragma clang diagnostic ignored "-Wnullability"
  460 +
  461 +#if __has_attribute(external_source_symbol)
  462 +# pragma push_macro("any")
  463 +# undef any
  464 +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="HHSDKVideo",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
  465 +# pragma pop_macro("any")
  466 +#endif
  467 +
  468 +
  469 +/// 基础全局配置
  470 +SWIFT_CLASS("_TtC10HHSDKVideo12HHSDKOptions")
  471 +@interface HHSDKOptions : NSObject
  472 +/// 调试模式(打印日志)
  473 +@property (nonatomic) BOOL isDebug;
  474 +/// 是否开启测试服
  475 +@property (nonatomic) BOOL isDevelopment;
  476 +/// 产品ID
  477 +@property (nonatomic, copy) NSString * _Nonnull sdkProductId;
  478 +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHSDKOptions * _Nonnull default_;)
  479 ++ (HHSDKOptions * _Nonnull)default SWIFT_WARN_UNUSED_RESULT;
  480 +- (nonnull instancetype)initWithSdkProductId:(NSString * _Nonnull)sdkProductId isDebug:(BOOL)isDebug isDevelop:(BOOL)isDevelop OBJC_DESIGNATED_INITIALIZER;
  481 +- (nonnull instancetype)init SWIFT_UNAVAILABLE;
  482 ++ (nonnull instancetype)new SWIFT_DEPRECATED_MSG("-init is unavailable");
  483 +@end
  484 +
  485 +
  486 +SWIFT_CLASS("_TtC10HHSDKVideo7HHVideo")
  487 +@interface HHVideo : NSObject
  488 +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHVideo * _Nonnull default_;)
  489 ++ (HHVideo * _Nonnull)default SWIFT_WARN_UNUSED_RESULT;
  490 +/// 初始化 SDK
  491 +/// \param option 可选的 SDK 配置
  492 +///
  493 +- (void)startWithOption:(HHSDKOptions * _Nullable)option;
  494 +/// 登录账户
  495 +/// <ul>
  496 +/// <li>
  497 +/// Parameters:
  498 +/// </li>
  499 +/// <li>
  500 +/// userToken: 用户的唯一标志
  501 +/// </li>
  502 +/// <li>
  503 +/// completion: 完成的回调
  504 +/// </li>
  505 +/// </ul>
  506 +- (void)loginWithUserToken:(NSString * _Nonnull)userToken completion:(void (^ _Nonnull)(NSError * _Nullable))completion;
  507 +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  508 +@end
  509 +
  510 +#if __has_attribute(external_source_symbol)
  511 +# pragma clang attribute pop
  512 +#endif
  513 +#pragma clang diagnostic pop
  514 +#endif
  515 +
  516 +#endif
  1 +#ifdef __OBJC__
  2 +#import <UIKit/UIKit.h>
  3 +#else
  4 +#ifndef FOUNDATION_EXPORT
  5 +#if defined(__cplusplus)
  6 +#define FOUNDATION_EXPORT extern "C"
  7 +#else
  8 +#define FOUNDATION_EXPORT extern
  9 +#endif
  10 +#endif
  11 +#endif
  12 +
  13 +
  14 +FOUNDATION_EXPORT double HHSDKVideoVersionNumber;
  15 +FOUNDATION_EXPORT const unsigned char HHSDKVideoVersionString[];
  16 +
No preview for this file type
  1 +framework module HHSDKVideo {
  2 + umbrella header "HHSDKVideo-umbrella.h"
  3 +
  4 + export *
  5 + module * { export * }
  6 +}
  7 +
  8 +module HHSDKVideo.Swift {
  9 + header "HHSDKVideo-Swift.h"
  10 + requires objc
  11 +}