diff --git a/Framework/Instamojo.framework/Assets.car b/Framework/Instamojo.framework/Assets.car index 876e7de..886b6be 100644 Binary files a/Framework/Instamojo.framework/Assets.car and b/Framework/Instamojo.framework/Assets.car differ diff --git a/Framework/Instamojo.framework/Headers/Instamojo-Swift.h b/Framework/Instamojo.framework/Headers/Instamojo-Swift.h index abe9f79..33f20bd 100644 --- a/Framework/Instamojo.framework/Headers/Instamojo-Swift.h +++ b/Framework/Instamojo.framework/Headers/Instamojo-Swift.h @@ -1,7 +1,30 @@ -// Generated by Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42) +// Generated by Apple Swift version 4.0.1 (swiftlang-900.0.68 clang-900.0.38) #pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" -#if defined(__has_include) && __has_include() +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_attribute(external_source_symbol) +# define SWIFT_STRINGIFY(str) #str +# define SWIFT_MODULE_NAMESPACE_PUSH(module_name) _Pragma(SWIFT_STRINGIFY(clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in=module_name, generated_declaration))), apply_to=any(function, enum, objc_interface, objc_category, objc_protocol)))) +# define SWIFT_MODULE_NAMESPACE_POP _Pragma("clang attribute pop") +#else +# define SWIFT_MODULE_NAMESPACE_PUSH(module_name) +# define SWIFT_MODULE_NAMESPACE_POP +#endif + +#if __has_include() # include #endif @@ -13,7 +36,7 @@ #if !defined(SWIFT_TYPEDEFS) # define SWIFT_TYPEDEFS 1 -# if defined(__has_include) && __has_include() +# if __has_include() # include # elif !defined(__cplusplus) || __cplusplus < 201103L typedef uint_least16_t char16_t; @@ -48,31 +71,36 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); # endif #endif -#if defined(__has_attribute) && __has_attribute(objc_runtime_name) +#if __has_attribute(objc_runtime_name) # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else # define SWIFT_RUNTIME_NAME(X) #endif -#if defined(__has_attribute) && __has_attribute(swift_name) +#if __has_attribute(swift_name) # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else # define SWIFT_COMPILE_NAME(X) #endif -#if defined(__has_attribute) && __has_attribute(objc_method_family) +#if __has_attribute(objc_method_family) # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else # define SWIFT_METHOD_FAMILY(X) #endif -#if defined(__has_attribute) && __has_attribute(noescape) +#if __has_attribute(noescape) # define SWIFT_NOESCAPE __attribute__((noescape)) #else # define SWIFT_NOESCAPE #endif -#if defined(__has_attribute) && __has_attribute(warn_unused_result) +#if __has_attribute(warn_unused_result) # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else # define SWIFT_WARN_UNUSED_RESULT #endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif #if !defined(SWIFT_CLASS_EXTRA) # define SWIFT_CLASS_EXTRA #endif @@ -83,7 +111,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); # define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -# if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted) +# if __has_attribute(objc_subclassing_restricted) # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA # else @@ -102,16 +130,23 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -# if defined(__has_attribute) && __has_attribute(objc_designated_initializer) +# if __has_attribute(objc_designated_initializer) # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) # else # define OBJC_DESIGNATED_INITIALIZER # endif #endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR __attribute__((enum_extensibility(open))) +# else +# define SWIFT_ENUM_ATTR +# endif +#endif #if !defined(SWIFT_ENUM) -# define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum SWIFT_ENUM_EXTRA _name : _type -# if defined(__has_feature) && __has_feature(generalized_swift_name) -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_EXTRA _name : _type +# define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type # else # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) SWIFT_ENUM(_type, _name) # endif @@ -131,7 +166,12 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if !defined(SWIFT_DEPRECATED_MSG) # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif -#if defined(__has_feature) && __has_feature(modules) +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if __has_feature(modules) @import ObjectiveC; @import UIKit; @import Foundation; @@ -140,23 +180,17 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +SWIFT_MODULE_NAMESPACE_PUSH("Instamojo") SWIFT_CLASS("_TtC9Instamojo4Card") @interface Card : NSObject -@property (nonatomic, copy) NSString * _Nonnull cardHolderName; -@property (nonatomic, copy) NSString * _Nonnull cardNumber; -@property (nonatomic, copy) NSString * _Nonnull date; -@property (nonatomic, copy) NSString * _Nonnull cvv; -@property (nonatomic) BOOL savedCard; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithCardHolderName:(NSString * _Nonnull)cardHolderName cardNumber:(NSString * _Nonnull)cardNumber date:(NSString * _Nonnull)date cvv:(NSString * _Nonnull)cvv savedCard:(BOOL)savedCard OBJC_DESIGNATED_INITIALIZER; -- (NSString * _Nonnull)getExpiryMonth SWIFT_WARN_UNUSED_RESULT; -- (NSString * _Nonnull)getExpiryYear SWIFT_WARN_UNUSED_RESULT; -- (BOOL)isValidCard SWIFT_WARN_UNUSED_RESULT; -- (BOOL)isValidCardNumber SWIFT_WARN_UNUSED_RESULT; -- (BOOL)isValidCardHolderName SWIFT_WARN_UNUSED_RESULT; -- (BOOL)isValidDate SWIFT_WARN_UNUSED_RESULT; -- (BOOL)isValidCVV SWIFT_WARN_UNUSED_RESULT; @end @class BrowserParams; @@ -172,14 +206,12 @@ SWIFT_PROTOCOL("_TtP9Instamojo21JuspayRequestCallBack_") @class MonthYearPickerView; @class UILabel; @class UIView; -@class Order; -@class Spinner; @class UIBarButtonItem; @class NSBundle; @class NSCoder; SWIFT_CLASS("_TtC9Instamojo12CardFormView") -@interface CardFormView : UIViewController +@interface CardFormView : UIViewController @property (nonatomic, weak) IBOutlet UIButton * _Null_unspecified payButton; @property (nonatomic, weak) IBOutlet UITextField * _Null_unspecified cvvTextField; @property (nonatomic, weak) IBOutlet UITextField * _Null_unspecified expiryDateTextField; @@ -195,20 +227,9 @@ SWIFT_CLASS("_TtC9Instamojo12CardFormView") @property (nonatomic, strong) IBOutlet UILabel * _Null_unspecified expiryDateErrorLable; @property (nonatomic, strong) IBOutlet UIView * _Null_unspecified cvvDivider; @property (nonatomic, strong) IBOutlet UILabel * _Null_unspecified cvvErrorLable; -@property (nonatomic, strong) Order * _Null_unspecified order; -@property (nonatomic) NSInteger cardType; -@property (nonatomic) float amountToBePayed; -@property (nonatomic, strong) Spinner * _Null_unspecified spinner; -@property (nonatomic, strong) UITextField * _Null_unspecified textField; -@property (nonatomic) BOOL invalidEntries; - (void)viewDidLoad; - (void)doneButton_ClickedWithSender:(UIBarButtonItem * _Nonnull)sender; -- (void)prepareCheckOut; -- (void)checkOutCardWithCard:(Card * _Nonnull)card; -- (void)validateEntries; - (BOOL)textFieldShouldReturn:(UITextField * _Nonnull)textField SWIFT_WARN_UNUSED_RESULT; -- (void)initUI SWIFT_METHOD_FAMILY(none); -- (BOOL)cardNumberDidChangeWithRange:(NSRange)range SWIFT_WARN_UNUSED_RESULT; - (BOOL)textField:(UITextField * _Nonnull)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString * _Nonnull)string SWIFT_WARN_UNUSED_RESULT; - (void)onFinishWithParams:(BrowserParams * _Nonnull)params error:(NSString * _Nonnull)error; - (IBAction)checkout:(id _Nonnull)sender; @@ -219,49 +240,28 @@ SWIFT_CLASS("_TtC9Instamojo12CardFormView") SWIFT_CLASS("_TtC9Instamojo11CardOptions") @interface CardOptions : NSObject -@property (nonatomic, copy) NSString * _Nonnull orderID; -@property (nonatomic, copy) NSString * _Nonnull url; -@property (nonatomic, copy) NSString * _Nonnull merchantID; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSString * _Nonnull)orderID url:(NSString * _Nonnull)url merchantID:(NSString * _Nonnull)merchantID OBJC_DESIGNATED_INITIALIZER; -- (NSString * _Nonnull)toString SWIFT_WARN_UNUSED_RESULT; @end SWIFT_CLASS("_TtC9Instamojo7EMIBank") @interface EMIBank : NSObject -@property (nonatomic, copy) NSString * _Null_unspecified bankName; -@property (nonatomic, copy) NSString * _Null_unspecified bankCode; - (nonnull instancetype)init SWIFT_UNAVAILABLE; @end SWIFT_CLASS("_TtC9Instamojo10EMIOptions") @interface EMIOptions : NSObject -@property (nonatomic, copy) NSString * _Nonnull merchantID; -@property (nonatomic, copy) NSString * _Nonnull orderID; -@property (nonatomic, copy) NSString * _Nonnull url; -@property (nonatomic, copy) NSArray * _Null_unspecified emiBanks; -@property (nonatomic, copy) NSString * _Null_unspecified selectedBankCode; -@property (nonatomic) NSInteger selectedTenure; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithMerchantID:(NSString * _Nonnull)merchantID orderID:(NSString * _Nonnull)orderID url:(NSString * _Nonnull)url emiBanks:(NSArray * _Nonnull)emiBanks OBJC_DESIGNATED_INITIALIZER; @end @class UITableView; -@class NSMutableArray; @class UITableViewCell; SWIFT_CLASS("_TtC9Instamojo14EMIOptionsView") -@interface EMIOptionsView : UIViewController +@interface EMIOptionsView : UIViewController @property (nonatomic, weak) IBOutlet UITableView * _Null_unspecified emiOptionsTableView; -@property (nonatomic, strong) NSMutableArray * _Null_unspecified values; -@property (nonatomic, strong) Order * _Null_unspecified order; -@property (nonatomic, strong) EMIBank * _Null_unspecified selectedBank; - (void)viewDidLoad; -- (void)loadOptions; -- (double)getEMIAmountWithTotalAmount:(NSString * _Nonnull)totalAmount interest:(NSInteger)interest tenure:(NSInteger)tenure SWIFT_WARN_UNUSED_RESULT; -- (NSString * _Nonnull)getFinalAmountWithAmount:(double)amount SWIFT_WARN_UNUSED_RESULT; - (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; - (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; - (void)viewDidAppear:(BOOL)animated; @@ -274,56 +274,20 @@ SWIFT_CLASS("_TtC9Instamojo14EMIOptionsView") SWIFT_CLASS("_TtC9Instamojo9Instamojo") @interface Instamojo : NSObject -SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL instance;) -+ (BOOL)instance SWIFT_WARN_UNUSED_RESULT; -+ (void)setInstance:(BOOL)value; -SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL isNavigation;) -+ (BOOL)isNavigation SWIFT_WARN_UNUSED_RESULT; -+ (void)setIsNavigation:(BOOL)value; -/// Initizalise Instamojo -+ (void)setup; -+ (void)enableLogWithOption:(BOOL)option; -/// Sets the base url for all network calls -/// @param url String -+ (void)setBaseUrlWithUrl:(NSString * _Nonnull)url; -+ (BOOL)isNavigationStack SWIFT_WARN_UNUSED_RESULT; -+ (void)invokePaymentOptionsViewWithOrder:(Order * _Nonnull)order; -/// Invoke Pre Created Payment UI by passing loaded viewcontroller in scenario with multiple navigation or tab bar with navigation within -/// @param order Order -+ (void)invokePaymentOptionsViewWithOrder:(Order * _Nonnull)order controller:(UIViewController * _Nonnull)controller; -/// Invoke Payment For Custom UI -/// @param params BrowserParams -+ (void)makePaymentWithParams:(BrowserParams * _Nonnull)params; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end -@class UIStoryboard; -@class NetBankingBanks; -@class Wallet; @class UISearchController; SWIFT_CLASS("_TtC9Instamojo15ListOptionsView") -@interface ListOptionsView : UIViewController +@interface ListOptionsView : UIViewController @property (nonatomic, weak) IBOutlet UITableView * _Null_unspecified banksTableView; -@property (nonatomic, copy) NSString * _Null_unspecified paymentOption; -@property (nonatomic, strong) Order * _Null_unspecified order; -@property (nonatomic, strong) UIStoryboard * _Nonnull mainStoryboard; -@property (nonatomic, copy) NSString * _Null_unspecified submissionURL; -@property (nonatomic, copy) NSArray * _Null_unspecified netBanks; -@property (nonatomic, copy) NSArray * _Null_unspecified wallets; -@property (nonatomic, copy) NSArray * _Null_unspecified banks; -@property (nonatomic, copy) NSArray * _Nonnull filteredEMIBanks; -@property (nonatomic, copy) NSArray * _Nonnull filteredWallets; -@property (nonatomic, copy) NSArray * _Nonnull filteredNetBanks; -@property (nonatomic, strong) UISearchController * _Nonnull resultSearchController; - (void)viewDidLoad; - (void)didReceiveMemoryWarning; - (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; - (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; - (void)tableView:(UITableView * _Nonnull)tableView didSelectRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath; -- (void)startJuspayBrowserWithParams:(BrowserParams * _Nonnull)params; -- (void)setOptions; - (void)viewWillDisappear:(BOOL)animated; - (void)viewDidAppear:(BOOL)animated; - (void)updateSearchResultsForSearchController:(UISearchController * _Nonnull)searchController; @@ -333,15 +297,9 @@ SWIFT_CLASS("_TtC9Instamojo15ListOptionsView") SWIFT_CLASS("_TtC9Instamojo19MonthYearPickerView") -@interface MonthYearPickerView : UIPickerView -@property (nonatomic, copy) NSArray * _Null_unspecified months; -@property (nonatomic, copy) NSArray * _Null_unspecified years; -@property (nonatomic) NSInteger month; -@property (nonatomic) NSInteger year; -@property (nonatomic, copy) void (^ _Nullable onDateSelected)(NSInteger, NSInteger); +@interface MonthYearPickerView : UIPickerView - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -- (void)commonSetup; - (NSInteger)numberOfComponentsInPickerView:(UIPickerView * _Nonnull)pickerView SWIFT_WARN_UNUSED_RESULT; - (NSString * _Nullable)pickerView:(UIPickerView * _Nonnull)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component SWIFT_WARN_UNUSED_RESULT; - (NSInteger)pickerView:(UIPickerView * _Nonnull)pickerView numberOfRowsInComponent:(NSInteger)component SWIFT_WARN_UNUSED_RESULT; @@ -349,67 +307,23 @@ SWIFT_CLASS("_TtC9Instamojo19MonthYearPickerView") @end -@interface NSMutableURLRequest (SWIFT_EXTENSION(Instamojo)) -- (void)setBodyContentWithParameters:(NSDictionary * _Nonnull)parameters; -@end SWIFT_CLASS("_TtC9Instamojo15NetBankingBanks") @interface NetBankingBanks : NSObject -@property (nonatomic, copy) NSString * _Null_unspecified bankName; -@property (nonatomic, copy) NSString * _Null_unspecified bankCode; -- (nonnull instancetype)initWithBankName:(NSString * _Nonnull)bankName bankCode:(NSString * _Nonnull)bankCode OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init SWIFT_UNAVAILABLE; @end SWIFT_CLASS("_TtC9Instamojo17NetBankingOptions") @interface NetBankingOptions : NSObject -@property (nonatomic, copy) NSString * _Null_unspecified url; -@property (nonatomic, copy) NSArray * _Null_unspecified banks; -- (nonnull instancetype)initWithUrl:(NSString * _Nonnull)url banks:(NSArray * _Nonnull)banks OBJC_DESIGNATED_INITIALIZER; -- (NSString * _Nonnull)getPostDataWithAccessToken:(NSString * _Nonnull)accessToken bankCode:(NSString * _Nonnull)bankCode SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; @end -@class WalletOptions; -@class UPIOptions; -@class NSDictionary; SWIFT_CLASS("_TtC9Instamojo5Order") @interface Order : NSObject -@property (nonatomic, copy) NSString * _Nullable id; -@property (nonatomic, copy) NSString * _Nullable transactionID; -@property (nonatomic, copy) NSString * _Nullable buyerName; -@property (nonatomic, copy) NSString * _Nullable buyerEmail; -@property (nonatomic, copy) NSString * _Nullable buyerPhone; -@property (nonatomic, copy) NSString * _Nullable amount; -@property (nonatomic, copy) NSString * _Nullable orderDescription; -@property (nonatomic, copy) NSString * _Nullable currency; -@property (nonatomic, copy) NSString * _Nullable redirectionUrl; -@property (nonatomic, copy) NSString * _Nullable webhook; -@property (nonatomic, copy) NSString * _Nullable mode; -@property (nonatomic, copy) NSString * _Nullable authToken; -@property (nonatomic, copy) NSString * _Nullable resourceURI; -@property (nonatomic, copy) NSString * _Nullable clientID; -@property (nonatomic, strong) CardOptions * _Null_unspecified cardOptions; -@property (nonatomic, strong) NetBankingOptions * _Null_unspecified netBankingOptions; -@property (nonatomic, strong) EMIOptions * _Null_unspecified emiOptions; -@property (nonatomic, strong) WalletOptions * _Null_unspecified walletOptions; -@property (nonatomic, strong) UPIOptions * _Null_unspecified upiOptions; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithAuthToken:(NSString * _Nonnull)authToken transactionID:(NSString * _Nonnull)transactionID buyerName:(NSString * _Nonnull)buyerName buyerEmail:(NSString * _Nonnull)buyerEmail buyerPhone:(NSString * _Nonnull)buyerPhone amount:(NSString * _Nonnull)amount description:(NSString * _Nonnull)description webhook:(NSString * _Nonnull)webhook OBJC_DESIGNATED_INITIALIZER; -- (BOOL)isValid SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidName SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidEmail SWIFT_WARN_UNUSED_RESULT; -- (BOOL)validateEmailWithEmail:(NSString * _Nonnull)email SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidPhone SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidAmount SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidDescription SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidTransactionID SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidRedirectURL SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidWebhook SWIFT_WARN_UNUSED_RESULT; -- (BOOL)isValidURLWithUrlString:(NSString * _Nonnull)urlString SWIFT_WARN_UNUSED_RESULT; @end @@ -422,38 +336,22 @@ SWIFT_PROTOCOL("_TtP9Instamojo20OrderRequestCallBack_") SWIFT_CLASS("_TtC9Instamojo18PaymentOptionsView") @interface PaymentOptionsView : UIViewController @property (nonatomic, weak) IBOutlet UITableView * _Null_unspecified paymentOptionsTableView; -@property (nonatomic, strong) Order * _Null_unspecified order; -@property (nonatomic, strong) NSMutableArray * _Nonnull paymentOptions; -@property (nonatomic) BOOL paymentCompleted; -@property (nonatomic, strong) UIStoryboard * _Nonnull mainStoryboard; -@property (nonatomic) BOOL isBackButtonNeeded; - (void)viewDidLoad; - (void)exitViewController; - (void)backToViewController; -- (void)reloadDataBasedOnOrder; - (void)didReceiveMemoryWarning; - (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; - (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; - (void)tableView:(UITableView * _Nonnull)tableView didSelectRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath; -- (void)onNetBankingSelectedWithOptions:(NSString * _Nonnull)options; - (void)viewDidAppear:(BOOL)animated; - (void)viewWillAppear:(BOOL)animated; -- (void)onCreditCardSelected; -- (void)onDebitCardSelected; -- (void)onEmiSelectedWithOptions:(NSString * _Nonnull)options; -- (void)onWalletSelectedWithOptions:(NSString * _Nonnull)options; -- (void)onUPISelected; - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; @end -@class JuspaySafeBrowser; SWIFT_CLASS("_TtC9Instamojo21PaymentViewController") @interface PaymentViewController : UIViewController -@property (nonatomic, strong) JuspaySafeBrowser * _Nonnull juspaySafeBrowser; -@property (nonatomic, strong) BrowserParams * _Null_unspecified params; -@property (nonatomic) BOOL cancelled; - (void)viewDidLoad; - (void)viewDidAppear:(BOOL)animated; - (BOOL)navigationShouldPopOnBackButton SWIFT_WARN_UNUSED_RESULT; @@ -462,79 +360,22 @@ SWIFT_CLASS("_TtC9Instamojo21PaymentViewController") - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; @end -@class UPISubmissionResponse; -@protocol UPICallBack; SWIFT_CLASS("_TtC9Instamojo7Request") @interface Request : NSObject -@property (nonatomic, strong) Order * _Nullable order; -@property (nonatomic, copy) NSString * _Nullable orderID; -@property (nonatomic, copy) NSString * _Nullable accessToken; -@property (nonatomic, strong) Card * _Nullable card; -@property (nonatomic, copy) NSString * _Nullable virtualPaymentAddress; -@property (nonatomic, strong) UPISubmissionResponse * _Nullable upiSubmissionResponse; -@property (nonatomic, strong) id _Nullable orderRequestCallBack; -@property (nonatomic, strong) id _Nullable juspayRequestCallBack; -@property (nonatomic, strong) id _Nullable upiCallBack; -/// Network Request to create an order ID from Instamojo server. -/// @param order Order model with all the mandatory fields set. -/// @param orderRequestCallBack OrderRequestCallBack interface for the Asynchronous Network Call. -- (nonnull instancetype)initWithOrder:(Order * _Nonnull)order orderRequestCallBack:(id _Nonnull)orderRequestCallBack OBJC_DESIGNATED_INITIALIZER; -/// Network Request to get order details from Juspay for JuspaySafeBrowser. -/// @param order Order model with all the mandatory fields set. -/// @param card Card with all the proper validations done. -/// @param jusPayRequestCallBack JusPayRequestCallBack for Asynchronous network call. -- (nonnull instancetype)initWithOrder:(Order * _Nonnull)order card:(Card * _Nonnull)card jusPayRequestCallBack:(id _Nonnull)jusPayRequestCallBack OBJC_DESIGNATED_INITIALIZER; -/// Network request for UPISubmission Submission -/// @param order Order -/// @param virtualPaymentAddress String -/// @param upiCallback UPICallback -- (nonnull instancetype)initWithOrder:(Order * _Nonnull)order virtualPaymentAddress:(NSString * _Nonnull)virtualPaymentAddress upiCallBack:(id _Nonnull)upiCallBack OBJC_DESIGNATED_INITIALIZER; -/// Network Request to check the status of the transaction -/// @param order Order -/// @param upiSubmissionResponse UPISubmissionResponse -/// @param upiCallback UPICallback -- (nonnull instancetype)initWithOrder:(Order * _Nonnull)order upiSubmissionResponse:(UPISubmissionResponse * _Nonnull)upiSubmissionResponse upiCallback:(id _Nonnull)upiCallback OBJC_DESIGNATED_INITIALIZER; -/// Network request to fetch the order -/// @param accessToken String -/// @param orderID String -/// @param orderRequestCallBack OrderRequestCallBack -- (nonnull instancetype)initWithOrderID:(NSString * _Nonnull)orderID accessToken:(NSString * _Nonnull)accessToken orderRequestCallBack:(id _Nonnull)orderRequestCallBack OBJC_DESIGNATED_INITIALIZER; -- (void)execute; -- (void)createOrder; -- (void)updateTransactionDetailsWithJsonResponse:(NSDictionary * _Nonnull)jsonResponse; -- (void)fetchOrder; -- (void)parseOrderWithResponse:(NSDictionary * _Nonnull)response; -- (void)juspayRequest; -- (void)executeUPIRequest; -- (UPISubmissionResponse * _Nonnull)parseUPIResponseWithResponse:(NSDictionary * _Nonnull)response SWIFT_WARN_UNUSED_RESULT; -- (void)upiStatusCheck; -- (NSString * _Nonnull)getUserAgent SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; @end -@class UIActivityIndicatorView; -@class UIBlurEffect; @class UIVisualEffect; SWIFT_CLASS("_TtC9Instamojo7Spinner") @interface Spinner : UIVisualEffectView -@property (nonatomic, copy) NSString * _Nullable text; -@property (nonatomic, readonly, strong) UIView * _Nonnull background; -@property (nonatomic, readonly, strong) UIActivityIndicatorView * _Nonnull activityIndictor; -@property (nonatomic, readonly, strong) UILabel * _Nonnull label; -@property (nonatomic, readonly, strong) UIBlurEffect * _Nonnull blurEffect; -@property (nonatomic, readonly, strong) UIVisualEffectView * _Nonnull vibrancyView; -- (nonnull instancetype)initWithText:(NSString * _Nonnull)text OBJC_DESIGNATED_INITIALIZER; -- (void)setTextWithText:(NSString * _Nonnull)text; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -- (void)setup; - (void)didMoveToSuperview; -- (void)show; -- (void)hide; - (nonnull instancetype)initWithEffect:(UIVisualEffect * _Nullable)effect SWIFT_UNAVAILABLE; @end +@class UPISubmissionResponse; SWIFT_PROTOCOL("_TtP9Instamojo11UPICallBack_") @protocol UPICallBack @@ -545,9 +386,7 @@ SWIFT_PROTOCOL("_TtP9Instamojo11UPICallBack_") SWIFT_CLASS("_TtC9Instamojo10UPIOptions") @interface UPIOptions : NSObject -@property (nonatomic, copy) NSString * _Nonnull url; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithUrl:(NSString * _Nonnull)url OBJC_DESIGNATED_INITIALIZER; @end @@ -556,10 +395,6 @@ SWIFT_CLASS("_TtC9Instamojo14UPIPaymentView") @property (nonatomic, weak) IBOutlet UIView * _Null_unspecified alertMessageView; @property (nonatomic, weak) IBOutlet UIView * _Null_unspecified vpaDetailsView; @property (nonatomic, weak) IBOutlet UITextField * _Null_unspecified vpa; -@property (nonatomic, strong) Order * _Null_unspecified order; -@property (nonatomic, strong) UPISubmissionResponse * _Null_unspecified upiSubmissionResponse; -@property (nonatomic, strong) Spinner * _Null_unspecified spinner; -@property (nonatomic) BOOL continueCheck; - (void)viewDidLoad; - (BOOL)textFieldShouldReturn:(UITextField * _Nonnull)textField SWIFT_WARN_UNUSED_RESULT; - (void)viewWillDisappear:(BOOL)animated; @@ -567,10 +402,7 @@ SWIFT_CLASS("_TtC9Instamojo14UPIPaymentView") - (void)viewDidAppear:(BOOL)animated; - (void)verifyPaymentWithSender:(UIBarButtonItem * _Nonnull)sender; - (void)onSubmissionWithUpiSubmissionResponse:(UPISubmissionResponse * _Nonnull)upiSubmissionResponse exception:(NSString * _Nonnull)exception; -- (void)checkForStatusTransaction; - (void)onStatusCheckCompleteWithPaymentComplete:(BOOL)paymentComplete status:(NSInteger)status; -- (void)onPaymentStatusCompleteWithMessage:(NSString * _Nonnull)message; -- (void)showAlertWithTitle:(NSString * _Nonnull)title errorMessage:(NSString * _Nonnull)errorMessage; - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; @end @@ -578,35 +410,20 @@ SWIFT_CLASS("_TtC9Instamojo14UPIPaymentView") SWIFT_CLASS("_TtC9Instamojo21UPISubmissionResponse") @interface UPISubmissionResponse : NSObject -@property (nonatomic, copy) NSString * _Nonnull paymentID; -@property (nonatomic) NSInteger statusCode; -@property (nonatomic, copy) NSString * _Nonnull payerVirtualAddress; -@property (nonatomic, copy) NSString * _Nonnull payeeVirtualAddress; -@property (nonatomic, copy) NSString * _Nonnull statusCheckURL; -@property (nonatomic, copy) NSString * _Nonnull upiBank; -@property (nonatomic, copy) NSString * _Nonnull statusMessage; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithPaymentID:(NSString * _Nonnull)paymentID statusCode:(NSInteger)statusCode payerVirtualAddress:(NSString * _Nonnull)payerVirtualAddress payeeVirtualAddress:(NSString * _Nonnull)payeeVirtualAddress statusCheckURL:(NSString * _Nonnull)statusCheckURL upiBank:(NSString * _Nonnull)upiBank statusMessage:(NSString * _Nonnull)statusMessage OBJC_DESIGNATED_INITIALIZER; @end SWIFT_CLASS("_TtC9Instamojo6Wallet") @interface Wallet : NSObject -@property (nonatomic, copy) NSString * _Nonnull name; -@property (nonatomic, copy) NSString * _Nonnull imageUrl; -@property (nonatomic, copy) NSString * _Nonnull walletID; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithName:(NSString * _Nonnull)name imageUrl:(NSString * _Nonnull)imageUrl walletID:(NSString * _Nonnull)walletID OBJC_DESIGNATED_INITIALIZER; @end SWIFT_CLASS("_TtC9Instamojo13WalletOptions") @interface WalletOptions : NSObject -@property (nonatomic, copy) NSString * _Null_unspecified url; -@property (nonatomic, copy) NSArray * _Null_unspecified wallets; -- (nonnull instancetype)initWithUrl:(NSString * _Nonnull)url wallets:(NSArray * _Nonnull)wallets OBJC_DESIGNATED_INITIALIZER; -- (NSString * _Nonnull)getPostDataWithAccessToken:(NSString * _Nonnull)accessToken walletID:(NSString * _Nonnull)walletID SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; @end +SWIFT_MODULE_NAMESPACE_POP #pragma clang diagnostic pop diff --git a/Framework/Instamojo.framework/Info.plist b/Framework/Instamojo.framework/Info.plist index 8c14911..42cbc23 100644 Binary files a/Framework/Instamojo.framework/Info.plist and b/Framework/Instamojo.framework/Info.plist differ diff --git a/Framework/Instamojo.framework/Instamojo b/Framework/Instamojo.framework/Instamojo index a166e04..1af7bfc 100755 Binary files a/Framework/Instamojo.framework/Instamojo and b/Framework/Instamojo.framework/Instamojo differ diff --git a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/Ayd-f7-0GG-view-feG-x4-aZj.nib b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/Ayd-f7-0GG-view-feG-x4-aZj.nib index 3e1e681..4550c66 100644 Binary files a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/Ayd-f7-0GG-view-feG-x4-aZj.nib and b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/Ayd-f7-0GG-view-feG-x4-aZj.nib differ diff --git a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/Cc0-EI-h9R-view-eyY-co-RLW.nib b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/Cc0-EI-h9R-view-eyY-co-RLW.nib index 87f34f6..8e34139 100644 Binary files a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/Cc0-EI-h9R-view-eyY-co-RLW.nib and b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/Cc0-EI-h9R-view-eyY-co-RLW.nib differ diff --git a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/PaymentOptions.nib b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/PaymentOptions.nib index 5ac8bd3..65282fd 100644 Binary files a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/PaymentOptions.nib and b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/PaymentOptions.nib differ diff --git a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/cUp-xP-ZoS-view-p2R-hZ-ECO.nib b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/cUp-xP-ZoS-view-p2R-hZ-ECO.nib index 0ca3152..688df99 100644 Binary files a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/cUp-xP-ZoS-view-p2R-hZ-ECO.nib and b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/cUp-xP-ZoS-view-p2R-hZ-ECO.nib differ diff --git a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/cardFormView.nib b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/cardFormView.nib index 1cea550..967ccca 100644 Binary files a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/cardFormView.nib and b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/cardFormView.nib differ diff --git a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/emiOptions.nib b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/emiOptions.nib index d998534..093c4e5 100644 Binary files a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/emiOptions.nib and b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/emiOptions.nib differ diff --git a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/iOY-Af-8GG-view-zgG-85-GxC.nib b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/iOY-Af-8GG-view-zgG-85-GxC.nib index 44abc0c..bd21816 100644 Binary files a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/iOY-Af-8GG-view-zgG-85-GxC.nib and b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/iOY-Af-8GG-view-zgG-85-GxC.nib differ diff --git a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/juspay.nib b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/juspay.nib index 68ab5fd..4c8049b 100644 Binary files a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/juspay.nib and b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/juspay.nib differ diff --git a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/ljo-45-45L-view-4DD-nw-zQ4.nib b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/ljo-45-45L-view-4DD-nw-zQ4.nib index bd28505..aa25a3e 100644 Binary files a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/ljo-45-45L-view-4DD-nw-zQ4.nib and b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/ljo-45-45L-view-4DD-nw-zQ4.nib differ diff --git a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/optionsView.nib b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/optionsView.nib index 3670440..f403aef 100644 Binary files a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/optionsView.nib and b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/optionsView.nib differ diff --git a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/puG-9A-NNu-view-hyj-m5-Qmb.nib b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/puG-9A-NNu-view-hyj-m5-Qmb.nib index c4fa8ec..b668aaa 100644 Binary files a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/puG-9A-NNu-view-hyj-m5-Qmb.nib and b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/puG-9A-NNu-view-hyj-m5-Qmb.nib differ diff --git a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/upiPaymentView.nib b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/upiPaymentView.nib index 6cd95f7..058d881 100644 Binary files a/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/upiPaymentView.nib and b/Framework/Instamojo.framework/InstamojoStoryboard.storyboardc/upiPaymentView.nib differ diff --git a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftdoc b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftdoc index 2845a51..ccfdc7e 100644 Binary files a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftdoc and b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftdoc differ diff --git a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftmodule b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftmodule index df35c04..b2d5376 100644 Binary files a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftmodule and b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftmodule differ diff --git a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftdoc b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftdoc index 72cdbad..ba1be7e 100644 Binary files a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftdoc and b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftdoc differ diff --git a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftmodule b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftmodule index a903192..42fdb3f 100644 Binary files a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftmodule and b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftmodule differ diff --git a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftdoc b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftdoc index 956b86c..e37b538 100644 Binary files a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftdoc and b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftdoc differ diff --git a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftmodule b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftmodule index 66a8234..8a2fadc 100644 Binary files a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftmodule and b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftmodule differ diff --git a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftdoc b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftdoc index 4f6e5f0..8c273a4 100644 Binary files a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftdoc and b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftdoc differ diff --git a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftmodule b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftmodule index feec649..14f8ba3 100644 Binary files a/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftmodule and b/Framework/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftmodule differ diff --git a/Framework/Instamojo.framework/Modules/module.modulemap b/Framework/Instamojo.framework/Modules/module.modulemap index b82aadb..fa47ea5 100644 --- a/Framework/Instamojo.framework/Modules/module.modulemap +++ b/Framework/Instamojo.framework/Modules/module.modulemap @@ -1,3 +1,4 @@ framework module Instamojo { header "Instamojo-Swift.h" + requires objc } diff --git a/Instamojo.framework/Assets.car b/Instamojo.framework/Assets.car index 876e7de..886b6be 100644 Binary files a/Instamojo.framework/Assets.car and b/Instamojo.framework/Assets.car differ diff --git a/Instamojo.framework/Headers/Instamojo-Swift.h b/Instamojo.framework/Headers/Instamojo-Swift.h index abe9f79..33f20bd 100644 --- a/Instamojo.framework/Headers/Instamojo-Swift.h +++ b/Instamojo.framework/Headers/Instamojo-Swift.h @@ -1,7 +1,30 @@ -// Generated by Apple Swift version 3.1 (swiftlang-802.0.53 clang-802.0.42) +// Generated by Apple Swift version 4.0.1 (swiftlang-900.0.68 clang-900.0.38) #pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wgcc-compat" -#if defined(__has_include) && __has_include() +#if !defined(__has_include) +# define __has_include(x) 0 +#endif +#if !defined(__has_attribute) +# define __has_attribute(x) 0 +#endif +#if !defined(__has_feature) +# define __has_feature(x) 0 +#endif +#if !defined(__has_warning) +# define __has_warning(x) 0 +#endif + +#if __has_attribute(external_source_symbol) +# define SWIFT_STRINGIFY(str) #str +# define SWIFT_MODULE_NAMESPACE_PUSH(module_name) _Pragma(SWIFT_STRINGIFY(clang attribute push(__attribute__((external_source_symbol(language="Swift", defined_in=module_name, generated_declaration))), apply_to=any(function, enum, objc_interface, objc_category, objc_protocol)))) +# define SWIFT_MODULE_NAMESPACE_POP _Pragma("clang attribute pop") +#else +# define SWIFT_MODULE_NAMESPACE_PUSH(module_name) +# define SWIFT_MODULE_NAMESPACE_POP +#endif + +#if __has_include() # include #endif @@ -13,7 +36,7 @@ #if !defined(SWIFT_TYPEDEFS) # define SWIFT_TYPEDEFS 1 -# if defined(__has_include) && __has_include() +# if __has_include() # include # elif !defined(__cplusplus) || __cplusplus < 201103L typedef uint_least16_t char16_t; @@ -48,31 +71,36 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); # endif #endif -#if defined(__has_attribute) && __has_attribute(objc_runtime_name) +#if __has_attribute(objc_runtime_name) # define SWIFT_RUNTIME_NAME(X) __attribute__((objc_runtime_name(X))) #else # define SWIFT_RUNTIME_NAME(X) #endif -#if defined(__has_attribute) && __has_attribute(swift_name) +#if __has_attribute(swift_name) # define SWIFT_COMPILE_NAME(X) __attribute__((swift_name(X))) #else # define SWIFT_COMPILE_NAME(X) #endif -#if defined(__has_attribute) && __has_attribute(objc_method_family) +#if __has_attribute(objc_method_family) # define SWIFT_METHOD_FAMILY(X) __attribute__((objc_method_family(X))) #else # define SWIFT_METHOD_FAMILY(X) #endif -#if defined(__has_attribute) && __has_attribute(noescape) +#if __has_attribute(noescape) # define SWIFT_NOESCAPE __attribute__((noescape)) #else # define SWIFT_NOESCAPE #endif -#if defined(__has_attribute) && __has_attribute(warn_unused_result) +#if __has_attribute(warn_unused_result) # define SWIFT_WARN_UNUSED_RESULT __attribute__((warn_unused_result)) #else # define SWIFT_WARN_UNUSED_RESULT #endif +#if __has_attribute(noreturn) +# define SWIFT_NORETURN __attribute__((noreturn)) +#else +# define SWIFT_NORETURN +#endif #if !defined(SWIFT_CLASS_EXTRA) # define SWIFT_CLASS_EXTRA #endif @@ -83,7 +111,7 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); # define SWIFT_ENUM_EXTRA #endif #if !defined(SWIFT_CLASS) -# if defined(__has_attribute) && __has_attribute(objc_subclassing_restricted) +# if __has_attribute(objc_subclassing_restricted) # define SWIFT_CLASS(SWIFT_NAME) SWIFT_RUNTIME_NAME(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_CLASS_EXTRA # define SWIFT_CLASS_NAMED(SWIFT_NAME) __attribute__((objc_subclassing_restricted)) SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_CLASS_EXTRA # else @@ -102,16 +130,23 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #endif #if !defined(OBJC_DESIGNATED_INITIALIZER) -# if defined(__has_attribute) && __has_attribute(objc_designated_initializer) +# if __has_attribute(objc_designated_initializer) # define OBJC_DESIGNATED_INITIALIZER __attribute__((objc_designated_initializer)) # else # define OBJC_DESIGNATED_INITIALIZER # endif #endif +#if !defined(SWIFT_ENUM_ATTR) +# if defined(__has_attribute) && __has_attribute(enum_extensibility) +# define SWIFT_ENUM_ATTR __attribute__((enum_extensibility(open))) +# else +# define SWIFT_ENUM_ATTR +# endif +#endif #if !defined(SWIFT_ENUM) -# define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum SWIFT_ENUM_EXTRA _name : _type -# if defined(__has_feature) && __has_feature(generalized_swift_name) -# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_EXTRA _name : _type +# define SWIFT_ENUM(_type, _name) enum _name : _type _name; enum SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type +# if __has_feature(generalized_swift_name) +# define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) enum _name : _type _name SWIFT_COMPILE_NAME(SWIFT_NAME); enum SWIFT_COMPILE_NAME(SWIFT_NAME) SWIFT_ENUM_ATTR SWIFT_ENUM_EXTRA _name : _type # else # define SWIFT_ENUM_NAMED(_type, _name, SWIFT_NAME) SWIFT_ENUM(_type, _name) # endif @@ -131,7 +166,12 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #if !defined(SWIFT_DEPRECATED_MSG) # define SWIFT_DEPRECATED_MSG(...) __attribute__((deprecated(__VA_ARGS__))) #endif -#if defined(__has_feature) && __has_feature(modules) +#if __has_feature(attribute_diagnose_if_objc) +# define SWIFT_DEPRECATED_OBJC(Msg) __attribute__((diagnose_if(1, Msg, "warning"))) +#else +# define SWIFT_DEPRECATED_OBJC(Msg) SWIFT_DEPRECATED_MSG(Msg) +#endif +#if __has_feature(modules) @import ObjectiveC; @import UIKit; @import Foundation; @@ -140,23 +180,17 @@ typedef unsigned int swift_uint4 __attribute__((__ext_vector_type__(4))); #pragma clang diagnostic ignored "-Wproperty-attribute-mismatch" #pragma clang diagnostic ignored "-Wduplicate-method-arg" +#if __has_warning("-Wpragma-clang-attribute") +# pragma clang diagnostic ignored "-Wpragma-clang-attribute" +#endif +#pragma clang diagnostic ignored "-Wunknown-pragmas" +#pragma clang diagnostic ignored "-Wnullability" + +SWIFT_MODULE_NAMESPACE_PUSH("Instamojo") SWIFT_CLASS("_TtC9Instamojo4Card") @interface Card : NSObject -@property (nonatomic, copy) NSString * _Nonnull cardHolderName; -@property (nonatomic, copy) NSString * _Nonnull cardNumber; -@property (nonatomic, copy) NSString * _Nonnull date; -@property (nonatomic, copy) NSString * _Nonnull cvv; -@property (nonatomic) BOOL savedCard; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithCardHolderName:(NSString * _Nonnull)cardHolderName cardNumber:(NSString * _Nonnull)cardNumber date:(NSString * _Nonnull)date cvv:(NSString * _Nonnull)cvv savedCard:(BOOL)savedCard OBJC_DESIGNATED_INITIALIZER; -- (NSString * _Nonnull)getExpiryMonth SWIFT_WARN_UNUSED_RESULT; -- (NSString * _Nonnull)getExpiryYear SWIFT_WARN_UNUSED_RESULT; -- (BOOL)isValidCard SWIFT_WARN_UNUSED_RESULT; -- (BOOL)isValidCardNumber SWIFT_WARN_UNUSED_RESULT; -- (BOOL)isValidCardHolderName SWIFT_WARN_UNUSED_RESULT; -- (BOOL)isValidDate SWIFT_WARN_UNUSED_RESULT; -- (BOOL)isValidCVV SWIFT_WARN_UNUSED_RESULT; @end @class BrowserParams; @@ -172,14 +206,12 @@ SWIFT_PROTOCOL("_TtP9Instamojo21JuspayRequestCallBack_") @class MonthYearPickerView; @class UILabel; @class UIView; -@class Order; -@class Spinner; @class UIBarButtonItem; @class NSBundle; @class NSCoder; SWIFT_CLASS("_TtC9Instamojo12CardFormView") -@interface CardFormView : UIViewController +@interface CardFormView : UIViewController @property (nonatomic, weak) IBOutlet UIButton * _Null_unspecified payButton; @property (nonatomic, weak) IBOutlet UITextField * _Null_unspecified cvvTextField; @property (nonatomic, weak) IBOutlet UITextField * _Null_unspecified expiryDateTextField; @@ -195,20 +227,9 @@ SWIFT_CLASS("_TtC9Instamojo12CardFormView") @property (nonatomic, strong) IBOutlet UILabel * _Null_unspecified expiryDateErrorLable; @property (nonatomic, strong) IBOutlet UIView * _Null_unspecified cvvDivider; @property (nonatomic, strong) IBOutlet UILabel * _Null_unspecified cvvErrorLable; -@property (nonatomic, strong) Order * _Null_unspecified order; -@property (nonatomic) NSInteger cardType; -@property (nonatomic) float amountToBePayed; -@property (nonatomic, strong) Spinner * _Null_unspecified spinner; -@property (nonatomic, strong) UITextField * _Null_unspecified textField; -@property (nonatomic) BOOL invalidEntries; - (void)viewDidLoad; - (void)doneButton_ClickedWithSender:(UIBarButtonItem * _Nonnull)sender; -- (void)prepareCheckOut; -- (void)checkOutCardWithCard:(Card * _Nonnull)card; -- (void)validateEntries; - (BOOL)textFieldShouldReturn:(UITextField * _Nonnull)textField SWIFT_WARN_UNUSED_RESULT; -- (void)initUI SWIFT_METHOD_FAMILY(none); -- (BOOL)cardNumberDidChangeWithRange:(NSRange)range SWIFT_WARN_UNUSED_RESULT; - (BOOL)textField:(UITextField * _Nonnull)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString * _Nonnull)string SWIFT_WARN_UNUSED_RESULT; - (void)onFinishWithParams:(BrowserParams * _Nonnull)params error:(NSString * _Nonnull)error; - (IBAction)checkout:(id _Nonnull)sender; @@ -219,49 +240,28 @@ SWIFT_CLASS("_TtC9Instamojo12CardFormView") SWIFT_CLASS("_TtC9Instamojo11CardOptions") @interface CardOptions : NSObject -@property (nonatomic, copy) NSString * _Nonnull orderID; -@property (nonatomic, copy) NSString * _Nonnull url; -@property (nonatomic, copy) NSString * _Nonnull merchantID; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithOrderID:(NSString * _Nonnull)orderID url:(NSString * _Nonnull)url merchantID:(NSString * _Nonnull)merchantID OBJC_DESIGNATED_INITIALIZER; -- (NSString * _Nonnull)toString SWIFT_WARN_UNUSED_RESULT; @end SWIFT_CLASS("_TtC9Instamojo7EMIBank") @interface EMIBank : NSObject -@property (nonatomic, copy) NSString * _Null_unspecified bankName; -@property (nonatomic, copy) NSString * _Null_unspecified bankCode; - (nonnull instancetype)init SWIFT_UNAVAILABLE; @end SWIFT_CLASS("_TtC9Instamojo10EMIOptions") @interface EMIOptions : NSObject -@property (nonatomic, copy) NSString * _Nonnull merchantID; -@property (nonatomic, copy) NSString * _Nonnull orderID; -@property (nonatomic, copy) NSString * _Nonnull url; -@property (nonatomic, copy) NSArray * _Null_unspecified emiBanks; -@property (nonatomic, copy) NSString * _Null_unspecified selectedBankCode; -@property (nonatomic) NSInteger selectedTenure; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithMerchantID:(NSString * _Nonnull)merchantID orderID:(NSString * _Nonnull)orderID url:(NSString * _Nonnull)url emiBanks:(NSArray * _Nonnull)emiBanks OBJC_DESIGNATED_INITIALIZER; @end @class UITableView; -@class NSMutableArray; @class UITableViewCell; SWIFT_CLASS("_TtC9Instamojo14EMIOptionsView") -@interface EMIOptionsView : UIViewController +@interface EMIOptionsView : UIViewController @property (nonatomic, weak) IBOutlet UITableView * _Null_unspecified emiOptionsTableView; -@property (nonatomic, strong) NSMutableArray * _Null_unspecified values; -@property (nonatomic, strong) Order * _Null_unspecified order; -@property (nonatomic, strong) EMIBank * _Null_unspecified selectedBank; - (void)viewDidLoad; -- (void)loadOptions; -- (double)getEMIAmountWithTotalAmount:(NSString * _Nonnull)totalAmount interest:(NSInteger)interest tenure:(NSInteger)tenure SWIFT_WARN_UNUSED_RESULT; -- (NSString * _Nonnull)getFinalAmountWithAmount:(double)amount SWIFT_WARN_UNUSED_RESULT; - (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; - (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; - (void)viewDidAppear:(BOOL)animated; @@ -274,56 +274,20 @@ SWIFT_CLASS("_TtC9Instamojo14EMIOptionsView") SWIFT_CLASS("_TtC9Instamojo9Instamojo") @interface Instamojo : NSObject -SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL instance;) -+ (BOOL)instance SWIFT_WARN_UNUSED_RESULT; -+ (void)setInstance:(BOOL)value; -SWIFT_CLASS_PROPERTY(@property (nonatomic, class) BOOL isNavigation;) -+ (BOOL)isNavigation SWIFT_WARN_UNUSED_RESULT; -+ (void)setIsNavigation:(BOOL)value; -/// Initizalise Instamojo -+ (void)setup; -+ (void)enableLogWithOption:(BOOL)option; -/// Sets the base url for all network calls -/// @param url String -+ (void)setBaseUrlWithUrl:(NSString * _Nonnull)url; -+ (BOOL)isNavigationStack SWIFT_WARN_UNUSED_RESULT; -+ (void)invokePaymentOptionsViewWithOrder:(Order * _Nonnull)order; -/// Invoke Pre Created Payment UI by passing loaded viewcontroller in scenario with multiple navigation or tab bar with navigation within -/// @param order Order -+ (void)invokePaymentOptionsViewWithOrder:(Order * _Nonnull)order controller:(UIViewController * _Nonnull)controller; -/// Invoke Payment For Custom UI -/// @param params BrowserParams -+ (void)makePaymentWithParams:(BrowserParams * _Nonnull)params; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; @end -@class UIStoryboard; -@class NetBankingBanks; -@class Wallet; @class UISearchController; SWIFT_CLASS("_TtC9Instamojo15ListOptionsView") -@interface ListOptionsView : UIViewController +@interface ListOptionsView : UIViewController @property (nonatomic, weak) IBOutlet UITableView * _Null_unspecified banksTableView; -@property (nonatomic, copy) NSString * _Null_unspecified paymentOption; -@property (nonatomic, strong) Order * _Null_unspecified order; -@property (nonatomic, strong) UIStoryboard * _Nonnull mainStoryboard; -@property (nonatomic, copy) NSString * _Null_unspecified submissionURL; -@property (nonatomic, copy) NSArray * _Null_unspecified netBanks; -@property (nonatomic, copy) NSArray * _Null_unspecified wallets; -@property (nonatomic, copy) NSArray * _Null_unspecified banks; -@property (nonatomic, copy) NSArray * _Nonnull filteredEMIBanks; -@property (nonatomic, copy) NSArray * _Nonnull filteredWallets; -@property (nonatomic, copy) NSArray * _Nonnull filteredNetBanks; -@property (nonatomic, strong) UISearchController * _Nonnull resultSearchController; - (void)viewDidLoad; - (void)didReceiveMemoryWarning; - (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; - (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; - (void)tableView:(UITableView * _Nonnull)tableView didSelectRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath; -- (void)startJuspayBrowserWithParams:(BrowserParams * _Nonnull)params; -- (void)setOptions; - (void)viewWillDisappear:(BOOL)animated; - (void)viewDidAppear:(BOOL)animated; - (void)updateSearchResultsForSearchController:(UISearchController * _Nonnull)searchController; @@ -333,15 +297,9 @@ SWIFT_CLASS("_TtC9Instamojo15ListOptionsView") SWIFT_CLASS("_TtC9Instamojo19MonthYearPickerView") -@interface MonthYearPickerView : UIPickerView -@property (nonatomic, copy) NSArray * _Null_unspecified months; -@property (nonatomic, copy) NSArray * _Null_unspecified years; -@property (nonatomic) NSInteger month; -@property (nonatomic) NSInteger year; -@property (nonatomic, copy) void (^ _Nullable onDateSelected)(NSInteger, NSInteger); +@interface MonthYearPickerView : UIPickerView - (nonnull instancetype)initWithFrame:(CGRect)frame OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -- (void)commonSetup; - (NSInteger)numberOfComponentsInPickerView:(UIPickerView * _Nonnull)pickerView SWIFT_WARN_UNUSED_RESULT; - (NSString * _Nullable)pickerView:(UIPickerView * _Nonnull)pickerView titleForRow:(NSInteger)row forComponent:(NSInteger)component SWIFT_WARN_UNUSED_RESULT; - (NSInteger)pickerView:(UIPickerView * _Nonnull)pickerView numberOfRowsInComponent:(NSInteger)component SWIFT_WARN_UNUSED_RESULT; @@ -349,67 +307,23 @@ SWIFT_CLASS("_TtC9Instamojo19MonthYearPickerView") @end -@interface NSMutableURLRequest (SWIFT_EXTENSION(Instamojo)) -- (void)setBodyContentWithParameters:(NSDictionary * _Nonnull)parameters; -@end SWIFT_CLASS("_TtC9Instamojo15NetBankingBanks") @interface NetBankingBanks : NSObject -@property (nonatomic, copy) NSString * _Null_unspecified bankName; -@property (nonatomic, copy) NSString * _Null_unspecified bankCode; -- (nonnull instancetype)initWithBankName:(NSString * _Nonnull)bankName bankCode:(NSString * _Nonnull)bankCode OBJC_DESIGNATED_INITIALIZER; - (nonnull instancetype)init SWIFT_UNAVAILABLE; @end SWIFT_CLASS("_TtC9Instamojo17NetBankingOptions") @interface NetBankingOptions : NSObject -@property (nonatomic, copy) NSString * _Null_unspecified url; -@property (nonatomic, copy) NSArray * _Null_unspecified banks; -- (nonnull instancetype)initWithUrl:(NSString * _Nonnull)url banks:(NSArray * _Nonnull)banks OBJC_DESIGNATED_INITIALIZER; -- (NSString * _Nonnull)getPostDataWithAccessToken:(NSString * _Nonnull)accessToken bankCode:(NSString * _Nonnull)bankCode SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; @end -@class WalletOptions; -@class UPIOptions; -@class NSDictionary; SWIFT_CLASS("_TtC9Instamojo5Order") @interface Order : NSObject -@property (nonatomic, copy) NSString * _Nullable id; -@property (nonatomic, copy) NSString * _Nullable transactionID; -@property (nonatomic, copy) NSString * _Nullable buyerName; -@property (nonatomic, copy) NSString * _Nullable buyerEmail; -@property (nonatomic, copy) NSString * _Nullable buyerPhone; -@property (nonatomic, copy) NSString * _Nullable amount; -@property (nonatomic, copy) NSString * _Nullable orderDescription; -@property (nonatomic, copy) NSString * _Nullable currency; -@property (nonatomic, copy) NSString * _Nullable redirectionUrl; -@property (nonatomic, copy) NSString * _Nullable webhook; -@property (nonatomic, copy) NSString * _Nullable mode; -@property (nonatomic, copy) NSString * _Nullable authToken; -@property (nonatomic, copy) NSString * _Nullable resourceURI; -@property (nonatomic, copy) NSString * _Nullable clientID; -@property (nonatomic, strong) CardOptions * _Null_unspecified cardOptions; -@property (nonatomic, strong) NetBankingOptions * _Null_unspecified netBankingOptions; -@property (nonatomic, strong) EMIOptions * _Null_unspecified emiOptions; -@property (nonatomic, strong) WalletOptions * _Null_unspecified walletOptions; -@property (nonatomic, strong) UPIOptions * _Null_unspecified upiOptions; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithAuthToken:(NSString * _Nonnull)authToken transactionID:(NSString * _Nonnull)transactionID buyerName:(NSString * _Nonnull)buyerName buyerEmail:(NSString * _Nonnull)buyerEmail buyerPhone:(NSString * _Nonnull)buyerPhone amount:(NSString * _Nonnull)amount description:(NSString * _Nonnull)description webhook:(NSString * _Nonnull)webhook OBJC_DESIGNATED_INITIALIZER; -- (BOOL)isValid SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidName SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidEmail SWIFT_WARN_UNUSED_RESULT; -- (BOOL)validateEmailWithEmail:(NSString * _Nonnull)email SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidPhone SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidAmount SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidDescription SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidTransactionID SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidRedirectURL SWIFT_WARN_UNUSED_RESULT; -- (NSDictionary * _Nonnull)isValidWebhook SWIFT_WARN_UNUSED_RESULT; -- (BOOL)isValidURLWithUrlString:(NSString * _Nonnull)urlString SWIFT_WARN_UNUSED_RESULT; @end @@ -422,38 +336,22 @@ SWIFT_PROTOCOL("_TtP9Instamojo20OrderRequestCallBack_") SWIFT_CLASS("_TtC9Instamojo18PaymentOptionsView") @interface PaymentOptionsView : UIViewController @property (nonatomic, weak) IBOutlet UITableView * _Null_unspecified paymentOptionsTableView; -@property (nonatomic, strong) Order * _Null_unspecified order; -@property (nonatomic, strong) NSMutableArray * _Nonnull paymentOptions; -@property (nonatomic) BOOL paymentCompleted; -@property (nonatomic, strong) UIStoryboard * _Nonnull mainStoryboard; -@property (nonatomic) BOOL isBackButtonNeeded; - (void)viewDidLoad; - (void)exitViewController; - (void)backToViewController; -- (void)reloadDataBasedOnOrder; - (void)didReceiveMemoryWarning; - (NSInteger)tableView:(UITableView * _Nonnull)tableView numberOfRowsInSection:(NSInteger)section SWIFT_WARN_UNUSED_RESULT; - (UITableViewCell * _Nonnull)tableView:(UITableView * _Nonnull)tableView cellForRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath SWIFT_WARN_UNUSED_RESULT; - (void)tableView:(UITableView * _Nonnull)tableView didSelectRowAtIndexPath:(NSIndexPath * _Nonnull)indexPath; -- (void)onNetBankingSelectedWithOptions:(NSString * _Nonnull)options; - (void)viewDidAppear:(BOOL)animated; - (void)viewWillAppear:(BOOL)animated; -- (void)onCreditCardSelected; -- (void)onDebitCardSelected; -- (void)onEmiSelectedWithOptions:(NSString * _Nonnull)options; -- (void)onWalletSelectedWithOptions:(NSString * _Nonnull)options; -- (void)onUPISelected; - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; @end -@class JuspaySafeBrowser; SWIFT_CLASS("_TtC9Instamojo21PaymentViewController") @interface PaymentViewController : UIViewController -@property (nonatomic, strong) JuspaySafeBrowser * _Nonnull juspaySafeBrowser; -@property (nonatomic, strong) BrowserParams * _Null_unspecified params; -@property (nonatomic) BOOL cancelled; - (void)viewDidLoad; - (void)viewDidAppear:(BOOL)animated; - (BOOL)navigationShouldPopOnBackButton SWIFT_WARN_UNUSED_RESULT; @@ -462,79 +360,22 @@ SWIFT_CLASS("_TtC9Instamojo21PaymentViewController") - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; @end -@class UPISubmissionResponse; -@protocol UPICallBack; SWIFT_CLASS("_TtC9Instamojo7Request") @interface Request : NSObject -@property (nonatomic, strong) Order * _Nullable order; -@property (nonatomic, copy) NSString * _Nullable orderID; -@property (nonatomic, copy) NSString * _Nullable accessToken; -@property (nonatomic, strong) Card * _Nullable card; -@property (nonatomic, copy) NSString * _Nullable virtualPaymentAddress; -@property (nonatomic, strong) UPISubmissionResponse * _Nullable upiSubmissionResponse; -@property (nonatomic, strong) id _Nullable orderRequestCallBack; -@property (nonatomic, strong) id _Nullable juspayRequestCallBack; -@property (nonatomic, strong) id _Nullable upiCallBack; -/// Network Request to create an order ID from Instamojo server. -/// @param order Order model with all the mandatory fields set. -/// @param orderRequestCallBack OrderRequestCallBack interface for the Asynchronous Network Call. -- (nonnull instancetype)initWithOrder:(Order * _Nonnull)order orderRequestCallBack:(id _Nonnull)orderRequestCallBack OBJC_DESIGNATED_INITIALIZER; -/// Network Request to get order details from Juspay for JuspaySafeBrowser. -/// @param order Order model with all the mandatory fields set. -/// @param card Card with all the proper validations done. -/// @param jusPayRequestCallBack JusPayRequestCallBack for Asynchronous network call. -- (nonnull instancetype)initWithOrder:(Order * _Nonnull)order card:(Card * _Nonnull)card jusPayRequestCallBack:(id _Nonnull)jusPayRequestCallBack OBJC_DESIGNATED_INITIALIZER; -/// Network request for UPISubmission Submission -/// @param order Order -/// @param virtualPaymentAddress String -/// @param upiCallback UPICallback -- (nonnull instancetype)initWithOrder:(Order * _Nonnull)order virtualPaymentAddress:(NSString * _Nonnull)virtualPaymentAddress upiCallBack:(id _Nonnull)upiCallBack OBJC_DESIGNATED_INITIALIZER; -/// Network Request to check the status of the transaction -/// @param order Order -/// @param upiSubmissionResponse UPISubmissionResponse -/// @param upiCallback UPICallback -- (nonnull instancetype)initWithOrder:(Order * _Nonnull)order upiSubmissionResponse:(UPISubmissionResponse * _Nonnull)upiSubmissionResponse upiCallback:(id _Nonnull)upiCallback OBJC_DESIGNATED_INITIALIZER; -/// Network request to fetch the order -/// @param accessToken String -/// @param orderID String -/// @param orderRequestCallBack OrderRequestCallBack -- (nonnull instancetype)initWithOrderID:(NSString * _Nonnull)orderID accessToken:(NSString * _Nonnull)accessToken orderRequestCallBack:(id _Nonnull)orderRequestCallBack OBJC_DESIGNATED_INITIALIZER; -- (void)execute; -- (void)createOrder; -- (void)updateTransactionDetailsWithJsonResponse:(NSDictionary * _Nonnull)jsonResponse; -- (void)fetchOrder; -- (void)parseOrderWithResponse:(NSDictionary * _Nonnull)response; -- (void)juspayRequest; -- (void)executeUPIRequest; -- (UPISubmissionResponse * _Nonnull)parseUPIResponseWithResponse:(NSDictionary * _Nonnull)response SWIFT_WARN_UNUSED_RESULT; -- (void)upiStatusCheck; -- (NSString * _Nonnull)getUserAgent SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; @end -@class UIActivityIndicatorView; -@class UIBlurEffect; @class UIVisualEffect; SWIFT_CLASS("_TtC9Instamojo7Spinner") @interface Spinner : UIVisualEffectView -@property (nonatomic, copy) NSString * _Nullable text; -@property (nonatomic, readonly, strong) UIView * _Nonnull background; -@property (nonatomic, readonly, strong) UIActivityIndicatorView * _Nonnull activityIndictor; -@property (nonatomic, readonly, strong) UILabel * _Nonnull label; -@property (nonatomic, readonly, strong) UIBlurEffect * _Nonnull blurEffect; -@property (nonatomic, readonly, strong) UIVisualEffectView * _Nonnull vibrancyView; -- (nonnull instancetype)initWithText:(NSString * _Nonnull)text OBJC_DESIGNATED_INITIALIZER; -- (void)setTextWithText:(NSString * _Nonnull)text; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; -- (void)setup; - (void)didMoveToSuperview; -- (void)show; -- (void)hide; - (nonnull instancetype)initWithEffect:(UIVisualEffect * _Nullable)effect SWIFT_UNAVAILABLE; @end +@class UPISubmissionResponse; SWIFT_PROTOCOL("_TtP9Instamojo11UPICallBack_") @protocol UPICallBack @@ -545,9 +386,7 @@ SWIFT_PROTOCOL("_TtP9Instamojo11UPICallBack_") SWIFT_CLASS("_TtC9Instamojo10UPIOptions") @interface UPIOptions : NSObject -@property (nonatomic, copy) NSString * _Nonnull url; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithUrl:(NSString * _Nonnull)url OBJC_DESIGNATED_INITIALIZER; @end @@ -556,10 +395,6 @@ SWIFT_CLASS("_TtC9Instamojo14UPIPaymentView") @property (nonatomic, weak) IBOutlet UIView * _Null_unspecified alertMessageView; @property (nonatomic, weak) IBOutlet UIView * _Null_unspecified vpaDetailsView; @property (nonatomic, weak) IBOutlet UITextField * _Null_unspecified vpa; -@property (nonatomic, strong) Order * _Null_unspecified order; -@property (nonatomic, strong) UPISubmissionResponse * _Null_unspecified upiSubmissionResponse; -@property (nonatomic, strong) Spinner * _Null_unspecified spinner; -@property (nonatomic) BOOL continueCheck; - (void)viewDidLoad; - (BOOL)textFieldShouldReturn:(UITextField * _Nonnull)textField SWIFT_WARN_UNUSED_RESULT; - (void)viewWillDisappear:(BOOL)animated; @@ -567,10 +402,7 @@ SWIFT_CLASS("_TtC9Instamojo14UPIPaymentView") - (void)viewDidAppear:(BOOL)animated; - (void)verifyPaymentWithSender:(UIBarButtonItem * _Nonnull)sender; - (void)onSubmissionWithUpiSubmissionResponse:(UPISubmissionResponse * _Nonnull)upiSubmissionResponse exception:(NSString * _Nonnull)exception; -- (void)checkForStatusTransaction; - (void)onStatusCheckCompleteWithPaymentComplete:(BOOL)paymentComplete status:(NSInteger)status; -- (void)onPaymentStatusCompleteWithMessage:(NSString * _Nonnull)message; -- (void)showAlertWithTitle:(NSString * _Nonnull)title errorMessage:(NSString * _Nonnull)errorMessage; - (nonnull instancetype)initWithNibName:(NSString * _Nullable)nibNameOrNil bundle:(NSBundle * _Nullable)nibBundleOrNil OBJC_DESIGNATED_INITIALIZER; - (nullable instancetype)initWithCoder:(NSCoder * _Nonnull)aDecoder OBJC_DESIGNATED_INITIALIZER; @end @@ -578,35 +410,20 @@ SWIFT_CLASS("_TtC9Instamojo14UPIPaymentView") SWIFT_CLASS("_TtC9Instamojo21UPISubmissionResponse") @interface UPISubmissionResponse : NSObject -@property (nonatomic, copy) NSString * _Nonnull paymentID; -@property (nonatomic) NSInteger statusCode; -@property (nonatomic, copy) NSString * _Nonnull payerVirtualAddress; -@property (nonatomic, copy) NSString * _Nonnull payeeVirtualAddress; -@property (nonatomic, copy) NSString * _Nonnull statusCheckURL; -@property (nonatomic, copy) NSString * _Nonnull upiBank; -@property (nonatomic, copy) NSString * _Nonnull statusMessage; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithPaymentID:(NSString * _Nonnull)paymentID statusCode:(NSInteger)statusCode payerVirtualAddress:(NSString * _Nonnull)payerVirtualAddress payeeVirtualAddress:(NSString * _Nonnull)payeeVirtualAddress statusCheckURL:(NSString * _Nonnull)statusCheckURL upiBank:(NSString * _Nonnull)upiBank statusMessage:(NSString * _Nonnull)statusMessage OBJC_DESIGNATED_INITIALIZER; @end SWIFT_CLASS("_TtC9Instamojo6Wallet") @interface Wallet : NSObject -@property (nonatomic, copy) NSString * _Nonnull name; -@property (nonatomic, copy) NSString * _Nonnull imageUrl; -@property (nonatomic, copy) NSString * _Nonnull walletID; - (nonnull instancetype)init OBJC_DESIGNATED_INITIALIZER; -- (nonnull instancetype)initWithName:(NSString * _Nonnull)name imageUrl:(NSString * _Nonnull)imageUrl walletID:(NSString * _Nonnull)walletID OBJC_DESIGNATED_INITIALIZER; @end SWIFT_CLASS("_TtC9Instamojo13WalletOptions") @interface WalletOptions : NSObject -@property (nonatomic, copy) NSString * _Null_unspecified url; -@property (nonatomic, copy) NSArray * _Null_unspecified wallets; -- (nonnull instancetype)initWithUrl:(NSString * _Nonnull)url wallets:(NSArray * _Nonnull)wallets OBJC_DESIGNATED_INITIALIZER; -- (NSString * _Nonnull)getPostDataWithAccessToken:(NSString * _Nonnull)accessToken walletID:(NSString * _Nonnull)walletID SWIFT_WARN_UNUSED_RESULT; - (nonnull instancetype)init SWIFT_UNAVAILABLE; @end +SWIFT_MODULE_NAMESPACE_POP #pragma clang diagnostic pop diff --git a/Instamojo.framework/Info.plist b/Instamojo.framework/Info.plist index 8c14911..42cbc23 100644 Binary files a/Instamojo.framework/Info.plist and b/Instamojo.framework/Info.plist differ diff --git a/Instamojo.framework/Instamojo b/Instamojo.framework/Instamojo index a166e04..1af7bfc 100755 Binary files a/Instamojo.framework/Instamojo and b/Instamojo.framework/Instamojo differ diff --git a/Instamojo.framework/InstamojoStoryboard.storyboardc/Ayd-f7-0GG-view-feG-x4-aZj.nib b/Instamojo.framework/InstamojoStoryboard.storyboardc/Ayd-f7-0GG-view-feG-x4-aZj.nib index 3e1e681..4550c66 100644 Binary files a/Instamojo.framework/InstamojoStoryboard.storyboardc/Ayd-f7-0GG-view-feG-x4-aZj.nib and b/Instamojo.framework/InstamojoStoryboard.storyboardc/Ayd-f7-0GG-view-feG-x4-aZj.nib differ diff --git a/Instamojo.framework/InstamojoStoryboard.storyboardc/Cc0-EI-h9R-view-eyY-co-RLW.nib b/Instamojo.framework/InstamojoStoryboard.storyboardc/Cc0-EI-h9R-view-eyY-co-RLW.nib index 87f34f6..8e34139 100644 Binary files a/Instamojo.framework/InstamojoStoryboard.storyboardc/Cc0-EI-h9R-view-eyY-co-RLW.nib and b/Instamojo.framework/InstamojoStoryboard.storyboardc/Cc0-EI-h9R-view-eyY-co-RLW.nib differ diff --git a/Instamojo.framework/InstamojoStoryboard.storyboardc/PaymentOptions.nib b/Instamojo.framework/InstamojoStoryboard.storyboardc/PaymentOptions.nib index 5ac8bd3..65282fd 100644 Binary files a/Instamojo.framework/InstamojoStoryboard.storyboardc/PaymentOptions.nib and b/Instamojo.framework/InstamojoStoryboard.storyboardc/PaymentOptions.nib differ diff --git a/Instamojo.framework/InstamojoStoryboard.storyboardc/cUp-xP-ZoS-view-p2R-hZ-ECO.nib b/Instamojo.framework/InstamojoStoryboard.storyboardc/cUp-xP-ZoS-view-p2R-hZ-ECO.nib index 0ca3152..688df99 100644 Binary files a/Instamojo.framework/InstamojoStoryboard.storyboardc/cUp-xP-ZoS-view-p2R-hZ-ECO.nib and b/Instamojo.framework/InstamojoStoryboard.storyboardc/cUp-xP-ZoS-view-p2R-hZ-ECO.nib differ diff --git a/Instamojo.framework/InstamojoStoryboard.storyboardc/cardFormView.nib b/Instamojo.framework/InstamojoStoryboard.storyboardc/cardFormView.nib index 1cea550..967ccca 100644 Binary files a/Instamojo.framework/InstamojoStoryboard.storyboardc/cardFormView.nib and b/Instamojo.framework/InstamojoStoryboard.storyboardc/cardFormView.nib differ diff --git a/Instamojo.framework/InstamojoStoryboard.storyboardc/emiOptions.nib b/Instamojo.framework/InstamojoStoryboard.storyboardc/emiOptions.nib index d998534..093c4e5 100644 Binary files a/Instamojo.framework/InstamojoStoryboard.storyboardc/emiOptions.nib and b/Instamojo.framework/InstamojoStoryboard.storyboardc/emiOptions.nib differ diff --git a/Instamojo.framework/InstamojoStoryboard.storyboardc/iOY-Af-8GG-view-zgG-85-GxC.nib b/Instamojo.framework/InstamojoStoryboard.storyboardc/iOY-Af-8GG-view-zgG-85-GxC.nib index 44abc0c..bd21816 100644 Binary files a/Instamojo.framework/InstamojoStoryboard.storyboardc/iOY-Af-8GG-view-zgG-85-GxC.nib and b/Instamojo.framework/InstamojoStoryboard.storyboardc/iOY-Af-8GG-view-zgG-85-GxC.nib differ diff --git a/Instamojo.framework/InstamojoStoryboard.storyboardc/juspay.nib b/Instamojo.framework/InstamojoStoryboard.storyboardc/juspay.nib index 68ab5fd..4c8049b 100644 Binary files a/Instamojo.framework/InstamojoStoryboard.storyboardc/juspay.nib and b/Instamojo.framework/InstamojoStoryboard.storyboardc/juspay.nib differ diff --git a/Instamojo.framework/InstamojoStoryboard.storyboardc/ljo-45-45L-view-4DD-nw-zQ4.nib b/Instamojo.framework/InstamojoStoryboard.storyboardc/ljo-45-45L-view-4DD-nw-zQ4.nib index bd28505..aa25a3e 100644 Binary files a/Instamojo.framework/InstamojoStoryboard.storyboardc/ljo-45-45L-view-4DD-nw-zQ4.nib and b/Instamojo.framework/InstamojoStoryboard.storyboardc/ljo-45-45L-view-4DD-nw-zQ4.nib differ diff --git a/Instamojo.framework/InstamojoStoryboard.storyboardc/optionsView.nib b/Instamojo.framework/InstamojoStoryboard.storyboardc/optionsView.nib index 3670440..f403aef 100644 Binary files a/Instamojo.framework/InstamojoStoryboard.storyboardc/optionsView.nib and b/Instamojo.framework/InstamojoStoryboard.storyboardc/optionsView.nib differ diff --git a/Instamojo.framework/InstamojoStoryboard.storyboardc/puG-9A-NNu-view-hyj-m5-Qmb.nib b/Instamojo.framework/InstamojoStoryboard.storyboardc/puG-9A-NNu-view-hyj-m5-Qmb.nib index c4fa8ec..b668aaa 100644 Binary files a/Instamojo.framework/InstamojoStoryboard.storyboardc/puG-9A-NNu-view-hyj-m5-Qmb.nib and b/Instamojo.framework/InstamojoStoryboard.storyboardc/puG-9A-NNu-view-hyj-m5-Qmb.nib differ diff --git a/Instamojo.framework/InstamojoStoryboard.storyboardc/upiPaymentView.nib b/Instamojo.framework/InstamojoStoryboard.storyboardc/upiPaymentView.nib index 6cd95f7..058d881 100644 Binary files a/Instamojo.framework/InstamojoStoryboard.storyboardc/upiPaymentView.nib and b/Instamojo.framework/InstamojoStoryboard.storyboardc/upiPaymentView.nib differ diff --git a/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftdoc b/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftdoc index 2845a51..ccfdc7e 100644 Binary files a/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftdoc and b/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftdoc differ diff --git a/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftmodule b/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftmodule index df35c04..b2d5376 100644 Binary files a/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftmodule and b/Instamojo.framework/Modules/Instamojo.swiftmodule/arm.swiftmodule differ diff --git a/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftdoc b/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftdoc index 72cdbad..ba1be7e 100644 Binary files a/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftdoc and b/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftdoc differ diff --git a/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftmodule b/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftmodule index a903192..42fdb3f 100644 Binary files a/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftmodule and b/Instamojo.framework/Modules/Instamojo.swiftmodule/arm64.swiftmodule differ diff --git a/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftdoc b/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftdoc index 956b86c..e37b538 100644 Binary files a/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftdoc and b/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftdoc differ diff --git a/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftmodule b/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftmodule index 66a8234..8a2fadc 100644 Binary files a/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftmodule and b/Instamojo.framework/Modules/Instamojo.swiftmodule/i386.swiftmodule differ diff --git a/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftdoc b/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftdoc index 4f6e5f0..8c273a4 100644 Binary files a/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftdoc and b/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftdoc differ diff --git a/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftmodule b/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftmodule index feec649..14f8ba3 100644 Binary files a/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftmodule and b/Instamojo.framework/Modules/Instamojo.swiftmodule/x86_64.swiftmodule differ diff --git a/Instamojo.framework/Modules/module.modulemap b/Instamojo.framework/Modules/module.modulemap index b82aadb..fa47ea5 100644 --- a/Instamojo.framework/Modules/module.modulemap +++ b/Instamojo.framework/Modules/module.modulemap @@ -1,3 +1,4 @@ framework module Instamojo { header "Instamojo-Swift.h" + requires objc } diff --git a/Instamojo.podspec b/Instamojo.podspec index 0c83cb2..b3d5c3c 100644 --- a/Instamojo.podspec +++ b/Instamojo.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "Instamojo" - s.version = "1.0.11" + s.version = "1.0.12" s.summary = "Instamojo iOS SDK" s.homepage = "https://www.instamojo.com" s.license = "LGPL" diff --git a/Instamojo.xcodeproj/project.pbxproj b/Instamojo.xcodeproj/project.pbxproj index dbe3c39..77b8c33 100644 --- a/Instamojo.xcodeproj/project.pbxproj +++ b/Instamojo.xcodeproj/project.pbxproj @@ -650,7 +650,7 @@ SKIP_INSTALL = YES; SWIFT_OBJC_BRIDGING_HEADER = "Instamojo-Bridging-Header.h"; SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Debug; @@ -680,7 +680,7 @@ PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SWIFT_OBJC_BRIDGING_HEADER = "Instamojo-Bridging-Header.h"; - SWIFT_VERSION = 3.0; + SWIFT_VERSION = 4.0; TARGETED_DEVICE_FAMILY = "1,2"; }; name = Release;