-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sbt
58 lines (47 loc) · 2.05 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
android.Plugin.androidBuild
platformTarget in Android := "android-21"
name := "macroid-akka-pingpong"
scalaVersion := "2.11.4"
javacOptions ++= Seq("-target", "1.7", "-source", "1.7") // so we can build with java8
// a shortcut
run <<= run in Android
resolvers ++= Seq(
Resolver.sonatypeRepo("releases"),
"jcenter" at "http://jcenter.bintray.com"
)
// add linter
scalacOptions in (Compile, compile) ++=
(dependencyClasspath in Compile).value.files.map("-P:wartremover:cp:" + _.toURI.toURL) ++
Seq("-P:wartremover:traverser:macroid.warts.CheckUi")
libraryDependencies ++= Seq(
aar("org.macroid" %% "macroid" % "2.0.0-M3"),
"com.android.support" % "support-v4" % "21.0.2",
"org.macroid" %% "macroid-akka-fragments" % "2.0.0-M3",
"com.typesafe.akka" %% "akka-actor" % "2.3.6",
compilerPlugin("org.brianmckenna" %% "wartremover" % "0.11")
)
proguardScala in Android := true
// Generic ProGuard rules
proguardOptions in Android ++= Seq(
"-ignorewarnings",
"-keep class scala.Dynamic"
)
// ProGuard rules for Akka
proguardOptions in Android ++= Seq(
"-keep class akka.actor.Actor$class { *; }",
"-keep class akka.actor.LightArrayRevolverScheduler { *; }",
"-keep class akka.actor.LocalActorRefProvider { *; }",
"-keep class akka.actor.CreatorFunctionConsumer { *; }",
"-keep class akka.actor.TypedCreatorFunctionConsumer { *; }",
"-keep class akka.dispatch.BoundedDequeBasedMessageQueueSemantics { *; }",
"-keep class akka.dispatch.UnboundedMessageQueueSemantics { *; }",
"-keep class akka.dispatch.UnboundedDequeBasedMessageQueueSemantics { *; }",
"-keep class akka.dispatch.DequeBasedMessageQueueSemantics { *; }",
"-keep class akka.dispatch.MultipleConsumerSemantics { *; }",
"-keep class akka.actor.LocalActorRefProvider$Guardian { *; }",
"-keep class akka.actor.LocalActorRefProvider$SystemGuardian { *; }",
"-keep class akka.dispatch.UnboundedMailbox { *; }",
"-keep class akka.actor.DefaultSupervisorStrategy { *; }",
"-keep class macroid.akkafragments.AkkaAndroidLogger { *; }",
"-keep class akka.event.Logging$LogExt { *; }"
)