使用 Scala 进行大量 Android 开发

发布于 2024-08-16 06:33:42 字数 637 浏览 2 评论 0原文

有人成功地用 Scala 开发了一个重要的 Android 应用程序吗?这是一个可行的选择吗?有成熟的开发环境吗?鉴于 Scala Eclipse 插件的状态,看起来除了可能的 IntelliJ Ultimate 之外根本没有良好的 IDE 支持。

有些人发布了教程,描述如何欺骗 Eclipse ADT 来支持 Scala ,以及如何使用 Proguard 来精简 Scala 库,但除此之外,还没有什么令人担忧的关于这个话题的讨论。

更新 2011-08-01: Bump 应用程序背后的开发人员撰写的关于 Android+Scala 的有趣文章:Bump 开发博客 - 我们如何在 Android 版 Bump 中使用 Scala

Has anyone had success developing a substantial Android app in Scala? Is it a viable option yet? Are there any mature development environments? Given the state of the Scala Eclipse plug-in, it looks as if there is no good IDE support at all other than possibly IntelliJ Ultimate.

A few people have posted tutorials describing how to fudge Eclipse ADT to sort-of support Scala, and how to to slim the Scala libraries using Proguard, but beyond that there has been worryingly little discussion about this topic.

Update 2011-08-01: An interesting article on Android+Scala from the developers behind the Bump app: Bump Dev Blog - How we use Scala in Bump for Android

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

多情出卖 2024-08-23 06:33:42

我正在 Scala 中编写 Android 应用程序项目。

如果您有兴趣,可以看看这个:

是的,这是一个中文网站,但是您只需看一下屏幕截图就可以了解 Scala 可以像 Java 一样使用 Android SDK 完成所有操作。

这两个 Android 应用程序的源代码托管在 GitHub 上: http://github.com/brianhsu/Maidroid

目前我不使用任何 IDE,因为 Vim / SBT 比我使用过的任何 IDE 都要方便和轻量。

如果您使用 SBT 构建 Scala Android 应用程序,则无需担心那些 progruard 的东西,只需安装 sbt android-plugin 并设置您的项目即可。

您可以阅读此博客文章了解如何使用 SBT 构建 Android 应用程序。

顺便说一句,我在项目中使用了自己的手工 sbt 插件 sbt-android,而不是android-plugin 。

I'm programming my Android application project in Scala.

If you are interested, you may take a look at this:

Ya, it is a Chinese website, but you may just take a look at screenshots to get some idea about that Scala can do everything with Android SDK just like Java.

The source code of these two android application is hosted on GitHub: http://github.com/brianhsu/Maidroid

Currently I don't use any IDE, because Vim / SBT is far more convenient and lightweight then any IDE I ever used.

And if you are using SBT to build your Scala Android application, you don't need worry about those progruard stuff, just install the sbt android-plugin and setup your project.

You may read this blog entry to learn how to build your Android application with SBT.

BTW, I use my own handcraft sbt plugin called sbt-android in my project, instead of android-plugin metioned in that blog post.

冷情 2024-08-23 06:33:42

有一个新插件 AndroidProguardScala 使一切变得简单:

https://stackoverflow.com/a/11084146/1287856

已测试在 Windows 7 上,使用 Eclipse 3.7、scala 2.9,甚至不使用命令行或自定义 ant 工具。有了它,我为我的业务构建了一个真实的应用程序,目前已在 Google Play 上发布。

There is a new plugin, AndroidProguardScala which makes everything simple :

https://stackoverflow.com/a/11084146/1287856

Tested on Windows 7, with Eclipse 3.7, scala 2.9 and without even using the command line or custom ant tools. With it, I have build a real application for my business that is currently published on Google play.

白首有我共你 2024-08-23 06:33:42

我有一个 scala android 教程,它允许您使用 android 提供的 ant 生命周期目标。请参阅此处 http://saadstechblog.blogspot.com/2011/ 09/scandroid-scala-android-tutorial.html 它还有一个 github 项目的链接,其中包含所有配置。

I have a scala android tutorial it allows you to use the ant lifecycle targets provided by android. please see here http://saadstechblog.blogspot.com/2011/09/scandroid-scala-android-tutorial.html it also has a link to a github project with everything configured.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文