Open-Agriculture / AgIsoStack-plus-plus

AgIsoStack++ is the completely free open-source C++ ISOBUS library for everyone
https://agisostack.com/
MIT License
166 stars 40 forks source link

Is it feasible to compile the AgisoStack++ library using android studio? #470

Open JustinLiao opened 1 month ago

JustinLiao commented 1 month ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

ad3154 commented 1 month ago

I've never developed using android studio, though their documentation indicates that CMake is supported for C++ libraries like ours, which is quite promising. I think the main challenge you'd encounter is that none of our hardware plugins will probably work with Android, and our CMake is not set up to deal with it as a platform - I am not sure, for example, how to communicate with a driver for CAN devices via Java or Kotlin, so you'd probably have to write some shim, wrapper, or IPC thing to move CAN frames between our hardware layer and whatever android API you need? It's far enough out of my expertise that it would probably take someone who's familiar with Android development using C++ to try it and write a suitable plugin for our library...