2009-09-12 09:17 墳墓 (Brian Hsu)
Sorry for my poor English, but I think this maybe useful for those people who want program Android 1.5 application with Scala.
Thanks for cris's work, I finally found out how to build Android 1.5 applications with Scala 2.7.5.
Here is how to do it.
- First, you will need install ProGuard, and here is the android_rules.xml ANT build XML I modified.
- Copy it and overwritten the original android_rules.xml under ${ANDROID_SDK}/platforms/android-1.5/templates/ directory.
- This build file should work both on pure-Java source code and Scala source code mixed with Java source code, if your android application is written by Java, just run ant debug/reinstall/release as usual.
- If your android application is written in Scala, then you need create an tools directory and copy both scala-compiler.jar and scala-library.jar into it like Step 3 in chris blogs.
- Now, run ant reinstall to test and enjoy your Scala-powered Android application.
回響