-
-
Notifications
You must be signed in to change notification settings - Fork 307
Description
Description:
The input field for versionCode in the Solar2D Android Build Setup GUI on Windows has a character limit of 9 digits that prevents users from inputting or viewing longer version codes (in my case, 10-digits).
Solar2D correctly respects 10-digit versionCode values defined in build.settings during the build process, the GUI input box truncates these values when they are pasted or displayed. For example, pasting 1768083670 results in the field only holding 176808367. I actually went a couple of weeks without noticing it because my build process auto-populates the versionCode value in the build.settings file.
Steps to Reproduce:
- Open a project in Solar2D Simulator.
- Navigate to File > Build > Android....
- Attempt to paste a 10-digit integer (e.g.,
1768083670) into the Version Code field. - Observe that the last digit is truncated.
Expected Behavior:
The versionCode field should support up to the maximum value allowed by Android/Google Play, which is 2,147,483,647 (signed int32, and so up to 10 digits).
Actual Behavior:
The field truncates at 9 digits, leading to confusion as it appears the version code will be incorrect, even though the build.settings value is used correctly in the final package.
Environment:
- Solar2D Version: 2025.3726 / 2025.11.4
- OS: Windows (and not likely any others -- see later comment)