mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-08-31 17:49:33 +00:00
21 lines
491 B
JavaScript
21 lines
491 B
JavaScript
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.getChannelId = getChannelId;
|
|
function getChannelId(channelName) {
|
|
if (channelName === 'stable') {
|
|
return 0;
|
|
}
|
|
else if (channelName === 'beta') {
|
|
return 1;
|
|
}
|
|
else if (channelName === 'dev') {
|
|
return 2;
|
|
}
|
|
else if (channelName === 'canary') {
|
|
return 3;
|
|
}
|
|
else {
|
|
throw new Error(`Unexpected channel name: '${channelName}'.`);
|
|
}
|
|
}
|