-
Notifications
You must be signed in to change notification settings - Fork 8
Ruboto+JRuby - almost got it #11
Comments
@ELynx I don't think we should be using EntryPointActivity. I was able to run arbitrary Ruby scripts with this commit. The only caveat is that you must have the Ruboto Core installed on your phone. There is a way to include full JRuby with the app (an extra 21.3 MB) but I haven't been able to get that working yet. Currently working on that. When I ran it with EntryPointActivity, I got the same error. The error is because Ruboto expects the scripts to be in project-root/src, which is the old Android project structure. Install the Ruboto core on your phone and try running that commit. |
Better yet, checkout the jruby branch and try to run that. |
@griest024 I think they have later version on github... I saw a tutorial to include everything from Core to APK also. But I thought that "everything" is JRuby and JRuby std lib. Apparently, there is more to that. |
I did try ruboto core. From app log - they seem to use pretty old versions of everything
Looks like *,jar files are not needed, they are not added tp APK if they are in root/libs Play store core 1.0.5 confirms this
So, I am looking at ruboto-core releases. I will try to clone at tag 1.0.5 and get some resources from there. |
Even better idea. May be put built-in ruboto aside for some time... |
Yeah for now, I think we should use Ruboto core. Its not that much of a hassle to install compared to rooting a phone and installing xposed framework. It would be nice to get built in JRuby (lots of great new features), but it may be more trouble than its worth. Lets write some hacks. |
@ELynx So we are able to pass some data to a ruby script. I think this is really the last thing we needed before we can write some functional hacks, in ruby. |
To set up application with ruboto use JRuby version 1.7.24. Exactly, later versions seem to fail miserably.
With that in mind, and latest commits, it is possible to start JRuby. But script file is not found by engine:
So, help wanted - where to place script_test_activity.rb in project so JRuby will see it?
The text was updated successfully, but these errors were encountered: