diff --git a/FlyBuy.xcframework/Info.plist b/FlyBuy.xcframework/Info.plist index fa9c621..132059a 100644 --- a/FlyBuy.xcframework/Info.plist +++ b/FlyBuy.xcframework/Info.plist @@ -6,30 +6,30 @@ LibraryIdentifier - ios-arm64_x86_64-simulator + ios-arm64 LibraryPath FlyBuy.framework SupportedArchitectures arm64 - x86_64 SupportedPlatform ios - SupportedPlatformVariant - simulator LibraryIdentifier - ios-arm64 + ios-arm64_x86_64-simulator LibraryPath FlyBuy.framework SupportedArchitectures arm64 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator CFBundlePackageType diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/FlyBuy b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/FlyBuy index 63c94b0..7f34b0f 100644 Binary files a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/FlyBuy and b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/FlyBuy differ diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Headers/FlyBuy-Swift.h b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Headers/FlyBuy-Swift.h index 1367753..0972109 100644 --- a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Headers/FlyBuy-Swift.h +++ b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Headers/FlyBuy-Swift.h @@ -469,6 +469,13 @@ SWIFT_CLASS_NAMED("LoginInfo") + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end + +SWIFT_CLASS("_TtC6FlyBuy12NotifyConfig") +@interface NotifyConfig : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + @class CLLocation; @class NSNumber; @@ -660,6 +667,7 @@ SWIFT_CLASS_NAMED("PickupWindow") @property (nonatomic, readonly, copy) NSDate * _Nonnull end; - (nonnull instancetype)initWithStart:(NSDate * _Nonnull)start end:(NSDate * _Nonnull)end OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init:(NSDate * _Nonnull)date; +- (NSString * _Nonnull)formattedStringWithLocale:(NSLocale * _Nonnull)locale SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Info.plist b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Info.plist index dd13c58..a94854a 100644 Binary files a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Info.plist and b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Info.plist differ diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftdoc b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftdoc index 8e6630c..fd705bf 100644 Binary files a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftdoc and b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftdoc differ diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftinterface b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftinterface index 61d8999..e11c9c2 100644 --- a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftinterface +++ b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios.swiftinterface @@ -33,6 +33,28 @@ extension PickupLocationFilterData { get } } +@objc @_hasMissingDesignatedInitializers public class NotifyConfig : ObjectiveC.NSObject, Swift.Codable { + final public let beaconUUID: Foundation.UUID + final public let defaultGeofenceRadiusMeters: Swift.Int + final public let defaultSiteSearchRadiusMeters: Swift.Int + final public let analyticsEventLimit: Swift.Int? + @objc deinit + @objc override dynamic public init() + required public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +public struct RuntimeError : Swift.Error, Swift.Codable { + public var localizedDescription: Swift.String { + get + } + public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +extension Error { + public var message: Swift.String { + get + } +} @objc(FlyBuyCustomerConsent) open class CustomerConsent : ObjectiveC.NSObject, Swift.Codable { @objc final public let termsOfService: Swift.Bool @objc final public let ageVerification: Swift.Bool @@ -102,12 +124,83 @@ extension _AnyEncodable { public init(arrayLiteral elements: Any...) public init(dictionaryLiteral elements: (Swift.AnyHashable, Any)...) } +public typealias ResultType = Swift.Result +public struct VoidResponse : Swift.Codable { + public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +public enum HTTPMethod : Swift.String { + case get + case post + case put + case patch + case delete + public typealias RawValue = Swift.String + public init?(rawValue: Swift.String) + public var rawValue: Swift.String { + get + } +} +public enum EncodingType { + case url + case json + public static func == (a: FlyBuy.EncodingType, b: FlyBuy.EncodingType) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol BaseApiRequest { + var requestEndPoint: Swift.String { get } + var requestType: FlyBuy.HTTPMethod { get } + var encoding: FlyBuy.EncodingType { get } + var headers: [Swift.String : Swift.String]? { get } + var requestBody: Foundation.Data? { get } +} +extension BaseApiRequest { + public var encoding: FlyBuy.EncodingType { + get + } + public var requestBody: Foundation.Data? { + get + } + public var headers: [Swift.String : Swift.String]? { + get + } +} +public protocol CodableRequest : FlyBuy.BaseApiRequest { + associatedtype Response : Swift.Decodable + associatedtype ErrorType : Swift.Decodable, Swift.Error + var decoder: Foundation.JSONDecoder { get } + var apiToken: Swift.String? { get } + var queryParams: [Swift.String : Swift.String]? { get } +} +extension CodableRequest { + public typealias ErrorType = FlyBuy.RuntimeError + public var decoder: Foundation.JSONDecoder { + get + } + public var apiToken: Swift.String? { + get + } + public var queryParams: [Swift.String : Swift.String]? { + get + } +} open class EncodableRequest where EncodableObject : Swift.Encodable { final public let object: EncodableObject final public let encoder: Foundation.JSONEncoder - public init(object: EncodableObject, encoder: Foundation.JSONEncoder = JSONEncoder()) + public init(object: EncodableObject, encoder: Foundation.JSONEncoder = JSONEncoder.iso8601FullLocalTZ) + public var requestBody: Foundation.Data? { + get + } @objc deinit } +extension BaseApiRequest { + public var latestApi: Swift.String { + get + } +} @objc(FlyBuySite) open class Site : ObjectiveC.NSObject, Swift.Decodable { @objc final public let id: Swift.Int @objc final public let partnerIdentifier: Swift.String? @@ -133,13 +226,14 @@ open class EncodableRequest where EncodableObject : Swift.Encod @objc deinit required public init(from decoder: Swift.Decoder) throws } -@objc(FlyBuyGeofence) open class Geofence : ObjectiveC.NSObject, Swift.Decodable { +@objc(FlyBuyGeofence) open class Geofence : ObjectiveC.NSObject, Swift.Codable { @objc final public let latitude: Swift.String @objc final public let longitude: Swift.String @objc final public let radiusMeters: Swift.Double public func locationCoordinate() -> CoreLocation.CLLocationCoordinate2D? @objc deinit required public init(from decoder: Swift.Decoder) throws + open func encode(to encoder: Swift.Encoder) throws } @objc(FlyBuyCustomerInfo) open class CustomerInfo : ObjectiveC.NSObject, Swift.Codable { @objc final public let name: Swift.String @@ -153,6 +247,14 @@ open class EncodableRequest where EncodableObject : Swift.Encod @objc deinit open func encode(to encoder: Swift.Encoder) throws } +final public class PersistManager : FlyBuy.FlyBuyDBProtocol { + public static let defaultDBPath: Swift.String + public static var shared: FlyBuy.PersistManager + final public var dbManager: FlyBuy.FlyBuyDBManager + final public var needsInit: Swift.Bool + public init(atPath path: Swift.String = PersistManager.defaultDBPath) + @objc deinit +} @objc public enum LocationAuthStatus : Swift.Int, Swift.Codable { case notDetermined case restricted @@ -229,9 +331,15 @@ public struct AppConfigData : Swift.Codable { public let notifyMaxSites: Swift.Int? public let nearbySitesFeatureUrl: Swift.String? public let upgrade: FlyBuy.AppUpgrade? + public let notify: FlyBuy.NotifyConfig? public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws } +open class BaseAPIService { + public init() + public func execute(_ request: Request, withCompletion completion: @escaping (FlyBuy.ResultType) -> Swift.Void) where Request : FlyBuy.CodableRequest + @objc deinit +} public struct BeaconRegion : Swift.Codable, Swift.Hashable { public let uuid: Foundation.UUID public let major: Swift.UInt16? @@ -255,7 +363,9 @@ public protocol FlyBuyModuleManager { @objc public static let sites: FlyBuy.SitesManager @objc public static let config: FlyBuy.ConfigurationManager @objc public static let logger: FlyBuy.Logger + public static var isCoreConfigured: Swift.Bool @objc public static func configure(_ opts: [Swift.String : Any]) + public static func appInstanceID() -> Foundation.UUID @objc public static func handleRemoteNotification(_ data: [Swift.AnyHashable : Any]) @objc public static func updatePushToken(_ newPushToken: Swift.String) @objc public static func updateAPNPushToken(_ deviceToken: Foundation.Data) @@ -282,6 +392,47 @@ extension _AnyDecodable { @objc deinit open func encode(to encoder: Swift.Encoder) throws } +final public class FlyBuyDBManager { + final public func setDBVersion(_ version: Swift.Int) + public init(atPath path: Swift.String) + final public func fetchAll(_ type: [T].Type) throws -> [T] where T : FlyBuy.PersistableCodable + final public func fetch(_ type: [T].Type, using sql: Swift.String) throws -> [T] where T : FlyBuy.PersistableCodable + final public func save(_ value: T) throws where T : FlyBuy.PersistableCodable + final public func deleteAll(_ type: T.Type) throws where T : FlyBuy.PersistableCodable + final public func execute(raw: Swift.String) throws + @objc deinit +} +public protocol FlyBuyDBProtocol { + var dbManager: FlyBuy.FlyBuyDBManager { get } +} +extension FlyBuyDBProtocol { + public func fetchAll(_ type: [T].Type) throws -> [T] where T : FlyBuy.PersistableCodable + public func fetch(_ type: [T].Type, using sql: Swift.String) throws -> [T] where T : FlyBuy.PersistableCodable + public func save(_ value: T) throws where T : FlyBuy.PersistableCodable + public func deleteAll(_ type: T.Type) throws where T : FlyBuy.PersistableCodable + public func execute(sql: Swift.String) throws +} +public protocol PersistableCodable : Swift.Decodable, Swift.Encodable { + static var createTable: Swift.String { get } + static var upsert: Swift.String { get } + static var fetchAll: Swift.String { get } + static var deleteAll: Swift.String { get } +} +extension PersistableCodable { + public static func fetchAll(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws -> [Self] + public func save(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws + public static func deleteAll(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws +} +extension JSONDecoder { + public static let iso8601Full: Foundation.JSONDecoder +} +extension JSONEncoder { + public static let iso8601FullLocalTZ: Foundation.JSONEncoder +} +extension DateFormatter { + public static let iso8601Full: Foundation.DateFormatter + public static let iso8601FullLocalTZ: Foundation.DateFormatter +} @_hasMissingDesignatedInitializers @objc(FlyBuyCustomer) open class Customer : ObjectiveC.NSObject, Swift.Decodable { @objc final public let token: Swift.String @objc final public let emailAddress: Swift.String? @@ -305,6 +456,7 @@ extension _AnyDecodable { @objc convenience public init(_ date: Foundation.Date) required convenience public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws + @objc public func formattedString(locale: Foundation.Locale = Locale.current) -> Swift.String @objc override dynamic public init() @objc deinit } @@ -397,6 +549,48 @@ public enum HTTPStatusCode : Swift.Int, Swift.Error { @objc deinit @objc override dynamic public init() } +public struct AnyCodable : Swift.Codable { + public let value: Any + public init(_ value: T?) +} +extension AnyCodable : FlyBuy._AnyEncodable, FlyBuy._AnyDecodable { +} +extension AnyCodable : Swift.Equatable { + public static func == (lhs: FlyBuy.AnyCodable, rhs: FlyBuy.AnyCodable) -> Swift.Bool +} +extension AnyCodable : Swift.CustomStringConvertible { + public var description: Swift.String { + get + } +} +extension AnyCodable : Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + get + } +} +extension AnyCodable : Swift.ExpressibleByNilLiteral { +} +extension AnyCodable : Swift.ExpressibleByBooleanLiteral { + public typealias BooleanLiteralType = Swift.Bool +} +extension AnyCodable : Swift.ExpressibleByIntegerLiteral { + public typealias IntegerLiteralType = Swift.Int +} +extension AnyCodable : Swift.ExpressibleByFloatLiteral { + public typealias FloatLiteralType = Swift.Double +} +extension AnyCodable : Swift.ExpressibleByStringLiteral { + public typealias StringLiteralType = Swift.String + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String +} +extension AnyCodable : Swift.ExpressibleByArrayLiteral { + public typealias ArrayLiteralElement = Any +} +extension AnyCodable : Swift.ExpressibleByDictionaryLiteral { + public typealias Key = Swift.AnyHashable + public typealias Value = Any +} extension Optional where Wrapped == Swift.String { public var presence: Swift.String? { get @@ -586,9 +780,28 @@ public struct CustomerResponse : Swift.Decodable { @objc deinit @objc override dynamic public init() } +extension Order : FlyBuy.PersistableCodable { + public static var createTable: Swift.String { + get + } + public static var upsert: Swift.String { + get + } + public static var fetchAll: Swift.String { + get + } + public static var deleteAll: Swift.String { + get + } +} extension Order { public func isOpen() -> Swift.Bool } +extension FlyBuy.HTTPMethod : Swift.Equatable {} +extension FlyBuy.HTTPMethod : Swift.Hashable {} +extension FlyBuy.HTTPMethod : Swift.RawRepresentable {} +extension FlyBuy.EncodingType : Swift.Equatable {} +extension FlyBuy.EncodingType : Swift.Hashable {} extension FlyBuy.LocationAuthStatus : Swift.Equatable {} extension FlyBuy.LocationAuthStatus : Swift.Hashable {} extension FlyBuy.LocationAuthStatus : Swift.RawRepresentable {} @@ -601,5 +814,3 @@ extension FlyBuy.HTTPStatusCode : Swift.RawRepresentable {} extension FlyBuy.LogLevel : Swift.Equatable {} extension FlyBuy.LogLevel : Swift.Hashable {} extension FlyBuy.LogLevel : Swift.RawRepresentable {} -extension FlyBuy.Order : Swift.Encodable {} -extension FlyBuy.Order : Swift.Decodable {} diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftdoc b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftdoc index 8e6630c..fd705bf 100644 Binary files a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftdoc and b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftdoc differ diff --git a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftinterface b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftinterface index 61d8999..e11c9c2 100644 --- a/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftinterface +++ b/FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftinterface @@ -33,6 +33,28 @@ extension PickupLocationFilterData { get } } +@objc @_hasMissingDesignatedInitializers public class NotifyConfig : ObjectiveC.NSObject, Swift.Codable { + final public let beaconUUID: Foundation.UUID + final public let defaultGeofenceRadiusMeters: Swift.Int + final public let defaultSiteSearchRadiusMeters: Swift.Int + final public let analyticsEventLimit: Swift.Int? + @objc deinit + @objc override dynamic public init() + required public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +public struct RuntimeError : Swift.Error, Swift.Codable { + public var localizedDescription: Swift.String { + get + } + public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +extension Error { + public var message: Swift.String { + get + } +} @objc(FlyBuyCustomerConsent) open class CustomerConsent : ObjectiveC.NSObject, Swift.Codable { @objc final public let termsOfService: Swift.Bool @objc final public let ageVerification: Swift.Bool @@ -102,12 +124,83 @@ extension _AnyEncodable { public init(arrayLiteral elements: Any...) public init(dictionaryLiteral elements: (Swift.AnyHashable, Any)...) } +public typealias ResultType = Swift.Result +public struct VoidResponse : Swift.Codable { + public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +public enum HTTPMethod : Swift.String { + case get + case post + case put + case patch + case delete + public typealias RawValue = Swift.String + public init?(rawValue: Swift.String) + public var rawValue: Swift.String { + get + } +} +public enum EncodingType { + case url + case json + public static func == (a: FlyBuy.EncodingType, b: FlyBuy.EncodingType) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol BaseApiRequest { + var requestEndPoint: Swift.String { get } + var requestType: FlyBuy.HTTPMethod { get } + var encoding: FlyBuy.EncodingType { get } + var headers: [Swift.String : Swift.String]? { get } + var requestBody: Foundation.Data? { get } +} +extension BaseApiRequest { + public var encoding: FlyBuy.EncodingType { + get + } + public var requestBody: Foundation.Data? { + get + } + public var headers: [Swift.String : Swift.String]? { + get + } +} +public protocol CodableRequest : FlyBuy.BaseApiRequest { + associatedtype Response : Swift.Decodable + associatedtype ErrorType : Swift.Decodable, Swift.Error + var decoder: Foundation.JSONDecoder { get } + var apiToken: Swift.String? { get } + var queryParams: [Swift.String : Swift.String]? { get } +} +extension CodableRequest { + public typealias ErrorType = FlyBuy.RuntimeError + public var decoder: Foundation.JSONDecoder { + get + } + public var apiToken: Swift.String? { + get + } + public var queryParams: [Swift.String : Swift.String]? { + get + } +} open class EncodableRequest where EncodableObject : Swift.Encodable { final public let object: EncodableObject final public let encoder: Foundation.JSONEncoder - public init(object: EncodableObject, encoder: Foundation.JSONEncoder = JSONEncoder()) + public init(object: EncodableObject, encoder: Foundation.JSONEncoder = JSONEncoder.iso8601FullLocalTZ) + public var requestBody: Foundation.Data? { + get + } @objc deinit } +extension BaseApiRequest { + public var latestApi: Swift.String { + get + } +} @objc(FlyBuySite) open class Site : ObjectiveC.NSObject, Swift.Decodable { @objc final public let id: Swift.Int @objc final public let partnerIdentifier: Swift.String? @@ -133,13 +226,14 @@ open class EncodableRequest where EncodableObject : Swift.Encod @objc deinit required public init(from decoder: Swift.Decoder) throws } -@objc(FlyBuyGeofence) open class Geofence : ObjectiveC.NSObject, Swift.Decodable { +@objc(FlyBuyGeofence) open class Geofence : ObjectiveC.NSObject, Swift.Codable { @objc final public let latitude: Swift.String @objc final public let longitude: Swift.String @objc final public let radiusMeters: Swift.Double public func locationCoordinate() -> CoreLocation.CLLocationCoordinate2D? @objc deinit required public init(from decoder: Swift.Decoder) throws + open func encode(to encoder: Swift.Encoder) throws } @objc(FlyBuyCustomerInfo) open class CustomerInfo : ObjectiveC.NSObject, Swift.Codable { @objc final public let name: Swift.String @@ -153,6 +247,14 @@ open class EncodableRequest where EncodableObject : Swift.Encod @objc deinit open func encode(to encoder: Swift.Encoder) throws } +final public class PersistManager : FlyBuy.FlyBuyDBProtocol { + public static let defaultDBPath: Swift.String + public static var shared: FlyBuy.PersistManager + final public var dbManager: FlyBuy.FlyBuyDBManager + final public var needsInit: Swift.Bool + public init(atPath path: Swift.String = PersistManager.defaultDBPath) + @objc deinit +} @objc public enum LocationAuthStatus : Swift.Int, Swift.Codable { case notDetermined case restricted @@ -229,9 +331,15 @@ public struct AppConfigData : Swift.Codable { public let notifyMaxSites: Swift.Int? public let nearbySitesFeatureUrl: Swift.String? public let upgrade: FlyBuy.AppUpgrade? + public let notify: FlyBuy.NotifyConfig? public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws } +open class BaseAPIService { + public init() + public func execute(_ request: Request, withCompletion completion: @escaping (FlyBuy.ResultType) -> Swift.Void) where Request : FlyBuy.CodableRequest + @objc deinit +} public struct BeaconRegion : Swift.Codable, Swift.Hashable { public let uuid: Foundation.UUID public let major: Swift.UInt16? @@ -255,7 +363,9 @@ public protocol FlyBuyModuleManager { @objc public static let sites: FlyBuy.SitesManager @objc public static let config: FlyBuy.ConfigurationManager @objc public static let logger: FlyBuy.Logger + public static var isCoreConfigured: Swift.Bool @objc public static func configure(_ opts: [Swift.String : Any]) + public static func appInstanceID() -> Foundation.UUID @objc public static func handleRemoteNotification(_ data: [Swift.AnyHashable : Any]) @objc public static func updatePushToken(_ newPushToken: Swift.String) @objc public static func updateAPNPushToken(_ deviceToken: Foundation.Data) @@ -282,6 +392,47 @@ extension _AnyDecodable { @objc deinit open func encode(to encoder: Swift.Encoder) throws } +final public class FlyBuyDBManager { + final public func setDBVersion(_ version: Swift.Int) + public init(atPath path: Swift.String) + final public func fetchAll(_ type: [T].Type) throws -> [T] where T : FlyBuy.PersistableCodable + final public func fetch(_ type: [T].Type, using sql: Swift.String) throws -> [T] where T : FlyBuy.PersistableCodable + final public func save(_ value: T) throws where T : FlyBuy.PersistableCodable + final public func deleteAll(_ type: T.Type) throws where T : FlyBuy.PersistableCodable + final public func execute(raw: Swift.String) throws + @objc deinit +} +public protocol FlyBuyDBProtocol { + var dbManager: FlyBuy.FlyBuyDBManager { get } +} +extension FlyBuyDBProtocol { + public func fetchAll(_ type: [T].Type) throws -> [T] where T : FlyBuy.PersistableCodable + public func fetch(_ type: [T].Type, using sql: Swift.String) throws -> [T] where T : FlyBuy.PersistableCodable + public func save(_ value: T) throws where T : FlyBuy.PersistableCodable + public func deleteAll(_ type: T.Type) throws where T : FlyBuy.PersistableCodable + public func execute(sql: Swift.String) throws +} +public protocol PersistableCodable : Swift.Decodable, Swift.Encodable { + static var createTable: Swift.String { get } + static var upsert: Swift.String { get } + static var fetchAll: Swift.String { get } + static var deleteAll: Swift.String { get } +} +extension PersistableCodable { + public static func fetchAll(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws -> [Self] + public func save(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws + public static func deleteAll(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws +} +extension JSONDecoder { + public static let iso8601Full: Foundation.JSONDecoder +} +extension JSONEncoder { + public static let iso8601FullLocalTZ: Foundation.JSONEncoder +} +extension DateFormatter { + public static let iso8601Full: Foundation.DateFormatter + public static let iso8601FullLocalTZ: Foundation.DateFormatter +} @_hasMissingDesignatedInitializers @objc(FlyBuyCustomer) open class Customer : ObjectiveC.NSObject, Swift.Decodable { @objc final public let token: Swift.String @objc final public let emailAddress: Swift.String? @@ -305,6 +456,7 @@ extension _AnyDecodable { @objc convenience public init(_ date: Foundation.Date) required convenience public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws + @objc public func formattedString(locale: Foundation.Locale = Locale.current) -> Swift.String @objc override dynamic public init() @objc deinit } @@ -397,6 +549,48 @@ public enum HTTPStatusCode : Swift.Int, Swift.Error { @objc deinit @objc override dynamic public init() } +public struct AnyCodable : Swift.Codable { + public let value: Any + public init(_ value: T?) +} +extension AnyCodable : FlyBuy._AnyEncodable, FlyBuy._AnyDecodable { +} +extension AnyCodable : Swift.Equatable { + public static func == (lhs: FlyBuy.AnyCodable, rhs: FlyBuy.AnyCodable) -> Swift.Bool +} +extension AnyCodable : Swift.CustomStringConvertible { + public var description: Swift.String { + get + } +} +extension AnyCodable : Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + get + } +} +extension AnyCodable : Swift.ExpressibleByNilLiteral { +} +extension AnyCodable : Swift.ExpressibleByBooleanLiteral { + public typealias BooleanLiteralType = Swift.Bool +} +extension AnyCodable : Swift.ExpressibleByIntegerLiteral { + public typealias IntegerLiteralType = Swift.Int +} +extension AnyCodable : Swift.ExpressibleByFloatLiteral { + public typealias FloatLiteralType = Swift.Double +} +extension AnyCodable : Swift.ExpressibleByStringLiteral { + public typealias StringLiteralType = Swift.String + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String +} +extension AnyCodable : Swift.ExpressibleByArrayLiteral { + public typealias ArrayLiteralElement = Any +} +extension AnyCodable : Swift.ExpressibleByDictionaryLiteral { + public typealias Key = Swift.AnyHashable + public typealias Value = Any +} extension Optional where Wrapped == Swift.String { public var presence: Swift.String? { get @@ -586,9 +780,28 @@ public struct CustomerResponse : Swift.Decodable { @objc deinit @objc override dynamic public init() } +extension Order : FlyBuy.PersistableCodable { + public static var createTable: Swift.String { + get + } + public static var upsert: Swift.String { + get + } + public static var fetchAll: Swift.String { + get + } + public static var deleteAll: Swift.String { + get + } +} extension Order { public func isOpen() -> Swift.Bool } +extension FlyBuy.HTTPMethod : Swift.Equatable {} +extension FlyBuy.HTTPMethod : Swift.Hashable {} +extension FlyBuy.HTTPMethod : Swift.RawRepresentable {} +extension FlyBuy.EncodingType : Swift.Equatable {} +extension FlyBuy.EncodingType : Swift.Hashable {} extension FlyBuy.LocationAuthStatus : Swift.Equatable {} extension FlyBuy.LocationAuthStatus : Swift.Hashable {} extension FlyBuy.LocationAuthStatus : Swift.RawRepresentable {} @@ -601,5 +814,3 @@ extension FlyBuy.HTTPStatusCode : Swift.RawRepresentable {} extension FlyBuy.LogLevel : Swift.Equatable {} extension FlyBuy.LogLevel : Swift.Hashable {} extension FlyBuy.LogLevel : Swift.RawRepresentable {} -extension FlyBuy.Order : Swift.Encodable {} -extension FlyBuy.Order : Swift.Decodable {} diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/FlyBuy b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/FlyBuy index 8e17825..2db52c2 100644 Binary files a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/FlyBuy and b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/FlyBuy differ diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Headers/FlyBuy-Swift.h b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Headers/FlyBuy-Swift.h index 05fc124..0974354 100644 --- a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Headers/FlyBuy-Swift.h +++ b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Headers/FlyBuy-Swift.h @@ -471,6 +471,13 @@ SWIFT_CLASS_NAMED("LoginInfo") + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end + +SWIFT_CLASS("_TtC6FlyBuy12NotifyConfig") +@interface NotifyConfig : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + @class CLLocation; @class NSNumber; @@ -662,6 +669,7 @@ SWIFT_CLASS_NAMED("PickupWindow") @property (nonatomic, readonly, copy) NSDate * _Nonnull end; - (nonnull instancetype)initWithStart:(NSDate * _Nonnull)start end:(NSDate * _Nonnull)end OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init:(NSDate * _Nonnull)date; +- (NSString * _Nonnull)formattedStringWithLocale:(NSLocale * _Nonnull)locale SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end @@ -1261,6 +1269,13 @@ SWIFT_CLASS_NAMED("LoginInfo") + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end + +SWIFT_CLASS("_TtC6FlyBuy12NotifyConfig") +@interface NotifyConfig : NSObject +- (nonnull instancetype)init SWIFT_UNAVAILABLE; ++ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); +@end + @class CLLocation; @class NSNumber; @@ -1452,6 +1467,7 @@ SWIFT_CLASS_NAMED("PickupWindow") @property (nonatomic, readonly, copy) NSDate * _Nonnull end; - (nonnull instancetype)initWithStart:(NSDate * _Nonnull)start end:(NSDate * _Nonnull)end OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init:(NSDate * _Nonnull)date; +- (NSString * _Nonnull)formattedStringWithLocale:(NSLocale * _Nonnull)locale SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; + (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable"); @end diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Info.plist b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Info.plist index d206652..fe07129 100644 Binary files a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Info.plist and b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Info.plist differ diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftdoc b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftdoc index 0511b80..e4fc0cb 100644 Binary files a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftdoc and b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftdoc differ diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftinterface index 4bbd7a3..b663ca5 100644 --- a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftinterface +++ b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -33,6 +33,28 @@ extension PickupLocationFilterData { get } } +@objc @_hasMissingDesignatedInitializers public class NotifyConfig : ObjectiveC.NSObject, Swift.Codable { + final public let beaconUUID: Foundation.UUID + final public let defaultGeofenceRadiusMeters: Swift.Int + final public let defaultSiteSearchRadiusMeters: Swift.Int + final public let analyticsEventLimit: Swift.Int? + @objc deinit + @objc override dynamic public init() + required public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +public struct RuntimeError : Swift.Error, Swift.Codable { + public var localizedDescription: Swift.String { + get + } + public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +extension Error { + public var message: Swift.String { + get + } +} @objc(FlyBuyCustomerConsent) open class CustomerConsent : ObjectiveC.NSObject, Swift.Codable { @objc final public let termsOfService: Swift.Bool @objc final public let ageVerification: Swift.Bool @@ -102,12 +124,83 @@ extension _AnyEncodable { public init(arrayLiteral elements: Any...) public init(dictionaryLiteral elements: (Swift.AnyHashable, Any)...) } +public typealias ResultType = Swift.Result +public struct VoidResponse : Swift.Codable { + public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +public enum HTTPMethod : Swift.String { + case get + case post + case put + case patch + case delete + public typealias RawValue = Swift.String + public init?(rawValue: Swift.String) + public var rawValue: Swift.String { + get + } +} +public enum EncodingType { + case url + case json + public static func == (a: FlyBuy.EncodingType, b: FlyBuy.EncodingType) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol BaseApiRequest { + var requestEndPoint: Swift.String { get } + var requestType: FlyBuy.HTTPMethod { get } + var encoding: FlyBuy.EncodingType { get } + var headers: [Swift.String : Swift.String]? { get } + var requestBody: Foundation.Data? { get } +} +extension BaseApiRequest { + public var encoding: FlyBuy.EncodingType { + get + } + public var requestBody: Foundation.Data? { + get + } + public var headers: [Swift.String : Swift.String]? { + get + } +} +public protocol CodableRequest : FlyBuy.BaseApiRequest { + associatedtype Response : Swift.Decodable + associatedtype ErrorType : Swift.Decodable, Swift.Error + var decoder: Foundation.JSONDecoder { get } + var apiToken: Swift.String? { get } + var queryParams: [Swift.String : Swift.String]? { get } +} +extension CodableRequest { + public typealias ErrorType = FlyBuy.RuntimeError + public var decoder: Foundation.JSONDecoder { + get + } + public var apiToken: Swift.String? { + get + } + public var queryParams: [Swift.String : Swift.String]? { + get + } +} open class EncodableRequest where EncodableObject : Swift.Encodable { final public let object: EncodableObject final public let encoder: Foundation.JSONEncoder - public init(object: EncodableObject, encoder: Foundation.JSONEncoder = JSONEncoder()) + public init(object: EncodableObject, encoder: Foundation.JSONEncoder = JSONEncoder.iso8601FullLocalTZ) + public var requestBody: Foundation.Data? { + get + } @objc deinit } +extension BaseApiRequest { + public var latestApi: Swift.String { + get + } +} @objc(FlyBuySite) open class Site : ObjectiveC.NSObject, Swift.Decodable { @objc final public let id: Swift.Int @objc final public let partnerIdentifier: Swift.String? @@ -133,13 +226,14 @@ open class EncodableRequest where EncodableObject : Swift.Encod @objc deinit required public init(from decoder: Swift.Decoder) throws } -@objc(FlyBuyGeofence) open class Geofence : ObjectiveC.NSObject, Swift.Decodable { +@objc(FlyBuyGeofence) open class Geofence : ObjectiveC.NSObject, Swift.Codable { @objc final public let latitude: Swift.String @objc final public let longitude: Swift.String @objc final public let radiusMeters: Swift.Double public func locationCoordinate() -> CoreLocation.CLLocationCoordinate2D? @objc deinit required public init(from decoder: Swift.Decoder) throws + open func encode(to encoder: Swift.Encoder) throws } @objc(FlyBuyCustomerInfo) open class CustomerInfo : ObjectiveC.NSObject, Swift.Codable { @objc final public let name: Swift.String @@ -153,6 +247,14 @@ open class EncodableRequest where EncodableObject : Swift.Encod @objc deinit open func encode(to encoder: Swift.Encoder) throws } +final public class PersistManager : FlyBuy.FlyBuyDBProtocol { + public static let defaultDBPath: Swift.String + public static var shared: FlyBuy.PersistManager + final public var dbManager: FlyBuy.FlyBuyDBManager + final public var needsInit: Swift.Bool + public init(atPath path: Swift.String = PersistManager.defaultDBPath) + @objc deinit +} @objc public enum LocationAuthStatus : Swift.Int, Swift.Codable { case notDetermined case restricted @@ -229,9 +331,15 @@ public struct AppConfigData : Swift.Codable { public let notifyMaxSites: Swift.Int? public let nearbySitesFeatureUrl: Swift.String? public let upgrade: FlyBuy.AppUpgrade? + public let notify: FlyBuy.NotifyConfig? public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws } +open class BaseAPIService { + public init() + public func execute(_ request: Request, withCompletion completion: @escaping (FlyBuy.ResultType) -> Swift.Void) where Request : FlyBuy.CodableRequest + @objc deinit +} public struct BeaconRegion : Swift.Codable, Swift.Hashable { public let uuid: Foundation.UUID public let major: Swift.UInt16? @@ -255,7 +363,9 @@ public protocol FlyBuyModuleManager { @objc public static let sites: FlyBuy.SitesManager @objc public static let config: FlyBuy.ConfigurationManager @objc public static let logger: FlyBuy.Logger + public static var isCoreConfigured: Swift.Bool @objc public static func configure(_ opts: [Swift.String : Any]) + public static func appInstanceID() -> Foundation.UUID @objc public static func handleRemoteNotification(_ data: [Swift.AnyHashable : Any]) @objc public static func updatePushToken(_ newPushToken: Swift.String) @objc public static func updateAPNPushToken(_ deviceToken: Foundation.Data) @@ -282,6 +392,47 @@ extension _AnyDecodable { @objc deinit open func encode(to encoder: Swift.Encoder) throws } +final public class FlyBuyDBManager { + final public func setDBVersion(_ version: Swift.Int) + public init(atPath path: Swift.String) + final public func fetchAll(_ type: [T].Type) throws -> [T] where T : FlyBuy.PersistableCodable + final public func fetch(_ type: [T].Type, using sql: Swift.String) throws -> [T] where T : FlyBuy.PersistableCodable + final public func save(_ value: T) throws where T : FlyBuy.PersistableCodable + final public func deleteAll(_ type: T.Type) throws where T : FlyBuy.PersistableCodable + final public func execute(raw: Swift.String) throws + @objc deinit +} +public protocol FlyBuyDBProtocol { + var dbManager: FlyBuy.FlyBuyDBManager { get } +} +extension FlyBuyDBProtocol { + public func fetchAll(_ type: [T].Type) throws -> [T] where T : FlyBuy.PersistableCodable + public func fetch(_ type: [T].Type, using sql: Swift.String) throws -> [T] where T : FlyBuy.PersistableCodable + public func save(_ value: T) throws where T : FlyBuy.PersistableCodable + public func deleteAll(_ type: T.Type) throws where T : FlyBuy.PersistableCodable + public func execute(sql: Swift.String) throws +} +public protocol PersistableCodable : Swift.Decodable, Swift.Encodable { + static var createTable: Swift.String { get } + static var upsert: Swift.String { get } + static var fetchAll: Swift.String { get } + static var deleteAll: Swift.String { get } +} +extension PersistableCodable { + public static func fetchAll(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws -> [Self] + public func save(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws + public static func deleteAll(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws +} +extension JSONDecoder { + public static let iso8601Full: Foundation.JSONDecoder +} +extension JSONEncoder { + public static let iso8601FullLocalTZ: Foundation.JSONEncoder +} +extension DateFormatter { + public static let iso8601Full: Foundation.DateFormatter + public static let iso8601FullLocalTZ: Foundation.DateFormatter +} @_hasMissingDesignatedInitializers @objc(FlyBuyCustomer) open class Customer : ObjectiveC.NSObject, Swift.Decodable { @objc final public let token: Swift.String @objc final public let emailAddress: Swift.String? @@ -305,6 +456,7 @@ extension _AnyDecodable { @objc convenience public init(_ date: Foundation.Date) required convenience public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws + @objc public func formattedString(locale: Foundation.Locale = Locale.current) -> Swift.String @objc override dynamic public init() @objc deinit } @@ -397,6 +549,48 @@ public enum HTTPStatusCode : Swift.Int, Swift.Error { @objc deinit @objc override dynamic public init() } +public struct AnyCodable : Swift.Codable { + public let value: Any + public init(_ value: T?) +} +extension AnyCodable : FlyBuy._AnyEncodable, FlyBuy._AnyDecodable { +} +extension AnyCodable : Swift.Equatable { + public static func == (lhs: FlyBuy.AnyCodable, rhs: FlyBuy.AnyCodable) -> Swift.Bool +} +extension AnyCodable : Swift.CustomStringConvertible { + public var description: Swift.String { + get + } +} +extension AnyCodable : Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + get + } +} +extension AnyCodable : Swift.ExpressibleByNilLiteral { +} +extension AnyCodable : Swift.ExpressibleByBooleanLiteral { + public typealias BooleanLiteralType = Swift.Bool +} +extension AnyCodable : Swift.ExpressibleByIntegerLiteral { + public typealias IntegerLiteralType = Swift.Int +} +extension AnyCodable : Swift.ExpressibleByFloatLiteral { + public typealias FloatLiteralType = Swift.Double +} +extension AnyCodable : Swift.ExpressibleByStringLiteral { + public typealias StringLiteralType = Swift.String + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String +} +extension AnyCodable : Swift.ExpressibleByArrayLiteral { + public typealias ArrayLiteralElement = Any +} +extension AnyCodable : Swift.ExpressibleByDictionaryLiteral { + public typealias Key = Swift.AnyHashable + public typealias Value = Any +} extension Optional where Wrapped == Swift.String { public var presence: Swift.String? { get @@ -586,9 +780,28 @@ public struct CustomerResponse : Swift.Decodable { @objc deinit @objc override dynamic public init() } +extension Order : FlyBuy.PersistableCodable { + public static var createTable: Swift.String { + get + } + public static var upsert: Swift.String { + get + } + public static var fetchAll: Swift.String { + get + } + public static var deleteAll: Swift.String { + get + } +} extension Order { public func isOpen() -> Swift.Bool } +extension FlyBuy.HTTPMethod : Swift.Equatable {} +extension FlyBuy.HTTPMethod : Swift.Hashable {} +extension FlyBuy.HTTPMethod : Swift.RawRepresentable {} +extension FlyBuy.EncodingType : Swift.Equatable {} +extension FlyBuy.EncodingType : Swift.Hashable {} extension FlyBuy.LocationAuthStatus : Swift.Equatable {} extension FlyBuy.LocationAuthStatus : Swift.Hashable {} extension FlyBuy.LocationAuthStatus : Swift.RawRepresentable {} @@ -601,5 +814,3 @@ extension FlyBuy.HTTPStatusCode : Swift.RawRepresentable {} extension FlyBuy.LogLevel : Swift.Equatable {} extension FlyBuy.LogLevel : Swift.Hashable {} extension FlyBuy.LogLevel : Swift.RawRepresentable {} -extension FlyBuy.Order : Swift.Encodable {} -extension FlyBuy.Order : Swift.Decodable {} diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftdoc b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftdoc index 0511b80..e4fc0cb 100644 Binary files a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftdoc and b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftdoc differ diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftinterface b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftinterface index 4bbd7a3..b663ca5 100644 --- a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftinterface +++ b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/arm64.swiftinterface @@ -33,6 +33,28 @@ extension PickupLocationFilterData { get } } +@objc @_hasMissingDesignatedInitializers public class NotifyConfig : ObjectiveC.NSObject, Swift.Codable { + final public let beaconUUID: Foundation.UUID + final public let defaultGeofenceRadiusMeters: Swift.Int + final public let defaultSiteSearchRadiusMeters: Swift.Int + final public let analyticsEventLimit: Swift.Int? + @objc deinit + @objc override dynamic public init() + required public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +public struct RuntimeError : Swift.Error, Swift.Codable { + public var localizedDescription: Swift.String { + get + } + public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +extension Error { + public var message: Swift.String { + get + } +} @objc(FlyBuyCustomerConsent) open class CustomerConsent : ObjectiveC.NSObject, Swift.Codable { @objc final public let termsOfService: Swift.Bool @objc final public let ageVerification: Swift.Bool @@ -102,12 +124,83 @@ extension _AnyEncodable { public init(arrayLiteral elements: Any...) public init(dictionaryLiteral elements: (Swift.AnyHashable, Any)...) } +public typealias ResultType = Swift.Result +public struct VoidResponse : Swift.Codable { + public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +public enum HTTPMethod : Swift.String { + case get + case post + case put + case patch + case delete + public typealias RawValue = Swift.String + public init?(rawValue: Swift.String) + public var rawValue: Swift.String { + get + } +} +public enum EncodingType { + case url + case json + public static func == (a: FlyBuy.EncodingType, b: FlyBuy.EncodingType) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol BaseApiRequest { + var requestEndPoint: Swift.String { get } + var requestType: FlyBuy.HTTPMethod { get } + var encoding: FlyBuy.EncodingType { get } + var headers: [Swift.String : Swift.String]? { get } + var requestBody: Foundation.Data? { get } +} +extension BaseApiRequest { + public var encoding: FlyBuy.EncodingType { + get + } + public var requestBody: Foundation.Data? { + get + } + public var headers: [Swift.String : Swift.String]? { + get + } +} +public protocol CodableRequest : FlyBuy.BaseApiRequest { + associatedtype Response : Swift.Decodable + associatedtype ErrorType : Swift.Decodable, Swift.Error + var decoder: Foundation.JSONDecoder { get } + var apiToken: Swift.String? { get } + var queryParams: [Swift.String : Swift.String]? { get } +} +extension CodableRequest { + public typealias ErrorType = FlyBuy.RuntimeError + public var decoder: Foundation.JSONDecoder { + get + } + public var apiToken: Swift.String? { + get + } + public var queryParams: [Swift.String : Swift.String]? { + get + } +} open class EncodableRequest where EncodableObject : Swift.Encodable { final public let object: EncodableObject final public let encoder: Foundation.JSONEncoder - public init(object: EncodableObject, encoder: Foundation.JSONEncoder = JSONEncoder()) + public init(object: EncodableObject, encoder: Foundation.JSONEncoder = JSONEncoder.iso8601FullLocalTZ) + public var requestBody: Foundation.Data? { + get + } @objc deinit } +extension BaseApiRequest { + public var latestApi: Swift.String { + get + } +} @objc(FlyBuySite) open class Site : ObjectiveC.NSObject, Swift.Decodable { @objc final public let id: Swift.Int @objc final public let partnerIdentifier: Swift.String? @@ -133,13 +226,14 @@ open class EncodableRequest where EncodableObject : Swift.Encod @objc deinit required public init(from decoder: Swift.Decoder) throws } -@objc(FlyBuyGeofence) open class Geofence : ObjectiveC.NSObject, Swift.Decodable { +@objc(FlyBuyGeofence) open class Geofence : ObjectiveC.NSObject, Swift.Codable { @objc final public let latitude: Swift.String @objc final public let longitude: Swift.String @objc final public let radiusMeters: Swift.Double public func locationCoordinate() -> CoreLocation.CLLocationCoordinate2D? @objc deinit required public init(from decoder: Swift.Decoder) throws + open func encode(to encoder: Swift.Encoder) throws } @objc(FlyBuyCustomerInfo) open class CustomerInfo : ObjectiveC.NSObject, Swift.Codable { @objc final public let name: Swift.String @@ -153,6 +247,14 @@ open class EncodableRequest where EncodableObject : Swift.Encod @objc deinit open func encode(to encoder: Swift.Encoder) throws } +final public class PersistManager : FlyBuy.FlyBuyDBProtocol { + public static let defaultDBPath: Swift.String + public static var shared: FlyBuy.PersistManager + final public var dbManager: FlyBuy.FlyBuyDBManager + final public var needsInit: Swift.Bool + public init(atPath path: Swift.String = PersistManager.defaultDBPath) + @objc deinit +} @objc public enum LocationAuthStatus : Swift.Int, Swift.Codable { case notDetermined case restricted @@ -229,9 +331,15 @@ public struct AppConfigData : Swift.Codable { public let notifyMaxSites: Swift.Int? public let nearbySitesFeatureUrl: Swift.String? public let upgrade: FlyBuy.AppUpgrade? + public let notify: FlyBuy.NotifyConfig? public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws } +open class BaseAPIService { + public init() + public func execute(_ request: Request, withCompletion completion: @escaping (FlyBuy.ResultType) -> Swift.Void) where Request : FlyBuy.CodableRequest + @objc deinit +} public struct BeaconRegion : Swift.Codable, Swift.Hashable { public let uuid: Foundation.UUID public let major: Swift.UInt16? @@ -255,7 +363,9 @@ public protocol FlyBuyModuleManager { @objc public static let sites: FlyBuy.SitesManager @objc public static let config: FlyBuy.ConfigurationManager @objc public static let logger: FlyBuy.Logger + public static var isCoreConfigured: Swift.Bool @objc public static func configure(_ opts: [Swift.String : Any]) + public static func appInstanceID() -> Foundation.UUID @objc public static func handleRemoteNotification(_ data: [Swift.AnyHashable : Any]) @objc public static func updatePushToken(_ newPushToken: Swift.String) @objc public static func updateAPNPushToken(_ deviceToken: Foundation.Data) @@ -282,6 +392,47 @@ extension _AnyDecodable { @objc deinit open func encode(to encoder: Swift.Encoder) throws } +final public class FlyBuyDBManager { + final public func setDBVersion(_ version: Swift.Int) + public init(atPath path: Swift.String) + final public func fetchAll(_ type: [T].Type) throws -> [T] where T : FlyBuy.PersistableCodable + final public func fetch(_ type: [T].Type, using sql: Swift.String) throws -> [T] where T : FlyBuy.PersistableCodable + final public func save(_ value: T) throws where T : FlyBuy.PersistableCodable + final public func deleteAll(_ type: T.Type) throws where T : FlyBuy.PersistableCodable + final public func execute(raw: Swift.String) throws + @objc deinit +} +public protocol FlyBuyDBProtocol { + var dbManager: FlyBuy.FlyBuyDBManager { get } +} +extension FlyBuyDBProtocol { + public func fetchAll(_ type: [T].Type) throws -> [T] where T : FlyBuy.PersistableCodable + public func fetch(_ type: [T].Type, using sql: Swift.String) throws -> [T] where T : FlyBuy.PersistableCodable + public func save(_ value: T) throws where T : FlyBuy.PersistableCodable + public func deleteAll(_ type: T.Type) throws where T : FlyBuy.PersistableCodable + public func execute(sql: Swift.String) throws +} +public protocol PersistableCodable : Swift.Decodable, Swift.Encodable { + static var createTable: Swift.String { get } + static var upsert: Swift.String { get } + static var fetchAll: Swift.String { get } + static var deleteAll: Swift.String { get } +} +extension PersistableCodable { + public static func fetchAll(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws -> [Self] + public func save(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws + public static func deleteAll(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws +} +extension JSONDecoder { + public static let iso8601Full: Foundation.JSONDecoder +} +extension JSONEncoder { + public static let iso8601FullLocalTZ: Foundation.JSONEncoder +} +extension DateFormatter { + public static let iso8601Full: Foundation.DateFormatter + public static let iso8601FullLocalTZ: Foundation.DateFormatter +} @_hasMissingDesignatedInitializers @objc(FlyBuyCustomer) open class Customer : ObjectiveC.NSObject, Swift.Decodable { @objc final public let token: Swift.String @objc final public let emailAddress: Swift.String? @@ -305,6 +456,7 @@ extension _AnyDecodable { @objc convenience public init(_ date: Foundation.Date) required convenience public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws + @objc public func formattedString(locale: Foundation.Locale = Locale.current) -> Swift.String @objc override dynamic public init() @objc deinit } @@ -397,6 +549,48 @@ public enum HTTPStatusCode : Swift.Int, Swift.Error { @objc deinit @objc override dynamic public init() } +public struct AnyCodable : Swift.Codable { + public let value: Any + public init(_ value: T?) +} +extension AnyCodable : FlyBuy._AnyEncodable, FlyBuy._AnyDecodable { +} +extension AnyCodable : Swift.Equatable { + public static func == (lhs: FlyBuy.AnyCodable, rhs: FlyBuy.AnyCodable) -> Swift.Bool +} +extension AnyCodable : Swift.CustomStringConvertible { + public var description: Swift.String { + get + } +} +extension AnyCodable : Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + get + } +} +extension AnyCodable : Swift.ExpressibleByNilLiteral { +} +extension AnyCodable : Swift.ExpressibleByBooleanLiteral { + public typealias BooleanLiteralType = Swift.Bool +} +extension AnyCodable : Swift.ExpressibleByIntegerLiteral { + public typealias IntegerLiteralType = Swift.Int +} +extension AnyCodable : Swift.ExpressibleByFloatLiteral { + public typealias FloatLiteralType = Swift.Double +} +extension AnyCodable : Swift.ExpressibleByStringLiteral { + public typealias StringLiteralType = Swift.String + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String +} +extension AnyCodable : Swift.ExpressibleByArrayLiteral { + public typealias ArrayLiteralElement = Any +} +extension AnyCodable : Swift.ExpressibleByDictionaryLiteral { + public typealias Key = Swift.AnyHashable + public typealias Value = Any +} extension Optional where Wrapped == Swift.String { public var presence: Swift.String? { get @@ -586,9 +780,28 @@ public struct CustomerResponse : Swift.Decodable { @objc deinit @objc override dynamic public init() } +extension Order : FlyBuy.PersistableCodable { + public static var createTable: Swift.String { + get + } + public static var upsert: Swift.String { + get + } + public static var fetchAll: Swift.String { + get + } + public static var deleteAll: Swift.String { + get + } +} extension Order { public func isOpen() -> Swift.Bool } +extension FlyBuy.HTTPMethod : Swift.Equatable {} +extension FlyBuy.HTTPMethod : Swift.Hashable {} +extension FlyBuy.HTTPMethod : Swift.RawRepresentable {} +extension FlyBuy.EncodingType : Swift.Equatable {} +extension FlyBuy.EncodingType : Swift.Hashable {} extension FlyBuy.LocationAuthStatus : Swift.Equatable {} extension FlyBuy.LocationAuthStatus : Swift.Hashable {} extension FlyBuy.LocationAuthStatus : Swift.RawRepresentable {} @@ -601,5 +814,3 @@ extension FlyBuy.HTTPStatusCode : Swift.RawRepresentable {} extension FlyBuy.LogLevel : Swift.Equatable {} extension FlyBuy.LogLevel : Swift.Hashable {} extension FlyBuy.LogLevel : Swift.RawRepresentable {} -extension FlyBuy.Order : Swift.Encodable {} -extension FlyBuy.Order : Swift.Decodable {} diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc index 6254edf..4aac674 100644 Binary files a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc and b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc differ diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftinterface index 7f0d61a..ce70eec 100644 --- a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -33,6 +33,28 @@ extension PickupLocationFilterData { get } } +@objc @_hasMissingDesignatedInitializers public class NotifyConfig : ObjectiveC.NSObject, Swift.Codable { + final public let beaconUUID: Foundation.UUID + final public let defaultGeofenceRadiusMeters: Swift.Int + final public let defaultSiteSearchRadiusMeters: Swift.Int + final public let analyticsEventLimit: Swift.Int? + @objc deinit + @objc override dynamic public init() + required public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +public struct RuntimeError : Swift.Error, Swift.Codable { + public var localizedDescription: Swift.String { + get + } + public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +extension Error { + public var message: Swift.String { + get + } +} @objc(FlyBuyCustomerConsent) open class CustomerConsent : ObjectiveC.NSObject, Swift.Codable { @objc final public let termsOfService: Swift.Bool @objc final public let ageVerification: Swift.Bool @@ -102,12 +124,83 @@ extension _AnyEncodable { public init(arrayLiteral elements: Any...) public init(dictionaryLiteral elements: (Swift.AnyHashable, Any)...) } +public typealias ResultType = Swift.Result +public struct VoidResponse : Swift.Codable { + public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +public enum HTTPMethod : Swift.String { + case get + case post + case put + case patch + case delete + public typealias RawValue = Swift.String + public init?(rawValue: Swift.String) + public var rawValue: Swift.String { + get + } +} +public enum EncodingType { + case url + case json + public static func == (a: FlyBuy.EncodingType, b: FlyBuy.EncodingType) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol BaseApiRequest { + var requestEndPoint: Swift.String { get } + var requestType: FlyBuy.HTTPMethod { get } + var encoding: FlyBuy.EncodingType { get } + var headers: [Swift.String : Swift.String]? { get } + var requestBody: Foundation.Data? { get } +} +extension BaseApiRequest { + public var encoding: FlyBuy.EncodingType { + get + } + public var requestBody: Foundation.Data? { + get + } + public var headers: [Swift.String : Swift.String]? { + get + } +} +public protocol CodableRequest : FlyBuy.BaseApiRequest { + associatedtype Response : Swift.Decodable + associatedtype ErrorType : Swift.Decodable, Swift.Error + var decoder: Foundation.JSONDecoder { get } + var apiToken: Swift.String? { get } + var queryParams: [Swift.String : Swift.String]? { get } +} +extension CodableRequest { + public typealias ErrorType = FlyBuy.RuntimeError + public var decoder: Foundation.JSONDecoder { + get + } + public var apiToken: Swift.String? { + get + } + public var queryParams: [Swift.String : Swift.String]? { + get + } +} open class EncodableRequest where EncodableObject : Swift.Encodable { final public let object: EncodableObject final public let encoder: Foundation.JSONEncoder - public init(object: EncodableObject, encoder: Foundation.JSONEncoder = JSONEncoder()) + public init(object: EncodableObject, encoder: Foundation.JSONEncoder = JSONEncoder.iso8601FullLocalTZ) + public var requestBody: Foundation.Data? { + get + } @objc deinit } +extension BaseApiRequest { + public var latestApi: Swift.String { + get + } +} @objc(FlyBuySite) open class Site : ObjectiveC.NSObject, Swift.Decodable { @objc final public let id: Swift.Int @objc final public let partnerIdentifier: Swift.String? @@ -133,13 +226,14 @@ open class EncodableRequest where EncodableObject : Swift.Encod @objc deinit required public init(from decoder: Swift.Decoder) throws } -@objc(FlyBuyGeofence) open class Geofence : ObjectiveC.NSObject, Swift.Decodable { +@objc(FlyBuyGeofence) open class Geofence : ObjectiveC.NSObject, Swift.Codable { @objc final public let latitude: Swift.String @objc final public let longitude: Swift.String @objc final public let radiusMeters: Swift.Double public func locationCoordinate() -> CoreLocation.CLLocationCoordinate2D? @objc deinit required public init(from decoder: Swift.Decoder) throws + open func encode(to encoder: Swift.Encoder) throws } @objc(FlyBuyCustomerInfo) open class CustomerInfo : ObjectiveC.NSObject, Swift.Codable { @objc final public let name: Swift.String @@ -153,6 +247,14 @@ open class EncodableRequest where EncodableObject : Swift.Encod @objc deinit open func encode(to encoder: Swift.Encoder) throws } +final public class PersistManager : FlyBuy.FlyBuyDBProtocol { + public static let defaultDBPath: Swift.String + public static var shared: FlyBuy.PersistManager + final public var dbManager: FlyBuy.FlyBuyDBManager + final public var needsInit: Swift.Bool + public init(atPath path: Swift.String = PersistManager.defaultDBPath) + @objc deinit +} @objc public enum LocationAuthStatus : Swift.Int, Swift.Codable { case notDetermined case restricted @@ -229,9 +331,15 @@ public struct AppConfigData : Swift.Codable { public let notifyMaxSites: Swift.Int? public let nearbySitesFeatureUrl: Swift.String? public let upgrade: FlyBuy.AppUpgrade? + public let notify: FlyBuy.NotifyConfig? public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws } +open class BaseAPIService { + public init() + public func execute(_ request: Request, withCompletion completion: @escaping (FlyBuy.ResultType) -> Swift.Void) where Request : FlyBuy.CodableRequest + @objc deinit +} public struct BeaconRegion : Swift.Codable, Swift.Hashable { public let uuid: Foundation.UUID public let major: Swift.UInt16? @@ -255,7 +363,9 @@ public protocol FlyBuyModuleManager { @objc public static let sites: FlyBuy.SitesManager @objc public static let config: FlyBuy.ConfigurationManager @objc public static let logger: FlyBuy.Logger + public static var isCoreConfigured: Swift.Bool @objc public static func configure(_ opts: [Swift.String : Any]) + public static func appInstanceID() -> Foundation.UUID @objc public static func handleRemoteNotification(_ data: [Swift.AnyHashable : Any]) @objc public static func updatePushToken(_ newPushToken: Swift.String) @objc public static func updateAPNPushToken(_ deviceToken: Foundation.Data) @@ -282,6 +392,47 @@ extension _AnyDecodable { @objc deinit open func encode(to encoder: Swift.Encoder) throws } +final public class FlyBuyDBManager { + final public func setDBVersion(_ version: Swift.Int) + public init(atPath path: Swift.String) + final public func fetchAll(_ type: [T].Type) throws -> [T] where T : FlyBuy.PersistableCodable + final public func fetch(_ type: [T].Type, using sql: Swift.String) throws -> [T] where T : FlyBuy.PersistableCodable + final public func save(_ value: T) throws where T : FlyBuy.PersistableCodable + final public func deleteAll(_ type: T.Type) throws where T : FlyBuy.PersistableCodable + final public func execute(raw: Swift.String) throws + @objc deinit +} +public protocol FlyBuyDBProtocol { + var dbManager: FlyBuy.FlyBuyDBManager { get } +} +extension FlyBuyDBProtocol { + public func fetchAll(_ type: [T].Type) throws -> [T] where T : FlyBuy.PersistableCodable + public func fetch(_ type: [T].Type, using sql: Swift.String) throws -> [T] where T : FlyBuy.PersistableCodable + public func save(_ value: T) throws where T : FlyBuy.PersistableCodable + public func deleteAll(_ type: T.Type) throws where T : FlyBuy.PersistableCodable + public func execute(sql: Swift.String) throws +} +public protocol PersistableCodable : Swift.Decodable, Swift.Encodable { + static var createTable: Swift.String { get } + static var upsert: Swift.String { get } + static var fetchAll: Swift.String { get } + static var deleteAll: Swift.String { get } +} +extension PersistableCodable { + public static func fetchAll(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws -> [Self] + public func save(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws + public static func deleteAll(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws +} +extension JSONDecoder { + public static let iso8601Full: Foundation.JSONDecoder +} +extension JSONEncoder { + public static let iso8601FullLocalTZ: Foundation.JSONEncoder +} +extension DateFormatter { + public static let iso8601Full: Foundation.DateFormatter + public static let iso8601FullLocalTZ: Foundation.DateFormatter +} @_hasMissingDesignatedInitializers @objc(FlyBuyCustomer) open class Customer : ObjectiveC.NSObject, Swift.Decodable { @objc final public let token: Swift.String @objc final public let emailAddress: Swift.String? @@ -305,6 +456,7 @@ extension _AnyDecodable { @objc convenience public init(_ date: Foundation.Date) required convenience public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws + @objc public func formattedString(locale: Foundation.Locale = Locale.current) -> Swift.String @objc override dynamic public init() @objc deinit } @@ -397,6 +549,48 @@ public enum HTTPStatusCode : Swift.Int, Swift.Error { @objc deinit @objc override dynamic public init() } +public struct AnyCodable : Swift.Codable { + public let value: Any + public init(_ value: T?) +} +extension AnyCodable : FlyBuy._AnyEncodable, FlyBuy._AnyDecodable { +} +extension AnyCodable : Swift.Equatable { + public static func == (lhs: FlyBuy.AnyCodable, rhs: FlyBuy.AnyCodable) -> Swift.Bool +} +extension AnyCodable : Swift.CustomStringConvertible { + public var description: Swift.String { + get + } +} +extension AnyCodable : Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + get + } +} +extension AnyCodable : Swift.ExpressibleByNilLiteral { +} +extension AnyCodable : Swift.ExpressibleByBooleanLiteral { + public typealias BooleanLiteralType = Swift.Bool +} +extension AnyCodable : Swift.ExpressibleByIntegerLiteral { + public typealias IntegerLiteralType = Swift.Int +} +extension AnyCodable : Swift.ExpressibleByFloatLiteral { + public typealias FloatLiteralType = Swift.Double +} +extension AnyCodable : Swift.ExpressibleByStringLiteral { + public typealias StringLiteralType = Swift.String + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String +} +extension AnyCodable : Swift.ExpressibleByArrayLiteral { + public typealias ArrayLiteralElement = Any +} +extension AnyCodable : Swift.ExpressibleByDictionaryLiteral { + public typealias Key = Swift.AnyHashable + public typealias Value = Any +} extension Optional where Wrapped == Swift.String { public var presence: Swift.String? { get @@ -586,9 +780,28 @@ public struct CustomerResponse : Swift.Decodable { @objc deinit @objc override dynamic public init() } +extension Order : FlyBuy.PersistableCodable { + public static var createTable: Swift.String { + get + } + public static var upsert: Swift.String { + get + } + public static var fetchAll: Swift.String { + get + } + public static var deleteAll: Swift.String { + get + } +} extension Order { public func isOpen() -> Swift.Bool } +extension FlyBuy.HTTPMethod : Swift.Equatable {} +extension FlyBuy.HTTPMethod : Swift.Hashable {} +extension FlyBuy.HTTPMethod : Swift.RawRepresentable {} +extension FlyBuy.EncodingType : Swift.Equatable {} +extension FlyBuy.EncodingType : Swift.Hashable {} extension FlyBuy.LocationAuthStatus : Swift.Equatable {} extension FlyBuy.LocationAuthStatus : Swift.Hashable {} extension FlyBuy.LocationAuthStatus : Swift.RawRepresentable {} @@ -601,5 +814,3 @@ extension FlyBuy.HTTPStatusCode : Swift.RawRepresentable {} extension FlyBuy.LogLevel : Swift.Equatable {} extension FlyBuy.LogLevel : Swift.Hashable {} extension FlyBuy.LogLevel : Swift.RawRepresentable {} -extension FlyBuy.Order : Swift.Encodable {} -extension FlyBuy.Order : Swift.Decodable {} diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftdoc b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftdoc index 6254edf..4aac674 100644 Binary files a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftdoc and b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftdoc differ diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftinterface b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftinterface index 7f0d61a..ce70eec 100644 --- a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftinterface +++ b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/Modules/FlyBuy.swiftmodule/x86_64.swiftinterface @@ -33,6 +33,28 @@ extension PickupLocationFilterData { get } } +@objc @_hasMissingDesignatedInitializers public class NotifyConfig : ObjectiveC.NSObject, Swift.Codable { + final public let beaconUUID: Foundation.UUID + final public let defaultGeofenceRadiusMeters: Swift.Int + final public let defaultSiteSearchRadiusMeters: Swift.Int + final public let analyticsEventLimit: Swift.Int? + @objc deinit + @objc override dynamic public init() + required public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +public struct RuntimeError : Swift.Error, Swift.Codable { + public var localizedDescription: Swift.String { + get + } + public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +extension Error { + public var message: Swift.String { + get + } +} @objc(FlyBuyCustomerConsent) open class CustomerConsent : ObjectiveC.NSObject, Swift.Codable { @objc final public let termsOfService: Swift.Bool @objc final public let ageVerification: Swift.Bool @@ -102,12 +124,83 @@ extension _AnyEncodable { public init(arrayLiteral elements: Any...) public init(dictionaryLiteral elements: (Swift.AnyHashable, Any)...) } +public typealias ResultType = Swift.Result +public struct VoidResponse : Swift.Codable { + public init(from decoder: Swift.Decoder) throws + public func encode(to encoder: Swift.Encoder) throws +} +public enum HTTPMethod : Swift.String { + case get + case post + case put + case patch + case delete + public typealias RawValue = Swift.String + public init?(rawValue: Swift.String) + public var rawValue: Swift.String { + get + } +} +public enum EncodingType { + case url + case json + public static func == (a: FlyBuy.EncodingType, b: FlyBuy.EncodingType) -> Swift.Bool + public var hashValue: Swift.Int { + get + } + public func hash(into hasher: inout Swift.Hasher) +} +public protocol BaseApiRequest { + var requestEndPoint: Swift.String { get } + var requestType: FlyBuy.HTTPMethod { get } + var encoding: FlyBuy.EncodingType { get } + var headers: [Swift.String : Swift.String]? { get } + var requestBody: Foundation.Data? { get } +} +extension BaseApiRequest { + public var encoding: FlyBuy.EncodingType { + get + } + public var requestBody: Foundation.Data? { + get + } + public var headers: [Swift.String : Swift.String]? { + get + } +} +public protocol CodableRequest : FlyBuy.BaseApiRequest { + associatedtype Response : Swift.Decodable + associatedtype ErrorType : Swift.Decodable, Swift.Error + var decoder: Foundation.JSONDecoder { get } + var apiToken: Swift.String? { get } + var queryParams: [Swift.String : Swift.String]? { get } +} +extension CodableRequest { + public typealias ErrorType = FlyBuy.RuntimeError + public var decoder: Foundation.JSONDecoder { + get + } + public var apiToken: Swift.String? { + get + } + public var queryParams: [Swift.String : Swift.String]? { + get + } +} open class EncodableRequest where EncodableObject : Swift.Encodable { final public let object: EncodableObject final public let encoder: Foundation.JSONEncoder - public init(object: EncodableObject, encoder: Foundation.JSONEncoder = JSONEncoder()) + public init(object: EncodableObject, encoder: Foundation.JSONEncoder = JSONEncoder.iso8601FullLocalTZ) + public var requestBody: Foundation.Data? { + get + } @objc deinit } +extension BaseApiRequest { + public var latestApi: Swift.String { + get + } +} @objc(FlyBuySite) open class Site : ObjectiveC.NSObject, Swift.Decodable { @objc final public let id: Swift.Int @objc final public let partnerIdentifier: Swift.String? @@ -133,13 +226,14 @@ open class EncodableRequest where EncodableObject : Swift.Encod @objc deinit required public init(from decoder: Swift.Decoder) throws } -@objc(FlyBuyGeofence) open class Geofence : ObjectiveC.NSObject, Swift.Decodable { +@objc(FlyBuyGeofence) open class Geofence : ObjectiveC.NSObject, Swift.Codable { @objc final public let latitude: Swift.String @objc final public let longitude: Swift.String @objc final public let radiusMeters: Swift.Double public func locationCoordinate() -> CoreLocation.CLLocationCoordinate2D? @objc deinit required public init(from decoder: Swift.Decoder) throws + open func encode(to encoder: Swift.Encoder) throws } @objc(FlyBuyCustomerInfo) open class CustomerInfo : ObjectiveC.NSObject, Swift.Codable { @objc final public let name: Swift.String @@ -153,6 +247,14 @@ open class EncodableRequest where EncodableObject : Swift.Encod @objc deinit open func encode(to encoder: Swift.Encoder) throws } +final public class PersistManager : FlyBuy.FlyBuyDBProtocol { + public static let defaultDBPath: Swift.String + public static var shared: FlyBuy.PersistManager + final public var dbManager: FlyBuy.FlyBuyDBManager + final public var needsInit: Swift.Bool + public init(atPath path: Swift.String = PersistManager.defaultDBPath) + @objc deinit +} @objc public enum LocationAuthStatus : Swift.Int, Swift.Codable { case notDetermined case restricted @@ -229,9 +331,15 @@ public struct AppConfigData : Swift.Codable { public let notifyMaxSites: Swift.Int? public let nearbySitesFeatureUrl: Swift.String? public let upgrade: FlyBuy.AppUpgrade? + public let notify: FlyBuy.NotifyConfig? public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws } +open class BaseAPIService { + public init() + public func execute(_ request: Request, withCompletion completion: @escaping (FlyBuy.ResultType) -> Swift.Void) where Request : FlyBuy.CodableRequest + @objc deinit +} public struct BeaconRegion : Swift.Codable, Swift.Hashable { public let uuid: Foundation.UUID public let major: Swift.UInt16? @@ -255,7 +363,9 @@ public protocol FlyBuyModuleManager { @objc public static let sites: FlyBuy.SitesManager @objc public static let config: FlyBuy.ConfigurationManager @objc public static let logger: FlyBuy.Logger + public static var isCoreConfigured: Swift.Bool @objc public static func configure(_ opts: [Swift.String : Any]) + public static func appInstanceID() -> Foundation.UUID @objc public static func handleRemoteNotification(_ data: [Swift.AnyHashable : Any]) @objc public static func updatePushToken(_ newPushToken: Swift.String) @objc public static func updateAPNPushToken(_ deviceToken: Foundation.Data) @@ -282,6 +392,47 @@ extension _AnyDecodable { @objc deinit open func encode(to encoder: Swift.Encoder) throws } +final public class FlyBuyDBManager { + final public func setDBVersion(_ version: Swift.Int) + public init(atPath path: Swift.String) + final public func fetchAll(_ type: [T].Type) throws -> [T] where T : FlyBuy.PersistableCodable + final public func fetch(_ type: [T].Type, using sql: Swift.String) throws -> [T] where T : FlyBuy.PersistableCodable + final public func save(_ value: T) throws where T : FlyBuy.PersistableCodable + final public func deleteAll(_ type: T.Type) throws where T : FlyBuy.PersistableCodable + final public func execute(raw: Swift.String) throws + @objc deinit +} +public protocol FlyBuyDBProtocol { + var dbManager: FlyBuy.FlyBuyDBManager { get } +} +extension FlyBuyDBProtocol { + public func fetchAll(_ type: [T].Type) throws -> [T] where T : FlyBuy.PersistableCodable + public func fetch(_ type: [T].Type, using sql: Swift.String) throws -> [T] where T : FlyBuy.PersistableCodable + public func save(_ value: T) throws where T : FlyBuy.PersistableCodable + public func deleteAll(_ type: T.Type) throws where T : FlyBuy.PersistableCodable + public func execute(sql: Swift.String) throws +} +public protocol PersistableCodable : Swift.Decodable, Swift.Encodable { + static var createTable: Swift.String { get } + static var upsert: Swift.String { get } + static var fetchAll: Swift.String { get } + static var deleteAll: Swift.String { get } +} +extension PersistableCodable { + public static func fetchAll(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws -> [Self] + public func save(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws + public static func deleteAll(persistManager: FlyBuy.FlyBuyDBProtocol = PersistManager.shared) throws +} +extension JSONDecoder { + public static let iso8601Full: Foundation.JSONDecoder +} +extension JSONEncoder { + public static let iso8601FullLocalTZ: Foundation.JSONEncoder +} +extension DateFormatter { + public static let iso8601Full: Foundation.DateFormatter + public static let iso8601FullLocalTZ: Foundation.DateFormatter +} @_hasMissingDesignatedInitializers @objc(FlyBuyCustomer) open class Customer : ObjectiveC.NSObject, Swift.Decodable { @objc final public let token: Swift.String @objc final public let emailAddress: Swift.String? @@ -305,6 +456,7 @@ extension _AnyDecodable { @objc convenience public init(_ date: Foundation.Date) required convenience public init(from decoder: Swift.Decoder) throws public func encode(to encoder: Swift.Encoder) throws + @objc public func formattedString(locale: Foundation.Locale = Locale.current) -> Swift.String @objc override dynamic public init() @objc deinit } @@ -397,6 +549,48 @@ public enum HTTPStatusCode : Swift.Int, Swift.Error { @objc deinit @objc override dynamic public init() } +public struct AnyCodable : Swift.Codable { + public let value: Any + public init(_ value: T?) +} +extension AnyCodable : FlyBuy._AnyEncodable, FlyBuy._AnyDecodable { +} +extension AnyCodable : Swift.Equatable { + public static func == (lhs: FlyBuy.AnyCodable, rhs: FlyBuy.AnyCodable) -> Swift.Bool +} +extension AnyCodable : Swift.CustomStringConvertible { + public var description: Swift.String { + get + } +} +extension AnyCodable : Swift.CustomDebugStringConvertible { + public var debugDescription: Swift.String { + get + } +} +extension AnyCodable : Swift.ExpressibleByNilLiteral { +} +extension AnyCodable : Swift.ExpressibleByBooleanLiteral { + public typealias BooleanLiteralType = Swift.Bool +} +extension AnyCodable : Swift.ExpressibleByIntegerLiteral { + public typealias IntegerLiteralType = Swift.Int +} +extension AnyCodable : Swift.ExpressibleByFloatLiteral { + public typealias FloatLiteralType = Swift.Double +} +extension AnyCodable : Swift.ExpressibleByStringLiteral { + public typealias StringLiteralType = Swift.String + public typealias ExtendedGraphemeClusterLiteralType = Swift.String + public typealias UnicodeScalarLiteralType = Swift.String +} +extension AnyCodable : Swift.ExpressibleByArrayLiteral { + public typealias ArrayLiteralElement = Any +} +extension AnyCodable : Swift.ExpressibleByDictionaryLiteral { + public typealias Key = Swift.AnyHashable + public typealias Value = Any +} extension Optional where Wrapped == Swift.String { public var presence: Swift.String? { get @@ -586,9 +780,28 @@ public struct CustomerResponse : Swift.Decodable { @objc deinit @objc override dynamic public init() } +extension Order : FlyBuy.PersistableCodable { + public static var createTable: Swift.String { + get + } + public static var upsert: Swift.String { + get + } + public static var fetchAll: Swift.String { + get + } + public static var deleteAll: Swift.String { + get + } +} extension Order { public func isOpen() -> Swift.Bool } +extension FlyBuy.HTTPMethod : Swift.Equatable {} +extension FlyBuy.HTTPMethod : Swift.Hashable {} +extension FlyBuy.HTTPMethod : Swift.RawRepresentable {} +extension FlyBuy.EncodingType : Swift.Equatable {} +extension FlyBuy.EncodingType : Swift.Hashable {} extension FlyBuy.LocationAuthStatus : Swift.Equatable {} extension FlyBuy.LocationAuthStatus : Swift.Hashable {} extension FlyBuy.LocationAuthStatus : Swift.RawRepresentable {} @@ -601,5 +814,3 @@ extension FlyBuy.HTTPStatusCode : Swift.RawRepresentable {} extension FlyBuy.LogLevel : Swift.Equatable {} extension FlyBuy.LogLevel : Swift.Hashable {} extension FlyBuy.LogLevel : Swift.RawRepresentable {} -extension FlyBuy.Order : Swift.Encodable {} -extension FlyBuy.Order : Swift.Decodable {} diff --git a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/_CodeSignature/CodeResources b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/_CodeSignature/CodeResources index 4d7d811..7b3fc06 100644 --- a/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/_CodeSignature/CodeResources +++ b/FlyBuy.xcframework/ios-arm64_x86_64-simulator/FlyBuy.framework/_CodeSignature/CodeResources @@ -6,7 +6,7 @@ Headers/FlyBuy-Swift.h - GeaoB1DhyklyhJTtBnAgqDoQNSE= + OZU+aVJIifA3yCgB9wp4OtwK9Tw= Headers/FlyBuy.h @@ -14,55 +14,55 @@ Info.plist - cf/CrepyCHEVGEgSSjL14WOQvM0= + s3/JRPcCsdtlnzrOA4c8SHmEYmI= Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftdoc - eWO+6s/A1j0vLyh+EyXK2R1bV30= + Xw/wquYxRlua/WfsMCiasjbtpXc= Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftinterface - WAb2Ro3DrneO5MLPXvngJAuWviI= + XlA4o3aDHF5kZ7oi+E8IHu1ra7w= Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftmodule - mGpXv0P/e28yUxIXvXGdBu2Ly5M= + XmX6oCPzYhMlVIsMXbXiyeoHVDc= Modules/FlyBuy.swiftmodule/arm64.swiftdoc - eWO+6s/A1j0vLyh+EyXK2R1bV30= + Xw/wquYxRlua/WfsMCiasjbtpXc= Modules/FlyBuy.swiftmodule/arm64.swiftinterface - WAb2Ro3DrneO5MLPXvngJAuWviI= + XlA4o3aDHF5kZ7oi+E8IHu1ra7w= Modules/FlyBuy.swiftmodule/arm64.swiftmodule - mGpXv0P/e28yUxIXvXGdBu2Ly5M= + XmX6oCPzYhMlVIsMXbXiyeoHVDc= Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc - R9jZEbKJhvU6sPYJ5VcRisPro10= + tJ7mv+o5kVlZ/odXWfbOm39w7vo= Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - fFU2qiJ1E1KZMoNkLMttgGiWDkU= + 0BKXgnLpdctdvdzWwDVaFvvQo+U= Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - m6hBrqCxaqmlJ+q19B9gMP8gfuE= + MTt7NMITFLJXLS8KMGjzoLE1CtU= Modules/FlyBuy.swiftmodule/x86_64.swiftdoc - R9jZEbKJhvU6sPYJ5VcRisPro10= + tJ7mv+o5kVlZ/odXWfbOm39w7vo= Modules/FlyBuy.swiftmodule/x86_64.swiftinterface - fFU2qiJ1E1KZMoNkLMttgGiWDkU= + 0BKXgnLpdctdvdzWwDVaFvvQo+U= Modules/FlyBuy.swiftmodule/x86_64.swiftmodule - m6hBrqCxaqmlJ+q19B9gMP8gfuE= + MTt7NMITFLJXLS8KMGjzoLE1CtU= Modules/module.modulemap @@ -75,7 +75,7 @@ hash2 - M82/pDfuu7RPL3EFI/6nCUb5FSJatFGwIAfQz8YeVWY= + cAtRdiGTR2SZ4ISq6SqH+f5Ggjnndz3Y+HLpnzsRwYw= Headers/FlyBuy.h @@ -89,84 +89,84 @@ hash2 - DtvdRgVXVHqdDhyzHyQk3m5vayuX1tGz4TWgkXT7Qag= + gyDCvccn2wSriOMA/yhAm+A1ZyVXM9APv3P9qbHNVNQ= Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftinterface hash2 - BRK4GOACEKaD5Ygn28HBcg2kYMbBoUl0pk7/dyFyUPE= + UK74qMYa0JCMbtkG6x04gHyICqswcqQHyF22/jKd1iU= Modules/FlyBuy.swiftmodule/arm64-apple-ios-simulator.swiftmodule hash2 - IrLpy6t4FsVjRwJLzlyG9TPlO5PgmhmHSJXROYkwGXA= + QjkMdA+o21eAKHhnAGlXOsyuhVgIUfcnaTSd8whopAQ= Modules/FlyBuy.swiftmodule/arm64.swiftdoc hash2 - DtvdRgVXVHqdDhyzHyQk3m5vayuX1tGz4TWgkXT7Qag= + gyDCvccn2wSriOMA/yhAm+A1ZyVXM9APv3P9qbHNVNQ= Modules/FlyBuy.swiftmodule/arm64.swiftinterface hash2 - BRK4GOACEKaD5Ygn28HBcg2kYMbBoUl0pk7/dyFyUPE= + UK74qMYa0JCMbtkG6x04gHyICqswcqQHyF22/jKd1iU= Modules/FlyBuy.swiftmodule/arm64.swiftmodule hash2 - IrLpy6t4FsVjRwJLzlyG9TPlO5PgmhmHSJXROYkwGXA= + QjkMdA+o21eAKHhnAGlXOsyuhVgIUfcnaTSd8whopAQ= Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftdoc hash2 - rp699Fkj61U3BBZdI7/+DwXu/kGb4BESRf6k6taa5ZU= + 9PcPkHar5Rh1LcUFFieP98N3skyknyKY3uK3H0Xhq0Y= Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftinterface hash2 - qQx5sH3689xqOB3hsJm78m0xF26edy48uR1Xiiu1Gvk= + uORDdZIkZuKj99Y2cwqAGPaujNoOhmW1skE5X9tW5P8= Modules/FlyBuy.swiftmodule/x86_64-apple-ios-simulator.swiftmodule hash2 - lX/InMYHvOdfhzpFDtzQvAxcP66clqBOjhBdQRJaBeI= + /papqC9E2LL1gjxUpjNb7oE1kdtj2piKwLFy/d4WT8E= Modules/FlyBuy.swiftmodule/x86_64.swiftdoc hash2 - rp699Fkj61U3BBZdI7/+DwXu/kGb4BESRf6k6taa5ZU= + 9PcPkHar5Rh1LcUFFieP98N3skyknyKY3uK3H0Xhq0Y= Modules/FlyBuy.swiftmodule/x86_64.swiftinterface hash2 - qQx5sH3689xqOB3hsJm78m0xF26edy48uR1Xiiu1Gvk= + uORDdZIkZuKj99Y2cwqAGPaujNoOhmW1skE5X9tW5P8= Modules/FlyBuy.swiftmodule/x86_64.swiftmodule hash2 - lX/InMYHvOdfhzpFDtzQvAxcP66clqBOjhBdQRJaBeI= + /papqC9E2LL1gjxUpjNb7oE1kdtj2piKwLFy/d4WT8E= Modules/module.modulemap diff --git a/FlyBuyNotify.xcframework/Info.plist b/FlyBuyNotify.xcframework/Info.plist index 6aa1ad1..303291d 100644 --- a/FlyBuyNotify.xcframework/Info.plist +++ b/FlyBuyNotify.xcframework/Info.plist @@ -6,30 +6,30 @@ LibraryIdentifier - ios-arm64 + ios-arm64_x86_64-simulator LibraryPath FlyBuyNotify.framework SupportedArchitectures arm64 + x86_64 SupportedPlatform ios + SupportedPlatformVariant + simulator LibraryIdentifier - ios-arm64_x86_64-simulator + ios-arm64 LibraryPath FlyBuyNotify.framework SupportedArchitectures arm64 - x86_64 SupportedPlatform ios - SupportedPlatformVariant - simulator CFBundlePackageType diff --git a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/FlyBuyNotify b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/FlyBuyNotify index 5c3f472..0d5df9c 100644 Binary files a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/FlyBuyNotify and b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/FlyBuyNotify differ diff --git a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h index 23e0ac3..1c39b36 100644 --- a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h +++ b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h @@ -189,6 +189,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif @import ObjectiveC; +@import UIKit; #endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" @@ -215,18 +216,26 @@ SWIFT_CLASS_NAMED("Manager") SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FlyBuyNotifyManager * _Nonnull shared;) + (FlyBuyNotifyManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; - (void)configure; -- (void)createForSitesInRegion:(CLCircularRegion * _Nonnull)region notification:(NotificationInfo * _Nonnull)notification callback:(void (^ _Nonnull)(NSArray * _Nullable, NSError * _Nullable))callback; -- (void)createForSites:(NSArray * _Nonnull)sites notification:(NotificationInfo * _Nonnull)notification callback:(void (^ _Nonnull)(NSError * _Nullable))callback; +- (void)createForSitesInRegion:(CLCircularRegion * _Nonnull)region notification:(NotificationInfo * _Nonnull)notification callback:(void (^ _Nonnull)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for using Notify has been deprecated."); +- (void)createForSites:(NSArray * _Nonnull)sites notification:(NotificationInfo * _Nonnull)notification callback:(void (^ _Nonnull)(NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for using Notify has been deprecated."); /// clears all notifications /// \param callback will get called on completion of any errors encountered. /// -- (void)clearWithCallback:(void (^ _Nonnull)(NSError * _Nullable))callback; -- (BOOL)isFlyBuyNotifyUserInfo:(NSDictionary * _Nonnull)userInfo SWIFT_WARN_UNUSED_RESULT; +- (void)clearWithCallback:(void (^ _Nonnull)(NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for using Notify has been deprecated."); +- (BOOL)isFlyBuyNotifyUserInfo:(NSDictionary * _Nonnull)userInfo SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("This method for using Notify has been deprecated."); - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end +@class UNNotificationResponse; + +@interface FlyBuyNotifyManager (SWIFT_EXTENSION(FlyBuyNotify)) +- (void)syncWithForce:(BOOL)force callback:(void (^ _Nullable)(NSError * _Nullable))callback; +- (void)performFetchWithCompletionHandler:(void (^ _Nullable)(UIBackgroundFetchResult))completionHandler; +- (NSDictionary * _Nullable)handleNotification:(UNNotificationResponse * _Nonnull)response SWIFT_WARN_UNUSED_RESULT; +@end + SWIFT_CLASS("_TtC12FlyBuyNotify16NotificationInfo") @interface NotificationInfo : NSObject @@ -252,8 +261,13 @@ typedef SWIFT_ENUM(NSInteger, NotifyErrorType, open) { NotifyErrorTypeNoLocationPermission = 0, NotifyErrorTypeReachedTheMaxNumberOfSites = 1, NotifyErrorTypeNotifyModuleNotConfigured = 2, + NotifyErrorTypeCoreIsNotConfigured = 3, + NotifyErrorTypeNotifyModuleNotEnabled = 4, + NotifyErrorTypeBeaconRangingNotAvailable = 5, + NotifyErrorTypeNoBeaconInRange = 6, }; + #if __has_attribute(external_source_symbol) # pragma clang attribute pop #endif diff --git a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Info.plist b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Info.plist index 66a4331..f24b872 100644 Binary files a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Info.plist and b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Info.plist differ diff --git a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios.swiftinterface b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios.swiftinterface index 12c685e..90f6b6a 100644 --- a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios.swiftinterface +++ b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios.swiftinterface @@ -6,6 +6,7 @@ import FlyBuy @_exported import FlyBuyNotify import Foundation import Swift +import UIKit import UserNotifications @objc open class NotificationInfo : ObjectiveC.NSObject { @objc final public let title: Swift.String @@ -15,13 +16,25 @@ import UserNotifications @objc deinit @objc override dynamic public init() } +extension NSNotification.Name { + public static let notifyCampaignsUpdated: Foundation.Notification.Name + public static let notifyCampaignsError: Foundation.Notification.Name + public static let notifySitesError: Foundation.Notification.Name +} @_inheritsConvenienceInitializers @objc(FlyBuyNotifyManager) public class Manager : ObjectiveC.NSObject { @objc public static let shared: FlyBuyNotify.Manager + public var lastSync: Foundation.Date? { + get + } @objc public func configure() @objc deinit + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func createForSitesInRegion(_ region: CoreLocation.CLCircularRegion, notification: FlyBuyNotify.NotificationInfo, callback: @escaping (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func createForSites(_ sites: [FlyBuy.Site], notification: FlyBuyNotify.NotificationInfo, callback: @escaping ((Swift.Error?) -> (Swift.Void))) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func clear(callback: @escaping (Swift.Error?) -> (Swift.Void)) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func isFlyBuyNotifyUserInfo(_ userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool @objc override dynamic public init() } @@ -33,6 +46,10 @@ extension Manager : FlyBuy.FlyBuyModuleManager { case noLocationPermission case reachedTheMaxNumberOfSites case notifyModuleNotConfigured + case coreIsNotConfigured + case notifyModuleNotEnabled + case beaconRangingNotAvailable + case noBeaconInRange public var description: Swift.String { get } @@ -48,8 +65,13 @@ extension Manager : FlyBuy.FlyBuyModuleManager { @objc override dynamic public var description: Swift.String { @objc get } - @objc deinit @objc override dynamic public init() + @objc deinit +} +extension Manager { + @objc dynamic public func sync(force: Swift.Bool = false, callback: ((Swift.Error?) -> (Swift.Void))? = nil) + @objc dynamic public func performFetchWithCompletionHandler(_ completionHandler: ((UIKit.UIBackgroundFetchResult) -> Swift.Void)? = nil) + @objc dynamic public func handleNotification(_ response: UserNotifications.UNNotificationResponse) -> [Swift.String : Swift.String]? } extension FlyBuyNotify.NotifyErrorType : Swift.Equatable {} extension FlyBuyNotify.NotifyErrorType : Swift.Hashable {} diff --git a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64.swiftinterface b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64.swiftinterface index 12c685e..90f6b6a 100644 --- a/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64.swiftinterface +++ b/FlyBuyNotify.xcframework/ios-arm64/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64.swiftinterface @@ -6,6 +6,7 @@ import FlyBuy @_exported import FlyBuyNotify import Foundation import Swift +import UIKit import UserNotifications @objc open class NotificationInfo : ObjectiveC.NSObject { @objc final public let title: Swift.String @@ -15,13 +16,25 @@ import UserNotifications @objc deinit @objc override dynamic public init() } +extension NSNotification.Name { + public static let notifyCampaignsUpdated: Foundation.Notification.Name + public static let notifyCampaignsError: Foundation.Notification.Name + public static let notifySitesError: Foundation.Notification.Name +} @_inheritsConvenienceInitializers @objc(FlyBuyNotifyManager) public class Manager : ObjectiveC.NSObject { @objc public static let shared: FlyBuyNotify.Manager + public var lastSync: Foundation.Date? { + get + } @objc public func configure() @objc deinit + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func createForSitesInRegion(_ region: CoreLocation.CLCircularRegion, notification: FlyBuyNotify.NotificationInfo, callback: @escaping (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func createForSites(_ sites: [FlyBuy.Site], notification: FlyBuyNotify.NotificationInfo, callback: @escaping ((Swift.Error?) -> (Swift.Void))) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func clear(callback: @escaping (Swift.Error?) -> (Swift.Void)) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func isFlyBuyNotifyUserInfo(_ userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool @objc override dynamic public init() } @@ -33,6 +46,10 @@ extension Manager : FlyBuy.FlyBuyModuleManager { case noLocationPermission case reachedTheMaxNumberOfSites case notifyModuleNotConfigured + case coreIsNotConfigured + case notifyModuleNotEnabled + case beaconRangingNotAvailable + case noBeaconInRange public var description: Swift.String { get } @@ -48,8 +65,13 @@ extension Manager : FlyBuy.FlyBuyModuleManager { @objc override dynamic public var description: Swift.String { @objc get } - @objc deinit @objc override dynamic public init() + @objc deinit +} +extension Manager { + @objc dynamic public func sync(force: Swift.Bool = false, callback: ((Swift.Error?) -> (Swift.Void))? = nil) + @objc dynamic public func performFetchWithCompletionHandler(_ completionHandler: ((UIKit.UIBackgroundFetchResult) -> Swift.Void)? = nil) + @objc dynamic public func handleNotification(_ response: UserNotifications.UNNotificationResponse) -> [Swift.String : Swift.String]? } extension FlyBuyNotify.NotifyErrorType : Swift.Equatable {} extension FlyBuyNotify.NotifyErrorType : Swift.Hashable {} diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/FlyBuyNotify b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/FlyBuyNotify index f12afa0..7ca0010 100644 Binary files a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/FlyBuyNotify and b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/FlyBuyNotify differ diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h index 7d3a757..438e1be 100644 --- a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h +++ b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Headers/FlyBuyNotify-Swift.h @@ -191,6 +191,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif @import ObjectiveC; +@import UIKit; #endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" @@ -217,18 +218,26 @@ SWIFT_CLASS_NAMED("Manager") SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FlyBuyNotifyManager * _Nonnull shared;) + (FlyBuyNotifyManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; - (void)configure; -- (void)createForSitesInRegion:(CLCircularRegion * _Nonnull)region notification:(NotificationInfo * _Nonnull)notification callback:(void (^ _Nonnull)(NSArray * _Nullable, NSError * _Nullable))callback; -- (void)createForSites:(NSArray * _Nonnull)sites notification:(NotificationInfo * _Nonnull)notification callback:(void (^ _Nonnull)(NSError * _Nullable))callback; +- (void)createForSitesInRegion:(CLCircularRegion * _Nonnull)region notification:(NotificationInfo * _Nonnull)notification callback:(void (^ _Nonnull)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for using Notify has been deprecated."); +- (void)createForSites:(NSArray * _Nonnull)sites notification:(NotificationInfo * _Nonnull)notification callback:(void (^ _Nonnull)(NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for using Notify has been deprecated."); /// clears all notifications /// \param callback will get called on completion of any errors encountered. /// -- (void)clearWithCallback:(void (^ _Nonnull)(NSError * _Nullable))callback; -- (BOOL)isFlyBuyNotifyUserInfo:(NSDictionary * _Nonnull)userInfo SWIFT_WARN_UNUSED_RESULT; +- (void)clearWithCallback:(void (^ _Nonnull)(NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for using Notify has been deprecated."); +- (BOOL)isFlyBuyNotifyUserInfo:(NSDictionary * _Nonnull)userInfo SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("This method for using Notify has been deprecated."); - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end +@class UNNotificationResponse; + +@interface FlyBuyNotifyManager (SWIFT_EXTENSION(FlyBuyNotify)) +- (void)syncWithForce:(BOOL)force callback:(void (^ _Nullable)(NSError * _Nullable))callback; +- (void)performFetchWithCompletionHandler:(void (^ _Nullable)(UIBackgroundFetchResult))completionHandler; +- (NSDictionary * _Nullable)handleNotification:(UNNotificationResponse * _Nonnull)response SWIFT_WARN_UNUSED_RESULT; +@end + SWIFT_CLASS("_TtC12FlyBuyNotify16NotificationInfo") @interface NotificationInfo : NSObject @@ -254,8 +263,13 @@ typedef SWIFT_ENUM(NSInteger, NotifyErrorType, open) { NotifyErrorTypeNoLocationPermission = 0, NotifyErrorTypeReachedTheMaxNumberOfSites = 1, NotifyErrorTypeNotifyModuleNotConfigured = 2, + NotifyErrorTypeCoreIsNotConfigured = 3, + NotifyErrorTypeNotifyModuleNotEnabled = 4, + NotifyErrorTypeBeaconRangingNotAvailable = 5, + NotifyErrorTypeNoBeaconInRange = 6, }; + #if __has_attribute(external_source_symbol) # pragma clang attribute pop #endif @@ -454,6 +468,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma clang diagnostic ignored "-Watimport-in-framework-header" #endif @import ObjectiveC; +@import UIKit; #endif #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" @@ -480,18 +495,26 @@ SWIFT_CLASS_NAMED("Manager") SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FlyBuyNotifyManager * _Nonnull shared;) + (FlyBuyNotifyManager * _Nonnull)shared SWIFT_WARN_UNUSED_RESULT; - (void)configure; -- (void)createForSitesInRegion:(CLCircularRegion * _Nonnull)region notification:(NotificationInfo * _Nonnull)notification callback:(void (^ _Nonnull)(NSArray * _Nullable, NSError * _Nullable))callback; -- (void)createForSites:(NSArray * _Nonnull)sites notification:(NotificationInfo * _Nonnull)notification callback:(void (^ _Nonnull)(NSError * _Nullable))callback; +- (void)createForSitesInRegion:(CLCircularRegion * _Nonnull)region notification:(NotificationInfo * _Nonnull)notification callback:(void (^ _Nonnull)(NSArray * _Nullable, NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for using Notify has been deprecated."); +- (void)createForSites:(NSArray * _Nonnull)sites notification:(NotificationInfo * _Nonnull)notification callback:(void (^ _Nonnull)(NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for using Notify has been deprecated."); /// clears all notifications /// \param callback will get called on completion of any errors encountered. /// -- (void)clearWithCallback:(void (^ _Nonnull)(NSError * _Nullable))callback; -- (BOOL)isFlyBuyNotifyUserInfo:(NSDictionary * _Nonnull)userInfo SWIFT_WARN_UNUSED_RESULT; +- (void)clearWithCallback:(void (^ _Nonnull)(NSError * _Nullable))callback SWIFT_DEPRECATED_MSG("This method for using Notify has been deprecated."); +- (BOOL)isFlyBuyNotifyUserInfo:(NSDictionary * _Nonnull)userInfo SWIFT_WARN_UNUSED_RESULT SWIFT_DEPRECATED_MSG("This method for using Notify has been deprecated."); - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end +@class UNNotificationResponse; + +@interface FlyBuyNotifyManager (SWIFT_EXTENSION(FlyBuyNotify)) +- (void)syncWithForce:(BOOL)force callback:(void (^ _Nullable)(NSError * _Nullable))callback; +- (void)performFetchWithCompletionHandler:(void (^ _Nullable)(UIBackgroundFetchResult))completionHandler; +- (NSDictionary * _Nullable)handleNotification:(UNNotificationResponse * _Nonnull)response SWIFT_WARN_UNUSED_RESULT; +@end + SWIFT_CLASS("_TtC12FlyBuyNotify16NotificationInfo") @interface NotificationInfo : NSObject @@ -517,8 +540,13 @@ typedef SWIFT_ENUM(NSInteger, NotifyErrorType, open) { NotifyErrorTypeNoLocationPermission = 0, NotifyErrorTypeReachedTheMaxNumberOfSites = 1, NotifyErrorTypeNotifyModuleNotConfigured = 2, + NotifyErrorTypeCoreIsNotConfigured = 3, + NotifyErrorTypeNotifyModuleNotEnabled = 4, + NotifyErrorTypeBeaconRangingNotAvailable = 5, + NotifyErrorTypeNoBeaconInRange = 6, }; + #if __has_attribute(external_source_symbol) # pragma clang attribute pop #endif diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Info.plist b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Info.plist index c6e3356..648c519 100644 Binary files a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Info.plist and b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Info.plist differ diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftinterface b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftinterface index 8712b61..927b425 100644 --- a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftinterface +++ b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftinterface @@ -6,6 +6,7 @@ import FlyBuy @_exported import FlyBuyNotify import Foundation import Swift +import UIKit import UserNotifications @objc open class NotificationInfo : ObjectiveC.NSObject { @objc final public let title: Swift.String @@ -15,13 +16,25 @@ import UserNotifications @objc deinit @objc override dynamic public init() } +extension NSNotification.Name { + public static let notifyCampaignsUpdated: Foundation.Notification.Name + public static let notifyCampaignsError: Foundation.Notification.Name + public static let notifySitesError: Foundation.Notification.Name +} @_inheritsConvenienceInitializers @objc(FlyBuyNotifyManager) public class Manager : ObjectiveC.NSObject { @objc public static let shared: FlyBuyNotify.Manager + public var lastSync: Foundation.Date? { + get + } @objc public func configure() @objc deinit + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func createForSitesInRegion(_ region: CoreLocation.CLCircularRegion, notification: FlyBuyNotify.NotificationInfo, callback: @escaping (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func createForSites(_ sites: [FlyBuy.Site], notification: FlyBuyNotify.NotificationInfo, callback: @escaping ((Swift.Error?) -> (Swift.Void))) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func clear(callback: @escaping (Swift.Error?) -> (Swift.Void)) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func isFlyBuyNotifyUserInfo(_ userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool @objc override dynamic public init() } @@ -33,6 +46,10 @@ extension Manager : FlyBuy.FlyBuyModuleManager { case noLocationPermission case reachedTheMaxNumberOfSites case notifyModuleNotConfigured + case coreIsNotConfigured + case notifyModuleNotEnabled + case beaconRangingNotAvailable + case noBeaconInRange public var description: Swift.String { get } @@ -48,8 +65,13 @@ extension Manager : FlyBuy.FlyBuyModuleManager { @objc override dynamic public var description: Swift.String { @objc get } - @objc deinit @objc override dynamic public init() + @objc deinit +} +extension Manager { + @objc dynamic public func sync(force: Swift.Bool = false, callback: ((Swift.Error?) -> (Swift.Void))? = nil) + @objc dynamic public func performFetchWithCompletionHandler(_ completionHandler: ((UIKit.UIBackgroundFetchResult) -> Swift.Void)? = nil) + @objc dynamic public func handleNotification(_ response: UserNotifications.UNNotificationResponse) -> [Swift.String : Swift.String]? } extension FlyBuyNotify.NotifyErrorType : Swift.Equatable {} extension FlyBuyNotify.NotifyErrorType : Swift.Hashable {} diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64.swiftinterface b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64.swiftinterface index 8712b61..927b425 100644 --- a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64.swiftinterface +++ b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/arm64.swiftinterface @@ -6,6 +6,7 @@ import FlyBuy @_exported import FlyBuyNotify import Foundation import Swift +import UIKit import UserNotifications @objc open class NotificationInfo : ObjectiveC.NSObject { @objc final public let title: Swift.String @@ -15,13 +16,25 @@ import UserNotifications @objc deinit @objc override dynamic public init() } +extension NSNotification.Name { + public static let notifyCampaignsUpdated: Foundation.Notification.Name + public static let notifyCampaignsError: Foundation.Notification.Name + public static let notifySitesError: Foundation.Notification.Name +} @_inheritsConvenienceInitializers @objc(FlyBuyNotifyManager) public class Manager : ObjectiveC.NSObject { @objc public static let shared: FlyBuyNotify.Manager + public var lastSync: Foundation.Date? { + get + } @objc public func configure() @objc deinit + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func createForSitesInRegion(_ region: CoreLocation.CLCircularRegion, notification: FlyBuyNotify.NotificationInfo, callback: @escaping (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func createForSites(_ sites: [FlyBuy.Site], notification: FlyBuyNotify.NotificationInfo, callback: @escaping ((Swift.Error?) -> (Swift.Void))) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func clear(callback: @escaping (Swift.Error?) -> (Swift.Void)) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func isFlyBuyNotifyUserInfo(_ userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool @objc override dynamic public init() } @@ -33,6 +46,10 @@ extension Manager : FlyBuy.FlyBuyModuleManager { case noLocationPermission case reachedTheMaxNumberOfSites case notifyModuleNotConfigured + case coreIsNotConfigured + case notifyModuleNotEnabled + case beaconRangingNotAvailable + case noBeaconInRange public var description: Swift.String { get } @@ -48,8 +65,13 @@ extension Manager : FlyBuy.FlyBuyModuleManager { @objc override dynamic public var description: Swift.String { @objc get } - @objc deinit @objc override dynamic public init() + @objc deinit +} +extension Manager { + @objc dynamic public func sync(force: Swift.Bool = false, callback: ((Swift.Error?) -> (Swift.Void))? = nil) + @objc dynamic public func performFetchWithCompletionHandler(_ completionHandler: ((UIKit.UIBackgroundFetchResult) -> Swift.Void)? = nil) + @objc dynamic public func handleNotification(_ response: UserNotifications.UNNotificationResponse) -> [Swift.String : Swift.String]? } extension FlyBuyNotify.NotifyErrorType : Swift.Equatable {} extension FlyBuyNotify.NotifyErrorType : Swift.Hashable {} diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftinterface b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftinterface index db74741..245186e 100644 --- a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +++ b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftinterface @@ -6,6 +6,7 @@ import FlyBuy @_exported import FlyBuyNotify import Foundation import Swift +import UIKit import UserNotifications @objc open class NotificationInfo : ObjectiveC.NSObject { @objc final public let title: Swift.String @@ -15,13 +16,25 @@ import UserNotifications @objc deinit @objc override dynamic public init() } +extension NSNotification.Name { + public static let notifyCampaignsUpdated: Foundation.Notification.Name + public static let notifyCampaignsError: Foundation.Notification.Name + public static let notifySitesError: Foundation.Notification.Name +} @_inheritsConvenienceInitializers @objc(FlyBuyNotifyManager) public class Manager : ObjectiveC.NSObject { @objc public static let shared: FlyBuyNotify.Manager + public var lastSync: Foundation.Date? { + get + } @objc public func configure() @objc deinit + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func createForSitesInRegion(_ region: CoreLocation.CLCircularRegion, notification: FlyBuyNotify.NotificationInfo, callback: @escaping (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func createForSites(_ sites: [FlyBuy.Site], notification: FlyBuyNotify.NotificationInfo, callback: @escaping ((Swift.Error?) -> (Swift.Void))) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func clear(callback: @escaping (Swift.Error?) -> (Swift.Void)) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func isFlyBuyNotifyUserInfo(_ userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool @objc override dynamic public init() } @@ -33,6 +46,10 @@ extension Manager : FlyBuy.FlyBuyModuleManager { case noLocationPermission case reachedTheMaxNumberOfSites case notifyModuleNotConfigured + case coreIsNotConfigured + case notifyModuleNotEnabled + case beaconRangingNotAvailable + case noBeaconInRange public var description: Swift.String { get } @@ -48,8 +65,13 @@ extension Manager : FlyBuy.FlyBuyModuleManager { @objc override dynamic public var description: Swift.String { @objc get } - @objc deinit @objc override dynamic public init() + @objc deinit +} +extension Manager { + @objc dynamic public func sync(force: Swift.Bool = false, callback: ((Swift.Error?) -> (Swift.Void))? = nil) + @objc dynamic public func performFetchWithCompletionHandler(_ completionHandler: ((UIKit.UIBackgroundFetchResult) -> Swift.Void)? = nil) + @objc dynamic public func handleNotification(_ response: UserNotifications.UNNotificationResponse) -> [Swift.String : Swift.String]? } extension FlyBuyNotify.NotifyErrorType : Swift.Equatable {} extension FlyBuyNotify.NotifyErrorType : Swift.Hashable {} diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/x86_64.swiftinterface b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/x86_64.swiftinterface index db74741..245186e 100644 --- a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/x86_64.swiftinterface +++ b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/Modules/FlyBuyNotify.swiftmodule/x86_64.swiftinterface @@ -6,6 +6,7 @@ import FlyBuy @_exported import FlyBuyNotify import Foundation import Swift +import UIKit import UserNotifications @objc open class NotificationInfo : ObjectiveC.NSObject { @objc final public let title: Swift.String @@ -15,13 +16,25 @@ import UserNotifications @objc deinit @objc override dynamic public init() } +extension NSNotification.Name { + public static let notifyCampaignsUpdated: Foundation.Notification.Name + public static let notifyCampaignsError: Foundation.Notification.Name + public static let notifySitesError: Foundation.Notification.Name +} @_inheritsConvenienceInitializers @objc(FlyBuyNotifyManager) public class Manager : ObjectiveC.NSObject { @objc public static let shared: FlyBuyNotify.Manager + public var lastSync: Foundation.Date? { + get + } @objc public func configure() @objc deinit + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func createForSitesInRegion(_ region: CoreLocation.CLCircularRegion, notification: FlyBuyNotify.NotificationInfo, callback: @escaping (([FlyBuy.Site]?, Swift.Error?) -> (Swift.Void))) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func createForSites(_ sites: [FlyBuy.Site], notification: FlyBuyNotify.NotificationInfo, callback: @escaping ((Swift.Error?) -> (Swift.Void))) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func clear(callback: @escaping (Swift.Error?) -> (Swift.Void)) + @available(*, deprecated, message: "This method for using Notify has been deprecated.") @objc public func isFlyBuyNotifyUserInfo(_ userInfo: [Swift.AnyHashable : Any]) -> Swift.Bool @objc override dynamic public init() } @@ -33,6 +46,10 @@ extension Manager : FlyBuy.FlyBuyModuleManager { case noLocationPermission case reachedTheMaxNumberOfSites case notifyModuleNotConfigured + case coreIsNotConfigured + case notifyModuleNotEnabled + case beaconRangingNotAvailable + case noBeaconInRange public var description: Swift.String { get } @@ -48,8 +65,13 @@ extension Manager : FlyBuy.FlyBuyModuleManager { @objc override dynamic public var description: Swift.String { @objc get } - @objc deinit @objc override dynamic public init() + @objc deinit +} +extension Manager { + @objc dynamic public func sync(force: Swift.Bool = false, callback: ((Swift.Error?) -> (Swift.Void))? = nil) + @objc dynamic public func performFetchWithCompletionHandler(_ completionHandler: ((UIKit.UIBackgroundFetchResult) -> Swift.Void)? = nil) + @objc dynamic public func handleNotification(_ response: UserNotifications.UNNotificationResponse) -> [Swift.String : Swift.String]? } extension FlyBuyNotify.NotifyErrorType : Swift.Equatable {} extension FlyBuyNotify.NotifyErrorType : Swift.Hashable {} diff --git a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/_CodeSignature/CodeResources b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/_CodeSignature/CodeResources index f47884a..6a3fb7b 100644 --- a/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/_CodeSignature/CodeResources +++ b/FlyBuyNotify.xcframework/ios-arm64_x86_64-simulator/FlyBuyNotify.framework/_CodeSignature/CodeResources @@ -6,7 +6,7 @@ Headers/FlyBuyNotify-Swift.h - Y+aSypaUUK5gJ4XizhdIEgb5qco= + /ahCkXZNx/6yRrzbI/WEiBzGcXA= Headers/FlyBuyNotify.h @@ -14,7 +14,7 @@ Info.plist - 4Dn5aSnHoTsoN+WIHYNMQO1iuXs= + XtTs3y0kfmSQ1fWUAB+1kK1Df2o= Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftdoc @@ -22,11 +22,11 @@ Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftinterface - j2OnaoyVZCL5PGl/QmNR1KXOGRg= + k+nx9l8mu3jddiOnnkx/uD+9n7M= Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftmodule - 8D8bWOh+XMFoN9zXtasXu9xLD+A= + qtbYzGUe5bE4Y5jtEYMi6GvNoxo= Modules/FlyBuyNotify.swiftmodule/arm64.swiftdoc @@ -34,11 +34,11 @@ Modules/FlyBuyNotify.swiftmodule/arm64.swiftinterface - j2OnaoyVZCL5PGl/QmNR1KXOGRg= + k+nx9l8mu3jddiOnnkx/uD+9n7M= Modules/FlyBuyNotify.swiftmodule/arm64.swiftmodule - 8D8bWOh+XMFoN9zXtasXu9xLD+A= + qtbYzGUe5bE4Y5jtEYMi6GvNoxo= Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftdoc @@ -46,11 +46,11 @@ Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftinterface - j5TFQ3EFHE401o4xz7i1FBmbvss= + Ulwcg3Y349/68WTKni3DBmQ53Y0= Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftmodule - Oi2a7wKJnLhPHg9O6c+e0MKry0A= + Kp+7jZEp7U/u0LRODvfPzBAckZ8= Modules/FlyBuyNotify.swiftmodule/x86_64.swiftdoc @@ -58,11 +58,11 @@ Modules/FlyBuyNotify.swiftmodule/x86_64.swiftinterface - j5TFQ3EFHE401o4xz7i1FBmbvss= + Ulwcg3Y349/68WTKni3DBmQ53Y0= Modules/FlyBuyNotify.swiftmodule/x86_64.swiftmodule - Oi2a7wKJnLhPHg9O6c+e0MKry0A= + Kp+7jZEp7U/u0LRODvfPzBAckZ8= Modules/module.modulemap @@ -75,7 +75,7 @@ hash2 - 7Zm3Oo9FGTux3oeiOITxWYYmDtX53OKTI/oHubH//10= + HJvghgyc1ZifpzBEnOC73iDhi2hvhdYXm1c3NkSG8WE= Headers/FlyBuyNotify.h @@ -96,14 +96,14 @@ hash2 - ND4/3xxjRo4b2Td1w22yPBAFej4nW6SKHclIz/6q+2I= + k4qEcD64JZdav8Z0akXB9THaDFug2QhrSHVt7WK85eI= Modules/FlyBuyNotify.swiftmodule/arm64-apple-ios-simulator.swiftmodule hash2 - HSt3RTHwYyMGpfWpQpIG9UNpfuxy+IKjIS5YdnVkQ50= + Zr14/y2yVt8PUx1NIB72XFoMjp5ggnMQj9LjTe5YU80= Modules/FlyBuyNotify.swiftmodule/arm64.swiftdoc @@ -117,14 +117,14 @@ hash2 - ND4/3xxjRo4b2Td1w22yPBAFej4nW6SKHclIz/6q+2I= + k4qEcD64JZdav8Z0akXB9THaDFug2QhrSHVt7WK85eI= Modules/FlyBuyNotify.swiftmodule/arm64.swiftmodule hash2 - HSt3RTHwYyMGpfWpQpIG9UNpfuxy+IKjIS5YdnVkQ50= + Zr14/y2yVt8PUx1NIB72XFoMjp5ggnMQj9LjTe5YU80= Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftdoc @@ -138,14 +138,14 @@ hash2 - 0a6HFUgWCCTboFGlVS9NQavH95wKX2poUdTznVXUubw= + su1Te+XE3p5dQYnqNjiEWK+YvZyRIPqp31AIOKBcOOI= Modules/FlyBuyNotify.swiftmodule/x86_64-apple-ios-simulator.swiftmodule hash2 - 456jCxxJPLAaz2msgTY0yeXCeTryq7cWsc5ahmV0jw4= + Qs0Ytd27cCYfDR6kaZK1JMkbSglvZ23EUpSfL6VagAM= Modules/FlyBuyNotify.swiftmodule/x86_64.swiftdoc @@ -159,14 +159,14 @@ hash2 - 0a6HFUgWCCTboFGlVS9NQavH95wKX2poUdTznVXUubw= + su1Te+XE3p5dQYnqNjiEWK+YvZyRIPqp31AIOKBcOOI= Modules/FlyBuyNotify.swiftmodule/x86_64.swiftmodule hash2 - 456jCxxJPLAaz2msgTY0yeXCeTryq7cWsc5ahmV0jw4= + Qs0Ytd27cCYfDR6kaZK1JMkbSglvZ23EUpSfL6VagAM= Modules/module.modulemap diff --git a/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/FlyBuyPickup b/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/FlyBuyPickup index 235610c..162e505 100644 Binary files a/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/FlyBuyPickup and b/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/FlyBuyPickup differ diff --git a/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/Info.plist b/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/Info.plist index 0350c91..be756d1 100644 Binary files a/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/Info.plist and b/FlyBuyPickup.xcframework/ios-arm64/FlyBuyPickup.framework/Info.plist differ diff --git a/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/FlyBuyPickup b/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/FlyBuyPickup index f35a70f..d4263c9 100644 Binary files a/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/FlyBuyPickup and b/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/FlyBuyPickup differ diff --git a/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/Info.plist b/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/Info.plist index 4fc6313..03a05ca 100644 Binary files a/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/Info.plist and b/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/Info.plist differ diff --git a/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/_CodeSignature/CodeResources b/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/_CodeSignature/CodeResources index 1ae4af6..47afedd 100644 --- a/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/_CodeSignature/CodeResources +++ b/FlyBuyPickup.xcframework/ios-arm64_x86_64-simulator/FlyBuyPickup.framework/_CodeSignature/CodeResources @@ -14,7 +14,7 @@ Info.plist - EuI44sTKN7G9FPcir2aM4ABVtvQ= + VO1wGhL6PTpthdlPYdjAPnEdWew= Modules/FlyBuyPickup.swiftmodule/arm64-apple-ios-simulator.swiftdoc diff --git a/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/FlyBuyPresence b/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/FlyBuyPresence index b5fb921..95d131b 100644 Binary files a/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/FlyBuyPresence and b/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/FlyBuyPresence differ diff --git a/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/Info.plist b/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/Info.plist index a10e8ac..e55ff32 100644 Binary files a/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/Info.plist and b/FlyBuyPresence.xcframework/ios-arm64/FlyBuyPresence.framework/Info.plist differ diff --git a/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/FlyBuyPresence b/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/FlyBuyPresence index 5aa6450..4073fae 100644 Binary files a/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/FlyBuyPresence and b/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/FlyBuyPresence differ diff --git a/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/Info.plist b/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/Info.plist index 51bbea6..a35d430 100644 Binary files a/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/Info.plist and b/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/Info.plist differ diff --git a/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/_CodeSignature/CodeResources b/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/_CodeSignature/CodeResources index 0132214..c3a78d3 100644 --- a/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/_CodeSignature/CodeResources +++ b/FlyBuyPresence.xcframework/ios-arm64_x86_64-simulator/FlyBuyPresence.framework/_CodeSignature/CodeResources @@ -14,7 +14,7 @@ Info.plist - JTxSwihaDsDOwdT9xRPuLGhLC4o= + sMWCycFUl+V+LDOL+lsiyADx7lU= Modules/FlyBuyPresence.swiftmodule/arm64-apple-ios-simulator.swiftdoc