Skip to content

Commit 05a5ce5

Browse files
author
Edward Smith
committed
Version 0.20.1. Updated tests and TestBed for iOS 7.
1 parent a4eaa6a commit 05a5ce5

File tree

8 files changed

+76
-62
lines changed

8 files changed

+76
-62
lines changed

Branch-SDK/Branch-SDK/BNCConfig.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
BOOL const BNC_API_PINNED = YES;
1313
NSString * const BNC_API_VERSION = @"v1";
1414
NSString * const BNC_LINK_URL = @"https://bnc.lt";
15-
NSString * const BNC_SDK_VERSION = @"0.20.0";
15+
NSString * const BNC_SDK_VERSION = @"0.20.1";
1616

Branch-TestBed-Xcode-7/Base.lproj/Main.storyboard

Lines changed: 59 additions & 43 deletions
Large diffs are not rendered by default.

Branch-TestBed/Branch-TestBed-UITests/UITests/TestBedUITests.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
#import <XCTest/XCTest.h>
1010
#import "NSString+Branch.h"
1111

12+
// Ignore UITests availability for iOS 8 and lower in this example.
13+
#pragma clang diagnostic ignored "-Wpartial-availability"
14+
1215
static NSTimeInterval const kDeepLinkSleepTimeInterval = 10.0;
1316
static NSTimeInterval const kLoadWikiPageTimeInterval = 3.0;
1417
static NSString* const kWikiPageURL =

Branch-TestBed/Branch-TestBed/ViewController.m

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -324,17 +324,6 @@ - (void) branchShareLink:(BranchShareLink*)shareLink
324324

325325
#pragma mark - Commerce Events
326326

327-
- (IBAction) openBranchLinkInApp:(id)sender {
328-
NSUserActivity *activity = [[NSUserActivity alloc] initWithActivityType:NSUserActivityTypeBrowsingWeb];
329-
// TODO: Remove
330-
// NSURL *URL = [NSURL URLWithString:@"https://bnc.lt/ZPOc/Y6aKU0rzcy"]; // <= Your URL goes here.
331-
NSURL *URL = [NSURL URLWithString:@"https://bnctestbed.app.link/izPBY2xCqF"];
332-
activity.webpageURL = URL;
333-
Branch *branch = [Branch getInstance];
334-
[branch resetUserSession];
335-
[branch continueUserActivity:activity];
336-
}
337-
338327
- (IBAction) sendCommerceEvent:(id)sender {
339328
BNCProduct *product = [BNCProduct new];
340329
product.price = [NSDecimalNumber decimalNumberWithString:@"1000.99"];
@@ -367,13 +356,19 @@ - (IBAction) sendCommerceEvent:(id)sender {
367356
}];
368357
}
369358

359+
- (IBAction) openBranchLinkInApp:(id)sender {
360+
NSURL *URL = [NSURL URLWithString:@"https://bnctestbed.app.link/izPBY2xCqF"];
361+
[[Branch getInstance] handleDeepLinkWithNewSession:URL];
362+
}
363+
370364
#pragma mark - Spotlight
371365

372366
- (IBAction)registerWithSpotlightButtonTouchUpInside:(id)sender {
373367
//
374368
// Example using callbackWithURLandSpotlightIdentifier
375369
//
376-
[self.branchUniversalObject addMetadataKey:@"deeplink_text" value:@"This link was generated for Spotlight registration"];
370+
[self.branchUniversalObject addMetadataKey:@"deeplink_text"
371+
value:@"This link was generated for Spotlight registration"];
377372
self.branchUniversalObject.automaticallyListOnSpotlight = YES;
378373
[self.branchUniversalObject userCompletedAction:BNCRegisterViewEvent];
379374
}

Branch-TestBed/Framework-Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
<key>CFBundlePackageType</key>
1818
<string>FMWK</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>0.20.0</string>
20+
<string>0.20.1</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>
24-
<string>0.20.0</string>
24+
<string>0.20.1</string>
2525
<key>LSRequiresIPhoneOS</key>
2626
<true/>
2727
<key>NSHumanReadableCopyright</key>

Branch.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "Branch"
3-
s.version = "0.20.0"
3+
s.version = "0.20.1"
44
s.summary = "Create an HTTP URL for any piece of content in your app"
55
s.description = <<-DESC
66
- Want the highest possible conversions on your sharing feature?

carthage-files/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>0.20.0</string>
18+
<string>0.20.1</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>0.20.0</string>
22+
<string>0.20.1</string>
2323
<key>NSPrincipalClass</key>
2424
<string></string>
2525
</dict>

scripts/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Options:
3131
USAGE
3232
}
3333

34-
version=0.20.0
34+
version=0.20.1
3535

3636
if (( $# == 0 )); then
3737
echo $version

0 commit comments

Comments
 (0)