Skip to content

Commit 59aba7a

Browse files
committed
fix: android only now supported
1 parent f3dbfc8 commit 59aba7a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/scripts/ios/updateDevelopmentTeam.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@
8585
var release = preferences.iosTeamRelease
8686
var debug = (preferences.iosTeamDebug) ? preferences.iosTeamDebug : preferences.iosTeamRelease
8787

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+
8892
content.ios.release.developmentTeam = release
8993
content.ios.debug.developmentTeam = debug
9094
}

src/scripts/npm/processConfigXml.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
'uriScheme': getBranchValue(branchXml, 'uri-scheme'),
5555
'iosBundleId': getBundleId(configXml, 'ios'),
5656
'iosProjectModule': getProjectModule(context),
57-
'iosTeamRelease': getBranchValue(branchXml, 'ios-team-release'),
57+
'iosTeamRelease': getBranchValue(branchXml, 'ios-team-release'), // optional
5858
'iosTeamDebug': getBranchValue(branchXml, 'ios-team-debug'), // optional
5959
'androidBundleId': getBundleId(configXml, 'android'), // optional
6060
'androidPrefix': getBranchValue(branchXml, 'android-prefix'), // optional
@@ -136,7 +136,7 @@
136136
if (preferences.iosBundleId === null || !/^[a-zA-Z0-9.]*$/.test(preferences.iosBundleId)) {
137137
throw new Error('BRANCH SDK: Invalid "id" or "ios-CFBundleIdentifier" in <widget> in your config.xml. Docs https://goo.gl/GijGKP')
138138
}
139-
if (preferences.iosTeamRelease === null || !/^[a-zA-Z0-9]{10}$/.test(preferences.iosTeamRelease)) {
139+
if (preferences.iosTeamRelease !== null && !/^[a-zA-Z0-9]{10}$/.test(preferences.iosTeamRelease)) {
140140
throw new Error('BRANCH SDK: Invalid "ios-team-release" in <branch-config> in your config.xml. Docs https://goo.gl/GijGKP')
141141
}
142142
if (preferences.iosTeamDebug !== null && !/^[a-zA-Z0-9]{10}$/.test(preferences.iosTeamDebug)) {

0 commit comments

Comments
 (0)