Uniface Mobile: Changed approach to integrate third-party plugins
Author: rolf.phielix@uniface.com (rolfph)
Lately we experienced some instability issues in the Mobile Build Service (Buildozer) environment. The majority of those instabilities have been caused by issues that can be linked to the Cordova plugins. Causes of these instabilities/failures in the Buildozer environment have been:
- Plugins being included in the build scripts with a URL that points to their git repository, in i.e. GitHub or Bitbucket. The use of URLs proves to be unstable. A better approach, which is also recommended by plugin maintainers, is to use the npm name instead.
- Plugin versions can be out of sync with the Buildozer/appFactory environment. When this happens, builds including these plugins can start failing.
To overcome the above problems we changed the approach to integrate third-party plugins into Uniface mobile apps:
- The Buildozer service has been updated to expect all plugins in the property Plugins (app_custom_plugins ) (formerly Custom Plugins) instead of in the property Phonegap plugins (app_phonegap_plugins), which is no longer available. As a consequence, to continue being able to build your mobile apps, you need to re-specify the plugins you use.
Redefine Plugins for an Existing Mobile App Use the following instructions to ensure that you can continue to build your mobile app.
-
If you have updated your Uniface installation to Uniface 9.7.04 (G413) and Uniface 10.2 (F213) or higher: Specify all plugins that your app uses in the property Plugins, in the format: npmPluginName{@version} By default, the Splash screen plugin is already specified: cordova-plugin-splashscreen.
-
If you are using Uniface 9.7.04 (G408-412) or Uniface 10.2.01 (F208-F212): Add the plugins that your app uses in the property Custom Plugins in the format: npmPluginName{@version} For example: cordova-plugin-splashscreen@4.0.3
-
If you are using Uniface 9.7.04 prior to patch G408 or Uniface 10.2.01 patch F208: Add the plugins that your app uses in the property Custom Plugins in the format: pluginURL{#version} For example: https://github.com/apache/cordova-plugin-splashscreen.git#4.0.3
Additional information: If you do not specify the Splash screen plugin, the splash screen will no longer be displayed when the app is started. Uniface no longer maintains its own list of supported plugin versions. If you want to be sure that your current mobile app uses the same version of the plugin as was last supported by Uniface, specify its version number provided in the following table.