Skip to content

Proof of concept for using JRuby 9K in a Ruboto project

Notifications You must be signed in to change notification settings

ruboto/JRuby9K_POC

Repository files navigation

JRuby9K_POC

Proof of concept for using JRuby 9K in a Ruboto project

This repository contains a sample Android Studio project using JRuby.

Emulator/phone Android version

The app currently works with emulators/devices running Android 8.1 (api 27) to Android 12L (api 32).

Version API Works
Android 14.0 34 no
Android 13.0 33 no
Android 12L 32 yes
Android 12.0 31 yes
Android 11.0 30 yes
Android 10.0 29 yes
Android 9.0 28 yes
Android 8.1 27 yes

Android 13.0 (api 33) is failing with new security restrictions:

https://issuetracker.google.com/issues/281448905?pli=1

Adding JRuby to an AndroidStudio project

Use the update_jruby_jar.sh script in the app folder:

cd app
./update_jruby_jar.sh

Adding gems

  • Add your Gemfile in the app directory.
  • Run the bundle Rake task using JRuby
jruby -S rake bundle

Updating Java sources

To update Java sources like Switchpoint, download sources from this link:

https://raw.githubusercontent.com/openjdk/jdk17/master/src/java.base/share/classes/java/lang/invoke/SwitchPoint.java

Library dependencies

About

Proof of concept for using JRuby 9K in a Ruboto project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •