diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 5833f838..e90ab2ba 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -13,7 +13,7 @@ jobs: timeout-minutes: 10 strategy: matrix: - api-level: [21, 23, 29] + api-level: [16, 21, 23, 29] steps: - name: checkout uses: actions/checkout@v2 @@ -37,7 +37,7 @@ jobs: uses: ./ with: api-level: ${{ matrix.api-level }} - target: google_apis + target: default arch: x86 profile: Nexus 6 emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim -camera-back none diff --git a/README.md b/README.md index 019dc768..7dcf0a39 100644 --- a/README.md +++ b/README.md @@ -69,9 +69,9 @@ jobs: | | **Required** | **Default** | **Description** | |----------------------|--------------|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| `api-level` | Required | N/A | API level of the platform system image - e.g. 23 for Android Marshmallow, 29 for Android 10. **Minimum API level supported is 21**. | +| `api-level` | Required | N/A | API level of the platform system image - e.g. 23 for Android Marshmallow, 29 for Android 10. **Minimum API level supported is 15**. | | `target` | Optional | `default` | Target of the system image - `default` or `google_apis`. | -| `arch` | Optional | `x86` | CPU architecture of the system image - `x86` or `x86_64`. | +| `arch` | Optional | `x86` | CPU architecture of the system image - `x86` or `x86_64`. Note that `x86_64` image is only available for API 21+. | | `profile` | Optional | N/A | Hardware profile used for creating the AVD - e.g. `Nexus 6`. For a list of all profiles available, run `$ANDROID_HOME/tools/bin/avdmanager list` and refer to the results under "Available Android Virtual Devices". | | `emulator-options` | Optional | See below | Command-line options used when launching the emulator (replacing all default options) - e.g. `-no-window -no-snapshot -camera-back emulated`. | | `disable-animations` | Optional | `true` | Whether to disable animations - `true` or `false`. | diff --git a/__tests__/input-validator.test.ts b/__tests__/input-validator.test.ts index baffc0f2..812177ed 100644 --- a/__tests__/input-validator.test.ts +++ b/__tests__/input-validator.test.ts @@ -17,14 +17,14 @@ describe('api-level validator tests', () => { it('Throws if api-level is lower than min API supported', () => { const func = () => { - validator.checkApiLevel('20'); + validator.checkApiLevel('14'); }; expect(func).toThrowError(`Minimum API level supported is ${validator.MIN_API_LEVEL}.`); }); it('Validates successfully with valid api-level', () => { const func1 = () => { - validator.checkApiLevel('21'); + validator.checkApiLevel('15'); }; expect(func1).not.toThrow(); diff --git a/lib/input-validator.js b/lib/input-validator.js index 32a59bd4..65fcaa0d 100644 --- a/lib/input-validator.js +++ b/lib/input-validator.js @@ -1,6 +1,6 @@ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); -exports.MIN_API_LEVEL = 21; +exports.MIN_API_LEVEL = 15; exports.VALID_TARGETS = ['default', 'google_apis']; exports.VALID_ARCHS = ['x86', 'x86_64']; function checkApiLevel(apiLevel) { diff --git a/src/input-validator.ts b/src/input-validator.ts index 176f7b75..b125ebe6 100644 --- a/src/input-validator.ts +++ b/src/input-validator.ts @@ -1,4 +1,4 @@ -export const MIN_API_LEVEL = 21; +export const MIN_API_LEVEL = 15; export const VALID_TARGETS: Array = ['default', 'google_apis']; export const VALID_ARCHS: Array = ['x86', 'x86_64'];