Hey there, I'm converting a jberkel's project to pfn's one but I have a
couple of errors left:
1) everytime I do "sbt gen-idea" from my root folder It puts another
"project" folder inside my project folder.
2) if I compile with android:apkbuild I've this error:
[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: 17 s, completed 11-nov-2014 9.32.18
my build.scala inside first project folder is:
import android.Keys._
import sbt.Keys._
import sbt._
object AndroidBuild extends Build {
lazy val androidScala = Project(
"FourMeAndroid",
file("."),
settings = fullAndroidSettings
)
lazy val fullAndroidSettings =
Defaults.defaultSettings ++
proguardSettings ++
Seq(
dexMaxHeap in Android := "2048m",
dexCoreLibrary in Android := true,
scalaVersion := Version.scala,
apkbuildExcludes in Android += "META-INF/LICENSE.txt",
scalacOptions ++= Seq(
"-unchecked",
"-deprecation",
"-Xlint",
"-language:_",
"-encoding", "UTF-8"
),
libraryDependencies ++= Seq(
"it.newvision.nv4me.notificationcenter" % "4me-nc-model_2.10.0" %
"0.5.5" 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.android-async" % "androidasync" % "1.1",
"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"
),
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"
)
)
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 **")
unmanagedBase <<= baseDirectory { base => base / "lib"}
object Version {
val scala = "2.10.2"
}
}
--
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.