We are developing extensions using AL and managing source control using git. We have development and master branches in our git repo. We only deploy the development branch to the sandbox environment and, likewise, only deploy the master branch to the production environment.
The problem we are running into is the sandbox environment on version 18 and a production environment on version 17. This poses a problem with the "application" and "platform" version information in the app.json file when merging changes from the development branch to the master branch. We are having to make an additional commit to the master branch to update this version information to the appropriate target version.
I am curious how others are managing that situation.
Would it be appropriate to simply specify the minimum version to be the lowest common denominator between the two environments? In our case, we would target version 17.0.0.0 for both the "application" and "platform" versions.