Skip to content

Commit

Permalink
updated README. replace branch keys. updated init.sh.
Browse files Browse the repository at this point in the history
  • Loading branch information
jestoniyap committed Mar 11, 2016
1 parent cdb891f commit 66493bc
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ testbed/plugins
testbed/hooks
node_modules
testbed/ul_web_hooks/
.installed
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ There's a full demo app embedded in this repository. It should serve as an examp
**The compiled iOS SDK footprint is 180kb**
**The compiled Android SDK footprint is 187kb**

### Command link install
### Command link install

**Install parameters:**
* `BRANCH_LIVE_KEY` - Your Branch live API key. You can sign up for your own Branch key at [https://dashboard.branch.io](https://dashboard.branch.io).
Expand All @@ -36,7 +36,7 @@ cordova plugin add https://github.com/BranchMetrics/Cordova-Ionic-PhoneGap-Defer
```
example:
```sh
cordova plugin add https://github.com/BranchMetrics/Cordova-Ionic-PhoneGap-Deferred-Deep-Linking-SDK.git --variable BRANCH_LIVE_KEY=key_live_gchnKkd3l3m9YBPP2d73jmfejkcgVjgM --variable BRANCH_LIVE_KEY=key_test_hdcBLUy1xZ1JD0tKg7qrLcgirFmPPVJc --variable URI_SCHEME=branchsters
cordova plugin add https://github.com/BranchMetrics/Cordova-Ionic-PhoneGap-Deferred-Deep-Linking-SDK.git --variable BRANCH_LIVE_KEY=key_live_fnmRM1FXtu11t6e4LU8WsldpvDcA0bzv --variable BRANCH_TEST_KEY=key_test_oicIH5u2yxW9w3i6UZdfCiokyrixWpBJ --variable URI_SCHEME=branchsters
```

#### Phonegap
Expand All @@ -47,7 +47,7 @@ phonegap plugin add https://github.com/BranchMetrics/Cordova-Ionic-PhoneGap-Defe

example:
```sh
phonegap plugin add https://github.com/BranchMetrics/Cordova-Ionic-PhoneGap-Deferred-Deep-Linking-SDK.git --variable BRANCH_LIVE_KEY=key_live_gchnKkd3l3m9YBPP2d73jmfejkcgVjgM --variable BRANCH_LIVE_KEY=key_test_hdcBLUy1xZ1JD0tKg7qrLcgirFmPPVJc --variable URI_SCHEME=branchsters
phonegap plugin add https://github.com/BranchMetrics/Cordova-Ionic-PhoneGap-Deferred-Deep-Linking-SDK.git --variable BRANCH_LIVE_KEY=key_live_fnmRM1FXtu11t6e4LU8WsldpvDcA0bzv --variable BRANCH_TEST_KEY=key_test_oicIH5u2yxW9w3i6UZdfCiokyrixWpBJ --variable URI_SCHEME=branchsters
```

#### NPM
Expand All @@ -60,7 +60,7 @@ npm install branch-cordova-sdk --variable BRANCH_LIVE_KEY=your-branch-key --vari

example:
```sh
npm install branch-cordova-sdk --variable BRANCH_LIVE_KEY=key_live_gchnKkd3l3m9YBPP2d73jmfejkcgVjgM --variable BRANCH_LIVE_KEY=key_test_hdcBLUy1xZ1JD0tKg7qrLcgirFmPPVJc --variable URI_SCHEME=branchsters
npm install branch-cordova-sdk --variable BRANCH_LIVE_KEY=key_live_fnmRM1FXtu11t6e4LU8WsldpvDcA0bzv --variable BRANCH_TEST_KEY=key_test_oicIH5u2yxW9w3i6UZdfCiokyrixWpBJ --variable URI_SCHEME=branchsters
```

### Additional App Permissions
Expand All @@ -85,7 +85,7 @@ Add the following entry to your application's `config.xml`:
<host name="bnc.lt" scheme="https">
<path prefix="your_encoded_id"/>
<!--optional test ENV encoded id-->
<path prefix="/your_encoded_id"/>
<path prefix="/your_encoded_id"/>
</host>
</universal-links>
```
Expand Down
78 changes: 77 additions & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ SOFTWARE.
<!-- Hooks -->
<hook src="hooks/afterPrepareHook.js" type="after_prepare" />
<hook src="hooks/beforePluginInstallHook.js" type="before_plugin_install" />

<engines>
<engine name="cordova" version=">=3.0.0" />
</engines>
Expand Down Expand Up @@ -105,6 +105,82 @@ SOFTWARE.
<header-file src="src/ios/BranchSDK.h" />
<source-file src="src/ios/BranchSDK.m" />
<source-file src="src/ios/AppDelegate+BranchSdk.m" />
<!-- COMMENT if building for NPM -->
<framework custom="true" src="src/ios/dependencies/Branch.framework" />
<!-- UNCOMMENT if building for NPM -->
<!-- <header-file src="src/ios/dependencies/Branch-SDK/BNCConfig.h" />
<header-file src="src/ios/dependencies/Branch-SDK/BNCContentDiscoveryManager.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BNCContentDiscoveryManager.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BNCEncodingUtils.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BNCEncodingUtils.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BNCError.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BNCError.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BNCLinkCache.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BNCLinkCache.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BNCLinkData.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BNCLinkData.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BNCPreferenceHelper.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BNCPreferenceHelper.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BNCServerInterface.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BNCServerInterface.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BNCServerRequestQueue.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BNCServerRequestQueue.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BNCServerResponse.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BNCServerResponse.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BNCStrongMatchHelper.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BNCStrongMatchHelper.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BNCSystemObserver.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BNCSystemObserver.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Branch-SDK-Prefix.pch" />
<header-file src="src/ios/dependencies/Branch-SDK/Branch.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Branch.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BranchActivityItemProvider.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BranchActivityItemProvider.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BranchConstants.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BranchConstants.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BranchCSSearchableItemAttributeSet.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BranchCSSearchableItemAttributeSet.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BranchDeepLinkingController.h" />
<header-file src="src/ios/dependencies/Branch-SDK/BranchLinkProperties.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BranchLinkProperties.m" />
<header-file src="src/ios/dependencies/Branch-SDK/BranchUniversalObject.h" />
<source-file src="src/ios/dependencies/Branch-SDK/BranchUniversalObject.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BNCServerRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BNCServerRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchApplyPromoCodeRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchApplyPromoCodeRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchCloseRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchCloseRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchCreditHistoryRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchCreditHistoryRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchGetPromoCodeRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchGetPromoCodeRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchInstallRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchInstallRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchLoadActionsRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchLoadActionsRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchLoadRewardsRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchLoadRewardsRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchLogoutRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchLogoutRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchOpenRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchOpenRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchRedeemRewardsRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchRedeemRewardsRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchRegisterViewRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchRegisterViewRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchSetIdentityRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchSetIdentityRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchShortUrlRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchShortUrlRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchShortUrlSyncRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchShortUrlSyncRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchSpotlightUrlRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchSpotlightUrlRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchUserCompletedActionRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchUserCompletedActionRequest.m" />
<header-file src="src/ios/dependencies/Branch-SDK/Requests/BranchValidatePromoCodeRequest.h" />
<source-file src="src/ios/dependencies/Branch-SDK/Requests/BranchValidatePromoCodeRequest.m" /> -->
</platform>
</plugin>
3 changes: 1 addition & 2 deletions testbed/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@
<universal-links>
<ios-team-id value="4XE8MVRXHY" />
<host name="bnc.lt" scheme="https">
<path prefix="/xhsd"/>
<path prefix="/Ojqd"/>
<path prefix="/X9Ug"/>
</host>
</universal-links>
</widget>
2 changes: 1 addition & 1 deletion testbed/init.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash
cordova platform add ios android
cordova plugin add ../ --link --variable BRANCH_LIVE_KEY=key_live_feebgAAhbH9Tv85H5wLQhpdaefiZv5Dv --variable BRANCH_TEST_KEY=key_test_hdcBLUy1xZ1JD0tKg7qrLcgirFmPPVJc --variable URI_SCHEME=testbed
cordova plugin add ../ --link --variable BRANCH_LIVE_KEY=key_live_fnmRM1FXtu11t6e4LU8WsldpvDcA0bzv --variable BRANCH_TEST_KEY=key_test_oicIH5u2yxW9w3i6UZdfCiokyrixWpBJ --variable URI_SCHEME=testbed

0 comments on commit 66493bc

Please sign in to comment.