Showing
8 changed files
with
254 additions
and
1 deletions
No preview for this file type
1 | +// Generated by Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) | ||
2 | +#pragma clang diagnostic push | ||
3 | +#pragma clang diagnostic ignored "-Wgcc-compat" | ||
4 | + | ||
5 | +#if !defined(__has_include) | ||
6 | +# define __has_include(x) 0 | ||
7 | +#endif | ||
8 | +#if !defined(__has_attribute) | ||
9 | +# define __has_attribute(x) 0 | ||
10 | +#endif | ||
11 | +#if !defined(__has_feature) | ||
12 | +# define __has_feature(x) 0 | ||
13 | +#endif | ||
14 | +#if !defined(__has_warning) | ||
15 | +# define __has_warning(x) 0 | ||
16 | +#endif | ||
17 | + | ||
18 | +#if __has_include(<swift/objc-prologue.h>) | ||
19 | +# include <swift/objc-prologue.h> | ||
20 | +#endif | ||
21 | + | ||
22 | +#pragma clang diagnostic ignored "-Wauto-import" | ||
23 | +#include <Foundation/Foundation.h> | ||
24 | +#include <stdint.h> | ||
25 | +#include <stddef.h> | ||
26 | +#include <stdbool.h> | ||
27 | + | ||
28 | +#if !defined(SWIFT_TYPEDEFS) | ||
29 | +# define SWIFT_TYPEDEFS 1 | ||
30 | +# if __has_include(<uchar.h>) | ||
31 | +# include <uchar.h> | ||
32 | +# elif !defined(__cplusplus) | ||
33 | +typedef uint_least16_t char16_t; | ||
34 | +typedef uint_least32_t char32_t; | ||
35 | +# endif | ||
36 | +typedef float swift_float2 __attribute__((__ext_vector_type__(2))); | ||
37 | +typedef float swift_float3 __attribute__((__ext_vector_type__(3))); | ||
38 | +typedef float swift_float4 __attribute__((__ext_vector_type__(4))); | ||
39 | +typedef double swift_double2 __attribute__((__ext_vector_type__(2))); | ||
40 | +typedef double swift_double3 __attribute__((__ext_vector_type__(3))); | ||
41 | +typedef double swift_double4 __attribute__((__ext_vector_type__(4))); | ||
42 | +typedef int swift_int2 __attribute__((__ext_vector_type__(2))); | ||
43 | +typedef int swift_int3 __attribute__((__ext_vector_type__(3))); | ||
44 | +typedef int swift_int4 __attribute__((__ext_vector_type__(4))); | ||
45 | +typedef unsigned int swift_uint2 __attribute__((__ext_vector_type__(2))); | ||
46 | +typedef unsigned int swift_uint3 __attribute__((__ext_vector_type__(3))); | ||
47 | +typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); | ||
48 | +#endif | ||
49 | + | ||
50 | +#if !defined(SWIFT_PASTE) | ||
51 | +# define SWIFT_PASTE_HELPER(x, y) x##y | ||
52 | +# define SWIFT_PASTE(x, y) SWIFT_PASTE_HELPER(x, y) | ||
53 | +#endif | ||
54 | +#if !defined(SWIFT_METATYPE) | ||
55 | +# define SWIFT_METATYPE(X) Class | ||
56 | +#endif | ||
57 | +#if !defined(SWIFT_CLASS_PROPERTY) | ||
58 | +# if __has_feature(objc_class_property) | ||
59 | +# define SWIFT_CLASS_PROPERTY(...) __VA_ARGS__ | ||
60 | +# else | ||
61 | +# define SWIFT_CLASS_PROPERTY(...) | ||
62 | +# endif | ||
63 | +#endif | ||
64 | + | ||
65 | +#if __has_attribute(objc_runtime_name) | ||
66 | +# define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) | ||
67 | +#else | ||
68 | +# define SWIFT_RUNTIME_NAME(X) | ||
69 | +#endif | ||
70 | +#if __has_attribute(swift_name) | ||
71 | +# define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) | ||
72 | +#else | ||
73 | +# define SWIFT_COMPILE_NAME(X) | ||
74 | +#endif | ||
75 | +#if __has_attribute(objc_method_family) | ||
76 | +# define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) | ||
77 | +#else | ||
78 | +# define SWIFT_METHOD_FAMILY(X) | ||
79 | +#endif | ||
80 | +#if __has_attribute(noescape) | ||
81 | +# define SWIFT_NOESCAPE __attribute__((noescape)) | ||
82 | +#else | ||
83 | +# define SWIFT_NOESCAPE | ||
84 | +#endif | ||
85 | +#if __has_attribute(warn_unused_result) | ||
86 | +# define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) | ||
87 | +#else | ||
88 | +# define SWIFT_WARN_UNUSED_RESULT | ||
89 | +#endif | ||
90 | +#if __has_attribute(noreturn) | ||
91 | +# define SWIFT_NORETURN __attribute__((noreturn)) | ||
92 | +#else | ||
93 | +# define SWIFT_NORETURN | ||
94 | +#endif | ||
95 | +#if !defined(SWIFT_CLASS_EXTRA) | ||
96 | +# define SWIFT_CLASS_EXTRA | ||
97 | +#endif | ||
98 | +#if !defined(SWIFT_PROTOCOL_EXTRA) | ||
99 | +# define SWIFT_PROTOCOL_EXTRA | ||
100 | +#endif | ||
101 | +#if !defined(SWIFT_ENUM_EXTRA) | ||
102 | +# define SWIFT_ENUM_EXTRA | ||
103 | +#endif | ||
104 | +#if !defined(SWIFT_CLASS) | ||
105 | +# if __has_attribute(objc_subclassing_restricted) | ||
106 | +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA | ||
107 | +# define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA | ||
108 | +# else | ||
109 | +# define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA | ||
110 | +# define SWIFT_CLASS_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA | ||
111 | +# endif | ||
112 | +#endif | ||
113 | +#if !defined(SWIFT_RESILIENT_CLASS) | ||
114 | +# if __has_attribute(objc_class_stub) | ||
115 | +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) __attribute__((objc_class_stub)) | ||
116 | +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_class_stub)) SWIFT_CLASS_NAMED(SWIFT_NAME) | ||
117 | +# else | ||
118 | +# define SWIFT_RESILIENT_CLASS(SWIFT_NAME) SWIFT_CLASS(SWIFT_NAME) | ||
119 | +# define SWIFT_RESILIENT_CLASS_NAMED(SWIFT_NAME) SWIFT_CLASS_NAMED(SWIFT_NAME) | ||
120 | +# endif | ||
121 | +#endif | ||
122 | + | ||
123 | +#if !defined(SWIFT_PROTOCOL) | ||
124 | +# define SWIFT_PROTOCOL(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA | ||
125 | +# define SWIFT_PROTOCOL_NAMED(SWIFT_NAME) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_PROTOCOL_EXTRA | ||
126 | +#endif | ||
127 | + | ||
128 | +#if !defined(SWIFT_EXTENSION) | ||
129 | +# define SWIFT_EXTENSION(M) SWIFT_PASTE(M##_Swift_, __LINE__) | ||
130 | +#endif | ||
131 | + | ||
132 | +#if !defined(OBJC_DESIGNATED_INITIALIZER) | ||
133 | +# if __has_attribute(objc_designated_initializer) | ||
134 | +# define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) | ||
135 | +# else | ||
136 | +# define OBJC_DESIGNATED_INITIALIZER | ||
137 | +# endif | ||
138 | +#endif | ||
139 | +#if !defined(SWIFT_ENUM_ATTR) | ||
140 | +# if defined(__has_attribute) && __has_attribute(enum_extensibility) | ||
141 | +# define SWIFT_ENUM_ATTR(_extensibility) __attribute__((enum_extensibility(_extensibility))) | ||
142 | +# else | ||
143 | +# define SWIFT_ENUM_ATTR(_extensibility) | ||
144 | +# endif | ||
145 | +#endif | ||
146 | +#if !defined(SWIFT_ENUM) | ||
147 | +# define SWIFT_ENUM(_type, _name, _extensibility) enum _name : _type _name; enum SWIFT_ENUM_ATTR(_extensibility) SWIFT_ENUM_EXTRA _name : _type | ||
148 | +# if __has_feature(generalized_swift_name) | ||
149 | +# 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 | ||
150 | +# else | ||
151 | +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME, _extensibility) SWIFT_ENUM(_type, _name, _extensibility) | ||
152 | +# endif | ||
153 | +#endif | ||
154 | +#if !defined(SWIFT_UNAVAILABLE) | ||
155 | +# define SWIFT_UNAVAILABLE __attribute__((unavailable)) | ||
156 | +#endif | ||
157 | +#if !defined(SWIFT_UNAVAILABLE_MSG) | ||
158 | +# define SWIFT_UNAVAILABLE_MSG(msg) __attribute__((unavailable(msg))) | ||
159 | +#endif | ||
160 | +#if !defined(SWIFT_AVAILABILITY) | ||
161 | +# define SWIFT_AVAILABILITY(plat, ...) __attribute__((availability(plat, __VA_ARGS__))) | ||
162 | +#endif | ||
163 | +#if !defined(SWIFT_WEAK_IMPORT) | ||
164 | +# define SWIFT_WEAK_IMPORT __attribute__((weak_import)) | ||
165 | +#endif | ||
166 | +#if !defined(SWIFT_DEPRECATED) | ||
167 | +# define SWIFT_DEPRECATED __attribute__((deprecated)) | ||
168 | +#endif | ||
169 | +#if !defined(SWIFT_DEPRECATED_MSG) | ||
170 | +# define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) | ||
171 | +#endif | ||
172 | +#if __has_feature(attribute_diagnose_if_objc) | ||
173 | +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) | ||
174 | +#else | ||
175 | +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) | ||
176 | +#endif | ||
177 | +#if !defined(IBSegueAction) | ||
178 | +# define IBSegueAction | ||
179 | +#endif | ||
180 | +#if __has_feature(modules) | ||
181 | +#if __has_warning("-Watimport-in-framework-header") | ||
182 | +#pragma clang diagnostic ignored "-Watimport-in-framework-header" | ||
183 | +#endif | ||
184 | +@import ObjectiveC; | ||
185 | +#endif | ||
186 | + | ||
187 | +#pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" | ||
188 | +#pragma clang diagnostic ignored "-Wduplicate-method-arg" | ||
189 | +#if __has_warning("-Wpragma-clang-attribute") | ||
190 | +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" | ||
191 | +#endif | ||
192 | +#pragma clang diagnostic ignored "-Wunknown-pragmas" | ||
193 | +#pragma clang diagnostic ignored "-Wnullability" | ||
194 | + | ||
195 | +#if __has_attribute(external_source_symbol) | ||
196 | +# pragma push_macro("any") | ||
197 | +# undef any | ||
198 | +# pragma clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in="HHSDKBase",generated_declaration))), apply_to=any(function,enum,objc_interface,objc_category,objc_protocol)) | ||
199 | +# pragma pop_macro("any") | ||
200 | +#endif | ||
201 | + | ||
202 | + | ||
203 | +SWIFT_CLASS("_TtC9HHSDKBase9HHBaseSDK") | ||
204 | +@interface HHBaseSDK : NSObject | ||
205 | +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHBaseSDK * _Nonnull default_;) | ||
206 | ++ (HHBaseSDK * _Nonnull)default SWIFT_WARN_UNUSED_RESULT; | ||
207 | +/// 登录账户 | ||
208 | +/// <ul> | ||
209 | +/// <li> | ||
210 | +/// Parameters: | ||
211 | +/// </li> | ||
212 | +/// <li> | ||
213 | +/// userToken: 用户的唯一标志 | ||
214 | +/// </li> | ||
215 | +/// <li> | ||
216 | +/// completion: 完成的回调 | ||
217 | +/// </li> | ||
218 | +/// </ul> | ||
219 | +- (void)loginWithUserToken:(NSString * _Nonnull)userToken completion:(void (^ _Nonnull)(NSError * _Nullable))completion; | ||
220 | +/// 登出 | ||
221 | +/// \param callback 登出回调(字符串为空表示成功) | ||
222 | +/// | ||
223 | +- (void)logout:(void (^ _Nullable)(NSString * _Nullable))callback; | ||
224 | +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; | ||
225 | +@end | ||
226 | + | ||
227 | + | ||
228 | +/// 基础全局配置 | ||
229 | +SWIFT_CLASS("_TtC9HHSDKBase16HHSDKBaseOptions") | ||
230 | +@interface HHSDKBaseOptions : NSObject | ||
231 | +SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHSDKBaseOptions * _Nonnull default_;) | ||
232 | ++ (HHSDKBaseOptions * _Nonnull)default SWIFT_WARN_UNUSED_RESULT; | ||
233 | +/// 调试模式(打印日志) | ||
234 | +@property (nonatomic) BOOL isDebug; | ||
235 | +/// 是否开启测试服 | ||
236 | +@property (nonatomic) BOOL isDevelopment; | ||
237 | +/// 是否是SDK | ||
238 | +@property (nonatomic) BOOL isSDK; | ||
239 | +/// 产品ID | ||
240 | +@property (nonatomic, copy) NSString * _Nonnull sdkProductId; | ||
241 | +- (void)setConfig:(NSString * _Nonnull)sdkProductId isDebug:(BOOL)isDebug isDevelopment:(BOOL)isDevelopment; | ||
242 | +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; | ||
243 | +@end | ||
244 | + | ||
245 | +#if __has_attribute(external_source_symbol) | ||
246 | +# pragma clang attribute pop | ||
247 | +#endif | ||
248 | +#pragma clang diagnostic pop |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
-
Please register or login to post a comment