Support non-mobile targets (Wear OS, TV) (#180)

* Add non-mobile targets to allowlist

* Add new targets to input validator tests

* Update built input-validator.js

* Update README with new targets

* Update action.yml with new targets
This commit is contained in:
Alex Vanyo
2021-08-13 12:25:01 -05:00
committed by GitHub
parent 1bf9f17bc6
commit 4d1a61ed38
5 changed files with 33 additions and 5 deletions
+9 -1
View File
@@ -2,7 +2,15 @@
Object.defineProperty(exports, "__esModule", { value: true });
exports.checkEmulatorBuild = exports.checkDisableLinuxHardwareAcceleration = exports.checkDisableSpellchecker = exports.checkDisableAnimations = exports.checkForceAvdCreation = exports.checkArch = exports.checkTarget = exports.checkApiLevel = exports.VALID_ARCHS = exports.VALID_TARGETS = exports.MIN_API_LEVEL = void 0;
exports.MIN_API_LEVEL = 15;
exports.VALID_TARGETS = ['default', 'google_apis', 'google_apis_playstore'];
exports.VALID_TARGETS = [
'default',
'google_apis',
'google_apis_playstore',
'android-wear',
'android-wear-cn',
'android-tv',
'google-tv'
];
exports.VALID_ARCHS = ['x86', 'x86_64', 'arm64-v8a'];
function checkApiLevel(apiLevel) {
if (isNaN(Number(apiLevel)) || !Number.isInteger(Number(apiLevel))) {