-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sbt
48 lines (36 loc) · 1.38 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import android.Keys._
import android.Dependencies.{LibraryDependency, aar}
android.Plugin.androidBuild
platformTarget in Android := "android-19"
name := "scala-okhttp-demo"
scalaVersion := "2.11.1"
run <<= run in Android
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
"jcenter" at "http://jcenter.bintray.com"
)
scalacOptions in (Compile, compile) ++=
(dependencyClasspath in Compile).value.files.map("-P:wartremover:cp:" + _.toURI.toURL)
scalacOptions in (Compile, compile) ++= Seq(
"-P:wartremover:traverser:macroid.warts.CheckUi"
)
libraryDependencies ++= Seq(
aar("org.macroid" %% "macroid" % "2.0.0-M3"),
//aar("com.google.android.gms" % "play-services" % "4.0.30"),
//aar("com.android.support" % "support-v4" % "20.0.0"),
"com.squareup.okhttp" % "okhttp" % "2.0.0",
// This is the only 2.11 version I could see
"io.spray" % "spray-json_2.11.0-RC4" % "1.2.6",
compilerPlugin("org.brianmckenna" %% "wartremover" % "0.10")
)
proguardScala in Android := true
proguardOptions in Android ++= Seq(
"-ignorewarnings",
"-keep class scala.Dynamic"
)
proguardCache in Android ++= Seq(
ProguardCache("macroid") % "org.macroid" %% "macroid",
ProguardCache("com.squareup.okhttp") % "com.squareup.okhttp" % "okhttp",
ProguardCache("spray") % "io.spray" %% "spray-json_2.11.0-RC4"
//ProguardCache("com.google.android.gms") % "com.google.android.gms" % "play-services"
)