Skip to content

Commit 699eb5c

Browse files
committed
Merge branch 'master' into staging
2 parents 0c0c563 + da976bf commit 699eb5c

File tree

7 files changed

+1257
-514
lines changed

7 files changed

+1257
-514
lines changed

Branch-TestBed-Swift/Podfile.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
PODS:
2-
- Branch (0.12.9):
3-
- Branch/Core (= 0.12.9)
4-
- Branch/without-IDFA (= 0.12.9)
5-
- Branch/Core (0.12.9)
6-
- Branch/without-IDFA (0.12.9)
2+
- Branch (0.12.10):
3+
- Branch/Core (= 0.12.10)
4+
- Branch/without-IDFA (= 0.12.10)
5+
- Branch/Core (0.12.10)
6+
- Branch/without-IDFA (0.12.10)
77

88
DEPENDENCIES:
99
- Branch
1010

1111
SPEC CHECKSUMS:
12-
Branch: 339863b49859de1a64f1b785afe6ad8770a0e7d3
12+
Branch: 371ebad8c506e7a808db8d7840108d3de3007c1e
1313

1414
PODFILE CHECKSUM: b8eaac19532c4179c1c4ce62932a85facd7ac4b7
1515

16-
COCOAPODS: 1.0.0
16+
COCOAPODS: 1.0.1

Branch-TestBed-Swift/TestBed-Swift.xcodeproj/project.pbxproj

Lines changed: 1214 additions & 500 deletions
Large diffs are not rendered by default.

Branch-TestBed-Swift/TestBed-Swift/ViewController.swift

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ class ViewController: UITableViewController {
178178

179179
print(universalObjectProperties["$canonical_identifier"])
180180
if let canonicalIdentifier = universalObjectProperties["$canonical_identifier"] as? String {
181-
branchUniversalObject = BranchUniversalObject.init(canonicalIdentifier: canonicalIdentifier)!
181+
branchUniversalObject = BranchUniversalObject.init(canonicalIdentifier: canonicalIdentifier)
182182
} else {
183183
print(universalObjectProperties["$canonical_identifier"])
184-
branchUniversalObject = BranchUniversalObject.init(canonicalIdentifier: "_")!
184+
branchUniversalObject = BranchUniversalObject.init(canonicalIdentifier: "_")
185185
}
186186

187187
for key in universalObjectProperties.keys {
@@ -239,17 +239,18 @@ class ViewController: UITableViewController {
239239

240240
print(universalObjectProperties["$canonical_identifier"])
241241
if let canonicalIdentifier = universalObjectProperties["$canonical_identifier"] as? String {
242-
branchUniversalObject = BranchUniversalObject.init(canonicalIdentifier: canonicalIdentifier)!
242+
branchUniversalObject = BranchUniversalObject.init(canonicalIdentifier: canonicalIdentifier)
243243
} else {
244244
print(universalObjectProperties["$canonical_identifier"])
245-
branchUniversalObject = BranchUniversalObject.init(canonicalIdentifier: "_")!
245+
branchUniversalObject = BranchUniversalObject.init(canonicalIdentifier: "_")
246246
}
247247

248248
for key in universalObjectProperties.keys {
249249
setBranchUniversalObjectProperty(key)
250250
}
251251

252-
branchUniversalObject.getShortUrl(with: branchLinkProperties) { (url, error) in
252+
//branchUniversalObject.getShortUrl(with: branchLinkProperties) { (url, error) in
253+
branchUniversalObject.getShortUrl(with: branchLinkProperties, andCallback: { (url: String, error: Error?) in
253254
if (error == nil) {
254255
print(self.branchLinkProperties.description())
255256
print(self.branchUniversalObject.description())
@@ -260,7 +261,7 @@ class ViewController: UITableViewController {
260261
self.showAlert("Link Creation Failed", withDescription: error!.localizedDescription)
261262
}
262263

263-
}
264+
})
264265
}
265266

266267
@IBAction func redeemPointsButtonTouchUpInside(_ sender: AnyObject) {

Branch-TestBed/Branch-TestBed.xcodeproj/project.pbxproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,7 @@
10721072
CODE_SIGN_ENTITLEMENTS = "Branch-TestBed/Branch-TestBed.entitlements";
10731073
CODE_SIGN_IDENTITY = "iPhone Developer";
10741074
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1075+
DEVELOPMENT_TEAM = R63EM248DP;
10751076
GCC_PRECOMPILE_PREFIX_HEADER = YES;
10761077
GCC_PREFIX_HEADER = "Branch-TestBed/Branch-TestBed-Prefix.pch";
10771078
INFOPLIST_FILE = "Branch-TestBed/Branch-TestBed-Info.plist";
@@ -1093,6 +1094,7 @@
10931094
CODE_SIGN_ENTITLEMENTS = "Branch-TestBed/Branch-TestBed.entitlements";
10941095
CODE_SIGN_IDENTITY = "iPhone Developer";
10951096
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1097+
DEVELOPMENT_TEAM = R63EM248DP;
10961098
GCC_PRECOMPILE_PREFIX_HEADER = YES;
10971099
GCC_PREFIX_HEADER = "Branch-TestBed/Branch-TestBed-Prefix.pch";
10981100
INFOPLIST_FILE = "Branch-TestBed/Branch-TestBed-Info.plist";

Branch-TestBed/Branch-TestBed/Assets.xcassets/AppIcon.appiconset/Contents.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
{
22
"images" : [
3+
{
4+
"idiom" : "iphone",
5+
"size" : "20x20",
6+
"scale" : "2x"
7+
},
8+
{
9+
"idiom" : "iphone",
10+
"size" : "20x20",
11+
"scale" : "3x"
12+
},
313
{
414
"size" : "29x29",
515
"idiom" : "iphone",
@@ -54,6 +64,16 @@
5464
"filename" : "icon180x180.png",
5565
"scale" : "3x"
5666
},
67+
{
68+
"idiom" : "ipad",
69+
"size" : "20x20",
70+
"scale" : "1x"
71+
},
72+
{
73+
"idiom" : "ipad",
74+
"size" : "20x20",
75+
"scale" : "2x"
76+
},
5777
{
5878
"size" : "29x29",
5979
"idiom" : "ipad",

Branch-TestBed/Branch-TestBed/Branch-TestBed-Info.plist

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,11 @@
5656
</dict>
5757
<key>UILaunchStoryboardName</key>
5858
<string>LaunchScreen</string>
59+
<key>NSAppTransportSecurity</key>
60+
<dict>
61+
<!--Include to allow all connections (DANGER)-->
62+
<key>NSAllowsArbitraryLoads</key>
63+
<true/>
64+
</dict>
5965
</dict>
6066
</plist>

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ linkProperties.addControlParam("$ios_url", withValue: "http://example.com/ios")
640640
```
641641

642642
```swift
643-
branchUniversalObject.getShortUrlWithLinkProperties(linkProperties, andCallback: { (url: String?, error: NSError?) -> Void in
643+
branchUniversalObject.getShortUrl(with: linkProperties, andCallback: { (url: String, error: Error?) in
644644
if error == nil {
645645
NSLog("got my Branch link to share: %@", url)
646646
}

0 commit comments

Comments
 (0)