This repository has been archived by the owner on Oct 1, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 467
Migrating from v1.2.x to v1.3.x
Nikolay Demyankov edited this page Apr 25, 2016
·
1 revision
If you are not using min_native_interface
in your chcp.json
- you can ignore this section. Everyone else - please, keep reading.
In the previous versions of the plugin min_native_interface
was compared with the code (build) version of the application. But that approach had the two main problems:
- When building for Android - Cordova manipulates with
versionCode
preference, what could lead to unexpected behaviour. - In iOS
CFBundleVersion
is a string, so you could define it like1.2.3
, while plugin expects it to be a number.
To avoid these problems in the future - new preference was added to the plugin. It will now use <native-interface version="some_number" />
, that you define in config.xml
of your project. As a result, if chcp.json
has a min_native_interface
preference - it will be compared with <native-interface />
from the config.xml
.
So, if you updating to v1.3.0 and using min_native_interface
- don't forget to define <native-interface />
in project's config.xml
.
- Description
- Supported platforms
- App Store FAQ
- Usage Limitations
- Installation
- Quick start guides
- How plugin works
- config.xml preferences
- Plugin configuration files
- JavaScript module
- Additional utils
- Migrating from previous versions
- Contributors
- Issue creation guide