ios 빌드의 여러 상태값에 따른 대응 작업
This commit is contained in:
parent
46ed6e3828
commit
d9bf7d3560
1 changed files with 4 additions and 2 deletions
|
|
@ -55,9 +55,11 @@ class BuildiOS extends Command {
|
|||
var process = await ProcessExecutor.run(shell);
|
||||
var arr = process.stdout.toString().split('\n');
|
||||
const result = '[RESULT]: ';
|
||||
var needIncrementVersionState = ['WAITING_FOR_REVIEW', 'WAITING_FOR_REVIEW', 'IN_REVIEW', 'PENDING_DEVELOPER_RELEASE', 'PENDING_APPLE_RELEASE', 'REPLACED_WITH_NEW_VERSION'];
|
||||
List<dynamic> jsonArr;
|
||||
for (var item in arr) {
|
||||
if (item.contains(result)) {
|
||||
var jsonArr =
|
||||
jsonArr =
|
||||
jsonDecode(item.substring(item.indexOf(result) + result.length))
|
||||
as List<dynamic>;
|
||||
for (var item in jsonArr) {
|
||||
|
|
@ -65,7 +67,7 @@ class BuildiOS extends Command {
|
|||
targetVersion = item['version'];
|
||||
break;
|
||||
}
|
||||
if (item['state'] == 'PENDING_DEVELOPER_RELEASE') {
|
||||
if (needIncrementVersionState.contains(item['state'])) {
|
||||
targetVersion = incrementVersion(item['version']);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue