File tree Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Expand file tree Collapse file tree 5 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 187
187
} else if ( preferences . linkDomain . indexOf ( 'bnc.lt' ) !== - 1 ) {
188
188
// bnc.lt
189
189
if ( preferences . androidPrefix == null ) {
190
- throw new Error ( 'BRANCH SDK: Missing "android-prefix" in <branch-config> in your config.xml. https://goo.gl/GijGKP' )
190
+ throw new Error ( 'BRANCH SDK: Missing "android-prefix" in <branch-config> in your config.xml. Docs https://goo.gl/GijGKP' )
191
191
}
192
192
193
193
intentFilterData . push ( getAppLinkIntentFilterDictionary ( preferences . linkDomain , preferences . androidPrefix ) )
Original file line number Diff line number Diff line change 34
34
// pretty-json
35
35
return JSON . stringify ( content , null , 2 )
36
36
} catch ( err ) {
37
- throw new Error ( 'BRANCH SDK: Cannot write build.json within your root directory. https://goo.gl/GijGKP' )
37
+ throw new Error ( 'BRANCH SDK: Cannot write build.json within your root directory. Docs https://goo.gl/GijGKP' )
38
38
}
39
39
}
40
40
44
44
try {
45
45
return JSON . parse ( content )
46
46
} catch ( err ) {
47
- throw new Error ( 'BRANCH SDK: Cannot read build.json within your root directory. https://goo.gl/GijGKP' )
47
+ throw new Error ( 'BRANCH SDK: Cannot read build.json within your root directory. Docs https://goo.gl/GijGKP' )
48
48
}
49
49
}
50
50
Original file line number Diff line number Diff line change 30
30
installNodeModules ( modules , function ( err ) {
31
31
if ( err ) {
32
32
// handle error
33
- throw new Error ( 'BRANCH SDK: Failed to install the Branch SDK. https://goo.gl/GijGKP' )
33
+ throw new Error ( 'BRANCH SDK: Failed to install the Branch SDK. Docs https://goo.gl/GijGKP' )
34
34
} else {
35
35
// only run once
36
36
setPackageInstalled ( installFlagLocation )
59
59
// handle error
60
60
if ( err ) {
61
61
callback ( true )
62
- throw new Error ( 'BRANCH SDK: Failed to install Branch node dependency ' + module + '. https://goo.gl/GijGKP' )
62
+ throw new Error ( 'BRANCH SDK: Failed to install Branch node dependency ' + module + '. Docs https://goo.gl/GijGKP' )
63
63
} else {
64
64
// next module
65
65
installNodeModules ( modules , callback )
Original file line number Diff line number Diff line change 27
27
var configXml = xmlHelper . readXmlAsJson ( pathToConfigXml )
28
28
29
29
if ( configXml == null ) {
30
- throw new Error ( 'BRANCH SDK: A config.xml is not found in project\'s root directory. https://goo.gl/GijGKP' )
30
+ throw new Error ( 'BRANCH SDK: A config.xml is not found in project\'s root directory. Docs https://goo.gl/GijGKP' )
31
31
}
32
32
33
33
return configXml
38
38
var branchConfig = configXml . widget [ 'branch-config' ]
39
39
40
40
if ( branchConfig == null || branchConfig . length === 0 ) {
41
- throw new Error ( 'BRANCH SDK: <branch-config> tag is not set in the config.xml. https://goo.gl/GijGKP' )
41
+ throw new Error ( 'BRANCH SDK: <branch-config> tag is not set in the config.xml. Docs https://goo.gl/GijGKP' )
42
42
}
43
43
44
44
return branchConfig [ 0 ]
91
91
// validate <branch-config> properties within config.xml
92
92
function validateBranchPreferences ( preferences ) {
93
93
if ( preferences . bundleId === null ) {
94
- throw new Error ( 'BRANCH SDK: Missing "widget id" in your config.xml. https://goo.gl/GijGKP' )
94
+ throw new Error ( 'BRANCH SDK: Invalid "widget id" in your config.xml. Docs https://goo.gl/GijGKP' )
95
95
}
96
96
if ( preferences . bundleName === null ) {
97
- throw new Error ( 'BRANCH SDK: Missing "name" in your config.xml. https://goo.gl/GijGKP' )
97
+ throw new Error ( 'BRANCH SDK: Invalid "name" in your config.xml. Docs https://goo.gl/GijGKP' )
98
98
}
99
99
if ( preferences . branchKey === null ) {
100
- throw new Error ( 'BRANCH SDK: Missing "branch-key" in <branch-config> in your config.xml. https://goo.gl/GijGKP' )
100
+ throw new Error ( 'BRANCH SDK: Invalid "branch-key" in <branch-config> in your config.xml. Docs https://goo.gl/GijGKP' )
101
101
}
102
102
if ( preferences . uriScheme === null || ! / ^ [ a - z A - Z 0 - 9 - .] * $ / . test ( preferences . uriScheme ) ) {
103
103
throw new Error ( 'BRANCH SDK: Invalid "uri-scheme" in <branch-config> in your config.xml. Docs https://goo.gl/GijGKP' )
Original file line number Diff line number Diff line change @@ -48,10 +48,10 @@ Branch.prototype.initSession = function (deepLinkDataListener) {
48
48
49
49
if ( ! disableGlobalListenersWarnings && ! deepLinkDataListener && ! window . DeepLinkHandler ) {
50
50
// missing deep link data return
51
- console . warn ( 'BRANCH SDK: No callback in initSession and no global DeepLinkHandler method. No Branch deep link data will be returned. https://goo.gl/GijGKP' )
51
+ console . warn ( 'BRANCH SDK: No callback in initSession and no global DeepLinkHandler method. No Branch deep link data will be returned. Docs https://goo.gl/GijGKP' )
52
52
} else if ( ! disableGlobalListenersWarnings && window . DeepLinkHandler !== undefined && window . DeepLinkHandler . toString ( ) !== deepLinkDataParser . toString ( ) ) {
53
53
// deprecated 3.0.0: open and non deep link data will pass into DeepLinkHandler
54
- console . warn ( 'BRANCH SDK: Your DeepLinkHandler has changed. It will now pass non-Branch data. https://goo.gl/GijGKP' )
54
+ console . warn ( 'BRANCH SDK: Your DeepLinkHandler has changed. It will now pass non-Branch data. Docs https://goo.gl/GijGKP' )
55
55
} else {
56
56
// from iOS and Android SDKs to JavaScript
57
57
window . DeepLinkHandler = deepLinkDataParser
You can’t perform that action at this time.
0 commit comments