-
Notifications
You must be signed in to change notification settings - Fork 91
/
Copy pathbuild.sbt
32 lines (23 loc) · 1.1 KB
/
build.sbt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name := "hello-scaloid-sbt"
import android.Keys._
android.Plugin.androidBuild
javacOptions ++= Seq("-source", "1.7", "-target", "1.7")
scalaVersion := "2.11.12"
scalacOptions in Compile += "-feature"
updateCheck in Android := {} // disable update check
proguardCache in Android ++= Seq("org.scaloid")
proguardOptions in Android ++= Seq("-dontobfuscate", "-dontoptimize", "-keepattributes Signature", "-printseeds target/seeds.txt", "-printusage target/usage.txt"
, "-dontwarn scala.collection.**" // required from Scala 2.11.4
, "-dontwarn org.scaloid.**" // this can be omitted if current Android Build target is android-16
)
libraryDependencies += "org.scaloid" %% "scaloid" % "4.2"
run := (run in Android).evaluated
// Tests //////////////////////////////
libraryDependencies ++= Seq(
"org.apache.maven" % "maven-ant-tasks" % "2.1.3" % "test",
"org.robolectric" % "robolectric" % "3.0" % "test",
"junit" % "junit" % "4.12" % "test",
"com.novocode" % "junit-interface" % "0.11" % "test"
)
// without this, @Config throws an exception,
unmanagedClasspath in Test ++= (bootClasspath in Android).value