This repository has been archived by the owner on Nov 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 37
/
build.sbt
98 lines (91 loc) · 3.46 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
lazy val gpgFolder = sys.env.getOrElse("GPG_FOLDER", ".")
pgpPassphrase := Some(sys.env.getOrElse("GPG_PASSPHRASE", "").toCharArray)
pgpPublicRing := file(s"$gpgFolder/local.pubring.asc")
pgpSecretRing := file(s"$gpgFolder/local.secring.asc")
lazy val macroid = (project in file("."))
.aggregate(core, viewable, akka, extras)
.settings(
publish := (),
publishLocal := (),
scalaVersion := "2.11.11",
scalacOptions in (Compile, doc) ++= Seq(
"-sourcepath",
baseDirectory.value.getAbsolutePath,
"-doc-source-url",
"https://github.com/macroid/macroid/tree/master€{FILE_PATH}.scala"
)
)
lazy val core = (project in file("macroid-core"))
.enablePlugins(AndroidLib)
.settings(commonSettings: _*)
.settings(macroSettings: _*)
.settings(
name := "macroid",
description := "A Scala GUI DSL for Android",
homepage := Some(url("http://47deg.github.io/macroid")),
platformTarget in Android := platformV,
unmanagedClasspath in Test ++= (bootClasspath in Android).value,
unmanagedSourceDirectories in Test := Seq(
baseDirectory.value / "src" / "test" / "scala"),
libraryDependencies += {
val scalaAsyncVersion = (scalaBinaryVersion in update).value match {
case "2.10" => "0.9.5"
case _ => "0.9.7"
}
"org.scala-lang.modules" %% "scala-async" % scalaAsyncVersion
}
)
lazy val viewable = (project in file("macroid-viewable"))
.enablePlugins(AndroidLib)
.settings(commonSettings: _*)
.settings(
name := "macroid-viewable",
description := "Typeclasses to turn data into Android layouts",
platformTarget in Android := platformV,
unmanagedClasspath in Test ++= (bootClasspath in Android).value,
homepage := Some(
url("http://47deg.github.io/macroid/docs/modules/Viewable.html"))
)
.dependsOn(core)
lazy val akka = (project in file("macroid-akka"))
.enablePlugins(AndroidLib)
.settings(commonSettings: _*)
.settings(
name := "macroid-akka",
description := "Helpers to attach Akka Actors to Android Fragments",
platformTarget in Android := platformV,
unmanagedClasspath in Test ++= (bootClasspath in Android).value,
homepage := Some(
url("http://47deg.github.io/macroid/docs/modules/Akka.html")),
libraryDependencies += "com.typesafe.akka" %% "akka-actor" % "2.3.16"
)
.dependsOn(core)
lazy val docs = (project in file("macroid-docs"))
.enablePlugins(AndroidLib)
.settings(commonSettings: _*)
.settings(micrositeSettings: _*)
.settings(moduleName := "macroid-docs")
.enablePlugins(MicrositesPlugin)
.settings(name := "docs",
platformTarget in Android := platformV,
unmanagedClasspath in Test ++= (bootClasspath in Android).value,
description := "Macroid Documentation")
.dependsOn(core)
lazy val extras = (project in file("macroid-extras"))
.enablePlugins(AndroidLib)
.settings(commonSettings: _*)
.settings(
name := "macroid-extras",
description := "Tweaks and utilities for android views",
platformTarget in Android := platformV,
unmanagedClasspath in Test ++= (bootClasspath in Android).value,
homepage := Some(
url("http://47deg.github.io/macroid/docs/modules/Extras.html")),
libraryDependencies ++= Seq(
"com.android.support" % "appcompat-v7" % androidV,
"com.android.support" % "recyclerview-v7" % androidV,
"com.android.support" % "cardview-v7" % androidV,
"com.android.support" % "design" % androidV
)
)
.dependsOn(core)