Questions tagged [sbt-android-plugin]

sbt plugin for Android development in Scala

sbt plugin for Android development in Scala. Plugin site is at https://github.com/jberkel/android-plugin

33 questions
1
vote
1 answer

How can I co-locate files between an sbt project and an Eclipse Android project?

I want to be able to use a single set of source files between an sbt android-plugin project, that I'll build from the command line. I'd like to be able share the same AndroidManifest.xml file as well as the res directory. Is there a way I can get…
Jeff Axelrod
  • 27,676
  • 31
  • 147
  • 246
1
vote
0 answers

How can I make an SBT build for multi-projects and multi-platforms?

I'm starting on a medium project with many independent components that can run either on Android or the JVM and I'm wondering how to break it into SBT projects so that the dependencies behave nicely. Here's what I've got so far: core/ for platform…
teryret
  • 577
  • 1
  • 5
  • 15
1
vote
1 answer

Why is my sbt not seeing the Android build tools?

When I do sbt android:package-debug in my project folder, I get this: [error] (android:platform) Platform android-19 unknown in my-project-directory [error] (android:sdk-parser) Android SDK build-tools not found: None [error] Total time: 0 s,…
Enrico Susatyo
  • 19,372
  • 18
  • 95
  • 156
1
vote
1 answer

Unresolved dependency on sbt-android 0.7.1-SNAPSHOT with sbt 0.13 and Scala 2.10?

I'm developing a Hello World-like Android application in Scala. I have followed the Getting Started tutorial in the SBT-Android documentation and also tried applying the recommendations from the Scala on Android book. One does everything from…
user1565940
  • 47
  • 1
  • 5
1
vote
1 answer

Proguard with scala and android-plugin: java.lang.StringIndexOutOfBoundsException: String index out of range: 160

Here is my complete log: log I use scala, sbt and android-plugin. I have a lot of imports so it might be the reason why I get that. Someone seemed to have the same problem and resolved it by "battling with proguard". github issue
Atol
  • 569
  • 4
  • 12
1
vote
1 answer

Generalization in ProGuard's "keep" arguments

ProGuard defines it's "keep" syntax here. [@annotationtype] [[!]public|final|abstract|@ ...] [!]interface|class|enum classname [extends|implements [@annotationtype] classname] [{ [@annotationtype]…
ioreskovic
  • 5,531
  • 5
  • 39
  • 70
1
vote
1 answer

How to make ProGuard keep entire (whole) classes (with fields and methods) without using "-keep"

If I have a Scala Android project and I use these methods in my apk... scala.collection.immutable.List#:: scala.collection.immutable.List#::: ..., after I use ProGuard on it, it will keep scala.collection.immutable.List class with only 2 methods,…
ioreskovic
  • 5,531
  • 5
  • 39
  • 70
1
vote
1 answer

What are the semantics of "proguardInJars" in SBT Android-Plugin?

In SBT Android Plugin, in proguardTask, there is a value proguardInJars. In my simple test project it contains C:\Users\Administrator\.sbt\boot\scala-2.9.1\lib\scala-library.jar. It is then combined with my own compiled classes into another value…
ioreskovic
  • 5,531
  • 5
  • 39
  • 70
1
vote
1 answer

How to make and apply changes to Jan Berkel's android-plugin?

As the title says, I'm wondering how to apply changes to Jan Berkel's SBT Android Plugin. I know what it says there... $ git clone git://github.com/jberkel/android-plugin.git $ cd android-plugin $ sbt publish-local ... and I did that and got…
ioreskovic
  • 5,531
  • 5
  • 39
  • 70
0
votes
1 answer

sbt-android: IntelliJ marks usages of android support resources red

I am using the sbt-android plugin to develop Android Applications with Scala and SBT. I have written a little project from sample code, it runs great. But IntelliJ marks all "pointers" to library resources red - so I can define them, but not use…
0
votes
1 answer

Testing Scala on Android : "Couldn't find scala.reflect.ScalaSignature.bytes"

I am trying to write instrumentation test in Scala (full code is here). Any ideas what might be causing the java.lang.IncompatibleClassChangeError: Couldn't find scala.reflect.ScalaSignature.bytes run-time error ? I am trying to keep…
jhegedus
  • 20,244
  • 16
  • 99
  • 167
0
votes
1 answer

How to use sbt-android to build scala android projects with RenderScript files?

It seems that sbt-android is ignoring the presence of the RenderScript files and is not generating the ScriptC_xxx java classes that are normally generated by gradle builds/Android Studio [UPDATE: this is false, se the update note below]. Because of…
0
votes
1 answer

Android Library error

Hello so I built a android library to unity, and in the beggining it worked fine but know is giving me this error I already tried to update, create a new one, and nothing works Any help? Error image Manifest:
Joao Paulo
  • 21
  • 4
0
votes
2 answers

Is there anyway to prepend a jar to the unmanagedClasspath in sbt

I am using the android-sbt-plugin with the sbt, and I would like to add an unmanaged jar to the test classpath. The reason being android.jar contains stub functions for the org.json libraries and results in exceptions being thrown for unit tests.…
Rohit
  • 79
  • 1
  • 6
0
votes
1 answer

Getting package name from AndroidManifest.xml using SBT and Android Plugin

I'm using SBT and modifying Jan Berkel's Android Plugin in and I need the information about the package name of the Android project I'm trying to build. I know that the package name is located in AndroidManifest.xml, but I was wondering if there…
ioreskovic
  • 5,531
  • 5
  • 39
  • 70