Because the server may have some breaking changes on API. so we need to add server check on CLI side incase user using old version of CLI that does not support new API on server. We are already doing this check on mobile app.
ref:
https://github.com/blackcandy-org/app/blob/a38c056be1e1e232318d6af6f21c2803c62fcb96/shared/src/commonMain/kotlin/org/blackcandy/shared/models/SystemInfo.kt#L11-L17
may also need to update here on server side:
https://github.com/blackcandy-org/blackcandy/blob/master/app/views/systems/show.json.jbuilder#L8-L12
add min_cli_version on server response
Because the server may have some breaking changes on API. so we need to add server check on CLI side incase user using old version of CLI that does not support new API on server. We are already doing this check on mobile app.
ref:
https://github.com/blackcandy-org/app/blob/a38c056be1e1e232318d6af6f21c2803c62fcb96/shared/src/commonMain/kotlin/org/blackcandy/shared/models/SystemInfo.kt#L11-L17
may also need to update here on server side:
https://github.com/blackcandy-org/blackcandy/blob/master/app/views/systems/show.json.jbuilder#L8-L12
add min_cli_version on server response