Skip to content
Browse files

move to a single-project structure and add proguard settings

  • Loading branch information...
1 parent 7478bfd commit 7b6a3b4425abd8e6705d0a9841a426c556a38f84 @gseitz committed
Showing with 24 additions and 14 deletions.
  1. +23 −13 project/build/project.scala
  2. +1 −1 project/plugins/project/build.properties
View
36 project/build/project.scala
@@ -1,23 +1,33 @@
import sbt._
trait Defaults {
- def androidPlatformName = "android-4"
+ def androidPlatformName = "android-8"
}
-class Parent(info: ProjectInfo) extends ParentProject(info) {
- override def shouldCheckOutputDirectories = false
- override def updateAction = task { None }
+class AkkaDroid(info: ProjectInfo) extends AndroidProject(info)
+ with Defaults with MarketPublish with TypedResources with AkkaProject{
- lazy val main = project(".", "AkkaDroid", new MainProject(_))
- lazy val tests = project("tests", "tests", new TestProject(_), main)
+ override def adbPath = androidSdkPath / "bin" / adbName
+ override def shouldCheckOutputDirectories = false
- class MainProject(info: ProjectInfo) extends AndroidProject(info)
- with Defaults with MarketPublish with TypedResources with AkkaProject {
-
-
- val keyalias = "change-me"
- val scalatest = "org.scalatest" % "scalatest" % "1.0" % "test"
+ override def proguardOption = """-keepclassmembers class * {
+ ** MODULE$;
}
+
+ -keep class scala.Option
+ -keep class scala.Function1
+ -keep class scala.PartialFunction
+ -keep class akka.**
+ -keep class com.eaio.**
+ -keepclassmembers class com.eaio.**
+ -keepclassmembers class akka.**
+ -keep class org.omg.**
+ -keep class scala.Tuple2
+ -dontskipnonpubliclibraryclassmembers
+ -dontskipnonpubliclibraryclasses
+ """
+ //-dontwarn **$$anonfun$*
+ //
- class TestProject(info: ProjectInfo) extends AndroidTestProject(info) with Defaults
+ val keyalias = "change-me"
}
View
2 project/plugins/project/build.properties
@@ -1,3 +1,3 @@
#Project properties
-#Tue Feb 22 18:57:48 CET 2011
+#Tue Feb 22 23:01:46 CET 2011
plugin.uptodate=true

0 comments on commit 7b6a3b4

Please sign in to comment.
Something went wrong with that request. Please try again.