Skip to content

Commit

Permalink
Release 2.7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
botnerd committed May 31, 2023
1 parent 2675796 commit c014e84
Show file tree
Hide file tree
Showing 37 changed files with 264 additions and 123 deletions.
10 changes: 5 additions & 5 deletions FlyBuy.xcframework/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,30 +6,30 @@
<array>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64_x86_64-simulator</string>
<string>ios-arm64</string>
<key>LibraryPath</key>
<string>FlyBuy.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
<dict>
<key>LibraryIdentifier</key>
<string>ios-arm64</string>
<string>ios-arm64_x86_64-simulator</string>
<key>LibraryPath</key>
<string>FlyBuy.framework</string>
<key>SupportedArchitectures</key>
<array>
<string>arm64</string>
<string>x86_64</string>
</array>
<key>SupportedPlatform</key>
<string>ios</string>
<key>SupportedPlatformVariant</key>
<string>simulator</string>
</dict>
</array>
<key>CFBundlePackageType</key>
Expand Down
Binary file modified FlyBuy.xcframework/ios-arm64/FlyBuy.framework/FlyBuy
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -237,13 +237,39 @@ SWIFT_CLASS_NAMED("BeaconList")


@class NSString;
@class FlyBuyCustomerInfo;
@class FlyBuyConfigOptionsBuilder;

/// Data model with information for claiming an order.
SWIFT_CLASS_NAMED("ClaimOrderInfo")
@interface FlyBuyClaimOrderInfo : NSObject
- (nonnull instancetype)initWithCustomerCarColor:(NSString * _Nullable)customerCarColor customerCarType:(NSString * _Nullable)customerCarType customerLicensePlate:(NSString * _Nullable)customerLicensePlate customerName:(NSString * _Nullable)customerName customerPhone:(NSString * _Nullable)customerPhone pushToken:(NSString * _Nonnull)pushToken OBJC_DESIGNATED_INITIALIZER;
- (nonnull instancetype)initWithCustomerInfo:(FlyBuyCustomerInfo * _Nonnull)customerInfo pushToken:(NSString * _Nonnull)pushToken pickupType:(NSString * _Nullable)pickupType OBJC_DESIGNATED_INITIALIZER;
/// Configuration options to be passed to FlyBuy.Core.configure(withOptions configOptions: ConfigOptions)
/// Example usage:
/// \code
/// let configOptions = ConfigOptions.Builder(token: "TOKEN_HERE")
/// .build()
///
/// FlyBuy.Core.configure(withOptions: configOptions)
///
/// \endcode
SWIFT_CLASS_NAMED("ConfigOptions")
@interface FlyBuyConfigOptions : NSObject
/// Returns a builder for <code>ConfigOptions</code>
+ (FlyBuyConfigOptionsBuilder * _Nonnull)BuilderWithToken:(NSString * _Nonnull)token SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

enum LogLevel : NSInteger;

