ashen_23

sdk upgrade

Showing 37 changed files with 264 additions and 6 deletions
1 Pod::Spec.new do |s| 1 Pod::Spec.new do |s|
2 s.name = "HHDoctor_pro" 2 s.name = "HHDoctor_pro"
3 - s.version = "2.4.6.01" 3 + s.version = "2.4.6.02"
4 s.summary = "和缓视频医生 SDK" 4 s.summary = "和缓视频医生 SDK"
5 5
6 s.description = <<-DESC 6 s.description = <<-DESC
  1 +#if 0
  2 +#elif defined(__arm64__) && __arm64__
1 // Generated by Apple Swift version 5.1.3 effective-4.1.50 (swiftlang-1100.0.282.1 clang-1100.0.33.15) 3 // Generated by Apple Swift version 5.1.3 effective-4.1.50 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
2 #pragma clang diagnostic push 4 #pragma clang diagnostic push
3 #pragma clang diagnostic ignored "-Wgcc-compat" 5 #pragma clang diagnostic ignored "-Wgcc-compat"
@@ -200,19 +202,273 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); @@ -200,19 +202,273 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
200 # pragma pop_macro("any") 202 # pragma pop_macro("any")
201 #endif 203 #endif
202 204
203 -@class HHSDKOptions;  
204 @class UINavigationController; 205 @class UINavigationController;
205 206
206 SWIFT_CLASS("_TtC12HHDoctor_pro8HHDoctor") 207 SWIFT_CLASS("_TtC12HHDoctor_pro8HHDoctor")
207 @interface HHDoctor : NSObject 208 @interface HHDoctor : NSObject
208 SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHDoctor * _Nonnull default_;) 209 SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHDoctor * _Nonnull default_;)
209 + (HHDoctor * _Nonnull)default SWIFT_WARN_UNUSED_RESULT; 210 + (HHDoctor * _Nonnull)default SWIFT_WARN_UNUSED_RESULT;
210 -/// 自定义界面标题  
211 -@property (nonatomic, copy) NSString * _Nonnull title;  
212 /// 初始化 SDK 211 /// 初始化 SDK
213 -/// \param option 可选的 SDK 配置 212 +/// \param sdkProductId 产品 id
214 /// 213 ///
215 -- (void)startWithOption:(HHSDKOptions * _Nullable)option; 214 +/// \param debug 是否 debug 模式(debug 模式下控制台打印信息)
  215 +///
  216 +/// \param develop 是否是测试环境
  217 +///
  218 +/// \param title 服务名称(显示 title)
  219 +///
  220 +- (void)startWithSdkProductId:(NSString * _Nonnull)sdkProductId debug:(BOOL)debug develop:(BOOL)develop title:(NSString * _Nonnull)title;
  221 +/// 呼叫视频医生
  222 +/// \param token 当前用户的唯一标识符
  223 +///
  224 +/// \param topVC 当前导航控制器
  225 +///
  226 +/// \param finished 回调结果, String 为空表示退出成功
  227 +///
  228 +- (void)callDoctor:(NSString * _Nonnull)token topVC:(UINavigationController * _Nonnull)topVC finished:(void (^ _Nullable)(NSString * _Nullable))finished;
  229 +/// 退出登录(退出账号时请调用退出登录)
  230 +/// \param callback 回调结果, String 为空表示退出成功
  231 +///
  232 +- (void)logoutWithCallback:(void (^ _Nonnull)(NSString * _Nullable))callback;
  233 +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
  234 +@end
  235 +
  236 +
  237 +
  238 +
  239 +
  240 +
  241 +
  242 +
  243 +
  244 +
  245 +
  246 +
  247 +
  248 +#if __has_attribute(external_source_symbol)
  249 +# pragma clang attribute pop
  250 +#endif
  251 +#pragma clang diagnostic pop
  252 +
  253 +#elif defined(__ARM_ARCH_7A__) && __ARM_ARCH_7A__
  254 +// Generated by Apple Swift version 5.1.3 effective-4.1.50 (swiftlang-1100.0.282.1 clang-1100.0.33.15)
  255 +#pragma clang diagnostic push
  256 +#pragma clang diagnostic ignored "-Wgcc-compat"
  257 +
  258 +#if !defined(__has_include)
  259 +# define __has_include(x) 0
  260 +#endif
  261 +#if !defined(__has_attribute)
  262 +# define __has_attribute(x) 0
  263 +#endif
  264 +#if !defined(__has_feature)
  265 +# define __has_feature(x) 0
  266 +#endif
  267 +#if !defined(__has_warning)
  268 +# define __has_warning(x) 0
  269 +#endif
  270 +
  271 +#if __has_include(<swift/objc-prologue.h>)
  272 +# include <swift/objc-prologue.h>
  273 +#endif
  274 +
  275 +#pragma clang diagnostic ignored "-Wauto-import"
  276 +#include <Foundation/Foundation.h>
  277 +#include <stdint.h>
  278 +#include <stddef.h>
  279 +#include <stdbool.h>
  280 +
  281 +#if !defined(SWIFT_TYPEDEFS)
  282 +# define SWIFT_TYPEDEFS 1
  283 +# if __has_include(<uchar.h>)
  284 +# include <uchar.h>
  285 +# elif !defined(__cplusplus)
  286 +typedef uint_least16_t char16_t;
  287 +typedef uint_least32_t char32_t;
  288 +# endif
  289 +typedef float swift_float2 __attribute__((__ext_vector_type__(2)));
  290 +typedef float swift_float3 __attribute__((__ext_vector_type__(3)));
  291 +typedef float swift_float4 __attribute__((__ext_vector_type__(4)));
  292 +typedef double swift_double2 __attribute__((__ext_vector_type__(2)));
  293 +typedef double swift_double3 __attribute__((__ext_vector_type__(3)));
  294 +typedef double swift_double4 __attribute__((__ext_vector_type__(4)));
  295 +typedef int swift_int2 __attribute__((__ext_vector_type__(2)));
  296 +typedef int swift_int3 __attribute__((__ext_vector_type__(3)));
  297 +typedef int swift_int4 __attribute__((__ext_vector_type__(4)));
  298 +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2)));
  299 +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3)));
  300 +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
  301 +#endif
  302 +
  303 +#if !defined(SWIFT_PASTE)
  304 +# define SWIFT_PASTE_HELPER(x, y) x##y
  305 +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y)
  306 +#endif
  307 +#if !defined(SWIFT_METATYPE)
  308 +# define SWIFT_METATYPE(X) Class
  309 +#endif
  310 +#if !defined(SWIFT_CLASS_PROPERTY)
  311 +# if __has_feature(objc_class_property)
  312 +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__
  313 +# else
  314 +# define SWIFT_CLASS_PROPERTY(...)
  315 +# endif
  316 +#endif
  317 +
  318 +#if __has_attribute(objc_runtime_name)
  319 +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X)))
  320 +#else
  321 +# define SWIFT_RUNTIME_NAME(X)
  322 +#endif
  323 +#if __has_attribute(swift_name)
  324 +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X)))
  325 +#else
  326 +# define SWIFT_COMPILE_NAME(X)
  327 +#endif
  328 +#if __has_attribute(objc_method_family)
  329 +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X)))
  330 +#else
  331 +# define SWIFT_METHOD_FAMILY(X)
  332 +#endif
  333 +#if __has_attribute(noescape)
  334 +# define SWIFT_NOESCAPE __attribute__((noescape))
  335 +#else
  336 +# define SWIFT_NOESCAPE
  337 +#endif
  338 +#if __has_attribute(warn_unused_result)
  339 +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
  340 +#else
  341 +# define SWIFT_WARN_UNUSED_RESULT
  342 +#endif
  343 +#if __has_attribute(noreturn)
  344 +# define SWIFT_NORETURN __attribute__((noreturn))
  345 +#else
  346 +# define SWIFT_NORETURN
  347 +#endif
  348 +#if !defined(SWIFT_CLASS_EXTRA)
  349 +# define SWIFT_CLASS_EXTRA
  350 +#endif
  351 +#if !defined(SWIFT_PROTOCOL_EXTRA)
  352 +# define SWIFT_PROTOCOL_EXTRA
  353 +#endif
  354 +#if !defined(SWIFT_ENUM_EXTRA)
  355 +# define SWIFT_ENUM_EXTRA
  356 +#endif
  357 +#if !defined(SWIFT_CLASS)
  358 +# if __has_attribute(objc_subclassing_restricted)
  359 +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA
  360 +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  361 +# else
  362 +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  363 +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA
  364 +# endif
  365 +#endif
  366 +#if !defined(SWIFT_RESILIENT_CLASS)
  367 +# if __has_attribute(objc_class_stub)
  368 +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub))
  369 +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME)
  370 +# else
  371 +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME)
  372 +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME)
  373 +# endif
  374 +#endif
  375 +
  376 +#if !defined(SWIFT_PROTOCOL)
  377 +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  378 +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA
  379 +#endif
  380 +
  381 +#if !defined(SWIFT_EXTENSION)
  382 +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__)
  383 +#endif
  384 +
  385 +#if !defined(OBJC_DESIGNATED_INITIALIZER)
  386 +# if __has_attribute(objc_designated_initializer)
  387 +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer))
  388 +# else
  389 +# define OBJC_DESIGNATED_INITIALIZER
  390 +# endif
  391 +#endif
  392 +#if !defined(SWIFT_ENUM_ATTR)
  393 +# if defined(__has_attribute) && __has_attribute(enum_extensibility)
  394 +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility)))
  395 +# else
  396 +# define SWIFT_ENUM_ATTR(_extensibility)
  397 +# endif
  398 +#endif
  399 +#if !defined(SWIFT_ENUM)
  400 +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type
  401 +# if __has_feature(generalized_swift_name)
  402 +# 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
  403 +# else
  404 +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility)
  405 +# endif
  406 +#endif
  407 +#if !defined(SWIFT_UNAVAILABLE)
  408 +# define SWIFT_UNAVAILABLE __attribute__((unavailable))
  409 +#endif
  410 +#if !defined(SWIFT_UNAVAILABLE_MSG)
  411 +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg)))
  412 +#endif
  413 +#if !defined(SWIFT_AVAILABILITY)
  414 +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__)))
  415 +#endif
  416 +#if !defined(SWIFT_WEAK_IMPORT)
  417 +# define SWIFT_WEAK_IMPORT __attribute__((weak_import))
  418 +#endif
  419 +#if !defined(SWIFT_DEPRECATED)
  420 +# define SWIFT_DEPRECATED __attribute__((deprecated))
  421 +#endif
  422 +#if !defined(SWIFT_DEPRECATED_MSG)
  423 +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__)))
  424 +#endif
  425 +#if __has_feature(attribute_diagnose_if_objc)
  426 +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning")))
  427 +#else
  428 +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg)
  429 +#endif
  430 +#if !defined(IBSegueAction)
  431 +# define IBSegueAction
  432 +#endif
  433 +#if __has_feature(modules)
  434 +#if __has_warning("-Watimport-in-framework-header")
  435 +#pragma clang diagnostic ignored "-Watimport-in-framework-header"
  436 +#endif
  437 +@import ObjectiveC;
  438 +@import UIKit;
  439 +#endif
  440 +
  441 +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch"
  442 +#pragma clang diagnostic ignored "-Wduplicate-method-arg"
  443 +#if __has_warning("-Wpragma-clang-attribute")
  444 +# pragma clang diagnostic ignored "-Wpragma-clang-attribute"
  445 +#endif
  446 +#pragma clang diagnostic ignored "-Wunknown-pragmas"
  447 +#pragma clang diagnostic ignored "-Wnullability"
  448 +
  449 +#if __has_attribute(external_source_symbol)
  450 +# pragma push_macro("any")
  451 +# undef any
  452 +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="HHDoctor_pro",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol))
  453 +# pragma pop_macro("any")
  454 +#endif
  455 +
  456 +@class UINavigationController;
  457 +
  458 +SWIFT_CLASS("_TtC12HHDoctor_pro8HHDoctor")
  459 +@interface HHDoctor : NSObject
  460 +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHDoctor * _Nonnull default_;)
  461 ++ (HHDoctor * _Nonnull)default SWIFT_WARN_UNUSED_RESULT;
  462 +/// 初始化 SDK
  463 +/// \param sdkProductId 产品 id
  464 +///
  465 +/// \param debug 是否 debug 模式(debug 模式下控制台打印信息)
  466 +///
  467 +/// \param develop 是否是测试环境
  468 +///
  469 +/// \param title 服务名称(显示 title)
  470 +///
  471 +- (void)startWithSdkProductId:(NSString * _Nonnull)sdkProductId debug:(BOOL)debug develop:(BOOL)develop title:(NSString * _Nonnull)title;
216 /// 呼叫视频医生 472 /// 呼叫视频医生
217 /// \param token 当前用户的唯一标识符 473 /// \param token 当前用户的唯一标识符
218 /// 474 ///
@@ -244,3 +500,5 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau @@ -244,3 +500,5 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau
244 # pragma clang attribute pop 500 # pragma clang attribute pop
245 #endif 501 #endif
246 #pragma clang diagnostic pop 502 #pragma clang diagnostic pop
  503 +
  504 +#endif