Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align npm package name with plugin ID in plugin.xml #199

Closed
jakub-g opened this issue Aug 12, 2016 · 3 comments
Closed

Align npm package name with plugin ID in plugin.xml #199

jakub-g opened this issue Aug 12, 2016 · 3 comments

Comments

@jakub-g
Copy link
Contributor

jakub-g commented Aug 12, 2016

Hello,

FYI, in plugin.xml you have

https://github.com/BranchMetrics/cordova-ionic-phonegap-branch-deep-linking/blob/master/plugin.xml#L28

<plugin ... id="io.branch.sdk" version="2.1.10">

whereas the package name of the plugin in npm is branch-cordova-sdk

This discrepancy is confusing, no other cordova plugin we're using is doing this.

We found this out because we have some tooling put in place that verifies before build if each plugin from app's package.json (we use ionic) is installed, and up to date, by checking ./plugins/${npm-package-name}/plugin.xml and/or package.json, but in your case, the folder created in plugins dir is
io.branch.sdk, not branch-cordova-sdk as the npm repo name suggests.

@aaustin
Copy link
Contributor

aaustin commented Aug 14, 2016

That is suspicious. I'm not sure when this occurred. It'll be hard to change the name on NPM, but it shouldn't be too hard to change the plugin title.

Do you foresee any breaking changes if we were to change the id of the plugin in terms of backwards compatibility?

cc @amit-bansil

@amit-bansil
Copy link
Contributor

My concern is that when you install if the plugin id changes you'll end up
with a new copy and an old copy. Maybe we can test on the testbed and then
see what the plugins directory contains? I'm not at a computer until Monday
but can look into it then.

On Sun, Aug 14, 2016 at 2:57 PM Alex Austin notifications@github.com
wrote:

That is suspicious. I'm not sure when this occurred. It'll be hard to
change the name on NPM, but it shouldn't be too hard to change the plugin
title.

Do you foresee any breaking changes if we were to change the id of the
plugin in terms of backwards compatibility?

cc @amit-bansil https://github.com/amit-bansil


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#199 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAkDPL4Voa_hdBnfAToT208Xc_6pUZuHks5qf2U0gaJpZM4JjA_7
.

@amit-bansil
Copy link
Contributor

I've tested several approaches to solving this problem and it looks like there is no way to change the plugin id without ending up with two copies of the plugin installed on update. As such, although I completely understand your concern @jakub-g, at this stage in the game I think we are stuck with the mistake. I'm closing this issue.

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

No branches or pull requests

3 participants