Skip to content

Commit

Permalink
Updated to 2.0.2 SDK version.
Browse files Browse the repository at this point in the history
  • Loading branch information
Predrag Bogdanic committed Jan 3, 2024
1 parent b9a1e7c commit 56b006b
Show file tree
Hide file tree
Showing 34 changed files with 130 additions and 105 deletions.
14 changes: 7 additions & 7 deletions Framework/DataCompression.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>DataCompression.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>DataCompression.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Binary file not shown.
14 changes: 7 additions & 7 deletions Framework/Socket.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,32 +6,32 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_armv7</string>
<string>ios-arm64_i386_x86_64-simulator</string>
<key>LibraryPath</key>
<string>Socket.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>armv7</string>
<string>i386</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_i386_x86_64-simulator</string>
<string>ios-arm64_armv7</string>
<key>LibraryPath</key>
<string>Socket.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>i386</string>
<string>x86_64</string>
<string>armv7</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Binary file not shown.
10 changes: 5 additions & 5 deletions Framework/SpeedcheckerReportSDK.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>SpeedcheckerReportSDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>SpeedcheckerReportSDK.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public enum ReportCompletionResult {
public typealias ReportCompletionHandler = (SpeedcheckerReportSDK.ReportCompletionResult) -> Swift.Void
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers public class SpeedcheckerReport : ObjectiveC.NSObject {
public static let shared: SpeedcheckerReportSDK.SpeedcheckerReport
public func initialize()
public func initialize(licenseKey: Swift.String)
public func reportConnectionIssue(type: SpeedcheckerReportSDK.SRIssueType, phoneNumber: Swift.String, comment: Swift.String?, userValue: Swift.String?, completion: @escaping SpeedcheckerReportSDK.ReportCompletionHandler)
public func speedTest(delegate: SpeedcheckerSDK.InternetSpeedTestDelegate, completion: @escaping (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void)
public func speedTestStop(completion: @escaping (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void)
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public enum ReportCompletionResult {
public typealias ReportCompletionHandler = (SpeedcheckerReportSDK.ReportCompletionResult) -> Swift.Void
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers public class SpeedcheckerReport : ObjectiveC.NSObject {
public static let shared: SpeedcheckerReportSDK.SpeedcheckerReport
public func initialize()
public func initialize(licenseKey: Swift.String)
public func reportConnectionIssue(type: SpeedcheckerReportSDK.SRIssueType, phoneNumber: Swift.String, comment: Swift.String?, userValue: Swift.String?, completion: @escaping SpeedcheckerReportSDK.ReportCompletionHandler)
public func speedTest(delegate: SpeedcheckerSDK.InternetSpeedTestDelegate, completion: @escaping (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void)
public func speedTestStop(completion: @escaping (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public enum ReportCompletionResult {
public typealias ReportCompletionHandler = (SpeedcheckerReportSDK.ReportCompletionResult) -> Swift.Void
@objc @_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers public class SpeedcheckerReport : ObjectiveC.NSObject {
public static let shared: SpeedcheckerReportSDK.SpeedcheckerReport
public func initialize()
public func initialize(licenseKey: Swift.String)
public func reportConnectionIssue(type: SpeedcheckerReportSDK.SRIssueType, phoneNumber: Swift.String, comment: Swift.String?, userValue: Swift.String?, completion: @escaping SpeedcheckerReportSDK.ReportCompletionHandler)
public func speedTest(delegate: SpeedcheckerSDK.InternetSpeedTestDelegate, completion: @escaping (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void)
public func speedTestStop(completion: @escaping (SpeedcheckerSDK.SpeedTestError?) -> Swift.Void)
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -10,31 +10,31 @@
</data>
<key>Info.plist</key>
<data>
tsC03dYDK9eD5lP449dhl1cq25k=
IYYqfNBm7N0naWACItnY9NbdRjo=
</data>
<key>Modules/SpeedcheckerReportSDK.swiftmodule/arm64-apple-ios-simulator.swiftdoc</key>
<data>
VVj/8ribzcIQnlf7oNd+oYP+8mc=
</data>
<key>Modules/SpeedcheckerReportSDK.swiftmodule/arm64-apple-ios-simulator.swiftinterface</key>
<data>
qeZxKDaqrX4WEqSmtuUQwUA3/RI=
ckIGi+roXJ1ipe7krHJB9ycPWjA=
</data>
<key>Modules/SpeedcheckerReportSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
<data>
wffMp8JWad4HhjOYC77FbjhVHfU=
5mJ+EwWC7qVcck/TxIJ6ryGvyp8=
</data>
<key>Modules/SpeedcheckerReportSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
<data>
HpkkiWFkJ7700sFbX988KIaa/TY=
</data>
<key>Modules/SpeedcheckerReportSDK.swiftmodule/x86_64-apple-ios-simulator.swiftinterface</key>
<data>
U337XWt77e7eK2CAAPJRm5TINq8=
/c4bKnkJkIVIc2ZnCrFDOgM919M=
</data>
<key>Modules/SpeedcheckerReportSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
<data>
oIxvUQ+tT0tnQbw3BsMsbVJEIHk=
UNrdkLhT7DeS6y3frOOy6pGSRuE=
</data>
<key>Modules/module.modulemap</key>
<data>
Expand All @@ -61,14 +61,14 @@
<dict>
<key>hash2</key>
<data>
A+4n6UQblDNKCYI6vf9q1RmJ12jAEFe9+8m44zIxA30=
D+ngdGlNBRsMGGNfQCJTecfLDMW0uQIKaw5erPvqZ/c=
</data>
</dict>
<key>Modules/SpeedcheckerReportSDK.swiftmodule/arm64-apple-ios-simulator.swiftmodule</key>
<dict>
<key>hash2</key>
<data>
F78rUyOgpCSX2aqjXvzfR+o4XDqRtcTnxGB5JXI+M50=
XeNBuERdNroqiFwY/TE/CRE+DWGJy3krpQCIy3tO6SM=
</data>
</dict>
<key>Modules/SpeedcheckerReportSDK.swiftmodule/x86_64-apple-ios-simulator.swiftdoc</key>
Expand All @@ -82,14 +82,14 @@
<dict>
<key>hash2</key>
<data>
VJohdWi4qjNmm6uvy49BDhYs1MCE2MIoJTj9UEtDtVM=
8p4yk4Og/TGVB/XZHmn9p7JiXLEyDW9DYOrAqEFJbEI=
</data>
</dict>
<key>Modules/SpeedcheckerReportSDK.swiftmodule/x86_64-apple-ios-simulator.swiftmodule</key>
<dict>
<key>hash2</key>
<data>
kmnU5b1dUMdR2GLAqaEM6EFLzv9TI0RbmGyzGcKOYt8=
NovZADcnV5bAbsQWaMmQeXsK/WtY02LbtEyloEQYJXg=
</data>
</dict>
<key>Modules/module.modulemap</key>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -222,13 +222,13 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4)));
SWIFT_CLASS_NAMED("BackgroundTest")
@interface BackgroundTest : NSObject
/// Initiate BackgroundTest
/// \param clientID Int id value
/// \param licenseKey Used to enable paid functionality
///
/// \param url Value used for background test configuration
///
/// \param testsEnabled value which tells if test is enabled on init
///
- (nonnull instancetype)initWithClientID:(NSInteger)clientID url:(NSString * _Nullable)url testsEnabled:(BOOL)testsEnabled OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithLicenseKey:(NSString * _Nullable)licenseKey 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;
Expand All @@ -240,6 +240,7 @@ SWIFT_CLASS_NAMED("BackgroundTest")




@class CLLocation;

@interface BackgroundTest (SWIFT_EXTENSION(SpeedcheckerSDK))
Expand Down Expand Up @@ -309,13 +310,15 @@ SWIFT_PROTOCOL_NAMED("InternetSpeedTestDelegate")
/// The controller manages the speed test process. See also <code>InternetSpeedTestDelegate</code>
SWIFT_CLASS_NAMED("InternetSpeedTest")
@interface InternetSpeedTest : NSObject
- (nonnull instancetype)initWithClientID:(NSInteger)clientID userID:(NSInteger)userID isBackground:(BOOL)isBackground delegate:(id <InternetSpeedTestDelegate> _Nonnull)delegate OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithLicenseKey:(NSString * _Nullable)licenseKey delegate:(id <InternetSpeedTestDelegate> _Nonnull)delegate;
/// The function starts a new speed test process. Optinally with a specified list of servers.
- (void)start:(NSArray<SpeedTestServer *> * _Nonnull)servers completion:(SWIFT_NOESCAPE void (^ _Nonnull)(enum SpeedTestError))completion;
/// 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:(void (^ _Nonnull)(enum SpeedTestError))completion;
- (void)startTest:(void (^ _Nonnull)(enum SpeedTestError))completion SWIFT_UNAVAILABLE_MSG("'startTest' has been renamed to 'startFreeTest:'");
/// The function starts a free test if geolocation is enabled
- (void)startFreeTest:(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;
Expand Down Expand Up @@ -392,6 +395,8 @@ typedef SWIFT_ENUM_NAMED(NSInteger, SpeedTestError, "SpeedTestError", open) {
SpeedTestErrorNotSaved = 5,
SpeedTestErrorCancelled = 6,
SpeedTestErrorLocationUndefined = 7,
SpeedTestErrorAppISPMismatch = 8,
SpeedTestErrorInvalidlicenseKey = 9,
};

typedef SWIFT_ENUM_NAMED(NSInteger, SpeedTestLatencyType, "SpeedTestLatencyType", open) {
Expand Down
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
// swift-module-flags: -target arm64-apple-ios11.0 -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -module-name SpeedcheckerSDK
import BackgroundTasks
import SystemConfiguration.CaptiveNetwork
import CommonCrypto
import CoreLocation
import CoreTelephony
import Darwin
Expand Down Expand Up @@ -46,14 +47,18 @@ public class SCSignalHelper {
public func getSignalStrengh() -> (cellStrength: SpeedcheckerSDK.SCIssueSignalMeasurementStrength?, wiFiStrength: SpeedcheckerSDK.SCIssueSignalMeasurementStrength?)
@objc deinit
}
public enum SCError : Swift.Error {
public enum SCError : Foundation.LocalizedError {
case invalidSettings
case invalidEnvironment
case invalidArgument
case invalidRequest
case requestFailed
case invalidResponse
case responseFailed
case appISPMismatch
public var errorDescription: Swift.String? {
get
}
public static func == (a: SpeedcheckerSDK.SCError, b: SpeedcheckerSDK.SCError) -> Swift.Bool
public func hash(into hasher: inout Swift.Hasher)
public var hashValue: Swift.Int {
Expand Down Expand Up @@ -276,19 +281,19 @@ public enum ConnectionIssue : Swift.Int {
get
}
}
@objc(InternetSpeedTest) public class InternetSpeedTest : ObjectiveC.NSObject {
final public let userID: Swift.Int
final public let clientID: Swift.Int
@_hasMissingDesignatedInitializers @objc(InternetSpeedTest) public class InternetSpeedTest : ObjectiveC.NSObject {
final public let licenseKey: Swift.String?
public var delegate: SpeedcheckerSDK.InternetSpeedTestDelegate?
public static var testInProgress: Swift.Bool {
get
}
@objc public init(clientID: Swift.Int = 0, userID: Swift.Int = 0, isBackground: Swift.Bool = false, delegate: SpeedcheckerSDK.InternetSpeedTestDelegate)
public init(clientID: Swift.Int = 0, userID: Swift.Int = 0, isBackground: Swift.Bool = false, bgdlTimeMs: Swift.Int? = nil, bgulTimeMs: Swift.Int? = nil, bgskipTimeMs: Swift.Int? = nil, delegate: SpeedcheckerSDK.InternetSpeedTestDelegate?)
@objc convenience public init(licenseKey: Swift.String? = nil, delegate: SpeedcheckerSDK.InternetSpeedTestDelegate)
@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)
@available(*, unavailable, renamed: "startFreeTest")
@objc open func startTest(_ completion: @escaping (SpeedcheckerSDK.SpeedTestError) -> Swift.Void)
@objc open func startFreeTest(_ 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)
Expand Down Expand Up @@ -323,9 +328,6 @@ extension SpeedcheckerSDK.InternetSpeedTest {
@objc func internetTestUploadFinish()
@objc func internetTestUpload(progress: Swift.Double, speed: SpeedcheckerSDK.SpeedTestSpeed)
}
public struct SCClient {
public init(ID: Swift.Int?, applicationHash: Swift.String? = nil, name: Swift.String? = nil)
}
@_hasMissingDesignatedInitializers public class SCDataController {
@objc deinit
}
Expand Down Expand Up @@ -431,7 +433,7 @@ public struct SCServer : Swift.Equatable {
}
public func == (lhs: SpeedcheckerSDK.SCServer, rhs: SpeedcheckerSDK.SCServer) -> Swift.Bool
@_inheritsConvenienceInitializers @_hasMissingDesignatedInitializers public class SCServerDataController : SpeedcheckerSDK.SCDataController {
public static func getServers(for client: SpeedcheckerSDK.SCClient? = nil, completion: @escaping ([SpeedcheckerSDK.SCServer]?, SpeedcheckerSDK.SCError?) -> Swift.Void)
public static func getServers(completion: @escaping ([SpeedcheckerSDK.SCServer]?, SpeedcheckerSDK.SCError?) -> Swift.Void)
public static func getAllServers(_ completion: @escaping ([SpeedcheckerSDK.SCServer]?, SpeedcheckerSDK.SCError?) -> Swift.Void)
public static func getCustomServers(from link: Swift.String, completion: @escaping ([SpeedcheckerSDK.SCServer]?, SpeedcheckerSDK.SCError?) -> Swift.Void)
public static func getOoklaServers(_ completion: @escaping ([SpeedcheckerSDK.SCServer]?, SpeedcheckerSDK.SCError?) -> Swift.Void)
Expand Down Expand Up @@ -479,6 +481,8 @@ public enum SCTestStatus {
case notSaved
case cancelled
case locationUndefined
case appISPMismatch
case invalidlicenseKey
public init?(rawValue: Swift.Int)
public typealias RawValue = Swift.Int
public var rawValue: Swift.Int {
Expand Down Expand Up @@ -668,7 +672,7 @@ public struct SCConfigFileSettings : Swift.Codable {
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 public init(licenseKey: Swift.String? = nil, url: Swift.String? = nil, testsEnabled: Swift.Bool = true)
@objc deinit
@objc public func setBackgroundNetworkTesting(testsEnabled: Swift.Bool)
@objc public func getBackgroundNetworkTestingEnabled() -> Swift.Bool
Expand Down
Binary file not shown.
Loading

0 comments on commit 56b006b

Please sign in to comment.