Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Groovy support #292

Open
damonkohler opened this issue Jun 13, 2015 · 12 comments
Open

Add Groovy support #292

damonkohler opened this issue Jun 13, 2015 · 12 comments

Comments

@damonkohler
Copy link
Owner

From @GoogleCodeExporter on May 31, 2015 11:22

It would be great if Groovy could be used for scripting Android apps.

I'm not referring to precompiling Java to class files and retrofitting them 
for Dalvik VM, rather the ability to generate Dalvik VM-compatible bytecode 
at runtime.

Original issue reported on code.google.com by [email protected] on 14 Jun 2009 at 10:04

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

@damonkohler
Copy link
Owner Author

From @GoogleCodeExporter on May 31, 2015 11:22

After some googling I've found that among Summer of Code 2009 projects there's 
one for porting 
Groovy to Android, under the mentorship of non other but Guillaume LaForge: 
http://socghop.appspot.com/student_project/show/google/gsoc2009/codehaus/t124022
175510
http://socghop.appspot.com/student_project/show/google/gsoc2009/codehaus/t124022
175372

The results of SoC 2009 projects should be published sometime in October 2009.
Must we wait so long relying on two students? ;-)

One "Groovy on Android" experiment has been done without success "a long time 
ago" in November 2007 
by a Groovy developer James Williams: 
http://jameswilliams.be/blog/entry/2007/11/12/Groovy+on+Android-Not+Quite+There+
Yet

Original comment by [email protected] on 14 Jun 2009 at 10:15

@damonkohler
Copy link
Owner Author

From @GoogleCodeExporter on May 31, 2015 11:22

Original comment by [email protected] on 16 Jun 2009 at 12:58

  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

@damonkohler
Copy link
Owner Author

From @GoogleCodeExporter on May 31, 2015 11:22

For the latest, see

http://thediscobot.blogspot.com/2009/07/howto-run-groovy-on-android.html

http://code.google.com/p/discobot/

Original comment by [email protected] on 24 Aug 2009 at 10:16

@damonkohler
Copy link
Owner Author

From @GoogleCodeExporter on May 31, 2015 11:22

Its now possible to compile groovy source code on Android so it should be
theoretically possible to use it with ASE. I have not tested it with BSE which i
guess ASE is using.
Is ASE using BSE and is there anything else groovy should be able to do? Just 
let me
know and ill get cracking emmediatly :)



Original comment by [email protected] on 26 Aug 2009 at 12:35

@damonkohler
Copy link
Owner Author

From @GoogleCodeExporter on May 31, 2015 11:22

Hopefully this isn't a dumb question, but what is BSE?

Original comment by [email protected] on 27 Aug 2009 at 7:07

@damonkohler
Copy link
Owner Author

From @GoogleCodeExporter on May 31, 2015 11:22

I meant BSF(Bean Scripting Framework), i think i misread the acronym a bit. No 
wonder
it seemed strange :)

Original comment by [email protected] on 27 Aug 2009 at 10:16

@damonkohler
Copy link
Owner Author

From @GoogleCodeExporter on May 31, 2015 11:22

BSF works nicely with discobot now(the next realease is a week or so away), so
hopefully it will be possible to use groovy with android scripting in the near
future.

Original comment by [email protected] on 1 Sep 2009 at 2:20

@damonkohler
Copy link
Owner Author

From @GoogleCodeExporter on May 31, 2015 11:22

No news still?

Original comment by [email protected] on 7 Mar 2011 at 5:01

@damonkohler
Copy link
Owner Author

From @GoogleCodeExporter on May 31, 2015 11:22

Did anyone tried ?
What is the bottleneck ?

Original comment by tomcatalbino on 26 Jan 2012 at 2:24

@damonkohler
Copy link
Owner Author

From @GoogleCodeExporter on May 31, 2015 11:22

I tried a little.

First get the original binary & source.
http://groovy.codehaus.org/Download

I wrote this sample code and named it "hello_world.groovy"

print 'Hello, Groovy!'

I looked inside the Rhino For Android / BeanShell For Android codes.
It seems to need a REPL command.
Groovy's command is like this in the JVM jar.

>java -cp groovy-all-1.8.6.jar groovy.lang.GroovyShell hello_world.groovy

So I tried to convert it to the Dalvik(dx) jar like this.

>dx --dex --output=c:\..foo..\base\groovy-all-1.8.6-dx.jar 
c:\..foo..\groovy-all-1.8.6.jar

And made an interpreter apk from the template from the repo and upload it to my 
web space and also made the zip like "groovy_extras_r1.zip", 
"groovy_scripts_r1.zip"
(the jar is in groovy folder inside the "groovy_extras_r1.zip")

It get's an error and fails when you excute the "hello_world.groovy".

I think my dx-jar is not good enough. But there must be a way to solve this.
I wrote this because someone could help this issue somedays...

Original comment by tomcatalbino on 12 Feb 2012 at 3:57

@damonkohler
Copy link
Owner Author

From @GoogleCodeExporter on May 31, 2015 11:22

This could be some hints.

http://code.google.com/p/discobot/

Original comment by tomcatalbino on 22 Mar 2012 at 3:12

@damonkohler
Copy link
Owner Author

From @GoogleCodeExporter on May 31, 2015 11:22

The google code page looks dead. Try this 
https://github.com/disco-bot/disco-bot/

Original comment by [email protected] on 31 Jul 2012 at 5:47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant