Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
feat: Include integrations.library version in meta data
Browse files Browse the repository at this point in the history
This allows to check if the plugins use the same major & minor versions of the integrations.library as remote-software.

Part of YIO-Remote/remote-software#532
  • Loading branch information
zehnm committed Apr 11, 2021
1 parent c076778 commit 476a1d3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
11 changes: 6 additions & 5 deletions openhab.json.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
\"version_string\": \"$$QMAKE_HOST.version_string\"
}
},
\"copyright\" : \"(C) 2019-2020 Contributors of integration.openhab\",
\"copyright\" : \"(C) 2019-2021 Contributors of integration.openhab\",
\"license\" : [
\"YIO-Remote software is free software: you can redistribute it and/or modify\",
\"it under the terms of the GNU General Public License as published by\",
Expand All @@ -29,8 +29,9 @@
\"OpenHAB Integration for YIO\"
],
\"url\": \"https://github.com/YIO-Remote/integration.openhab\",
\"dependencies\" : [
{ \"name\" : \"app\", \"version\" : \"0.5.0\" },
{ \"name\" : \"remoteOS\", \"version\" : \"0.4.0\" }
]
\"dependencies\" : {
\"app\" : \"0.8.0\",
\"remote-os\" : \"0.4.0\",
\"integrations.library\" : \"$$INTG_GIT_VERSION\"
}
}
4 changes: 4 additions & 0 deletions openhab.pro
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ unix {
error("Invalid integrations.library version: \"$$INTG_GIT_VERSION\". Please check out required version \"$$INTG_LIB_VERSION\"")
}
}
} else {
# sorry, no priority...
INTG_LIB_VERSION = "?"
INTG_GIT_VERSION = "?"
}

QMAKE_SUBSTITUTES += openhab.json.in version.txt.in
Expand Down

0 comments on commit 476a1d3

Please sign in to comment.