Support non-integer API level (#317)

* Support non-integer API level

* update lib

* Add test

* No need to install platforms.

Mostly application will use different SDK platform.

* Update lib
This commit is contained in:
LoveSy
2023-02-09 20:07:08 +08:00
committed by GitHub
parent e1248ae048
commit 8e947e5bd6
8 changed files with 19 additions and 10 deletions
+8
View File
@@ -32,6 +32,14 @@ describe('api-level validator tests', () => {
validator.checkApiLevel('29');
};
expect(func2).not.toThrow();
const func3 = () => {
validator.checkApiLevel('UpsideDownCake-ext5');
};
expect(func3).not.toThrow();
const func4 = () => {
validator.checkApiLevel('TiramisuPrivacySandbox');
};
expect(func4).not.toThrow();
});
});