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

android: ant? #40

Open
jimfulton opened this issue Jan 25, 2013 · 5 comments
Open

android: ant? #40

jimfulton opened this issue Jan 25, 2013 · 5 comments

Comments

@jimfulton
Copy link

I like to use both Eclipse and command-line tools when working on apps.

The command-line tools are useful for continuous integration, or even just doing a quick build when not making code changes.

It would be great to include a section in your tutorial on how to use the command line tools. I know I'd be interested. (My next task is to try to figure this out.)

@jimfulton
Copy link
Author

I made some progress:

https://gist.github.com/4649546

That lists a number of issues, the biggest being how to drive proguard. I've tried and failed so far.

I'm still a newby to the Java ecosystem so this has been quite a struggle. I'm guessing that there could be a pretty reusable chunk of build.xml and maybe proguard config that would make this a lot easier.

@huitseeker
Copy link
Member

I'm confused about the exact issue you are raising, and how it concerns the Scala-IDE plugin (as opposed to e.g. Eclipse). Eclipse has some Ant support.

What exact behavior from the Scala-IDE plugin would you consider as something that solves your issue ?

@jimfulton
Copy link
Author

I believe this is a documentation project.

The goal of
http://scala-ide.org/docs/tutorials/androiddevelopment/index.html, I
assume, is to help people develop Android applications with scala.

Explaining how to use the IDE is very helpful and much appreciated,
but without describing how someone would do continuous integration,
you leave people only part way to the finish line. In fact, that's
where I find myself now. :) I've got some beautiful scala code for
some activities. I can run tests interactively from Eclipse and see
that they pass, however I can't proceed until I can build and run with
Jenkins.

I also asked this question here:
banshee/AndroidProguardScala#31
I guess my next step will be to figure out the android plugin for
sbt.

I wasn't necessarily suggesting a change to the IDE. I could imagine
the IDE maybe helping, say by generating a build file that took
advantage of the scala libraries installed by the IDE. I suspect
though that this isn't worth the bother.

@huitseeker
Copy link
Member

What you are saying is important relevant to Scala development, but the present issue may not be the best way to get it acted on. Among others, the scope of the issue is particularly wide, e.g. there are many ways to implement command-line trigger-able builds (sbt, maven, ant) and it's unclear whether we should recommend one over the others. You may get faster and more relevant answers asking parent projects (including banshee, of course).

That being said, we'd be happy to link to references.

@jimfulton
Copy link
Author

the scope of the issue is particularly wide, e.g. there are many ways to implement
command-line trigger-able builds (sbt, maven, ant) and it's unclear whether we
should recommend one over the others.

Theoretically, there may be many ways, but I'm not convinced that
there are many ways that work, especially in tandem with Eclipse. For
example, I've found that Maven and Eclipse don't seem to get along
well, in part because Maven wants to take over much of what Eclipse is
doing. Or so it seems. Other documentation I've stumbled on seems to
reflect command-line-only workflow.

The Android docs do a good job of showing how to use both Eclipse
and command-line tools for Java development of android apps. I find
this very productive. This required them picking Ant to talk about,
even though other tools can theoretically be used. Having something
similar (using sbt or Ant or whatever) for scala would make it a lot
easier for people to adopt scala for their android projects.

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

2 participants