JavaScript numbers do not distinguish between ints and floats, hence a number like 1.0 defined in Gradle would get parsed to 1 in JavaScript. From a practical standpoint, this is a problem if we use it in Android projects where we try to parse an app version string like "1.0" - after parsing, we would have no way to tell whether the version was defined with both a major and minor version. Pending a better solution, we should just provide everything as strings to JavaScript, and let the user decide his own number conversion scheme if needed.
JavaScript numbers do not distinguish between ints and floats, hence a number like
1.0
defined in Gradle would get parsed to1
in JavaScript. From a practical standpoint, this is a problem if we use it in Android projects where we try to parse an app version string like "1.0" - after parsing, we would have no way to tell whether the version was defined with both a major and minor version. Pending a better solution, we should just provide everything as strings to JavaScript, and let the user decide his own number conversion scheme if needed.