Allow Compilation on Android Termux via Conditional Compilation Fix#182
Allow Compilation on Android Termux via Conditional Compilation Fix#182RyderFreeman4Logos wants to merge 1 commit into1Password:masterfrom
Conversation
Remove Android from the exclusion list in conditional configurations to allow successful compilation on Termux. Note: This change is solely to enable compilation; if clipboard functionality is desired on Termux, it can be implemented easily using Termux’s API.
|
Hi there, Do you happen to know if the native Android |
Hi there, That's a great question regarding the clipboard implementation on Termux. Based on my understanding, programs running within the standard Termux environment generally cannot directly invoke the native Android Furthermore, it's important to note that even for these Termux commands ( Just to reiterate, my current PR focuses only on enabling compilation within Termux. The actual implementation of clipboard functionality using these Termux APIs (and handling the Hope this information is helpful! Let me know if you have any other questions. |
|
Sorry for my delay, thanks for the additional information and context since I was very unfamiliar with Termux. Please see #191 which describes the pre-requesties for Termux support getting merged, similar to #171. As mentioned there, my intent is to have pending platform backend additions all wrapped up no later then end of summer.
I think you answered everything, thanks!
Under my current plan of making Termux an With that said, if the PRs will be split up, my strong preference would be to introduce the Cargo feature flagging required, or some other reliable mechanism for Termux detection, in this PR so its clear ahead of time how this backend will interact with the native app-hosted implementation. It may be good to draw some inspiration from how the Wayland and X11 split is done on Linux today. |
This pull request updates the conditional compilation settings in Cargo.toml, src/lib.rs, and src/platform/mod.rs. By removing Android from the exclusion list, the arboard library (and dependent applications such as sendme) can now compile successfully in Termux environments on Android.
Please note that this change is intended solely to enable the software to compile on Termux. If full clipboard functionality is required on Termux, it can be implemented relatively easily since Termux provides its own clipboard API.