Skip to content

Instantly share code, notes, and snippets.

@vladimir-kotikov
Last active August 29, 2015 14:01
Show Gist options
  • Save vladimir-kotikov/0996614a467dca79e31c to your computer and use it in GitHub Desktop.
Save vladimir-kotikov/0996614a467dca79e31c to your computer and use it in GitHub Desktop.
Platform specific config.xml properties for Android and iOS

Platform specific config.xml properties for Android and iOS

PhoneGap Build has these features already implemented via <preference /> tag like

<!-- IOS -->
<preference name="target-device" value="universal" />
<preference name="deployment-target" value="7.0" />
<!-- Android -->
<preference name="android-minSdkVersion" value="10" />
<preference name="android-targetSdkVersion" value="12" />
<preference name="android-maxSdkVersion" value="15" />

We can use the same approach by implementing hooks for this preferences in platform-specific config parsers in cordova-lib

ETA

ETA for this feature ~ 4 days for both iOS and Android.

References

@sgrebnov
Copy link

sgrebnov commented Jul 7, 2014

Currently used by Cordova on Android
< uses-sdk android:minSdkVersion="10" android:targetSdkVersion="19" / >

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment