my build.scala with jberkel's addon was:
import sbt._
import Keys._
import AndroidKeys._
object General {
val settings = Defaults.defaultSettings ++ Seq (
name := "FourMeAndroid",
version := "4.2.100",
versionCode := 28,
scalaVersion := "2.10.1",
platformName in Android := "android-17"
)
val proguardSettings = Seq (
useProguard in Android := true
)
val pgOptions = Seq(
"-dontoptimize -dontpreverify -dontobfuscate", // shrinking only
"-dontskipnonpubliclibraryclassmembers", // keep Jackson's
internal classes
"-dontskipnonpubliclibraryclasses", // keep Jackson's
internal classes
"-keepattributes *Annotation*.", // keep Jackson Json
Annotations.
"-keepclassmembers enum * { public static **[] values(); public static **
valueOf(java.lang.String); }",
"-keep public class it.newvision.nvp.*.services.model.**",
"-keep public class it.newvision.nvp.*.model.**",
"-keep interface android.support.v4.app.** { *; }",
"-keep class scala.collection.SeqLike { public protected *; }",
"-keep public class com.sun.jersey.core.util.MultivaluedMapImpl",
"-keep public class com.sun.jersey.api.client.config.ClientConfig",
"-keep public class com.sun.jersey.api.client.config.DefaultClientConfig",
"-keep public class org.codehaus.jackson.map.JsonSerializer",
"-keep public class org.codehaus.jackson.map.JsonDeserializer",
"-keep public class akka.actor.** { public protected *; }",
"-keep public class akka.event.** { public protected *; }",
"-dontnote **").mkString(" ")
unmanagedBase <<= baseDirectory { base => base / "lib" }
lazy val fullAndroidSettings =
General.settings ++
AndroidProject.androidSettings ++
TypedResources.settings ++
proguardSettings ++
AndroidManifestGenerator.settings ++
AndroidMarketPublish.settings ++ Seq (
proguardOption in Android := pgOptions,
resolvers ++= Seq(
"maven-repo" at "file://\\\\pz-ci\\ci_repository\\maven_repository",
"maven-repo-local-additions" at
"file://\\\\pz-ci\\ci_repository\\maven-repo-local-additions"
),
libraryDependencies ++= Seq(
"it.newvision.nv4me.notificationcenter" % "4me-nc-model_2.10.0" %
"0.5.4" excludeAll(ExclusionRule(organization = "org.codehaus.jackson"),
ExclusionRule(organization = "org.slf4j")),
"it.newvision.nvp" % "xcontents-core-model_2.10.0" % "4.2.0"
excludeAll(ExclusionRule(organization = "org.codehaus.jackson"),
ExclusionRule(organization = "org.slf4j")),
"it.newvision.nvp" % "nvp-sso-core-model_2.10.0" % "4.2.0"
excludeAll(ExclusionRule(organization = "org.codehaus.jackson"),
ExclusionRule(organization = "org.slf4j")),
"it.newvision.nvp" % "xadmin-core-model_2.10.0" % "4.2.0"
excludeAll(ExclusionRule(organization = "org.codehaus.jackson"),
ExclusionRule(organization = "org.slf4j")),
"it.newvision.nvp" % "xpackager-core-model_2.10.0" % "4.2.0"
excludeAll(ExclusionRule(organization = "org.codehaus.jackson"),
ExclusionRule(organization = "org.slf4j")),
"it.newvision.4me.ue" % "4me-ue-model_2.10.0" % "1.3"
excludeAll(ExclusionRule(organization = "org.codehaus.jackson"),
ExclusionRule(organization = "org.slf4j")),
"com.typesafe.akka" % "akka-actor_2.10" % "2.1.4",
"commons-lang" % "commons-lang" % "2.6",
"com.google.android" % "support-v4" % "13",
"com.actionbarsherlock" % "actionbarsherlock" % "4.2.0",
"org.apache.httpcomponents" % "httpmime" % "4.1",
"org.codehaus.jackson" % "jackson-mapper-asl" % "1.9.12",
"com.koushikdutta.async" % "androidasync" % "1.3.8",
"com.nostra13.universalimageloader" % "universal-image-loader" %
"1.9.0",
"org.apache.commons" % "commons-lang3" % "3.3",
"ch.acra" % "acra" % "4.5.0",
"com.squareup.picasso" % "picasso" % "2.3.4"
),
keyalias in Android := "android4MEApp"
)
}
object AndroidBuild extends Build {
lazy val main = Project (
"FourMeAndroid",
file("."),
settings = General.fullAndroidSettings
)
}
I have just to import It with your plugin to use dexMaxHeap because the
project is getting too big and It was on outOmMmemory in dexing.
But i can't do a different build without a wiki, and, you know, I'm noob.
my project structure is:
<https://lh6.googleusercontent.com/-PrXB42S-qKg/VFyWlhv_mbI/AAAAAAAADaA/QVXSdDGzEkk/s1600/Schermata%2B2014-11-07%2Balle%2B10.51.04.png>
Il giorno giovedì 6 novembre 2014 18:12:55 UTC+1, pfn ha scritto:
>
> find . -name R.java
>
> Remove the duplicates
>
> On Thu, Nov 6, 2014, 9:11 AM Perry Nguyen <[email protected] <javascript:>>
> wrote:
>
>> Use only one or the other, if auto build doesn't work, only use the
>> androidBuild settings
>>
>> On Thu, Nov 6, 2014, 9:00 AM alessio crestani <[email protected]
>> <javascript:>> wrote:
>>
>>> [info] Compiling 111 Scala sources and 140 Java sources to
>>> /Users/alessio.crestani/Documents/repos/fourmeandroidapp/target/
>>> android-bin/classes...
>>> [error] /Users/alessio.crestani/Documents/repos/fourmeandroidapp/target/
>>> android-gen/it/newvision/fourme/BuildConfig.java:6: BuildConfig is
>>> already defined as object BuildConfig
>>> [error] public final class BuildConfig {
>>> [error] ^
>>> [error] /Users/alessio.crestani/Documents/repos/fourmeandroidapp/target/
>>> android-gen/it/newvision/fourme/Manifest.java:10: Manifest is already
>>> defined as object Manifest
>>> [error] public final class Manifest {
>>> [error] ^
>>> [error] /Users/alessio.crestani/Documents/repos/fourmeandroidapp/target/
>>> android-gen/it/newvision/fourme/R.java:10: R is already defined as
>>> object R
>>> [error] public final class R {
>>> [error] ^
>>> [error] three errors found
>>> [error] (compile:compile) Compilation failed
>>> [error] Total time: 15 s, completed 6-nov-2014 17.59.24
>>> >
>>>
>>> Il giorno giovedì 6 novembre 2014 17:29:00 UTC+1, pfn ha scritto:
>>>
>>>> According to your log, you did not apply the AutoBuild or the
>>>> androidBuild change.
>>>>
>>>>
>>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "scala-on-android" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected] <javascript:>.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
--
You received this message because you are subscribed to the Google Groups
"scala-on-android" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.