MinicraftPlus / minicraft-plus-revived

Minicraft+, an extension of Notch's original minicraft project, with tons more features.
GNU General Public License v3.0
466 stars 93 forks source link

Create Game Profile Metadata Configuration file for mutable global configurations #609

Open BenCheung0422 opened 8 months ago

BenCheung0422 commented 8 months ago

This depends on #618 This will be done for 2.3 as this needs rewritten code from "class optimization" pull request There are 2 places for the places of game version, in build.gradle and Game.java. This can lead to a chance of missing change when updating the game version. This adds a global profile config file for the whole project game_profile.conf. The in-game metadata file is generated by Gradle build directly. Eventually, only 1 place is needed to be updated. Also, furthermore profile meta data can be added into the config file in the future, in case needed.

TODO:

(Edited on 2024/01/11)

Old summary

> Currently, the auto build increments the version in 2 places, so this integrate this setting at this point. If there are more configurations can be added in the future, such can also be added. The in-game metadata file is generated by Gradle build directly. For the change to the auto build, it now only increments the version within the config file, and it would handle for non-development build situations. When the version is detected as not "dev" (in version number), "dev1" is generated; when the build is not a development build by modifying the config file, neither a new nightly release nor version increment would be eventually pushed.