Conversation
|
@bdbcat @sebastien-rosset Is there a way in CMakeLists.txt to have "if Android set api 118, else set api 119" ? |
|
Yes it should be possible. Though if api-19 support is added soon in the Android fit repo, it might be worth waiting a bit. |
|
Currently, OpenCPN requires an exact match between a plugin's declared API version and the supported API versions in OpenCPN's plugin loader. This creates unnecessary restrictions where plugins must target a specific API version even when they could work with newer versions. virtual int GetMinAPIVersionMajor() { return GetAPIVersionMajor(); }
virtual int GetMinAPIVersionMinor() { return GetAPIVersionMinor(); }
// New methods to query host OpenCPN API version
extern "C" DECL_EXP int GetHostAPIVersionMajor(void);
extern "C" DECL_EXP int GetHostAPIVersionMinor(void);
For example, the VDR plugin could implement
Of course, this wouldn't work now because none of these functions exist. |
73f804b to
5c08618
Compare
Conditionally add SignalK support except Android.
5c08618 to
1b09226
Compare
This is WIP. It cannot be merged until Android supports API-19.