Skip to content

Commit

Permalink
Merge pull request #255 from BranchMetrics/249
Browse files Browse the repository at this point in the history
249
  • Loading branch information
ethanneff authored Dec 8, 2016
2 parents 3bb0704 + 3002ea3 commit e564f1c
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 3 deletions.
2 changes: 1 addition & 1 deletion DEVELOPING.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ gulp prerelease && cd testbed && npm install -g cordova && cordova platform remo
> Validate all features on both `iOS` and `Android` on `device` only (no `simulator` or `TestFlight`)
```sh
cordova build ios && open -a Xcode platforms/ios/Branch\ Testing.xcworkspace;
cordova build ios --developmentTeam="PW4Q8885U7" --device;
```

```sh
Expand Down
3 changes: 3 additions & 0 deletions src/android/io/branch/BranchSDK.java
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,9 @@ private BranchLinkProperties createLinkProperties(JSONObject options, JSONObject
if (options.has("stage")) {
linkProperties.setStage(options.getString("stage"));
}
if (options.has("campaign")) {
linkProperties.setCampaign(options.getString("campaign"));
}
if (options.has("duration")) {
linkProperties.setDuration(options.getInt("duration"));
}
Expand Down
3 changes: 3 additions & 0 deletions src/ios/BranchSDK.m
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,9 @@ - (void)generateShortUrl:(CDVInvokedUrlCommand*)command
else if ([key isEqualToString:@"stage"]) {
props.stage = [arg1 objectForKey:key];
}
else if ([key isEqualToString:@"campaign"]) {
props.campaign = [arg1 objectForKey:key];
}
else if ([key isEqualToString:@"alias"]) {
props.alias = [arg1 objectForKey:key];
}
Expand Down
3 changes: 2 additions & 1 deletion testbed/www/js.es6/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ function BranchDeepLink() {
$ipad_url: "http://www.example.com/ipad",
more_custom: "data",
even_more_custom: true,
this_is_custom: 41231
this_is_custom: 41231,
this_is_date: Date.now()
};

// needs a universal object
Expand Down
3 changes: 2 additions & 1 deletion testbed/www/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ function BranchDeepLink() {
$ipad_url: "http://www.example.com/ipad",
more_custom: "data",
even_more_custom: true,
this_is_custom: 41231
this_is_custom: 41231,
this_is_date: Date.now()
};

// needs a universal object
Expand Down
2 changes: 2 additions & 0 deletions www.es6/branch.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,7 @@ Branch.prototype.createBranchUniversalObject = function(options) {
* | feature | String | The link feature |
* | alias | String | The link alias |
* | channel | String | The link channel |
* | campaign | String | The link campaign |
* | stage | String | The link stage |
* | duration | Int | The link duration |
* --------------------------------------------------
Expand Down Expand Up @@ -332,6 +333,7 @@ Branch.prototype.createBranchUniversalObject = function(options) {
* | feature | String | The link feature |
* | alias | String | The link alias |
* | channel | String | The link channel |
* | campaign | String | The link campaign |
* | stage | String | The link stage |
* | duration | Int | The link duration |
* --------------------------------------------------
Expand Down
2 changes: 2 additions & 0 deletions www/branch.js
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ Branch.prototype.createBranchUniversalObject = function (options) {
* | feature | String | The link feature |
* | alias | String | The link alias |
* | channel | String | The link channel |
* | campaign | String | The link campaign |
* | stage | String | The link stage |
* | duration | Int | The link duration |
* --------------------------------------------------
Expand Down Expand Up @@ -313,6 +314,7 @@ Branch.prototype.createBranchUniversalObject = function (options) {
* | feature | String | The link feature |
* | alias | String | The link alias |
* | channel | String | The link channel |
* | campaign | String | The link campaign |
* | stage | String | The link stage |
* | duration | Int | The link duration |
* --------------------------------------------------
Expand Down

0 comments on commit e564f1c

Please sign in to comment.