-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Describe the problem as clearly as you can
I am working on a native android application that runs ruby and gem using a Termux like environment but targeting android 10+. A demo release can be found here.
Targeting android 10 and above for an android app requires all the necessary executables to be bundled into the app which means even though I can run ruby, gem and the default bundled gems on the app with no issues, I can gem install xyz successfully but cannot expect to run any executables that came through xyz.
For example, I can gem install jekyll by having the required build tools (make, clang, etc.). Installation would work but the jekyll executable won't work because Android 10 and above won't let externally loaded binaries execute.
To be precise: I want to know how to alter the default set of bundled gems that come through rubygems into my ruby build.
Or maybe please direct me how .gem files work. I could maybe also pre-expand the .gem files to include them into my environment bootstrap zip file so as to include those executable when the apk installs. For gems like nokogiri, I can precompile the required extensions.
Please let me know if this needs more clarity. Thanks!