damonkohler / sl4a

SL4A brings scripting languages to Android by allowing you to edit and execute scripts and interactive interpreters directly on the Android device.
Apache License 2.0
2.43k stars 800 forks source link

Embedding Interpreters and Scripts into an APK (completed for Python) #93

Open damonkohler opened 9 years ago

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

The Python interpreter, Python scripts, and SL4A can now be embedded into an 
APK thanks to Anthony Prieur's project:
https://code.google.com/p/android-python27/

This means that a single APK containing the interpreter can be uploaded to 
GooglePlay, and the interpreter won't need to be downloaded during the app 
installation.

A customized version of the interpreter can also be used, for example a 
different version build, set of modules, etc...

This should also satisfy open source license terms for some interpreters, which 
require that commercial distributions of the language be "compiled" so that the 
language isn't directly exposed to the user (as is the case with the Artistic 
License).

It might be a good idea to add this information to SL4A's Wiki for "Sharing 
Scripts", and possibly as an alternate template project, so that developers 
know about this and can provide feedback on it.

It would also be great to extend this to other interpreters. Anthony provided 
some hints on how to possibly do this for the Perl interpreter. If anyone is 
interested in assisting with that, just let me know and I can share those 
details.

Original issue reported on code.google.com by danielop...@gmail.com on 23 May 2012 at 4:53

Copied from original issue: damonkohler/android-scripting#629

damonkohler commented 9 years ago

From @GoogleCodeExporter on May 31, 2015 11:31

Wiki tutorials and a demo APK have been added to the Python project:
http://code.google.com/p/android-python27/ 

This project has also been forked over to accomplish this for Perl:
http://code.google.com/p/perl-android-apk/ 

All feedback and contributions are welcome.

Original comment by danielop...@gmail.com on 25 May 2012 at 6:14