diff --git a/Framework/DataCompression.xcframework/Info.plist b/Framework/DataCompression.xcframework/Info.plist index 0668989..507f8f0 100644 --- a/Framework/DataCompression.xcframework/Info.plist +++ b/Framework/DataCompression.xcframework/Info.plist @@ -6,32 +6,32 @@ LibraryIdentifier - ios-arm64_armv7 + ios-arm64_i386_x86_64-simulator LibraryPath DataCompression.framework SupportedArchitectures arm64 - armv7 + i386 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator LibraryIdentifier - ios-arm64_i386_x86_64-simulator + ios-arm64_armv7 LibraryPath DataCompression.framework SupportedArchitectures arm64 - i386 - x86_64 + armv7 SupportedPlatform ios - SupportedPlatformVariant - simulator CFBundlePackageType diff --git a/Framework/DataCompression.xcframework/ios-arm64_armv7/DataCompression.framework/DataCompression b/Framework/DataCompression.xcframework/ios-arm64_armv7/DataCompression.framework/DataCompression index 36a81ae..14d48c8 100755 Binary files a/Framework/DataCompression.xcframework/ios-arm64_armv7/DataCompression.framework/DataCompression and b/Framework/DataCompression.xcframework/ios-arm64_armv7/DataCompression.framework/DataCompression differ diff --git a/Framework/DataCompression.xcframework/ios-arm64_i386_x86_64-simulator/DataCompression.framework/DataCompression b/Framework/DataCompression.xcframework/ios-arm64_i386_x86_64-simulator/DataCompression.framework/DataCompression index ef8974d..166e2b8 100755 Binary files a/Framework/DataCompression.xcframework/ios-arm64_i386_x86_64-simulator/DataCompression.framework/DataCompression and b/Framework/DataCompression.xcframework/ios-arm64_i386_x86_64-simulator/DataCompression.framework/DataCompression differ diff --git a/Framework/Socket.xcframework/Info.plist b/Framework/Socket.xcframework/Info.plist index c72ca63..3db8ab1 100644 --- a/Framework/Socket.xcframework/Info.plist +++ b/Framework/Socket.xcframework/Info.plist @@ -6,32 +6,32 @@ LibraryIdentifier - ios-arm64_i386_x86_64-simulator + ios-arm64_armv7 LibraryPath Socket.framework SupportedArchitectures arm64 - i386 - x86_64 + armv7 SupportedPlatform ios - SupportedPlatformVariant - simulator LibraryIdentifier - ios-arm64_armv7 + ios-arm64_i386_x86_64-simulator LibraryPath Socket.framework SupportedArchitectures arm64 - armv7 + i386 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator CFBundlePackageType diff --git a/Framework/Socket.xcframework/ios-arm64_armv7/Socket.framework/Socket b/Framework/Socket.xcframework/ios-arm64_armv7/Socket.framework/Socket index b2af220..0d68edc 100755 Binary files a/Framework/Socket.xcframework/ios-arm64_armv7/Socket.framework/Socket and b/Framework/Socket.xcframework/ios-arm64_armv7/Socket.framework/Socket differ diff --git a/Framework/Socket.xcframework/ios-arm64_i386_x86_64-simulator/Socket.framework/Socket b/Framework/Socket.xcframework/ios-arm64_i386_x86_64-simulator/Socket.framework/Socket index a01132b..b4e5acc 100755 Binary files a/Framework/Socket.xcframework/ios-arm64_i386_x86_64-simulator/Socket.framework/Socket and b/Framework/Socket.xcframework/ios-arm64_i386_x86_64-simulator/Socket.framework/Socket differ diff --git a/Framework/SpeedcheckerReportSDK.xcframework/Info.plist b/Framework/SpeedcheckerReportSDK.xcframework/Info.plist index 094e7a3..2b2bd8e 100644 --- a/Framework/SpeedcheckerReportSDK.xcframework/Info.plist +++ b/Framework/SpeedcheckerReportSDK.xcframework/Info.plist @@ -6,30 +6,30 @@ LibraryIdentifier - ios-arm64 + ios-arm64_x86_64-simulator LibraryPath SpeedcheckerReportSDK.framework SupportedArchitectures arm64 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator LibraryIdentifier - ios-arm64_x86_64-simulator + ios-arm64 LibraryPath SpeedcheckerReportSDK.framework SupportedArchitectures arm64 - x86_64 SupportedPlatform ios - SupportedPlatformVariant - simulator CFBundlePackageType diff --git a/Framework/SpeedcheckerReportSDK.xcframework/ios-arm64/SpeedcheckerReportSDK.framework/SpeedcheckerReportSDK b/Framework/SpeedcheckerReportSDK.xcframework/ios-arm64/SpeedcheckerReportSDK.framework/SpeedcheckerReportSDK index 8f6dfd3..5aec865 100755 Binary files a/Framework/SpeedcheckerReportSDK.xcframework/ios-arm64/SpeedcheckerReportSDK.framework/SpeedcheckerReportSDK and b/Framework/SpeedcheckerReportSDK.xcframework/ios-arm64/SpeedcheckerReportSDK.framework/SpeedcheckerReportSDK differ diff --git a/Framework/SpeedcheckerReportSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerReportSDK.framework/SpeedcheckerReportSDK b/Framework/SpeedcheckerReportSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerReportSDK.framework/SpeedcheckerReportSDK index 37718f0..bfc92e7 100755 Binary files a/Framework/SpeedcheckerReportSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerReportSDK.framework/SpeedcheckerReportSDK and b/Framework/SpeedcheckerReportSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerReportSDK.framework/SpeedcheckerReportSDK differ diff --git a/Framework/SpeedcheckerSDK.xcframework/Info.plist b/Framework/SpeedcheckerSDK.xcframework/Info.plist index 334ba84..578a5e9 100644 --- a/Framework/SpeedcheckerSDK.xcframework/Info.plist +++ b/Framework/SpeedcheckerSDK.xcframework/Info.plist @@ -6,30 +6,30 @@ LibraryIdentifier - ios-arm64_x86_64-simulator + ios-arm64 LibraryPath SpeedcheckerSDK.framework SupportedArchitectures arm64 - x86_64 SupportedPlatform ios - SupportedPlatformVariant - simulator LibraryIdentifier - ios-arm64 + ios-arm64_x86_64-simulator LibraryPath SpeedcheckerSDK.framework SupportedArchitectures arm64 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator CFBundlePackageType diff --git a/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/Headers/SpeedcheckerSDK-Swift.h b/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/Headers/SpeedcheckerSDK-Swift.h index e9da090..c1017d3 100644 --- a/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/Headers/SpeedcheckerSDK-Swift.h +++ b/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/Headers/SpeedcheckerSDK-Swift.h @@ -223,6 +223,7 @@ SWIFT_CLASS_NAMED("BackgroundTest") @interface BackgroundTest : NSObject - (nonnull instancetype)initWithClientID:(NSInteger)clientID url:(NSString * _Nullable)url testsEnabled:(BOOL)testsEnabled OBJC_DESIGNATED_INITIALIZER; - (void)setBackgroundNetworkTestingWithTestsEnabled:(BOOL)testsEnabled; +- (BOOL)getBackgroundNetworkTestingEnabled SWIFT_WARN_UNUSED_RESULT; - (void)prepareLocationManagerWithLocationManager:(CLLocationManager * _Nullable)locationManager; - (void)applicationDidEnterBackgroundWithLocationManager:(CLLocationManager * _Nullable)locationManager; - (void)applicationDidBecomeActiveWithLocationManager:(CLLocationManager * _Nullable)locationManager; @@ -231,11 +232,11 @@ SWIFT_CLASS_NAMED("BackgroundTest") @end + @interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK)) - (void)loadConfigWithLaunchOptions:(NSDictionary * _Nullable)launchOptions completion:(void (^ _Nonnull)(BOOL))completion; @end - @class CLLocation; @interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK)) @@ -243,18 +244,18 @@ SWIFT_CLASS_NAMED("BackgroundTest") - (void)didUpdateLocationsWithManager:(CLLocationManager * _Nonnull)manager locations:(NSArray * _Nonnull)locations; @end -@class UIViewController; -@class UIView; +SWIFT_AVAILABILITY(ios,introduced=13) @interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK)) -+ (NSArray * _Nonnull)getLogs SWIFT_WARN_UNUSED_RESULT; -+ (void)shareLogsFromViewController:(UIViewController * _Nonnull)viewController presentationSourceView:(UIView * _Nonnull)sourceView; +- (void)registerBGTask:(CLLocationManager * _Nullable)locationManager; @end +@class UIViewController; +@class UIView; -SWIFT_AVAILABILITY(ios,introduced=13) @interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK)) -- (void)registerBGTask:(CLLocationManager * _Nullable)locationManager; ++ (NSArray * _Nonnull)getLogs SWIFT_WARN_UNUSED_RESULT; ++ (void)shareLogsFromViewController:(UIViewController * _Nonnull)viewController presentationSourceView:(UIView * _Nonnull)sourceView; @end @@ -317,7 +318,7 @@ SWIFT_CLASS_NAMED("InternetSpeedTest") /// The function starts a new speed test process. - (void)start:(SWIFT_NOESCAPE void (^ _Nonnull)(enum SpeedTestError))completion; /// The function starts a free test if geolocation is enabled -- (void)startTest:(SWIFT_NOESCAPE void (^ _Nonnull)(enum SpeedTestError))completion; +- (void)startTest:(void (^ _Nonnull)(enum SpeedTestError))completion; /// The function finishes the current speed test process. - (void)forceFinish:(SWIFT_NOESCAPE void (^ _Nonnull)(enum SpeedTestError))completion; - (SpeedTestNetwork * _Nonnull)currentNetwork SWIFT_WARN_UNUSED_RESULT; @@ -339,6 +340,24 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) NSString * _Nonnull cust @end + +SWIFT_CLASS("_TtC15SpeedcheckerSDK16SCLocationHelper") +@interface SCLocationHelper : NSObject +- (BOOL)isPermisionStatusDetermined SWIFT_WARN_UNUSED_RESULT; +/// Check if location services are enabled +- (BOOL)locationServicesEnabled SWIFT_WARN_UNUSED_RESULT; +/// Check if location services are enabled, use background thread so UI is not blocked. +- (void)locationServicesEnabled:(void (^ _Nonnull)(BOOL))completion; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + + +@interface SCLocationHelper (SWIFT_EXTENSION(SpeedcheckerSDK)) +- (void)locationManager:(CLLocationManager * _Nonnull)manager didUpdateLocations:(NSArray * _Nonnull)locations; +- (void)locationManager:(CLLocationManager * _Nonnull)manager didFailWithError:(NSError * _Nonnull)error; +@end + /// The set of possible errors occur in the InternetSpeedTest object. typedef SWIFT_ENUM_NAMED(NSInteger, SpeedTestError, "SpeedTestError", open) { SpeedTestErrorOk = 0, @@ -392,6 +411,10 @@ SWIFT_CLASS_NAMED("SpeedTestResult") @property (nonatomic, readonly, copy) NSString * _Nullable ispName; @property (nonatomic, readonly, copy) NSDate * _Nullable date; @property (nonatomic, copy) NSString * _Nullable userCityName; +/// Data transferred during download. In MB (megabytes). +@property (nonatomic, readonly) double downloadTransferredMb; +/// Data transferred during upload. In MB (megabytes). +@property (nonatomic, readonly) double uploadTransferredMb; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end diff --git a/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios.swiftdoc b/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios.swiftdoc index 71e2269..1260b16 100644 Binary files a/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios.swiftdoc and b/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios.swiftinterface b/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios.swiftinterface index 14eb069..398677f 100644 --- a/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios.swiftinterface +++ b/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios.swiftinterface @@ -111,6 +111,10 @@ public struct SCNetwork { public func getNetworkBSSID() -> Swift.String? public func getActiveConnection() -> Swift.String } +public struct SCConfigFileSettingsServers : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} @available(iOS 13, *) extension SpeedcheckerSDK.BackgroundTest { @objc dynamic public func registerBGTask(_ locationManager: CoreLocation.CLLocationManager?) @@ -120,6 +124,10 @@ extension Swift.String { get } } +public struct SCConfigFileSettingsResults : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} public typealias Observer = ((_ response: SpeedcheckerSDK.PingResponse) -> Swift.Void) public typealias FinishedCallback = ((_ result: SpeedcheckerSDK.PingResult) -> Swift.Void) public protocol PingDelegate : AnyObject { @@ -280,9 +288,10 @@ public enum ConnectionIssue : Swift.Int { @objc open func start(_ servers: [SpeedcheckerSDK.SpeedTestServer], completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) open func start(_ servers: [SpeedcheckerSDK.SCServer], completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) @objc open func start(_ completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) - @objc open func startTest(_ completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) + @objc open func startTest(_ completion: @escaping (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) open func startWithOptions(_ options: SpeedcheckerSDK.SpeedTestOptions, _ completion: (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void) open func startWithOptions(_ options: SpeedcheckerSDK.SpeedTestOptions, servers: [SpeedcheckerSDK.SpeedTestServer], _ completion: (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void) + public func startWithOptions(_ options: SpeedcheckerSDK.SpeedTestOptions, servers: [SpeedcheckerSDK.SCServer], _ completion: (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void) @objc open func forceFinish(_ completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) @objc open func currentNetwork() -> SpeedcheckerSDK.SpeedTestNetwork public static func clearTempDirectory() @@ -320,9 +329,24 @@ public struct SCClient { @_hasMissingDesignatedInitializers public class SCDataController { @objc deinit } +@_inheritsConvenienceInitializers @objc final public class SCLocationHelper : ObjectiveC.NSObject { + @objc final public func isPermisionStatusDetermined() -> Swift.Bool + @objc final public func locationServicesEnabled() -> Swift.Bool + @objc final public func locationServicesEnabled(_ completion: @escaping (Swift.Bool) -> Swift.Void) + @objc override dynamic public init() + @objc deinit +} +extension SpeedcheckerSDK.SCLocationHelper : CoreLocation.CLLocationManagerDelegate { + @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didUpdateLocations locations: [CoreLocation.CLLocation]) + @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didFailWithError error: Swift.Error) +} @objc @_hasMissingDesignatedInitializers public class HTTPPing : ObjectiveC.NSObject { @objc deinit } +public struct SCConfigFile : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} public enum SCLatencySpeedType { case http case icmp @@ -341,6 +365,10 @@ extension SpeedcheckerSDK.SCLatencySpeed { } } public func == (lhs: SpeedcheckerSDK.SCLatencySpeed, rhs: SpeedcheckerSDK.SCLatencySpeed) -> Swift.Bool +public struct SCConfigCommand : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} extension SpeedcheckerSDK.BackgroundTest { @objc public static func getLogs() -> [Swift.String] @objc public static func shareLogs(fromViewController viewController: UIKit.UIViewController, presentationSourceView sourceView: UIKit.UIView) @@ -362,34 +390,6 @@ public struct SCLocation { } public init(latitude: Swift.Double?, longitude: Swift.Double?, accuracyInMeters: Swift.Int?, ipAddress: Swift.String?, countryCode: Swift.String?, cityName: Swift.String?) } -public struct SCConfigFile : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileSettings : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileSettingsServers : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileSettingsResults : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileJob : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileJobCommand : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigCommand : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} extension SpeedcheckerSDK.BackgroundTest { @objc dynamic public func loadConfig(launchOptions: [UIKit.UIApplication.LaunchOptionsKey : Any]?, completion: @escaping (Swift.Bool) -> Swift.Void) } @@ -432,6 +432,10 @@ public func == (lhs: SpeedcheckerSDK.SCServer, rhs: SpeedcheckerSDK.SCServer) -> public static func getOoklaServers(_ completion: @escaping ([SpeedcheckerSDK.SCServer]?, SpeedcheckerSDK.SCError?) -> Swift.Void) @objc deinit } +public struct SCConfigFileJob : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} public class SCServerSelecter { public init(_ servers: [SpeedcheckerSDK.SCServer], timeout: Foundation.TimeInterval = 1, preferIP6: Swift.Bool, delegate: SpeedcheckerSDK.SCServerSelecterDelegate?) public func start() @@ -526,7 +530,9 @@ public enum SCTestStatus { @objc final public let ispName: Swift.String? @objc final public let date: Foundation.Date? @objc public var userCityName: Swift.String? - public static func create(withPlain date: Foundation.Date, latencyType: Swift.String?, latencyInMs: Swift.Int, jitter: Swift.Double, downloadInBps: Swift.Double, uploadInBps: Swift.Double, timeToFirstByteMs: Swift.Int, ipAddress: Swift.String?, ispName: Swift.String?, networkType: Swift.String?, serverID: Swift.Int, serverDomain: Swift.String?, serverCityName: Swift.String?, serverCountryCode: Swift.String?) -> SpeedcheckerSDK.SpeedTestResult + @objc final public let downloadTransferredMb: Swift.Double + @objc final public let uploadTransferredMb: Swift.Double + public static func create(withPlain date: Foundation.Date, latencyType: Swift.String?, latencyInMs: Swift.Int, jitter: Swift.Double, downloadInBps: Swift.Double, uploadInBps: Swift.Double, timeToFirstByteMs: Swift.Int, downloadTransferredMb: Swift.Double, uploadTransferredMb: Swift.Double, ipAddress: Swift.String?, ispName: Swift.String?, networkType: Swift.String?, serverID: Swift.Int, serverDomain: Swift.String?, serverCityName: Swift.String?, serverCountryCode: Swift.String?) -> SpeedcheckerSDK.SpeedTestResult @objc deinit } extension SpeedcheckerSDK.SpeedTestResult { @@ -588,6 +594,10 @@ extension SpeedcheckerSDK.SpeedTestResult { } @objc deinit } +public struct SCConfigFileJobCommand : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} public struct SSDPService : Swift.Equatable { public let cacheControl: Foundation.Date public let location: Foundation.URL @@ -658,10 +668,15 @@ public struct UPNPAction { } } } +public struct SCConfigFileSettings : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} @objc(BackgroundTest) public class BackgroundTest : ObjectiveC.NSObject { @objc public init(clientID: Swift.Int, url: Swift.String? = nil, testsEnabled: Swift.Bool = true) @objc deinit @objc public func setBackgroundNetworkTesting(testsEnabled: Swift.Bool) + @objc public func getBackgroundNetworkTestingEnabled() -> Swift.Bool @objc public func prepareLocationManager(locationManager: CoreLocation.CLLocationManager?) @objc public func applicationDidEnterBackground(locationManager: CoreLocation.CLLocationManager?) @objc public func applicationDidBecomeActive(locationManager: CoreLocation.CLLocationManager?) diff --git a/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/SpeedcheckerSDK b/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/SpeedcheckerSDK index 90da0ab..21a273d 100755 Binary files a/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/SpeedcheckerSDK and b/Framework/SpeedcheckerSDK.xcframework/ios-arm64/SpeedcheckerSDK.framework/SpeedcheckerSDK differ diff --git a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Headers/SpeedcheckerSDK-Swift.h b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Headers/SpeedcheckerSDK-Swift.h index f0bb333..b8f8858 100644 --- a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Headers/SpeedcheckerSDK-Swift.h +++ b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Headers/SpeedcheckerSDK-Swift.h @@ -225,6 +225,7 @@ SWIFT_CLASS_NAMED("BackgroundTest") @interface BackgroundTest : NSObject - (nonnull instancetype)initWithClientID:(NSInteger)clientID url:(NSString * _Nullable)url testsEnabled:(BOOL)testsEnabled OBJC_DESIGNATED_INITIALIZER; - (void)setBackgroundNetworkTestingWithTestsEnabled:(BOOL)testsEnabled; +- (BOOL)getBackgroundNetworkTestingEnabled SWIFT_WARN_UNUSED_RESULT; - (void)prepareLocationManagerWithLocationManager:(CLLocationManager * _Nullable)locationManager; - (void)applicationDidEnterBackgroundWithLocationManager:(CLLocationManager * _Nullable)locationManager; - (void)applicationDidBecomeActiveWithLocationManager:(CLLocationManager * _Nullable)locationManager; @@ -233,11 +234,11 @@ SWIFT_CLASS_NAMED("BackgroundTest") @end + @interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK)) - (void)loadConfigWithLaunchOptions:(NSDictionary * _Nullable)launchOptions completion:(void (^ _Nonnull)(BOOL))completion; @end - @class CLLocation; @interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK)) @@ -245,18 +246,18 @@ SWIFT_CLASS_NAMED("BackgroundTest") - (void)didUpdateLocationsWithManager:(CLLocationManager * _Nonnull)manager locations:(NSArray * _Nonnull)locations; @end -@class UIViewController; -@class UIView; +SWIFT_AVAILABILITY(ios,introduced=13) @interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK)) -+ (NSArray * _Nonnull)getLogs SWIFT_WARN_UNUSED_RESULT; -+ (void)shareLogsFromViewController:(UIViewController * _Nonnull)viewController presentationSourceView:(UIView * _Nonnull)sourceView; +- (void)registerBGTask:(CLLocationManager * _Nullable)locationManager; @end +@class UIViewController; +@class UIView; -SWIFT_AVAILABILITY(ios,introduced=13) @interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK)) -- (void)registerBGTask:(CLLocationManager * _Nullable)locationManager; ++ (NSArray * _Nonnull)getLogs SWIFT_WARN_UNUSED_RESULT; ++ (void)shareLogsFromViewController:(UIViewController * _Nonnull)viewController presentationSourceView:(UIView * _Nonnull)sourceView; @end @@ -319,7 +320,7 @@ SWIFT_CLASS_NAMED("InternetSpeedTest") /// The function starts a new speed test process. - (void)start:(SWIFT_NOESCAPE void (^ _Nonnull)(enum SpeedTestError))completion; /// The function starts a free test if geolocation is enabled -- (void)startTest:(SWIFT_NOESCAPE void (^ _Nonnull)(enum SpeedTestError))completion; +- (void)startTest:(void (^ _Nonnull)(enum SpeedTestError))completion; /// The function finishes the current speed test process. - (void)forceFinish:(SWIFT_NOESCAPE void (^ _Nonnull)(enum SpeedTestError))completion; - (SpeedTestNetwork * _Nonnull)currentNetwork SWIFT_WARN_UNUSED_RESULT; @@ -341,6 +342,24 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) NSString * _Nonnull cust @end + +SWIFT_CLASS("_TtC15SpeedcheckerSDK16SCLocationHelper") +@interface SCLocationHelper : NSObject +- (BOOL)isPermisionStatusDetermined SWIFT_WARN_UNUSED_RESULT; +/// Check if location services are enabled +- (BOOL)locationServicesEnabled SWIFT_WARN_UNUSED_RESULT; +/// Check if location services are enabled, use background thread so UI is not blocked. +- (void)locationServicesEnabled:(void (^ _Nonnull)(BOOL))completion; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + + +@interface SCLocationHelper (SWIFT_EXTENSION(SpeedcheckerSDK)) +- (void)locationManager:(CLLocationManager * _Nonnull)manager didUpdateLocations:(NSArray * _Nonnull)locations; +- (void)locationManager:(CLLocationManager * _Nonnull)manager didFailWithError:(NSError * _Nonnull)error; +@end + /// The set of possible errors occur in the InternetSpeedTest object. typedef SWIFT_ENUM_NAMED(NSInteger, SpeedTestError, "SpeedTestError", open) { SpeedTestErrorOk = 0, @@ -394,6 +413,10 @@ SWIFT_CLASS_NAMED("SpeedTestResult") @property (nonatomic, readonly, copy) NSString * _Nullable ispName; @property (nonatomic, readonly, copy) NSDate * _Nullable date; @property (nonatomic, copy) NSString * _Nullable userCityName; +/// Data transferred during download. In MB (megabytes). +@property (nonatomic, readonly) double downloadTransferredMb; +/// Data transferred during upload. In MB (megabytes). +@property (nonatomic, readonly) double uploadTransferredMb; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end @@ -675,6 +698,7 @@ SWIFT_CLASS_NAMED("BackgroundTest") @interface BackgroundTest : NSObject - (nonnull instancetype)initWithClientID:(NSInteger)clientID url:(NSString * _Nullable)url testsEnabled:(BOOL)testsEnabled OBJC_DESIGNATED_INITIALIZER; - (void)setBackgroundNetworkTestingWithTestsEnabled:(BOOL)testsEnabled; +- (BOOL)getBackgroundNetworkTestingEnabled SWIFT_WARN_UNUSED_RESULT; - (void)prepareLocationManagerWithLocationManager:(CLLocationManager * _Nullable)locationManager; - (void)applicationDidEnterBackgroundWithLocationManager:(CLLocationManager * _Nullable)locationManager; - (void)applicationDidBecomeActiveWithLocationManager:(CLLocationManager * _Nullable)locationManager; @@ -683,11 +707,11 @@ SWIFT_CLASS_NAMED("BackgroundTest") @end + @interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK)) - (void)loadConfigWithLaunchOptions:(NSDictionary * _Nullable)launchOptions completion:(void (^ _Nonnull)(BOOL))completion; @end - @class CLLocation; @interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK)) @@ -695,18 +719,18 @@ SWIFT_CLASS_NAMED("BackgroundTest") - (void)didUpdateLocationsWithManager:(CLLocationManager * _Nonnull)manager locations:(NSArray * _Nonnull)locations; @end -@class UIViewController; -@class UIView; +SWIFT_AVAILABILITY(ios,introduced=13) @interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK)) -+ (NSArray * _Nonnull)getLogs SWIFT_WARN_UNUSED_RESULT; -+ (void)shareLogsFromViewController:(UIViewController * _Nonnull)viewController presentationSourceView:(UIView * _Nonnull)sourceView; +- (void)registerBGTask:(CLLocationManager * _Nullable)locationManager; @end +@class UIViewController; +@class UIView; -SWIFT_AVAILABILITY(ios,introduced=13) @interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK)) -- (void)registerBGTask:(CLLocationManager * _Nullable)locationManager; ++ (NSArray * _Nonnull)getLogs SWIFT_WARN_UNUSED_RESULT; ++ (void)shareLogsFromViewController:(UIViewController * _Nonnull)viewController presentationSourceView:(UIView * _Nonnull)sourceView; @end @@ -769,7 +793,7 @@ SWIFT_CLASS_NAMED("InternetSpeedTest") /// The function starts a new speed test process. - (void)start:(SWIFT_NOESCAPE void (^ _Nonnull)(enum SpeedTestError))completion; /// The function starts a free test if geolocation is enabled -- (void)startTest:(SWIFT_NOESCAPE void (^ _Nonnull)(enum SpeedTestError))completion; +- (void)startTest:(void (^ _Nonnull)(enum SpeedTestError))completion; /// The function finishes the current speed test process. - (void)forceFinish:(SWIFT_NOESCAPE void (^ _Nonnull)(enum SpeedTestError))completion; - (SpeedTestNetwork * _Nonnull)currentNetwork SWIFT_WARN_UNUSED_RESULT; @@ -791,6 +815,24 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, copy) NSString * _Nonnull cust @end + +SWIFT_CLASS("_TtC15SpeedcheckerSDK16SCLocationHelper") +@interface SCLocationHelper : NSObject +- (BOOL)isPermisionStatusDetermined SWIFT_WARN_UNUSED_RESULT; +/// Check if location services are enabled +- (BOOL)locationServicesEnabled SWIFT_WARN_UNUSED_RESULT; +/// Check if location services are enabled, use background thread so UI is not blocked. +- (void)locationServicesEnabled:(void (^ _Nonnull)(BOOL))completion; +- (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; +@end + + + +@interface SCLocationHelper (SWIFT_EXTENSION(SpeedcheckerSDK)) +- (void)locationManager:(CLLocationManager * _Nonnull)manager didUpdateLocations:(NSArray * _Nonnull)locations; +- (void)locationManager:(CLLocationManager * _Nonnull)manager didFailWithError:(NSError * _Nonnull)error; +@end + /// The set of possible errors occur in the InternetSpeedTest object. typedef SWIFT_ENUM_NAMED(NSInteger, SpeedTestError, "SpeedTestError", open) { SpeedTestErrorOk = 0, @@ -844,6 +886,10 @@ SWIFT_CLASS_NAMED("SpeedTestResult") @property (nonatomic, readonly, copy) NSString * _Nullable ispName; @property (nonatomic, readonly, copy) NSDate * _Nullable date; @property (nonatomic, copy) NSString * _Nullable userCityName; +/// Data transferred during download. In MB (megabytes). +@property (nonatomic, readonly) double downloadTransferredMb; +/// Data transferred during upload. In MB (megabytes). +@property (nonatomic, readonly) double uploadTransferredMb; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end diff --git a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc index a35620e..126326b 100644 Binary files a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc and b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface index 11e97eb..8698fa0 100644 --- a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface +++ b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -111,6 +111,10 @@ public struct SCNetwork { public func getNetworkBSSID() -> Swift.String? public func getActiveConnection() -> Swift.String } +public struct SCConfigFileSettingsServers : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} @available(iOS 13, *) extension SpeedcheckerSDK.BackgroundTest { @objc dynamic public func registerBGTask(_ locationManager: CoreLocation.CLLocationManager?) @@ -120,6 +124,10 @@ extension Swift.String { get } } +public struct SCConfigFileSettingsResults : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} public typealias Observer = ((_ response: SpeedcheckerSDK.PingResponse) -> Swift.Void) public typealias FinishedCallback = ((_ result: SpeedcheckerSDK.PingResult) -> Swift.Void) public protocol PingDelegate : AnyObject { @@ -280,9 +288,10 @@ public enum ConnectionIssue : Swift.Int { @objc open func start(_ servers: [SpeedcheckerSDK.SpeedTestServer], completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) open func start(_ servers: [SpeedcheckerSDK.SCServer], completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) @objc open func start(_ completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) - @objc open func startTest(_ completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) + @objc open func startTest(_ completion: @escaping (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) open func startWithOptions(_ options: SpeedcheckerSDK.SpeedTestOptions, _ completion: (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void) open func startWithOptions(_ options: SpeedcheckerSDK.SpeedTestOptions, servers: [SpeedcheckerSDK.SpeedTestServer], _ completion: (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void) + public func startWithOptions(_ options: SpeedcheckerSDK.SpeedTestOptions, servers: [SpeedcheckerSDK.SCServer], _ completion: (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void) @objc open func forceFinish(_ completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) @objc open func currentNetwork() -> SpeedcheckerSDK.SpeedTestNetwork public static func clearTempDirectory() @@ -320,9 +329,24 @@ public struct SCClient { @_hasMissingDesignatedInitializers public class SCDataController { @objc deinit } +@_inheritsConvenienceInitializers @objc final public class SCLocationHelper : ObjectiveC.NSObject { + @objc final public func isPermisionStatusDetermined() -> Swift.Bool + @objc final public func locationServicesEnabled() -> Swift.Bool + @objc final public func locationServicesEnabled(_ completion: @escaping (Swift.Bool) -> Swift.Void) + @objc override dynamic public init() + @objc deinit +} +extension SpeedcheckerSDK.SCLocationHelper : CoreLocation.CLLocationManagerDelegate { + @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didUpdateLocations locations: [CoreLocation.CLLocation]) + @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didFailWithError error: Swift.Error) +} @objc @_hasMissingDesignatedInitializers public class HTTPPing : ObjectiveC.NSObject { @objc deinit } +public struct SCConfigFile : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} public enum SCLatencySpeedType { case http case icmp @@ -341,6 +365,10 @@ extension SpeedcheckerSDK.SCLatencySpeed { } } public func == (lhs: SpeedcheckerSDK.SCLatencySpeed, rhs: SpeedcheckerSDK.SCLatencySpeed) -> Swift.Bool +public struct SCConfigCommand : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} extension SpeedcheckerSDK.BackgroundTest { @objc public static func getLogs() -> [Swift.String] @objc public static func shareLogs(fromViewController viewController: UIKit.UIViewController, presentationSourceView sourceView: UIKit.UIView) @@ -362,34 +390,6 @@ public struct SCLocation { } public init(latitude: Swift.Double?, longitude: Swift.Double?, accuracyInMeters: Swift.Int?, ipAddress: Swift.String?, countryCode: Swift.String?, cityName: Swift.String?) } -public struct SCConfigFile : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileSettings : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileSettingsServers : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileSettingsResults : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileJob : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileJobCommand : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigCommand : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} extension SpeedcheckerSDK.BackgroundTest { @objc dynamic public func loadConfig(launchOptions: [UIKit.UIApplication.LaunchOptionsKey : Any]?, completion: @escaping (Swift.Bool) -> Swift.Void) } @@ -432,6 +432,10 @@ public func == (lhs: SpeedcheckerSDK.SCServer, rhs: SpeedcheckerSDK.SCServer) -> public static func getOoklaServers(_ completion: @escaping ([SpeedcheckerSDK.SCServer]?, SpeedcheckerSDK.SCError?) -> Swift.Void) @objc deinit } +public struct SCConfigFileJob : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} public class SCServerSelecter { public init(_ servers: [SpeedcheckerSDK.SCServer], timeout: Foundation.TimeInterval = 1, preferIP6: Swift.Bool, delegate: SpeedcheckerSDK.SCServerSelecterDelegate?) public func start() @@ -526,7 +530,9 @@ public enum SCTestStatus { @objc final public let ispName: Swift.String? @objc final public let date: Foundation.Date? @objc public var userCityName: Swift.String? - public static func create(withPlain date: Foundation.Date, latencyType: Swift.String?, latencyInMs: Swift.Int, jitter: Swift.Double, downloadInBps: Swift.Double, uploadInBps: Swift.Double, timeToFirstByteMs: Swift.Int, ipAddress: Swift.String?, ispName: Swift.String?, networkType: Swift.String?, serverID: Swift.Int, serverDomain: Swift.String?, serverCityName: Swift.String?, serverCountryCode: Swift.String?) -> SpeedcheckerSDK.SpeedTestResult + @objc final public let downloadTransferredMb: Swift.Double + @objc final public let uploadTransferredMb: Swift.Double + public static func create(withPlain date: Foundation.Date, latencyType: Swift.String?, latencyInMs: Swift.Int, jitter: Swift.Double, downloadInBps: Swift.Double, uploadInBps: Swift.Double, timeToFirstByteMs: Swift.Int, downloadTransferredMb: Swift.Double, uploadTransferredMb: Swift.Double, ipAddress: Swift.String?, ispName: Swift.String?, networkType: Swift.String?, serverID: Swift.Int, serverDomain: Swift.String?, serverCityName: Swift.String?, serverCountryCode: Swift.String?) -> SpeedcheckerSDK.SpeedTestResult @objc deinit } extension SpeedcheckerSDK.SpeedTestResult { @@ -588,6 +594,10 @@ extension SpeedcheckerSDK.SpeedTestResult { } @objc deinit } +public struct SCConfigFileJobCommand : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} public struct SSDPService : Swift.Equatable { public let cacheControl: Foundation.Date public let location: Foundation.URL @@ -658,10 +668,15 @@ public struct UPNPAction { } } } +public struct SCConfigFileSettings : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} @objc(BackgroundTest) public class BackgroundTest : ObjectiveC.NSObject { @objc public init(clientID: Swift.Int, url: Swift.String? = nil, testsEnabled: Swift.Bool = true) @objc deinit @objc public func setBackgroundNetworkTesting(testsEnabled: Swift.Bool) + @objc public func getBackgroundNetworkTestingEnabled() -> Swift.Bool @objc public func prepareLocationManager(locationManager: CoreLocation.CLLocationManager?) @objc public func applicationDidEnterBackground(locationManager: CoreLocation.CLLocationManager?) @objc public func applicationDidBecomeActive(locationManager: CoreLocation.CLLocationManager?) diff --git a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc index 02172ef..c30b7d4 100644 Binary files a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface index d835b52..b4c4fac 100644 --- a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -111,6 +111,10 @@ public struct SCNetwork { public func getNetworkBSSID() -> Swift.String? public func getActiveConnection() -> Swift.String } +public struct SCConfigFileSettingsServers : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} @available(iOS 13, *) extension SpeedcheckerSDK.BackgroundTest { @objc dynamic public func registerBGTask(_ locationManager: CoreLocation.CLLocationManager?) @@ -120,6 +124,10 @@ extension Swift.String { get } } +public struct SCConfigFileSettingsResults : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} public typealias Observer = ((_ response: SpeedcheckerSDK.PingResponse) -> Swift.Void) public typealias FinishedCallback = ((_ result: SpeedcheckerSDK.PingResult) -> Swift.Void) public protocol PingDelegate : AnyObject { @@ -280,9 +288,10 @@ public enum ConnectionIssue : Swift.Int { @objc open func start(_ servers: [SpeedcheckerSDK.SpeedTestServer], completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) open func start(_ servers: [SpeedcheckerSDK.SCServer], completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) @objc open func start(_ completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) - @objc open func startTest(_ completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) + @objc open func startTest(_ completion: @escaping (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) open func startWithOptions(_ options: SpeedcheckerSDK.SpeedTestOptions, _ completion: (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void) open func startWithOptions(_ options: SpeedcheckerSDK.SpeedTestOptions, servers: [SpeedcheckerSDK.SpeedTestServer], _ completion: (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void) + public func startWithOptions(_ options: SpeedcheckerSDK.SpeedTestOptions, servers: [SpeedcheckerSDK.SCServer], _ completion: (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void) @objc open func forceFinish(_ completion: (SpeedcheckerSDK.SpeedTestError) -> Swift.Void) @objc open func currentNetwork() -> SpeedcheckerSDK.SpeedTestNetwork public static func clearTempDirectory() @@ -320,9 +329,24 @@ public struct SCClient { @_hasMissingDesignatedInitializers public class SCDataController { @objc deinit } +@_inheritsConvenienceInitializers @objc final public class SCLocationHelper : ObjectiveC.NSObject { + @objc final public func isPermisionStatusDetermined() -> Swift.Bool + @objc final public func locationServicesEnabled() -> Swift.Bool + @objc final public func locationServicesEnabled(_ completion: @escaping (Swift.Bool) -> Swift.Void) + @objc override dynamic public init() + @objc deinit +} +extension SpeedcheckerSDK.SCLocationHelper : CoreLocation.CLLocationManagerDelegate { + @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didUpdateLocations locations: [CoreLocation.CLLocation]) + @objc final public func locationManager(_ manager: CoreLocation.CLLocationManager, didFailWithError error: Swift.Error) +} @objc @_hasMissingDesignatedInitializers public class HTTPPing : ObjectiveC.NSObject { @objc deinit } +public struct SCConfigFile : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} public enum SCLatencySpeedType { case http case icmp @@ -341,6 +365,10 @@ extension SpeedcheckerSDK.SCLatencySpeed { } } public func == (lhs: SpeedcheckerSDK.SCLatencySpeed, rhs: SpeedcheckerSDK.SCLatencySpeed) -> Swift.Bool +public struct SCConfigCommand : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} extension SpeedcheckerSDK.BackgroundTest { @objc public static func getLogs() -> [Swift.String] @objc public static func shareLogs(fromViewController viewController: UIKit.UIViewController, presentationSourceView sourceView: UIKit.UIView) @@ -362,34 +390,6 @@ public struct SCLocation { } public init(latitude: Swift.Double?, longitude: Swift.Double?, accuracyInMeters: Swift.Int?, ipAddress: Swift.String?, countryCode: Swift.String?, cityName: Swift.String?) } -public struct SCConfigFile : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileSettings : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileSettingsServers : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileSettingsResults : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileJob : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigFileJobCommand : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} -public struct SCConfigCommand : Swift.Codable { - public func encode(to encoder: Swift.Encoder) throws - public init(from decoder: Swift.Decoder) throws -} extension SpeedcheckerSDK.BackgroundTest { @objc dynamic public func loadConfig(launchOptions: [UIKit.UIApplication.LaunchOptionsKey : Any]?, completion: @escaping (Swift.Bool) -> Swift.Void) } @@ -432,6 +432,10 @@ public func == (lhs: SpeedcheckerSDK.SCServer, rhs: SpeedcheckerSDK.SCServer) -> public static func getOoklaServers(_ completion: @escaping ([SpeedcheckerSDK.SCServer]?, SpeedcheckerSDK.SCError?) -> Swift.Void) @objc deinit } +public struct SCConfigFileJob : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} public class SCServerSelecter { public init(_ servers: [SpeedcheckerSDK.SCServer], timeout: Foundation.TimeInterval = 1, preferIP6: Swift.Bool, delegate: SpeedcheckerSDK.SCServerSelecterDelegate?) public func start() @@ -526,7 +530,9 @@ public enum SCTestStatus { @objc final public let ispName: Swift.String? @objc final public let date: Foundation.Date? @objc public var userCityName: Swift.String? - public static func create(withPlain date: Foundation.Date, latencyType: Swift.String?, latencyInMs: Swift.Int, jitter: Swift.Double, downloadInBps: Swift.Double, uploadInBps: Swift.Double, timeToFirstByteMs: Swift.Int, ipAddress: Swift.String?, ispName: Swift.String?, networkType: Swift.String?, serverID: Swift.Int, serverDomain: Swift.String?, serverCityName: Swift.String?, serverCountryCode: Swift.String?) -> SpeedcheckerSDK.SpeedTestResult + @objc final public let downloadTransferredMb: Swift.Double + @objc final public let uploadTransferredMb: Swift.Double + public static func create(withPlain date: Foundation.Date, latencyType: Swift.String?, latencyInMs: Swift.Int, jitter: Swift.Double, downloadInBps: Swift.Double, uploadInBps: Swift.Double, timeToFirstByteMs: Swift.Int, downloadTransferredMb: Swift.Double, uploadTransferredMb: Swift.Double, ipAddress: Swift.String?, ispName: Swift.String?, networkType: Swift.String?, serverID: Swift.Int, serverDomain: Swift.String?, serverCityName: Swift.String?, serverCountryCode: Swift.String?) -> SpeedcheckerSDK.SpeedTestResult @objc deinit } extension SpeedcheckerSDK.SpeedTestResult { @@ -588,6 +594,10 @@ extension SpeedcheckerSDK.SpeedTestResult { } @objc deinit } +public struct SCConfigFileJobCommand : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} public struct SSDPService : Swift.Equatable { public let cacheControl: Foundation.Date public let location: Foundation.URL @@ -658,10 +668,15 @@ public struct UPNPAction { } } } +public struct SCConfigFileSettings : Swift.Codable { + public func encode(to encoder: Swift.Encoder) throws + public init(from decoder: Swift.Decoder) throws +} @objc(BackgroundTest) public class BackgroundTest : ObjectiveC.NSObject { @objc public init(clientID: Swift.Int, url: Swift.String? = nil, testsEnabled: Swift.Bool = true) @objc deinit @objc public func setBackgroundNetworkTesting(testsEnabled: Swift.Bool) + @objc public func getBackgroundNetworkTestingEnabled() -> Swift.Bool @objc public func prepareLocationManager(locationManager: CoreLocation.CLLocationManager?) @objc public func applicationDidEnterBackground(locationManager: CoreLocation.CLLocationManager?) @objc public func applicationDidBecomeActive(locationManager: CoreLocation.CLLocationManager?) diff --git a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/SpeedcheckerSDK b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/SpeedcheckerSDK index 478d0b9..e12b4a2 100755 Binary files a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/SpeedcheckerSDK and b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/SpeedcheckerSDK differ diff --git a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/_CodeSignature/CodeResources b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/_CodeSignature/CodeResources index a72ce44..88b97e3 100644 --- a/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/_CodeSignature/CodeResources +++ b/Framework/SpeedcheckerSDK.xcframework/ios-arm64_x86_64-simulator/SpeedcheckerSDK.framework/_CodeSignature/CodeResources @@ -6,7 +6,7 @@ Headers/SpeedcheckerSDK-Swift.h - MRb9PmbbfhTMKmAbyFYK7yAkduc= + sNsEfcY8wbAeBKiKhlN6B5H9zX8= Info.plist @@ -14,27 +14,27 @@ Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc - /syAFgpMyM+tZmFfQpXwTyMO52E= + 1102FHi/jmDXnTrtKUX75E/FtKg= Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface - kk7r8CI6hApmNs8Iv4E+Ds0LdLA= + B8bRaNQ8r6aHOz3+Eg6rE1nrUnM= Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule - Jyze3+OhOi9PmS7MhB9b9VuWXMI= + v0Y8gPs9rbKLWrQZmR0JtgjbArM= Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc - SF67Gg+cR1gCtKFYDT6AHlwuKJY= + HvYfjPXNPALCLkOsWJkB++mH7eY= Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - YA2HkskTfUcTqb9aFQpqMJtO98g= + 5oUopjE1/A4a9m6e4aNmC/JW/8U= Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - 8jh4g4smhM8No0YPreZLJzC5a7s= + +7+gjC3fhLwnDTl/6/GGG/2X+dI= Modules/module.modulemap @@ -47,49 +47,49 @@ hash2 - bpOwdSiEPjmBKGMPoUL/kNcLjZz/AzcJj7qt04XKPiI= + +CbobsgdlfLWNfC/a6ivE/cqa/VIXW0LDwnclsBIuu4= Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc hash2 - 4MWHNDeAVAInvVN0zAJVhL7r32ltkGMP8OjGXzp+JJs= + ibVKmr3QEFy/RqzoYavOPR3Txkxc6VZ+8s5y8ic4AlE= Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface hash2 - k9zmzjTIVU9zGtggShhFSYsZfk7UDe/+klRZP13+114= + NPyFAaxbAAqDwrb3prnJsnunhR6SIKYmDoKqBExGS0U= Modules/SpeedcheckerSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule hash2 - /VukSV8M8vmfEOwxDQWnKOQL1oGNlSXzF0cfZ5G+l0E= + AVuMLLm78AITgshL2nPTDth454lV9nQGD1BjQLG7xAE= Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc hash2 - 1eiMjsOuRQr5eDWc7r2SgbaN7CXNyYP2KxFFzJVPTL4= + g+znG9zUmEPae1v7yi/Z+LymkfRqcHsaXOJlLBczGks= Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface hash2 - uGJi6ofu/v1OvjzCMrlwykd6SSw4NJt33IqV2pE+myo= + pZG+lp7S1LtdaB0GjBgtn0xtgUZKe1Rp7cqglGjEK6s= Modules/SpeedcheckerSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule hash2 - zNtVqsW3zVPAV+VgfSsiLizThVYYRWBq5ltbfz7YTs8= + QqA+THiC2U53DQi+VAgQLvn5e7qTLlX04kVX9PCl7io= Modules/module.modulemap diff --git a/Framework/XMLParsing.xcframework/ios-arm64/XMLParsing.framework/XMLParsing b/Framework/XMLParsing.xcframework/ios-arm64/XMLParsing.framework/XMLParsing index ca7a0ab..01d52ec 100755 Binary files a/Framework/XMLParsing.xcframework/ios-arm64/XMLParsing.framework/XMLParsing and b/Framework/XMLParsing.xcframework/ios-arm64/XMLParsing.framework/XMLParsing differ diff --git a/Framework/XMLParsing.xcframework/ios-arm64_x86_64-simulator/XMLParsing.framework/XMLParsing b/Framework/XMLParsing.xcframework/ios-arm64_x86_64-simulator/XMLParsing.framework/XMLParsing index 41f898f..34fe9b1 100755 Binary files a/Framework/XMLParsing.xcframework/ios-arm64_x86_64-simulator/XMLParsing.framework/XMLParsing and b/Framework/XMLParsing.xcframework/ios-arm64_x86_64-simulator/XMLParsing.framework/XMLParsing differ diff --git a/README.md b/README.md index 7f1d18d..7d37a88 100755 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Speedchecker SDK for iOS, version 1.5.62 - Free speed test for your own app. +# Speedchecker SDK for iOS, version 1.5.66 - Free speed test for your own app. The embedded framework version of the Speedchecker Speed Test supports its own API which allows you to access various methods and events easily from the your iOS application code. You can also try our [Speedchecker on App Store](https://itunes.apple.com/app/id658790195), it's powered by the latest Speedchecker SDK version. More information about [SpeedChecker SDKs](https://www.speedchecker.com/speed-test-tools/mobile-apps-and-sdks.html) diff --git a/SpeedcheckerSDK.podspec b/SpeedcheckerSDK.podspec index 28be8a2..e8ba6eb 100644 --- a/SpeedcheckerSDK.podspec +++ b/SpeedcheckerSDK.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |spec| spec.name = "SpeedcheckerSDK" - spec.version = "1.5.62" + spec.version = "1.5.66" spec.summary = "Free speed test for your own app." spec.description = <<-DESC @@ -22,7 +22,7 @@ Pod::Spec.new do |spec| spec.platform = :ios, "11.0" spec.swift_version = "5.0" - spec.source = { :git => "https://github.com/speedchecker/speedchecker-sdk-ios.git", :tag => "1.5.62" } + spec.source = { :git => "https://github.com/speedchecker/speedchecker-sdk-ios.git", :tag => "1.5.66" } spec.vendored_frameworks = "Framework/DataCompression.xcframework", "Framework/Socket.xcframework", "Framework/SpeedcheckerReportSDK.xcframework", "Framework/SpeedcheckerSDK.xcframework", "Framework/XMLParsing.xcframework"