File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 85
85
var release = preferences . iosTeamRelease
86
86
var debug = ( preferences . iosTeamDebug ) ? preferences . iosTeamDebug : preferences . iosTeamRelease
87
87
88
+ if ( release === null ) {
89
+ throw new Error ( 'BRANCH SDK: Invalid "ios-team-release" in <branch-config> in your config.xml. Docs https://goo.gl/GijGKP' )
90
+ }
91
+
88
92
content . ios . release . developmentTeam = release
89
93
content . ios . debug . developmentTeam = debug
90
94
}
Original file line number Diff line number Diff line change 54
54
'uriScheme' : getBranchValue ( branchXml , 'uri-scheme' ) ,
55
55
'iosBundleId' : getBundleId ( configXml , 'ios' ) ,
56
56
'iosProjectModule' : getProjectModule ( context ) ,
57
- 'iosTeamRelease' : getBranchValue ( branchXml , 'ios-team-release' ) ,
57
+ 'iosTeamRelease' : getBranchValue ( branchXml , 'ios-team-release' ) , // optional
58
58
'iosTeamDebug' : getBranchValue ( branchXml , 'ios-team-debug' ) , // optional
59
59
'androidBundleId' : getBundleId ( configXml , 'android' ) , // optional
60
60
'androidPrefix' : getBranchValue ( branchXml , 'android-prefix' ) , // optional
136
136
if ( preferences . iosBundleId === null || ! / ^ [ a - z A - Z 0 - 9 . ] * $ / . test ( preferences . iosBundleId ) ) {
137
137
throw new Error ( 'BRANCH SDK: Invalid "id" or "ios-CFBundleIdentifier" in <widget> in your config.xml. Docs https://goo.gl/GijGKP' )
138
138
}
139
- if ( preferences . iosTeamRelease === null || ! / ^ [ a - z A - Z 0 - 9 ] { 10 } $ / . test ( preferences . iosTeamRelease ) ) {
139
+ if ( preferences . iosTeamRelease !== null && ! / ^ [ a - z A - Z 0 - 9 ] { 10 } $ / . test ( preferences . iosTeamRelease ) ) {
140
140
throw new Error ( 'BRANCH SDK: Invalid "ios-team-release" in <branch-config> in your config.xml. Docs https://goo.gl/GijGKP' )
141
141
}
142
142
if ( preferences . iosTeamDebug !== null && ! / ^ [ a - z A - Z 0 - 9 ] { 10 } $ / . test ( preferences . iosTeamDebug ) ) {
You can’t perform that action at this time.
0 commit comments