Skip to content

Commit

Permalink
Merge pull request #385 from BranchMetrics/bulky
Browse files Browse the repository at this point in the history
lots of fixes
  • Loading branch information
ethanneff authored Oct 31, 2017
2 parents 7017650 + 243165a commit b11855a
Show file tree
Hide file tree
Showing 46 changed files with 3,036 additions and 74 deletions.
18 changes: 0 additions & 18 deletions build.gradle

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "branch-cordova-sdk",
"description": "Branch Metrics Cordova SDK",
"main": "src/branch.js",
"version": "2.6.15",
"version": "2.6.16",
"homepage": "https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking",
"repository": {
"type": "git",
Expand Down
4 changes: 2 additions & 2 deletions plugin.template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SOFTWARE.
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="branch-cordova-sdk"
version="2.6.15">
version="2.6.16">

<!-- DO NOT EDIT THIS FILE. MAKE ALL CHANGES TO plugin.template.xml INSTEAD -->

Expand Down Expand Up @@ -63,7 +63,7 @@ SOFTWARE.
</config-file>

<source-file src="src/android/io/branch/BranchSDK.java" target-dir="src/io/branch" />
<framework src="build.gradle" custom="true" type="gradleReference" />
<lib-file src="src/android/dependencies/Branch.jar" />
</platform>

<!-- iOS -->
Expand Down
4 changes: 2 additions & 2 deletions plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ SOFTWARE.
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="branch-cordova-sdk"
version="2.6.15">
version="2.6.16">

<!-- DO NOT EDIT THIS FILE. MAKE ALL CHANGES TO plugin.template.xml INSTEAD -->

Expand Down Expand Up @@ -63,7 +63,7 @@ SOFTWARE.
</config-file>

<source-file src="src/android/io/branch/BranchSDK.java" target-dir="src/io/branch" />
<framework src="build.gradle" custom="true" type="gradleReference" />
<lib-file src="src/android/dependencies/Branch.jar" />
</platform>

<!-- iOS -->
Expand Down
Binary file not shown.
Binary file added src/ios/Branch.framework/Branch
Binary file not shown.
21 changes: 21 additions & 0 deletions src/ios/Branch.framework/Headers/BNCCallbacks.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
//
// BNCCallbacks.h
// Branch-TestBed
//
// Created by Ahmed Nawar on 6/18/16.
// Copyright © 2016 Branch Metrics. All rights reserved.
//

#ifndef BNCCallbacks_h
#define BNCCallbacks_h

@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);

#endif /* BNCCallbacks_h */
269 changes: 269 additions & 0 deletions src/ios/Branch.framework/Headers/BNCCommerceEvent.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,269 @@
//
// BNCCommerceEvent.h
// BranchSDK-iOS
//
// Created by Edward Smith on 12/14/16.
// Copyright (c) 2016 Branch Metrics. All rights reserved.
//


@import Foundation;
#import "BNCServerRequest.h"


#pragma mark BNCProductCategory

typedef NSString*const BNCProductCategory;

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

#pragma mark - BNCCurrency

typedef NSString*const BNCCurrency;

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

#pragma mark - BNCProduct

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

#pragma mark - BNCCommerceEvent

@interface BNCCommerceEvent : NSObject
@property (nonatomic, strong) NSDecimalNumber *revenue;
@property (nonatomic, strong) BNCCurrency currency;
@property (nonatomic, strong) NSString *transactionID;
@property (nonatomic, strong) NSDecimalNumber *shipping;
@property (nonatomic, strong) NSDecimalNumber *tax;
@property (nonatomic, strong) NSString *coupon;
@property (nonatomic, strong) NSString *affiliation;
@property (nonatomic, strong) NSArray<BNCProduct*> *products;
@end


@interface BranchCommerceEventRequest : BNCServerRequest <NSCoding>

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

@end
15 changes: 15 additions & 0 deletions src/ios/Branch.framework/Headers/BNCConfig.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
//
// BNCConfig.h
// Branch-SDK
//
// Created by Qinwei Gong on 10/6/14.
// Copyright (c) 2014 Branch Metrics. All rights reserved.
//

@import Foundation;

extern NSString * const BNC_SDK_VERSION;
extern NSString * const BNC_API_VERSION;
extern BOOL const BNC_API_PINNED;
extern NSString * const BNC_API_BASE_URL;
extern NSString * const BNC_LINK_URL;
Loading

0 comments on commit b11855a

Please sign in to comment.