Skip to content

Commit 3bb0704

Browse files
authored
Merge pull request #254 from BranchMetrics/fix_ios_frameworks
Fix ios frameworks and core spotlight
2 parents 2c95f60 + 441f8a2 commit 3bb0704

File tree

5 files changed

+34
-37
lines changed

5 files changed

+34
-37
lines changed

DEVELOPING.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -67,32 +67,19 @@ gulp prerelease;
6767
> Modify `BRANCH_KEY` and `URI_SCHEME` and `config.xml` to values in [Branch Dashboard](https://dashboard.branch.io/settings/link)
6868
6969
```sh
70-
cd testbed;
71-
npm install -g cordova;
70+
gulp prerelease && cd testbed && npm install -g cordova && cordova platform remove ios && cordova platform remove android && cordova platform remove browser && cordova platform add ios && cordova platform add android && cordova plugin remove io.branch.sdk && cordova plugin add ../ --variable BRANCH_KEY=key_live_icCccJIpd7GlYY5oOmoEtpafuDiuyXhT --variable URI_SCHEME=enefftest;
7271

73-
cordova platform remove ios;
74-
cordova platform remove android;
75-
cordova platform remove browser;
76-
77-
cordova platform add ios;
78-
cordova platform add android;
79-
80-
cordova plugin remove io.branch.sdk;
81-
cordova plugin add ../ --variable BRANCH_KEY=key_live_icCccJIpd7GlYY5oOmoEtpafuDiuyXhT --variable URI_SCHEME=enefftest;
8272
# cordova plugin add branch-cordova-sdk --variable BRANCH_KEY=key_live_icCccJIpd7GlYY5oOmoEtpafuDiuyXhT --variable URI_SCHEME=enefftest;
83-
84-
cordova build ios;
85-
cordova build android;
8673
```
8774

8875
> Validate all features on both `iOS` and `Android` on `device` only (no `simulator` or `TestFlight`)
8976
9077
```sh
91-
cordova build ios;
92-
open -a Xcode platforms/ios/Branch\ Testing.xcworkspace;
78+
cordova build ios && open -a Xcode platforms/ios/Branch\ Testing.xcworkspace;
9379
```
80+
9481
```sh
95-
cordova run android;
82+
cordova build android && cordova run android;
9683
chrome://inspect/#devices
9784
```
9885

plugin.template.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ SOFTWARE.
101101
</dict>
102102
</array>
103103
</config-file>
104+
<framework src="SafariServices.framework"/>
105+
<framework src="AdSupport.framework"/>
106+
<framework src="CoreTelephony.framework"/>
107+
<framework src="CoreSpotlight.framework"/>
108+
<framework src="MobileCoreServices.framework"/>
104109
<header-file src="src/ios/BranchNPM.h" />
105110
<header-file src="src/ios/BranchSDK.h" />
106111
<source-file src="src/ios/BranchSDK.m" />

plugin.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,11 @@ SOFTWARE.
101101
</dict>
102102
</array>
103103
</config-file>
104+
<framework src="SafariServices.framework"/>
105+
<framework src="AdSupport.framework"/>
106+
<framework src="CoreTelephony.framework"/>
107+
<framework src="CoreSpotlight.framework"/>
108+
<framework src="MobileCoreServices.framework"/>
104109
<header-file src="src/ios/BranchNPM.h" />
105110
<header-file src="src/ios/BranchSDK.h" />
106111
<source-file src="src/ios/BranchSDK.m" />

testbed/www/js.es6/index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -175,11 +175,11 @@ function BranchDeepLink() {
175175

176176
// optional fields
177177
var properties = {
178-
$fallback_url: "www.example.com",
179-
$desktop_url: "www.desktop.com",
180-
$android_url: "www.android.com",
181-
$ios_url: "www.ios.com",
182-
$ipad_url: "www.ipad.com",
178+
$fallback_url: "http://www.example.com/example",
179+
$desktop_url: "http://www.example.com/desktop",
180+
$android_url: "http://www.example.com/android",
181+
$ios_url: "http://www.example.com/ios",
182+
$ipad_url: "http://www.example.com/ipad",
183183
more_custom: "data",
184184
even_more_custom: true,
185185
this_is_custom: 41231
@@ -215,11 +215,11 @@ function BranchShareSheet() {
215215

216216
// optional fields
217217
var properties = {
218-
$fallback_url: "www.example.com",
219-
$desktop_url: "www.desktop.com",
220-
$android_url: "www.android.com",
221-
$ios_url: "www.ios.com",
222-
$ipad_url: "www.ipad.com",
218+
$fallback_url: "http://www.example.com/example",
219+
$desktop_url: "http://www.example.com/desktop",
220+
$android_url: "http://www.example.com/android",
221+
$ios_url: "http://www.example.com/ios",
222+
$ipad_url: "http://www.example.com/ipad",
223223
more_custom: "data",
224224
even_more_custom: true,
225225
this_is_custom: 41231

testbed/www/js/index.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ function BranchDeepLink() {
177177

178178
// optional fields
179179
var properties = {
180-
$fallback_url: "www.example.com",
181-
$desktop_url: "www.desktop.com",
182-
$android_url: "www.android.com",
183-
$ios_url: "www.ios.com",
184-
$ipad_url: "www.ipad.com",
180+
$fallback_url: "http://www.example.com/example",
181+
$desktop_url: "http://www.example.com/desktop",
182+
$android_url: "http://www.example.com/android",
183+
$ios_url: "http://www.example.com/ios",
184+
$ipad_url: "http://www.example.com/ipad",
185185
more_custom: "data",
186186
even_more_custom: true,
187187
this_is_custom: 41231
@@ -217,11 +217,11 @@ function BranchShareSheet() {
217217

218218
// optional fields
219219
var properties = {
220-
$fallback_url: "www.example.com",
221-
$desktop_url: "www.desktop.com",
222-
$android_url: "www.android.com",
223-
$ios_url: "www.ios.com",
224-
$ipad_url: "www.ipad.com",
220+
$fallback_url: "http://www.example.com/example",
221+
$desktop_url: "http://www.example.com/desktop",
222+
$android_url: "http://www.example.com/android",
223+
$ios_url: "http://www.example.com/ios",
224+
$ipad_url: "http://www.example.com/ipad",
225225
more_custom: "data",
226226
even_more_custom: true,
227227
this_is_custom: 41231

0 commit comments

Comments
 (0)