Convert version major and minor to numbers (#180)

* Convert version major and minor to numbers

* fix linting error

Co-authored-by: Webber Takken <webber@takken.io>
This commit is contained in:
David Finol
2020-11-17 17:51:10 -06:00
committed by GitHub
parent 8eeb848483
commit 9707ad7ad5

View File

@@ -51,7 +51,7 @@ class ImageTag {
facebook,
} = ImageTag.imageSuffixes;
const [major, minor] = version.split('.');
const [major, minor] = version.split('.').map((digit) => Number(digit));
// @see: https://docs.unity3d.com/ScriptReference/BuildTarget.html
switch (platform) {
case Platform.types.StandaloneOSX: