Migrating from v1.2.x to v1.3.x - snipking/cordova-hot-code-push GitHub Wiki
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
versionCodepreference, what could lead to unexpected behaviour. - In iOS
CFBundleVersionis 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.