cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Kemp <drk...@chromium.org>
Subject Re: Platform specific preferences
Date Mon, 17 Mar 2014 20:44:46 GMT
Currently preferences can be specified inside a <platform> tag in the
plugin XML. This provides the functionality you describe for a plugin.
I would suggest if we need to add the same functionality at the app level,
then we do it the same way (put preferences inside a Platform tag)




On Sat, Mar 15, 2014 at 7:33 AM, Sergei Grebnov Home <
sergei.grebnov@gmail.com> wrote:

> Hi,
>
>
>
> Propose to add optional 'platform' attribute to 'preference' element
> (config.xml) so that we can specify different preferences for different
> platforms. For example, right now there is a <preference
> name="SplashScreen"
> /> (I'm looking on Android code) but I'm not sure single splash screen
> image
> can fit all different platforms (size, image format, etc).
>
>
>
> <preference name="BackgroundColor" value="#FFD2691E" platform="wp8" /> <-
> wp8 only
>
> <preference name="SplashScreen" value="assets\SplashScreen.png." />  <-- by
> default applied to all platforms
>
> <preference name="SplashScreen"
> value="assets\SplashScreenImage.screen-WVGA.jpg." platform="wp8" /> <- wp8
> will use this image; if remove this preference, wp8 will use preference
> above
>
>
>
> Thoughts?
>
>
>
> Thx!
>
> Sergey
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message