Scala Programming for Android

前端 未结 9 1372
无人及你
无人及你 2020-11-29 14:14

I have followed the tutorial at Scala and Android with Scala 2.7.3 final. The resulting Android App works but even the most basic application takes several minutes

相关标签:
9条回答
  • 2020-11-29 15:13

    I've written some basic Android applications in Scala, nothing too epic. Not being a Java programmer I was suggested to use a "treeshake", I was explained by a friend that this strips out all the unnecessary libraries from the jar files.

    I have not documented it, but I found that someone else already has:

    http://chneukirchen.org/blog/archive/2009/04/programming-for-android-with-scala.html

    Proguard is not the only solution, you might find something that suits your work flow or is more suited for your environment.

    Additionally google have just realised JACK , which deals with quite a lot of reducing build and memory times see https://source.android.com/source/jack.html

    0 讨论(0)
  • 2020-11-29 15:16

    There is also an plugin for the Scala-based builder sbt: sbt-android-plugin.

    0 讨论(0)
  • 2020-11-29 15:19

    You can now use the Android plugin for Gradle to create Android applications in Scala. It incorporates the ProGuard tool to trim the fat from the resulting APK file, so seems to meet your needs.

    https://github.com/jvoegele/gradle-android-plugin/wiki

    0 讨论(0)
提交回复
热议问题