AndroidProguardScala icon indicating copy to clipboard operation
AndroidProguardScala copied to clipboard

Android Studio / gradle support

Open tonyxiao opened this issue 11 years ago • 8 comments

I'm interested in helping port this plugin over to gradle / android studio. Is there a high level doc with rundown on the approaches used here?

tonyxiao avatar Jul 20 '14 18:07 tonyxiao

it's not needed there, I think but the approach here is that results of running Proguard on Scala library are cached and reused when possible, speeding up builds

magicgoose avatar Jul 20 '14 19:07 magicgoose

Why is it not needed? Does gradle already do caching of proguard outputs?

tonyxiao avatar Jul 22 '14 05:07 tonyxiao

@tonyxiao don't know much about gradle, I used sbt for scala projects on a decent machine with SSD the difference is small enough to not bother :laughing: especially if not using Eclipse :laughing:

magicgoose avatar Jul 22 '14 08:07 magicgoose

I haven't written much other than the README.

Definitely check out https://groups.google.com/forum/#!forum/scala-on-android and see if other people have worked on this.

One thing that's discouraged me (in a good way!) from working on this much lately is that Android-L has some things coming in it that I think will make this obsolete. Built-in multidexing, for one - the 64k limit is basically going away from what I can tell. And they're planning to provide that support in a library, so you'll be able to use it on pre-L devices. (Give the pocast a listen - http://androidbackstage.blogspot.com/2014/08/android-developers-backstage-episode-11.html)

banshee avatar Aug 12 '14 14:08 banshee

@magicgoose - I'm also confused about your comments. You're using Scala + Android + Gradle + Proguard and it's reasonably performant? Like everyone, I use SSDs, and there's no way I'd tolerate Proguard runs on every build - it's way too slow.

banshee avatar Aug 12 '14 15:08 banshee

@banshee No, not Gradle, but SBT. I couldn't make Gradle work with Scala. And of course it's not lightning fast, but I think it's tolerable. Maybe it does some magic which I'm not aware of...

magicgoose avatar Aug 12 '14 18:08 magicgoose

You're using https://github.com/pfn/android-sdk-plugin, right? That does the same sort of thing that this Eclipse plugin does.

On Tue, Aug 12, 2014 at 11:06 AM, magicgoose [email protected] wrote:

@banshee https://github.com/banshee No, not Gradle, but SBT. I couldn't make Gradle work with Scala. And of course it's not lightning fast, but I think it's tolerable. Maybe it does some magic which I'm not aware of...

— Reply to this email directly or view it on GitHub https://github.com/banshee/AndroidProguardScala/issues/52#issuecomment-51952973 .

James Moore [email protected] http://jamesmoorecode.blogspot.com/

banshee avatar Aug 12 '14 18:08 banshee

@banshee No, I had addSbtPlugin("org.scala-sbt" % "sbt-android" % "0.7")

magicgoose avatar Aug 13 '14 03:08 magicgoose