Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update branch to latest version #1078

Merged
merged 3 commits into from
Sep 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ android {
}

dependencies {
implementation project(':react-native-branch')
implementation project(':react-native-fabric')
implementation project(':@react-native-community_netinfo')
implementation project(':react-native-view-shot')
Expand All @@ -271,7 +272,6 @@ dependencies {
implementation 'androidx.appcompat:appcompat:1.0.0'
implementation "com.facebook.react:react-native:+" // From node_modules

implementation project(':react-native-branch')
implementation "io.branch.sdk.android:library:3.0.4"

implementation project(':react-native-web3-webview')
Expand Down
4 changes: 2 additions & 2 deletions android/app/src/main/java/io/metamask/MainApplication.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package io.metamask;

import com.facebook.react.ReactApplication;
import io.branch.rnbranch.RNBranchPackage;
import com.smixx.fabric.FabricPackage;
import com.reactnativecommunity.netinfo.NetInfoPackage;
import fr.greweb.reactnativeviewshot.RNViewShotPackage;
Expand All @@ -11,7 +12,6 @@
import com.learnium.RNDeviceInfo.RNDeviceInfo;
import com.horcrux.svg.SvgPackage;
import com.swmansion.gesturehandler.react.RNGestureHandlerPackage;
import io.branch.rnbranch.RNBranchPackage;
import io.branch.rnbranch.RNBranchModule;
import com.web3webview.Web3WebviewPackage;
import io.metamask.nativeModules.RCTAnalyticsPackage;
Expand Down Expand Up @@ -48,6 +48,7 @@ public boolean getUseDeveloperSupport() {
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new RNBranchPackage(),
new FabricPackage(),
new NetInfoPackage(),
new RNViewShotPackage(),
Expand All @@ -59,7 +60,6 @@ protected List<ReactPackage> getPackages() {
new SvgPackage(),
new RNGestureHandlerPackage(),
new RNScreensPackage(),
new RNBranchPackage(),
new KeychainPackage(),
new RandomBytesPackage(),
new RCTAesPackage(),
Expand Down
4 changes: 2 additions & 2 deletions android/settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
rootProject.name = 'MetaMask'
include ':react-native-branch'
project(':react-native-branch').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-branch/android')
include ':react-native-fabric'
project(':react-native-fabric').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-fabric/android')
include ':@react-native-community_netinfo'
Expand All @@ -21,8 +23,6 @@ include ':react-native-gesture-handler'
project(':react-native-gesture-handler').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-gesture-handler/android')
include ':react-native-screens'
project(':react-native-screens').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-screens/android')
include ':react-native-branch'
project(':react-native-branch').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-branch/android')

// include ':detox'
// project(':detox').projectDir = new File(rootProject.projectDir, '../node_modules/detox/android/detox')
Expand Down
Binary file added ios/Branch.framework/Branch
Binary file not shown.
25 changes: 25 additions & 0 deletions ios/Branch.framework/Headers/BNCAvailability.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
//
// BNCAvailability.h
// Branch-SDK
//
// Created by Edward on 10/26/16.
// Copyright © 2016 Branch Metrics. All rights reserved.
//

#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif

#if defined(__IPHONE_OS_VERSION_MAX_ALLOWED) && __IPHONE_OS_VERSION_MAX_ALLOWED < __IPHONE_10_0
#warning Warning: Compiling with pre-iOS 10 / Xcode 7 support.

typedef NSString * UIActivityType;
typedef NSString * UIApplicationOpenURLOptionsKey;

#endif

#ifndef NS_STRING_ENUM
#define NS_STRING_ENUM
#endif
22 changes: 22 additions & 0 deletions ios/Branch.framework/Headers/BNCCallbacks.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//
// BNCCallbacks.h
// Branch-TestBed
//
// Created by Ahmed Nawar on 6/18/16.
// Copyright © 2016 Branch Metrics. All rights reserved.
//

#if __has_feature(modules)
@import Foundation;
#else
#import <Foundation/Foundation.h>
#endif

@class BranchUniversalObject, BranchLinkProperties;

typedef void (^callbackWithParams) (NSDictionary * _Nullable params, NSError * _Nullable error);
typedef void (^callbackWithUrl) (NSString * _Nullable url, NSError * _Nullable error);
typedef void (^callbackWithStatus) (BOOL changed, NSError * _Nullable error);
typedef void (^callbackWithList) (NSArray * _Nullable list, NSError * _Nullable error);
typedef void (^callbackWithUrlAndSpotlightIdentifier) (NSString * _Nullable url, NSString * _Nullable spotlightIdentifier, NSError * _Nullable error);
typedef void (^callbackWithBranchUniversalObject) (BranchUniversalObject * _Nullable universalObject, BranchLinkProperties * _Nullable linkProperties, NSError * _Nullable error);
273 changes: 273 additions & 0 deletions ios/Branch.framework/Headers/BNCCommerceEvent.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,273 @@
//
// BNCCommerceEvent.h
// Branch-SDK
//
// Created by Edward Smith on 12/14/16.
// Copyright (c) 2016 Branch Metrics. All rights reserved.
//

#import "BNCServerRequest.h"
#import "BNCAvailability.h"

#pragma mark BNCProductCategory

typedef NSString*const BNCProductCategory NS_STRING_ENUM;

FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryAnimalSupplies;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryApparel;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryArtsEntertainment;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryBabyToddler;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryBusinessIndustrial;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryCamerasOptics;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryElectronics;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryFoodBeverageTobacco;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryFurniture;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryHardware;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryHealthBeauty;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryHomeGarden;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryLuggageBags;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryMature;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryMedia;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryOfficeSupplies;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryReligious;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategorySoftware;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategorySportingGoods;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryToysGames;
FOUNDATION_EXPORT BNCProductCategory _Nonnull BNCProductCategoryVehiclesParts;

NSArray<BNCProductCategory>*_Nonnull BNCProductCategoryAllCategories(void);

#pragma mark - BNCCurrency

typedef NSString*const BNCCurrency NS_STRING_ENUM;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyAED;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyAFN;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyALL;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyAMD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyANG;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyAOA;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyARS;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyAUD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyAWG;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyAZN;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBAM;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBBD;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBDT;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBGN;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBHD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBIF;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBMD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBND;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBOB;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBOV;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBRL;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBSD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBTN;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBWP;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBYN;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBYR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyBZD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCAD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCDF;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCHE;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCHF;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCHW;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCLF;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCLP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCNY;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCOP;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCOU;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCRC;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCUC;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCUP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCVE;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyCZK;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyDJF;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyDKK;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyDOP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyDZD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyEGP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyERN;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyETB;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyEUR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyFJD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyFKP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyGBP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyGEL;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyGHS;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyGIP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyGMD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyGNF;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyGTQ;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyGYD;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyHKD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyHNL;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyHRK;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyHTG;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyHUF;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyIDR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyILS;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyINR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyIQD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyIRR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyISK;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyJMD;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyJOD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyJPY;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyKES;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyKGS;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyKHR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyKMF;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyKPW;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyKRW;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyKWD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyKYD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyKZT;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyLAK;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyLBP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyLKR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyLRD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyLSL;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyLYD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMAD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMDL;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMGA;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMKD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMMK;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMNT;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMOP;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMRO;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMUR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMVR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMWK;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMXN;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMXV;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMYR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyMZN;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyNAD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyNGN;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyNIO;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyNOK;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyNPR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyNZD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyOMR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyPAB;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyPEN;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyPGK;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyPHP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyPKR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyPLN;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyPYG;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyQAR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyRON;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyRSD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyRUB;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyRWF;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySAR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySBD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySCR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySDG;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySEK;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySGD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySHP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySLL;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySOS;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySRD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySSP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySTD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySYP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencySZL;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyTHB;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyTJS;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyTMT;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyTND;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyTOP;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyTRY;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyTTD;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyTWD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyTZS;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyUAH;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyUGX;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyUSD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyUSN;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyUYI;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyUYU;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyUZS;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyVEF;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyVND;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyVUV;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyWST;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXAF;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXAG;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXAU;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXBA;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXBB;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXBC;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXBD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXCD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXDR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXFU;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXOF;

FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXPD;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXPF;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXPT;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXSU;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXTS;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXUA;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyXXX;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyYER;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyZAR;
FOUNDATION_EXPORT BNCCurrency _Nonnull BNCCurrencyZMW;

NSArray<BNCCurrency>*_Nonnull BNCCurrencyAllCurrencies(void);

#pragma mark - BNCProduct

@interface BNCProduct : NSObject
@property (nonatomic, strong) NSString*_Nullable sku;
@property (nonatomic, strong) NSString*_Nullable name;
@property (nonatomic, strong) NSDecimalNumber*_Nullable price;
@property (nonatomic, strong) NSNumber*_Nullable quantity;
@property (nonatomic, strong) NSString*_Nullable brand;
@property (nonatomic, strong) BNCProductCategory _Nullable category;
@property (nonatomic, strong) NSString*_Nullable variant;
@end

#pragma mark - BNCCommerceEvent

//__attribute__((deprecated(("Please use BranchEvent to track commerce events."))))
@interface BNCCommerceEvent : NSObject
@property (nonatomic, strong) NSDecimalNumber*_Nullable revenue;
@property (nonatomic, strong) BNCCurrency _Nullable currency;
@property (nonatomic, strong) NSString*_Nullable transactionID;
@property (nonatomic, strong) NSDecimalNumber*_Nullable shipping;
@property (nonatomic, strong) NSDecimalNumber*_Nullable tax;
@property (nonatomic, strong) NSString*_Nullable coupon;
@property (nonatomic, strong) NSString*_Nullable affiliation;
@property (nonatomic, strong) NSArray<BNCProduct*>*_Nullable products;
@end


@interface BranchCommerceEventRequest : BNCServerRequest <NSSecureCoding>

- (instancetype _Nonnull) initWithCommerceEvent:(BNCCommerceEvent*_Nonnull)commerceEvent
metadata:(NSDictionary*_Nullable)dictionary
completion:
(void (^_Nullable)(NSDictionary*_Nullable response, NSError*_Nullable error))callBack;

@end
Loading