/// Builder for configuration options to be passed to FlyBuy.Core.configure(withOptions configOptions: ConfigOptions)
SWIFT_CLASS_NAMED("ConfigOptionsBuilder")
@interface FlyBuyConfigOptionsBuilder : NSObject
- (nonnull instancetype)initWithToken:(NSString * _Nonnull)token OBJC_DESIGNATED_INITIALIZER;
/// Returns finalized options to pass to FlyBuy.Core.configure(withOptions configOptions: ConfigOptions)
- (FlyBuyConfigOptions * _Nonnull)build SWIFT_WARN_UNUSED_RESULT;
/// Sets the SDK log level
- (FlyBuyConfigOptionsBuilder * _Nonnull)setLogLevel:(enum LogLevel)logLevel SWIFT_WARN_UNUSED_RESULT;
/// Sets whether the deferred location tracking feature is enabled
/// See <a href="https://www.radiusnetworks.com/developers/flybuy/#/">Flybuy Developer Docs</a> for additional details.
- (FlyBuyConfigOptionsBuilder * _Nonnull)setDeferredLocationTracking:(BOOL)enabled SWIFT_WARN_UNUSED_RESULT;
- (FlyBuyConfigOptionsBuilder * _Nonnull)setOptions:(NSDictionary<NSString *, id> * _Nonnull)opts SWIFT_WARN_UNUSED_RESULT;
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end
Expand Down Expand Up @@ -286,7 +312,19 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FlyBuyLogger
/// FlyBuy.configure(["token": "TOKEN_HERE"])
///
/// \endcode
+ (void)configure:(NSDictionary<NSString *, id> * _Nonnull)opts;
+ (void)configure:(NSDictionary<NSString *, id> * _Nonnull)opts SWIFT_DEPRECATED_MSG("This method for configuring Flybuy Core has been deprecated. Use FlyBuy.Core.configure(withOptions configOptions: ConfigOptions) instead.");
/// Configures FlyBuy with the given <code>ConfigOptions</code>
/// See <a href="https://www.radiusnetworks.com/developers/flybuy/#/">Flybuy Developer Docs</a> for additional details including all setup steps.
/// Example:
/// \code
/// let configOptions = ConfigOptions.Builder(token: "TOKEN_HERE")
/// .setToken("TOKEN_HERE")
/// .build()
///
/// FlyBuy.Core.configure(withOptions: configOptions)
///
/// \endcode
+ (void)configureWithOptions:(FlyBuyConfigOptions * _Nonnull)configOptions;
/// handles a remote notification which may contain FlyBuy order data
/// \param data contains the <code>userInfo</code> data from a remote notification
///
Expand All @@ -300,14 +338,7 @@ SWIFT_CLASS_PROPERTY(@property (nonatomic, class, readonly, strong) FlyBuyLogger
@end



/// Data model with information for creating an order.
SWIFT_CLASS("_TtC6FlyBuy15CreateOrderInfo")
@interface CreateOrderInfo : NSObject
- (nonnull instancetype)init SWIFT_UNAVAILABLE;
+ (nonnull instancetype)new SWIFT_UNAVAILABLE_MSG("-init is unavailable");
@end

@class FlyBuyCustomerInfo;

/// Data model for customers
SWIFT_CLASS_NAMED("Customer")
Expand Down Expand Up @@ -701,6 +732,11 @@ SWIFT_CLASS_NAMED("Order")



@interface FlyBuyOrder (SWIFT_EXTENSION(FlyBuy))
/// Returns if location tracking is deferred for the order.
@property (nonatomic, readonly) BOOL locationTrackingDeferred;
@end



SWIFT_CLASS_NAMED("OrderEvent")
Expand Down
Binary file modified FlyBuy.xcframework/ios-arm64/FlyBuy.framework/Info.plist
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,6 @@ extension FlyBuy.PickupLocationFilterData {
open func encode(to encoder: Swift.Encoder) throws
required public init(from decoder: Swift.Decoder) throws
}
@objc open class CreateOrderInfo : ObjectiveC.NSObject, Swift.Codable {
public init(siteID: Swift.Int, partnerIdentifier: Swift.String, customerInfo: FlyBuy.CustomerInfo, pushToken: Swift.String?, state: Swift.String?, pickupWindow: FlyBuy.PickupWindow? = nil, pickupType: Swift.String? = nil)
@objc deinit
open func encode(to encoder: Swift.Encoder) throws
required public init(from decoder: Swift.Decoder) throws
}
public struct BeaconIdentifiers : Swift.Hashable, Swift.Codable {
public func hash(into hasher: inout Swift.Hasher)
public static func == (a: FlyBuy.BeaconIdentifiers, b: FlyBuy.BeaconIdentifiers) -> Swift.Bool
Expand Down Expand Up @@ -407,13 +401,6 @@ extension FlyBuy.BaseApiRequest {
@objc final public let totalPages: Swift.Int
@objc deinit
}
@objc(FlyBuyClaimOrderInfo) open class ClaimOrderInfo : ObjectiveC.NSObject, Swift.Codable {
@objc public init(customerCarColor: Swift.String?, customerCarType: Swift.String?, customerLicensePlate: Swift.String?, customerName: Swift.String?, customerPhone: Swift.String?, pushToken: Swift.String)
@objc public init(customerInfo: FlyBuy.CustomerInfo, pushToken: Swift.String, pickupType: Swift.String?)
public func encode(to encoder: Swift.Encoder) throws
@objc deinit
required public init(from decoder: Swift.Decoder) throws
}
@objc(FlyBuyOrderEvent) open class OrderEvent : ObjectiveC.NSObject, Swift.Encodable {
public init(orderID: Swift.Int, location: CoreLocation.CLLocation, beacons: [FlyBuy.Beacon], etaSeconds: Foundation.NSNumber?, etaSource: Swift.String?, possibleWrongSiteId: Swift.Int?, clientEtaExpiry: Swift.Int?, clientEtaAttempted: Swift.Bool?, clientEtaLog: Swift.String?)
public init(orderID: Swift.Int, customerState: Swift.String, etaSeconds: Foundation.NSNumber?, etaSource: Swift.String?, location: CoreLocation.CLLocation? = nil)
Expand Down Expand Up @@ -470,8 +457,13 @@ extension FlyBuy.FlyBuyModuleManager {
public static var isCoreConfigured: Swift.Bool {
get
}
public static var deferredLocationTracking: Swift.Bool {
get
}
@objc public static func setAppInstanceIDUpdatedListener(callback: ((Foundation.UUID) -> (Swift.Void))? = nil)
@available(*, deprecated, message: "This method for configuring Flybuy Core has been deprecated. Use FlyBuy.Core.configure(withOptions configOptions: ConfigOptions) instead.")
@objc public static func configure(_ opts: [Swift.String : Any])
@objc public static func configure(withOptions configOptions: FlyBuy.ConfigOptions)
public static func appInstanceID() -> Foundation.UUID
@objc public static func handleRemoteNotification(_ data: [Swift.AnyHashable : Any])
@objc public static func updatePushToken(_ newPushToken: Swift.String)
Expand Down Expand Up @@ -731,8 +723,10 @@ extension Swift.String {
public struct PickupStates : Swift.Codable {
public let order: [Swift.String]?
public let openOrder: [Swift.String]?
public let deferredOrder: [Swift.String]?
public let customer: [Swift.String]?
public let openCustomer: [Swift.String]?
public let deferredCustomer: [Swift.String]?
public func encode(to encoder: Swift.Encoder) throws
public init(from decoder: Swift.Decoder) throws
}
Expand All @@ -747,7 +741,9 @@ public struct PickupStates : Swift.Codable {
@objc get
}
@objc public var orderStates: [Swift.String]
public var deferredOrderStates: [Swift.String]
@objc public var customerStates: [Swift.String]
public var deferredCustomerStates: [Swift.String]
@objc override dynamic public init()
@objc public func fetch(callback: (([FlyBuy.Order]?, Swift.Error?) -> (Swift.Void))? = nil)
@objc public func fetch(withRedemptionCode redemptionCode: Swift.String, callback: ((FlyBuy.Order?, Swift.Error?) -> (Swift.Void))? = nil)
Expand Down Expand Up @@ -869,6 +865,18 @@ extension FlyBuy.OrdersManager : CoreLocation.CLLocationManagerDelegate {
final public func error(_ message: Any = "", filename: Swift.String = #file, function: Swift.String = #function, line: Swift.Int = #line)
@objc deinit
}
@_hasMissingDesignatedInitializers @objc(FlyBuyConfigOptions) public class ConfigOptions : ObjectiveC.NSObject {
@objc public static func Builder(token: Swift.String) -> FlyBuy.ConfigOptionsBuilder
@objc deinit
}
@objc(FlyBuyConfigOptionsBuilder) public class ConfigOptionsBuilder : ObjectiveC.NSObject {
@objc public init(token: Swift.String)
@objc public func build() -> FlyBuy.ConfigOptions
@objc public func setLogLevel(_ logLevel: FlyBuy.LogLevel) -> FlyBuy.ConfigOptionsBuilder
@objc public func setDeferredLocationTracking(_ enabled: Swift.Bool) -> FlyBuy.ConfigOptionsBuilder
@objc public func setOptions(_ opts: [Swift.String : Any]) -> FlyBuy.ConfigOptionsBuilder
@objc deinit
}
@objc(FlyBuyOrder) open class Order : ObjectiveC.NSObject {
@objc final public let id: Swift.Int
@objc final public let siteID: Swift.Int
Expand Down Expand Up @@ -970,6 +978,9 @@ extension FlyBuy.Order {
public var sitePickupConfig: FlyBuy.PickupConfig {
get
}
@objc dynamic public var locationTrackingDeferred: Swift.Bool {
@objc get
}
}
extension FlyBuy.LocationAuthStatus : Swift.Equatable {}
extension FlyBuy.LocationAuthStatus : Swift.Hashable {}
Expand Down
Binary file not shown.
Loading

0 comments on commit c014e84

Please sign in to comment.