Hi,
I have some issues in getting an external resource file included into the
.apk. I'm using this to dynamically include some environment-specific
settings.
I'm using the 'pfn/android-sdk-plugin' tool, so far with great success, but
this problem has been eluding me…
In Build.sbt I include the following:
lazy val awvEnv = settingKey[String]("the currently selected awv
environment")
awvEnv := sys.env.getOrElse("AWV_ENV","LOCAL").toLowerCase()
unmanagedResourceDirectories in Compile += {
baseDirectory.value / "environment" / (awvEnv.value + ".properties")
}
On the sbt console I can see that the selected resource file is correctly
included using:
> show unmanagedResources
However, when I package the .apk file, the resource is not there.
I'm obviously doing something wrong here….
What's the preferred way to selectively include an external resource in the
project?
(I did not put the resource files into the 'assets' folder because I want
to selectively include a single file, from a directory that is not part of
the build itself.)
regards,
Driak.
--
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.