Yes, but it will take a large amount of work for that to happen

On Mon, Apr 28, 2014 at 10:08 AM, Koen Adriaenssens <[email protected]>wrote:

> Hi,
>
> Thanks, I've considered this, but I would like to avoid that this resource
> file appears in the project itself.
>
> Is there any way I could put this file on the target folder, right before
> packaging for example?
>
>
> Thanks!
>
> On 28 Apr 2014, at 18:43, Perry Nguyen <[email protected]> wrote:
>
> Only 'resources' or 'src/main/resources' is supported at the moment
> (depending on layout) -- my suggestion, for now, would be to write a task
> to copy the appropriate file(s) into the resource dir
>
>
> On Mon, Apr 28, 2014 at 9:28 AM, Driak <[email protected]> wrote:
>
>> 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.
>>
>
>  --
> 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.
>
>  --
> 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.
>

-- 
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.

Reply via email to