Showing
70 changed files
with
22 additions
and
20 deletions
This file is too large to display.
No preview for this file type
@@ -205,11 +205,13 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); | @@ -205,11 +205,13 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); | ||
205 | 205 | ||
206 | 206 | ||
207 | 207 | ||
208 | +@protocol HHDNSProtocal; | ||
208 | 209 | ||
209 | SWIFT_CLASS("_TtC9HHSDKBase9HHBaseSDK") | 210 | SWIFT_CLASS("_TtC9HHSDKBase9HHBaseSDK") |
210 | @interface HHBaseSDK : NSObject | 211 | @interface HHBaseSDK : NSObject |
211 | SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHBaseSDK * _Nonnull default_;) | 212 | SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHBaseSDK * _Nonnull default_;) |
212 | + (HHBaseSDK * _Nonnull)default SWIFT_WARN_UNUSED_RESULT; | 213 | + (HHBaseSDK * _Nonnull)default SWIFT_WARN_UNUSED_RESULT; |
214 | +@property (nonatomic, strong) id <HHDNSProtocal> _Nullable dnsCallback; | ||
213 | /// SDK init | 215 | /// SDK init |
214 | - (void)start; | 216 | - (void)start; |
215 | /// 登录账户 | 217 | /// 登录账户 |
@@ -232,6 +234,16 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | @@ -232,6 +234,16 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau | ||
232 | - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; | 234 | - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; |
233 | @end | 235 | @end |
234 | 236 | ||
237 | +@class NSURLAuthenticationChallenge; | ||
238 | +@class NSURLCredential; | ||
239 | + | ||
240 | +SWIFT_PROTOCOL("_TtP9HHSDKBase13HHDNSProtocal_") | ||
241 | +@protocol HHDNSProtocal | ||
242 | +@optional | ||
243 | +- (NSString * _Nonnull)changeHost:(NSString * _Nonnull)hostDomain SWIFT_WARN_UNUSED_RESULT; | ||
244 | +- (void)requestHost:(NSString * _Nonnull)host challenge:(NSURLAuthenticationChallenge * _Nonnull)challenge completion:(SWIFT_NOESCAPE void (^ _Nonnull)(NSURLSessionAuthChallengeDisposition, NSURLCredential * _Nullable))completion; | ||
245 | +@end | ||
246 | + | ||
235 | 247 | ||
236 | SWIFT_CLASS("_TtC9HHSDKBase11HHDateUtils") | 248 | SWIFT_CLASS("_TtC9HHSDKBase11HHDateUtils") |
237 | @interface HHDateUtils : NSObject | 249 | @interface HHDateUtils : NSObject |
@@ -11,7 +11,6 @@ | @@ -11,7 +11,6 @@ | ||
11 | #endif | 11 | #endif |
12 | 12 | ||
13 | #import "HHMBProgressHUD.h" | 13 | #import "HHMBProgressHUD.h" |
14 | -#import "HttpsDNSAuth.h" | ||
15 | #import "ObjectMapper.h" | 14 | #import "ObjectMapper.h" |
16 | #import "HHAnimatedImageRep.h" | 15 | #import "HHAnimatedImageRep.h" |
17 | #import "HHImageCache.h" | 16 | #import "HHImageCache.h" |
1 | -// | ||
2 | -// HttpsDNSAuth.h | ||
3 | -// HHDoctorSDK | ||
4 | -// | ||
5 | -// Created by Shi Jian on 2018/8/9. | ||
6 | -// | ||
7 | - | ||
8 | -#import <UIKit/UIKit.h> | ||
9 | - | ||
10 | -@interface HttpsDNSAuth : NSObject | ||
11 | - | ||
12 | - | ||
13 | -//+ (void)sendRequest:(NSURLAuthenticationChallenge *)challenge request:(NSMutableURLRequest *)request; | ||
14 | - | ||
15 | -+ (void)requestHost:(NSString *_Nullable)host didReceiveChallenge:(NSURLAuthenticationChallenge *_Nullable)challenge completionHandler:(void (^_Nonnull)(NSURLSessionAuthChallengeDisposition, NSURLCredential *_Nullable))completionHandler; | ||
16 | - | ||
17 | -@end |
@@ -2,7 +2,6 @@ | @@ -2,7 +2,6 @@ | ||
2 | // swift-compiler-version: Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) | 2 | // swift-compiler-version: Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) |
3 | // swift-module-flags: -target arm64-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name HHSDKBase | 3 | // swift-module-flags: -target arm64-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name HHSDKBase |
4 | import AVFoundation | 4 | import AVFoundation |
5 | -import AlicloudHttpDNS | ||
6 | import Darwin | 5 | import Darwin |
7 | import Dispatch | 6 | import Dispatch |
8 | import Foundation | 7 | import Foundation |
@@ -186,6 +185,10 @@ extension Blowfish : HHSDKBase.Cipher { | @@ -186,6 +185,10 @@ extension Blowfish : HHSDKBase.Cipher { | ||
186 | final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int | 185 | final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int |
187 | final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int | 186 | final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int |
188 | } | 187 | } |
188 | +@objc public protocol HHDNSProtocal { | ||
189 | + @objc optional func changeHost(_ hostDomain: Swift.String) -> Swift.String | ||
190 | + @objc optional func requestHost(_ host: Swift.String, challenge: Foundation.URLAuthenticationChallenge, completion: (Foundation.URLSession.AuthChallengeDisposition, Foundation.URLCredential?) -> Swift.Void) | ||
191 | +} | ||
189 | public struct CBC : HHSDKBase.BlockMode { | 192 | public struct CBC : HHSDKBase.BlockMode { |
190 | public enum Error : Swift.Error { | 193 | public enum Error : Swift.Error { |
191 | case invalidInitializationVector | 194 | case invalidInitializationVector |
@@ -532,6 +535,7 @@ public var HMHudManager: HHSDKBase.HHHUDable { | @@ -532,6 +535,7 @@ public var HMHudManager: HHSDKBase.HHHUDable { | ||
532 | } | 535 | } |
533 | @objc public class HHBaseSDK : ObjectiveC.NSObject { | 536 | @objc public class HHBaseSDK : ObjectiveC.NSObject { |
534 | @objc public static let `default`: HHSDKBase.HHBaseSDK | 537 | @objc public static let `default`: HHSDKBase.HHBaseSDK |
538 | + @objc public var dnsCallback: HHSDKBase.HHDNSProtocal? | ||
535 | @objc public func start() | 539 | @objc public func start() |
536 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) | 540 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) |
537 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) | 541 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) |
No preview for this file type
@@ -2,7 +2,6 @@ | @@ -2,7 +2,6 @@ | ||
2 | // swift-compiler-version: Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) | 2 | // swift-compiler-version: Apple Swift version 5.1 (swiftlang-1100.0.270.13 clang-1100.0.33.7) |
3 | // swift-module-flags: -target arm64-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name HHSDKBase | 3 | // swift-module-flags: -target arm64-apple-ios10.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name HHSDKBase |
4 | import AVFoundation | 4 | import AVFoundation |
5 | -import AlicloudHttpDNS | ||
6 | import Darwin | 5 | import Darwin |
7 | import Dispatch | 6 | import Dispatch |
8 | import Foundation | 7 | import Foundation |
@@ -186,6 +185,10 @@ extension Blowfish : HHSDKBase.Cipher { | @@ -186,6 +185,10 @@ extension Blowfish : HHSDKBase.Cipher { | ||
186 | final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int | 185 | final public func encrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int |
187 | final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int | 186 | final public func decrypt<C>(_ bytes: C) throws -> Swift.Array<Swift.UInt8> where C : Swift.Collection, C.Element == Swift.UInt8, C.Index == Swift.Int |
188 | } | 187 | } |
188 | +@objc public protocol HHDNSProtocal { | ||
189 | + @objc optional func changeHost(_ hostDomain: Swift.String) -> Swift.String | ||
190 | + @objc optional func requestHost(_ host: Swift.String, challenge: Foundation.URLAuthenticationChallenge, completion: (Foundation.URLSession.AuthChallengeDisposition, Foundation.URLCredential?) -> Swift.Void) | ||
191 | +} | ||
189 | public struct CBC : HHSDKBase.BlockMode { | 192 | public struct CBC : HHSDKBase.BlockMode { |
190 | public enum Error : Swift.Error { | 193 | public enum Error : Swift.Error { |
191 | case invalidInitializationVector | 194 | case invalidInitializationVector |
@@ -532,6 +535,7 @@ public var HMHudManager: HHSDKBase.HHHUDable { | @@ -532,6 +535,7 @@ public var HMHudManager: HHSDKBase.HHHUDable { | ||
532 | } | 535 | } |
533 | @objc public class HHBaseSDK : ObjectiveC.NSObject { | 536 | @objc public class HHBaseSDK : ObjectiveC.NSObject { |
534 | @objc public static let `default`: HHSDKBase.HHBaseSDK | 537 | @objc public static let `default`: HHSDKBase.HHBaseSDK |
538 | + @objc public var dnsCallback: HHSDKBase.HHDNSProtocal? | ||
535 | @objc public func start() | 539 | @objc public func start() |
536 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) | 540 | @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) |
537 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) | 541 | @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) |
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
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