0

Working on a mobile package with splashscreen dependencies.

Cordova.depends({
'org.apache.cordova.splashscreen': '1.0.0'
});

The above works. However, theres a fatal error in version 1.0.0 and I cant use it. Fortunately, they've patched it in a fork of the plugin @ 'https://github.com/TheBosZ/cordova-plugin-splashscreen/tarball/891cbf29bf0a7194f637fac4987c1ff4da97f146ss'

So I should be able to do this....

Cordova.depends({
     'org.apache.cordova.splashscreen': 'https://github.com/TheBosZ/cordova-plugin-splashscreen/tarball/891cbf29bf0a7194f637fac4987c1ff4da97f146ss',
});

But its giving me there error Cordova Depends Version string must look like semver error. What gives?

Mirrorcell
  • 384
  • 2
  • 10
  • See this answer for adding the plugin: http://stackoverflow.com/questions/26068852/how-to-add-a-cordova-plugin-to-meteor-that-isnt-in-the-phonegap-registry. Then try using the version in the package.json file ( https://github.com/TheBosZ/cordova-plugin-splashscreen/blob/master/package.json), 1.0.1-dev. – Mark Leiber Apr 28 '15 at 02:07
  • Heh I actually commented in that thread, thats me at the bottom. So in that case, if someone were to download my plugin, they would have to add the forked repo themselves? – Mirrorcell Apr 28 '15 at 02:14
  • I also cant do this... for some reason. meteor add cordova:org.apache.cordova.splashscreen@https://github.com/apache/cordova-plugin-splashscreen/tarball/b7750760f40c22034c311df94eb46ed216f96f12 – Mirrorcell Apr 28 '15 at 02:25

1 Answers1

0

I figured it out. For one, the plugin here: http://plugins.cordova.io/#/package/org.apache.cordova.splashscreen

and the git which corresponds to it here: https://github.com/apache/cordova-plugin-splashscreen

have different package names. Furthermore, meteor actually packages splash screen without all mobile apps. Which is why I was getting errors when I tried to add the correct one to my project. Case closed.

Mirrorcell
  • 384
  • 2
  • 10