serial
serial copied to clipboard
Added android support
- Added Android NDK support for serial.
- Give a simple sample app for android.
Android library is not strictly tested.
Wow this is a big contribution, thanks!
A few things though:
- The CI is failing on OS X
- You seem to have committed some generated files like generated documentations and
.jar
files.
Any thing that can be generated should not be committed. I'd argue that this pr should be considerably fewer files. Once you clean that up I'll take a look at the substantive changes to see if they can be merged.
I've corrected the build break and clean up generated files.
Please check again, thanks.
Thanks I'm going to take a harder look at the changes since it's a big change.
In the mean time, what do you think about putting the sample android project in a different repository (perhaps on your github user account)? My concern is that it adds a lot of files to this repository and it has assets which anyone not using Android will not care about. I could be convinced otherwise, but my instinct is to separate it into a new repository.
It is a nice idea to have android-specific code move to a new repository. I'll move them out, leaving only pure C++ (or native speaking, JNI codes) for android build.
The key point to make this library available for android is to provide missing header files in NDK toolchain.
I've remove other files, reducing number of changed files to 11. This might a a light change and you could review it faster.
Android-specific files, Java APIs and sample are moved to my own repo: https://github.com/chzhong/serial-android.
Thanks I'll try to review this sometime today or this week.
This looks fine, but I have one request before merging.
Can you list the files you've imported in the android/README.md
and what their respective licenses are and where you got them from? One reason is to consolidate the license information in one place and the other is so that it is relatively easy for someone to go and look for updated versions of those files in the future (if need be). It might be unnecessary, but I'd appreciate it if you'd do that.
After that I think this is ready for merge! Thanks again for the contribution and taking the time to iterate with me.
Got it, I've listed files I imported.
These are standard linux headers and have their licenses in their header.
I am also looking for Android support. What have been the main blockers to merge this branch?
Nevermind. Checked the code.