mirror of
git://f0xx.org/ac/ac-be-builder
synced 2026-08-12 18:12:50 +03:00
Builder: monotonic OTA versions, duration UI, OTA publish fixes.
VersionAllocator for AA.BB.CC.DDDD, build elapsed display, branded QR alerts, shared cache env, and auto_deploy when auto_ota is set.
This commit is contained in:
@@ -19,6 +19,9 @@ $params['run_native'] = array_key_exists('run_native', $params) ? !empty($params
|
||||
$params['run_apk'] = array_key_exists('run_apk', $params) ? !empty($params['run_apk']) : true;
|
||||
$params['auto_ota'] = !empty($params['auto_ota']);
|
||||
$params['auto_deploy'] = !empty($params['auto_deploy']);
|
||||
if ($params['auto_ota']) {
|
||||
$params['auto_deploy'] = true;
|
||||
}
|
||||
$params['ota_channel'] = $params['ota_channel'] ?? 'staging';
|
||||
$params['gradle_task'] = $params['gradle_task'] ?? 'assembleDebug';
|
||||
$params['notify_on_fail'] = array_key_exists('notify_on_fail', $params) ? !empty($params['notify_on_fail']) : true;
|
||||
@@ -27,6 +30,13 @@ $params['notify_channel'] = in_array(
|
||||
['email', 'telegram', 'both'],
|
||||
true
|
||||
) ? (string) $params['notify_channel'] : 'email';
|
||||
foreach (['ota_major', 'ota_minor', 'ota_patch'] as $k) {
|
||||
if (isset($params[$k]) && $params[$k] !== '') {
|
||||
$params[$k] = max(0, min(99, (int) $params[$k]));
|
||||
} else {
|
||||
unset($params[$k]);
|
||||
}
|
||||
}
|
||||
if (!isset($params['trigger_source'])) {
|
||||
$params['trigger_source'] = 'manual';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user