Showing
8 changed files
with
133 additions
and
0 deletions
No preview for this file type
| @@ -181,7 +181,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); | @@ -181,7 +181,9 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); | ||
| 181 | #if __has_warning("-Watimport-in-framework-header") | 181 | #if __has_warning("-Watimport-in-framework-header") |
| 182 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" | 182 | #pragma clang diagnostic ignored "-Watimport-in-framework-header" |
| 183 | #endif | 183 | #endif |
| 184 | +@import Foundation; | ||
| 184 | @import ObjectiveC; | 185 | @import ObjectiveC; |
| 186 | +@import UIKit; | ||
| 185 | #endif | 187 | #endif |
| 186 | 188 | ||
| 187 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" | 189 | #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" |
| @@ -200,6 +202,12 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); | @@ -200,6 +202,12 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); | ||
| 200 | #endif | 202 | #endif |
| 201 | 203 | ||
| 202 | 204 | ||
| 205 | + | ||
| 206 | + | ||
| 207 | + | ||
| 208 | + | ||
| 209 | + | ||
| 210 | + | ||
| 203 | SWIFT_CLASS("_TtC9HHSDKBase9HHBaseSDK") | 211 | SWIFT_CLASS("_TtC9HHSDKBase9HHBaseSDK") |
| 204 | @interface HHBaseSDK : NSObject | 212 | @interface HHBaseSDK : NSObject |
| 205 | SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHBaseSDK * _Nonnull default_;) | 213 | SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHBaseSDK * _Nonnull default_;) |
| @@ -225,6 +233,47 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | @@ -225,6 +233,47 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | ||
| 225 | @end | 233 | @end |
| 226 | 234 | ||
| 227 | 235 | ||
| 236 | +SWIFT_CLASS("_TtC9HHSDKBase11HHDateUtils") | ||
| 237 | +@interface HHDateUtils : NSObject | ||
| 238 | +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; | ||
| 239 | +@end | ||
| 240 | + | ||
| 241 | + | ||
| 242 | + | ||
| 243 | + | ||
| 244 | + | ||
| 245 | + | ||
| 246 | + | ||
| 247 | + | ||
| 248 | +SWIFT_CLASS("_TtC9HHSDKBase15HHDeviceManager") | ||
| 249 | +@interface HHDeviceManager : NSObject | ||
| 250 | +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; | ||
| 251 | +@end | ||
| 252 | + | ||
| 253 | + | ||
| 254 | +SWIFT_CLASS("_TtC9HHSDKBase18HHFileCacheManager") | ||
| 255 | +@interface HHFileCacheManager : NSObject | ||
| 256 | +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; | ||
| 257 | +@end | ||
| 258 | + | ||
| 259 | + | ||
| 260 | + | ||
| 261 | + | ||
| 262 | + | ||
| 263 | + | ||
| 264 | +SWIFT_CLASS("_TtC9HHSDKBase23HHMediaStatusCheckUtils") | ||
| 265 | +@interface HHMediaStatusCheckUtils : NSObject | ||
| 266 | +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; | ||
| 267 | +@end | ||
| 268 | + | ||
| 269 | + | ||
| 270 | +SWIFT_CLASS("_TtC9HHSDKBase18HHMedicNetObserver") | ||
| 271 | +@interface HHMedicNetObserver : NSObject | ||
| 272 | +- (nonnull instancetype)init SWIFT_UNAVAILABLE; | ||
| 273 | ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); | ||
| 274 | +@end | ||
| 275 | + | ||
| 276 | + | ||
| 228 | /// 基础全局配置 | 277 | /// 基础全局配置 |
| 229 | SWIFT_CLASS("_TtC9HHSDKBase16HHSDKBaseOptions") | 278 | SWIFT_CLASS("_TtC9HHSDKBase16HHSDKBaseOptions") |
| 230 | @interface HHSDKBaseOptions : NSObject | 279 | @interface HHSDKBaseOptions : NSObject |
| @@ -238,10 +287,94 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | @@ -238,10 +287,94 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | ||
| 238 | @property (nonatomic) BOOL isSDK; | 287 | @property (nonatomic) BOOL isSDK; |
| 239 | /// 产品ID | 288 | /// 产品ID |
| 240 | @property (nonatomic, copy) NSString * _Nonnull sdkProductId; | 289 | @property (nonatomic, copy) NSString * _Nonnull sdkProductId; |
| 290 | +/// hud | ||
| 291 | +@property (nonatomic) NSTimeInterval hudDisTime; | ||
| 241 | - (void)setConfig:(NSString * _Nonnull)sdkProductId isDebug:(BOOL)isDebug isDevelopment:(BOOL)isDevelopment; | 292 | - (void)setConfig:(NSString * _Nonnull)sdkProductId isDebug:(BOOL)isDebug isDevelopment:(BOOL)isDevelopment; |
| 242 | - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; | 293 | - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
| 243 | @end | 294 | @end |
| 244 | 295 | ||
| 296 | + | ||
| 297 | + | ||
| 298 | + | ||
| 299 | + | ||
| 300 | + | ||
| 301 | + | ||
| 302 | + | ||
| 303 | + | ||
| 304 | + | ||
| 305 | + | ||
| 306 | + | ||
| 307 | +/// Class which implements the various <code>URLSessionDelegate</code> methods to connect various Alamofire features. | ||
| 308 | +SWIFT_CLASS("_TtC9HHSDKBase15SessionDelegate") | ||
| 309 | +@interface SessionDelegate : NSObject | ||
| 310 | +- (nonnull instancetype)init SWIFT_UNAVAILABLE; | ||
| 311 | ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); | ||
| 312 | +@end | ||
| 313 | + | ||
| 314 | +@class NSURLSession; | ||
| 315 | + | ||
| 316 | +@interface SessionDelegate (SWIFT_EXTENSION(HHSDKBase)) <NSURLSessionDelegate> | ||
| 317 | +- (void)URLSession:(NSURLSession * _Nonnull)session didBecomeInvalidWithError:(NSError * _Nullable)error; | ||
| 318 | +@end | ||
| 319 | + | ||
| 320 | +@class NSURLSessionDataTask; | ||
| 321 | +@class NSCachedURLResponse; | ||
| 322 | + | ||
| 323 | +@interface SessionDelegate (SWIFT_EXTENSION(HHSDKBase)) <NSURLSessionDataDelegate> | ||
| 324 | +- (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask didReceiveData:(NSData * _Nonnull)data; | ||
| 325 | +- (void)URLSession:(NSURLSession * _Nonnull)session dataTask:(NSURLSessionDataTask * _Nonnull)dataTask willCacheResponse:(NSCachedURLResponse * _Nonnull)proposedResponse completionHandler:(void (^ _Nonnull)(NSCachedURLResponse * _Nullable))completionHandler; | ||
| 326 | +@end | ||
| 327 | + | ||
| 328 | +@class NSURLSessionDownloadTask; | ||
| 329 | + | ||
| 330 | +@interface SessionDelegate (SWIFT_EXTENSION(HHSDKBase)) <NSURLSessionDownloadDelegate> | ||
| 331 | +- (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didResumeAtOffset:(int64_t)fileOffset expectedTotalBytes:(int64_t)expectedTotalBytes; | ||
| 332 | +- (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didWriteData:(int64_t)bytesWritten totalBytesWritten:(int64_t)totalBytesWritten totalBytesExpectedToWrite:(int64_t)totalBytesExpectedToWrite; | ||
| 333 | +- (void)URLSession:(NSURLSession * _Nonnull)session downloadTask:(NSURLSessionDownloadTask * _Nonnull)downloadTask didFinishDownloadingToURL:(NSURL * _Nonnull)location; | ||
| 334 | +@end | ||
| 335 | + | ||
| 336 | +@class NSURLSessionTask; | ||
| 337 | +@class NSURLAuthenticationChallenge; | ||
| 338 | +@class NSURLCredential; | ||
| 339 | +@class NSInputStream; | ||
| 340 | +@class NSURLSessionTaskMetrics; | ||
| 341 | + | ||
| 342 | +@interface SessionDelegate (SWIFT_EXTENSION(HHSDKBase)) <NSURLSessionTaskDelegate> | ||
| 343 | +- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didReceiveChallenge:(NSURLAuthenticationChallenge * _Nonnull)challenge completionHandler:(void (^ _Nonnull)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completionHandler; | ||
| 344 | +- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didSendBodyData:(int64_t)bytesSent totalBytesSent:(int64_t)totalBytesSent totalBytesExpectedToSend:(int64_t)totalBytesExpectedToSend; | ||
| 345 | +- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task needNewBodyStream:(void (^ _Nonnull)(NSInputStream * _Nullable))completionHandler; | ||
| 346 | +- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task willPerformHTTPRedirection:(NSHTTPURLResponse * _Nonnull)response newRequest:(NSURLRequest * _Nonnull)request completionHandler:(void (^ _Nonnull)(NSURLRequest * _Nullable))completionHandler; | ||
| 347 | +- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didFinishCollectingMetrics:(NSURLSessionTaskMetrics * _Nonnull)metrics; | ||
| 348 | +- (void)URLSession:(NSURLSession * _Nonnull)session task:(NSURLSessionTask * _Nonnull)task didCompleteWithError:(NSError * _Nullable)error; | ||
| 349 | +- (void)URLSession:(NSURLSession * _Nonnull)session taskIsWaitingForConnectivity:(NSURLSessionTask * _Nonnull)task SWIFT_AVAILABILITY(watchos,introduced=4.0) SWIFT_AVAILABILITY(tvos,introduced=11.0) SWIFT_AVAILABILITY(ios,introduced=11.0) SWIFT_AVAILABILITY(macos,introduced=10.13); | ||
| 350 | +@end | ||
| 351 | + | ||
| 352 | + | ||
| 353 | + | ||
| 354 | + | ||
| 355 | + | ||
| 356 | + | ||
| 357 | + | ||
| 358 | + | ||
| 359 | + | ||
| 360 | + | ||
| 361 | + | ||
| 362 | + | ||
| 363 | + | ||
| 364 | + | ||
| 365 | + | ||
| 366 | + | ||
| 367 | + | ||
| 368 | + | ||
| 369 | +@interface UIViewController (SWIFT_EXTENSION(HHSDKBase)) | ||
| 370 | +- (void)hhCloseThisController; | ||
| 371 | +- (void)hhPopThisController; | ||
| 372 | +@end | ||
| 373 | + | ||
| 374 | + | ||
| 375 | + | ||
| 376 | + | ||
| 377 | + | ||
| 245 | #if __has_attribute(external_source_symbol) | 378 | #if __has_attribute(external_source_symbol) |
| 246 | # pragma clang attribute pop | 379 | # pragma clang attribute pop |
| 247 | #endif | 380 | #endif |
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
No preview for this file type
This diff could not be displayed because it is too large.
No preview for this file type
-
Please register or login to post a comment