Created
May 28, 2013 20:52
-
-
Save fxthomas/5666034 to your computer and use it in GitHub Desktop.
Build.scala for https://bitbucket.org/j1m/hipain and SBT-Android 0.7-SNAPSHOT
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sbt._ | |
import Keys._ | |
import org.scalasbt.androidplugin.AndroidPlugin._ | |
object General { | |
// Some basic configuration | |
val settings = Seq ( | |
name := "HiPain", | |
version := "0.1", | |
versionCode := 0, | |
scalaVersion := "2.10.0", | |
platformName := "android-16", | |
libraryDependencies += "org.scalatest" %% "scalatest" % "1.9.1" % "test", | |
proguardOptions ++= Seq( | |
// Needed (all?) for actionbarsherlock | |
"-keep class android.support.** { *; }", | |
"-keep interface android.support.** { *; }", | |
"-keep class com.actionbarsherlock.** { *; }", | |
"-keep interface com.actionbarsherlock.** { *; }", | |
"-keep class scala.reflect.ScalaSignature", | |
"-dontoptimize" | |
) | |
) | |
} | |
object AndroidBuild extends Build { | |
lazy val main = AndroidProject( | |
"main", | |
file("."), | |
settings = General.settings | |
).settings( | |
libraryDependencies ++= Seq( | |
"com.actionbarsherlock" % "actionbarsherlock" % "4.2.0" artifacts( | |
Artifact("actionbarsherlock", "apklib", "apklib")), | |
"com.google.android" % "support-v4" % "r7" | |
) | |
) | |
lazy val tests = AndroidTestProject( | |
"tests", | |
file("tests"), | |
settings = General.settings | |
).settings( | |
name := "HiPainTests", | |
libraryDependencies += "com.jayway.android.robotium" % "robotium-solo" % "4.1" | |
).dependsOn(main % "provided") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment