Alter default bundled gems #7749
Unanswered
gouravkhunger
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Describe the problem as clearly as you can
I am working on a native android application that runs
ruby
andgem
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 cangem install xyz
successfully but cannot expect to run any executables that came throughxyz
.For example, I can
gem install jekyll
by having the required build tools (make
,clang
, etc.). Installation would work but thejekyll
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 likenokogiri
, I can precompile the required extensions.Please let me know if this needs more clarity. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions