-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
72 lines (50 loc) · 1.9 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
import android.Keys._
import android.Dependencies.{LibraryDependency, aar}
// Using Android Plugin
android.Plugin.androidBuild
// SDK version target
platformTarget in Android := "android-21"
dexMaxHeap in Android := "3000m"
run <<= run in Android
name := "DontTouchMeApp"
version := "1.0"
scalaVersion := "2.11.6"
//crossScalaVersions ++= Seq("2.11.0", "2.11.6")
resolvers += "jcenter" at "http://jcenter.bintray.com"
resolvers += "MPAndroidChart" at "https://jitpack.io"
resolvers += "mvessel" at "https://oss.sonatype.org/content/repositories/snapshots/"
javacOptions ++= Seq("-source", "1.7", "-target", "1.7")
scalacOptions ++= Seq("-feature", "-deprecation", "-target:jvm-1.7")
libraryDependencies ++= Seq(
"com.fortysevendeg" %% "mvessel-android" % "0.2-SNAPSHOT",
aar("org.macroid" %% "macroid" % "2.0.0-M4"),
aar("com.android.support" % "support-v4" % "21.0.0"),
aar("com.github.PhilJay" % "MPAndroidChart" % "v2.2.3"),
"com.typesafe.slick" %% "slick" % "3.1.1",
"org.slf4j" % "slf4j-nop" % "1.6.4",
//"com.mcxiaoke.volley" % "library" % "1.0.0"
aar("com.loopj.android" % "android-async-http" % "1.4.9")
)
addCompilerPlugin("org.brianmckenna" %% "wartremover" % "0.10")
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"
)
proguardScala in Android := true
proguardOptions in Android ++= Seq(
"-ignorewarnings",
"-keep class scala.Dynamic",
"-keep class scala.concurrent.ExecutionContext",
"-keep class com.fortysevendeg.mvessel.AndroidDriver",
"-keep class slick.driver.SQLiteDriver",
"-keep class cz.msebera.android.httpclient",
"-keep class com.loopj.android",
"-keep interface com.loopj.android"
)
proguardCache in Android ++= Seq(
"android.support",
"macroid",
"slick",
"android-async-http"
)