Skip to content

Commit e564f1c

Browse files
authored
Merge pull request #255 from BranchMetrics/249
249
2 parents 3bb0704 + 3002ea3 commit e564f1c

File tree

7 files changed

+15
-3
lines changed

7 files changed

+15
-3
lines changed

DEVELOPING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ gulp prerelease && cd testbed && npm install -g cordova && cordova platform remo
7575
> Validate all features on both `iOS` and `Android` on `device` only (no `simulator` or `TestFlight`)
7676
7777
```sh
78-
cordova build ios && open -a Xcode platforms/ios/Branch\ Testing.xcworkspace;
78+
cordova build ios --developmentTeam="PW4Q8885U7" --device;
7979
```
8080

8181
```sh

src/android/io/branch/BranchSDK.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,9 @@ private BranchLinkProperties createLinkProperties(JSONObject options, JSONObject
459459
if (options.has("stage")) {
460460
linkProperties.setStage(options.getString("stage"));
461461
}
462+
if (options.has("campaign")) {
463+
linkProperties.setCampaign(options.getString("campaign"));
464+
}
462465
if (options.has("duration")) {
463466
linkProperties.setDuration(options.getInt("duration"));
464467
}

src/ios/BranchSDK.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,9 @@ - (void)generateShortUrl:(CDVInvokedUrlCommand*)command
454454
else if ([key isEqualToString:@"stage"]) {
455455
props.stage = [arg1 objectForKey:key];
456456
}
457+
else if ([key isEqualToString:@"campaign"]) {
458+
props.campaign = [arg1 objectForKey:key];
459+
}
457460
else if ([key isEqualToString:@"alias"]) {
458461
props.alias = [arg1 objectForKey:key];
459462
}

testbed/www/js.es6/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,8 @@ function BranchDeepLink() {
182182
$ipad_url: "http://www.example.com/ipad",
183183
more_custom: "data",
184184
even_more_custom: true,
185-
this_is_custom: 41231
185+
this_is_custom: 41231,
186+
this_is_date: Date.now()
186187
};
187188

188189
// needs a universal object

testbed/www/js/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ function BranchDeepLink() {
184184
$ipad_url: "http://www.example.com/ipad",
185185
more_custom: "data",
186186
even_more_custom: true,
187-
this_is_custom: 41231
187+
this_is_custom: 41231,
188+
this_is_date: Date.now()
188189
};
189190

190191
// needs a universal object

www.es6/branch.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ Branch.prototype.createBranchUniversalObject = function(options) {
292292
* | feature | String | The link feature |
293293
* | alias | String | The link alias |
294294
* | channel | String | The link channel |
295+
* | campaign | String | The link campaign |
295296
* | stage | String | The link stage |
296297
* | duration | Int | The link duration |
297298
* --------------------------------------------------
@@ -332,6 +333,7 @@ Branch.prototype.createBranchUniversalObject = function(options) {
332333
* | feature | String | The link feature |
333334
* | alias | String | The link alias |
334335
* | channel | String | The link channel |
336+
* | campaign | String | The link campaign |
335337
* | stage | String | The link stage |
336338
* | duration | Int | The link duration |
337339
* --------------------------------------------------

www/branch.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ Branch.prototype.createBranchUniversalObject = function (options) {
274274
* | feature | String | The link feature |
275275
* | alias | String | The link alias |
276276
* | channel | String | The link channel |
277+
* | campaign | String | The link campaign |
277278
* | stage | String | The link stage |
278279
* | duration | Int | The link duration |
279280
* --------------------------------------------------
@@ -313,6 +314,7 @@ Branch.prototype.createBranchUniversalObject = function (options) {
313314
* | feature | String | The link feature |
314315
* | alias | String | The link alias |
315316
* | channel | String | The link channel |
317+
* | campaign | String | The link campaign |
316318
* | stage | String | The link stage |
317319
* | duration | Int | The link duration |
318320
* --------------------------------------------------

0 commit comments

Comments
 (0)