chengyanfang

sdk upgrade

Showing 71 changed files with 12 additions and 22 deletions
1 Pod::Spec.new do |s| 1 Pod::Spec.new do |s|
2 s.name = "HHMedicSDK" 2 s.name = "HHMedicSDK"
3 - s.version = "3.1.2.042211" 3 + s.version = "3.1.2.042212"
4 s.summary = "和缓基础SDK" 4 s.summary = "和缓基础SDK"
5 5
6 s.description = <<-DESC 6 s.description = <<-DESC
@@ -3,5 +3,5 @@ @@ -3,5 +3,5 @@
3 <plist version="1.0"> 3 <plist version="1.0">
4 <dict> 4 <dict>
5 <key>HHBundleVersion</key> 5 <key>HHBundleVersion</key>
6 -<string>3.1.2.042211</string></dict> 6 +<string>3.1.2.042212</string></dict>
7 </plist> 7 </plist>
@@ -205,13 +205,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); @@ -205,13 +205,11 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
205 205
206 206
207 207
208 -@protocol HHDNSProtocal;  
209 208
210 SWIFT_CLASS("_TtC9HHSDKBase9HHBaseSDK") 209 SWIFT_CLASS("_TtC9HHSDKBase9HHBaseSDK")
211 @interface HHBaseSDK : NSObject 210 @interface HHBaseSDK : NSObject
212 SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHBaseSDK * _Nonnull default_;) 211 SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=default) HHBaseSDK * _Nonnull default_;)
213 + (HHBaseSDK * _Nonnull)default SWIFT_WARN_UNUSED_RESULT; 212 + (HHBaseSDK * _Nonnull)default SWIFT_WARN_UNUSED_RESULT;
214 -@property (nonatomic, strong) id <HHDNSProtocal> _Nullable dnsCallback;  
215 /// SDK init 213 /// SDK init
216 - (void)start; 214 - (void)start;
217 /// 登录账户 215 /// 登录账户
@@ -234,16 +232,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau @@ -234,16 +232,6 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong, getter=defau
234 - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; 232 - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER;
235 @end 233 @end
236 234
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 -  
247 235
248 SWIFT_CLASS("_TtC9HHSDKBase11HHDateUtils") 236 SWIFT_CLASS("_TtC9HHSDKBase11HHDateUtils")
249 @interface HHDateUtils : NSObject 237 @interface HHDateUtils : NSObject
@@ -185,9 +185,9 @@ extension Blowfish : HHSDKBase.Cipher { @@ -185,9 +185,9 @@ extension Blowfish : HHSDKBase.Cipher {
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 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
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 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
187 } 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) 188 +public protocol HHDNSProtocal {
  189 + func changeHost(_ hostDomain: Swift.String) -> Swift.String
  190 + func requestHost(_ host: Swift.String, challenge: Foundation.URLAuthenticationChallenge, completion: @escaping (Foundation.URLSession.AuthChallengeDisposition, Foundation.URLCredential?) -> Swift.Void)
191 } 191 }
192 public struct CBC : HHSDKBase.BlockMode { 192 public struct CBC : HHSDKBase.BlockMode {
193 public enum Error : Swift.Error { 193 public enum Error : Swift.Error {
@@ -535,7 +535,7 @@ public var HMHudManager: HHSDKBase.HHHUDable { @@ -535,7 +535,7 @@ public var HMHudManager: HHSDKBase.HHHUDable {
535 } 535 }
536 @objc public class HHBaseSDK : ObjectiveC.NSObject { 536 @objc public class HHBaseSDK : ObjectiveC.NSObject {
537 @objc public static let `default`: HHSDKBase.HHBaseSDK 537 @objc public static let `default`: HHSDKBase.HHBaseSDK
538 - @objc public var dnsCallback: HHSDKBase.HHDNSProtocal? 538 + public var dnsCallback: HHSDKBase.HHDNSProtocal?
539 @objc public func start() 539 @objc public func start()
540 @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) 540 @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler)
541 @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) 541 @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil)
@@ -886,6 +886,7 @@ extension UIView { @@ -886,6 +886,7 @@ extension UIView {
886 public class func viewFromNib<T>(_ aClass: T.Type, frameworkPath: Swift.String) -> T 886 public class func viewFromNib<T>(_ aClass: T.Type, frameworkPath: Swift.String) -> T
887 } 887 }
888 public class HHUrl { 888 public class HHUrl {
  889 + public static func domains() -> [Swift.String]
889 public static func urlForPay() -> Swift.String 890 public static func urlForPay() -> Swift.String
890 public static func urlForFamily() -> Swift.String 891 public static func urlForFamily() -> Swift.String
891 public static func urlForWeixin() -> Swift.String 892 public static func urlForWeixin() -> Swift.String
@@ -185,9 +185,9 @@ extension Blowfish : HHSDKBase.Cipher { @@ -185,9 +185,9 @@ extension Blowfish : HHSDKBase.Cipher {
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 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
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 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
187 } 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) 188 +public protocol HHDNSProtocal {
  189 + func changeHost(_ hostDomain: Swift.String) -> Swift.String
  190 + func requestHost(_ host: Swift.String, challenge: Foundation.URLAuthenticationChallenge, completion: @escaping (Foundation.URLSession.AuthChallengeDisposition, Foundation.URLCredential?) -> Swift.Void)
191 } 191 }
192 public struct CBC : HHSDKBase.BlockMode { 192 public struct CBC : HHSDKBase.BlockMode {
193 public enum Error : Swift.Error { 193 public enum Error : Swift.Error {
@@ -535,7 +535,7 @@ public var HMHudManager: HHSDKBase.HHHUDable { @@ -535,7 +535,7 @@ public var HMHudManager: HHSDKBase.HHHUDable {
535 } 535 }
536 @objc public class HHBaseSDK : ObjectiveC.NSObject { 536 @objc public class HHBaseSDK : ObjectiveC.NSObject {
537 @objc public static let `default`: HHSDKBase.HHBaseSDK 537 @objc public static let `default`: HHSDKBase.HHBaseSDK
538 - @objc public var dnsCallback: HHSDKBase.HHDNSProtocal? 538 + public var dnsCallback: HHSDKBase.HHDNSProtocal?
539 @objc public func start() 539 @objc public func start()
540 @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler) 540 @objc public func login(userToken: Swift.String, completion: @escaping HHSDKBase.HHLoginHandler)
541 @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil) 541 @objc public func logout(_ callback: ((Swift.String?) -> Swift.Void)? = nil)
@@ -886,6 +886,7 @@ extension UIView { @@ -886,6 +886,7 @@ extension UIView {
886 public class func viewFromNib<T>(_ aClass: T.Type, frameworkPath: Swift.String) -> T 886 public class func viewFromNib<T>(_ aClass: T.Type, frameworkPath: Swift.String) -> T
887 } 887 }
888 public class HHUrl { 888 public class HHUrl {
  889 + public static func domains() -> [Swift.String]
889 public static func urlForPay() -> Swift.String 890 public static func urlForPay() -> Swift.String
890 public static func urlForFamily() -> Swift.String 891 public static func urlForFamily() -> Swift.String
891 public static func urlForWeixin() -> Swift.String 892 public static func urlForWeixin() -> Swift.String