Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

CB-11176 Fix windows-splashscreen compatibility with older plugin ver… #172

Merged
merged 1 commit into from
May 4, 2016
Merged

CB-11176 Fix windows-splashscreen compatibility with older plugin ver… #172

merged 1 commit into from
May 4, 2016

Conversation

daserge
Copy link
Contributor

@daserge daserge commented Apr 29, 2016

var pluginsVersions = require("cordova/plugin_list").metadata;
var splashscreenVersion = pluginsVersions['cordova-plugin-splashscreen'];
var MIN_SPLASHSCREEN_SUPPORTED_VER = 4;
if (splashscreenVersion && parseInt(splashscreenVersion[0], 10) < MIN_SPLASHSCREEN_SUPPORTED_VER) {
Copy link
Contributor

@rakatyal rakatyal Apr 29, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it supposed to not work for 4.x versions as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This regards to the plugin version and not to the platform' one, i.e. it should work starting with cordova-plugin-splashscreen@4 (as it will just redirect API calls to the platform).

@rakatyal
Copy link
Contributor

Minor comments. Otherwise LGTM.

@codecov-io
Copy link

codecov-io commented May 4, 2016

Current coverage is 73.42%

Merging #172 into master will not change coverage

@@             master       #172   diff @@
==========================================
  Files            14         14          
  Lines          1862       1862          
  Methods         342        342          
  Messages          0          0          
  Branches        379        379          
==========================================
  Hits           1367       1367          
  Misses          495        495          
  Partials          0          0          

Powered by Codecov. Last updated by 033956d...b48e5d8

@asfgit asfgit merged commit b8b636c into apache:master May 4, 2016
@daserge daserge deleted the CB-11176 branch May 4, 2016 15:18
if (service === 'SplashScreen') {
var pluginsVersions = require("cordova/plugin_list").metadata;
var splashscreenVersion = pluginsVersions['cordova-plugin-splashscreen'];
var MIN_SPLASHSCREEN_SUPPORTED_VER = 4;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From this line, should I understand that the next 4.x.x release here https://github.com/apache/cordova-plugin-splashscreen/releases will be fully compatible with windows ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants