[Binary addons] Use VERSION_MIN for automated generated dependency requirements #16588
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
kodi cmake process replaces @ADDON_DEPENDS@ inside addon.xml.in files of binary addons with a list of kodi API dependencies + version. Currently the interface version is taken instead interface min version what is wrong (https://github.com/peak3d/inputstream.adaptive/blob/master/inputstream.adaptive/addon.xml.in#L7).
When version of addon is increased (https://github.com/xbmc/xbmc/blob/master/xbmc/addons/kodi-addon-dev-kit/include/kodi/versions.h) but VERSION_MIN stays untouched, the binary addon should be still compatible with kodi versions which support MIN_VERSION
Motivation and Context
After bumping ADDON_INSTANCE_VERSION_INPUTSTREAM, building addon with this new version, kodi with previous version is unable to load the addon (incompatible). This is incorrect because VERSION_MIN was not changed.
How Has This Been Tested?
Types of change