-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Update plugin to use GCM Cocoapods <framework> reference in plugin.xml #1183
Conversation
Shouldn't the plugin.xml have some property to only install in that future version? |
@jcesarmobile yes, see linked reference to the Roadmap issue phonegap/phonegap-roadmap#131 where Steve has already commented on this. I didn't work on that yet since the implementation is incomplete |
Updated
It looks like it is honoring the |
Found the culprit. This line. id is Because the second condition is true, that whole statement is true, so it returns the promise, and never gets to getFetchVersion below. |
@shazron is this PR good to be merged? |
Not yet, I'm waiting on @stevengill to comment on the above since we are not backwards compatible currently. |
So check it, if you install the plugin via git or local path, So what this means is if you try to install a plugin that isn't supported by your platform/tools, you get a warning it isn't supported and it won't install. Users have to either use a older version of the plugin or update their projects to use the newer platforms/tools. This is expected behavior. If the user installs the plugin via npm, we will auto fetch the appropriate version based on their installed platforms/tools. I recommend not merging this change until cordova@6.4.0 and ios@4.3.0 are released. Right now, if people install the push plugin via git and you update master to this change, they will not be able to install and won't be able to update their existing projects since the new versions don't exist yet. |
If you think most people are installing via npm, then go ahead and merge. Though this change isn't useable until ios@4.3.0 and cordova@6.4.0 are released. |
I'll defer to Simon on what he wants to do, to avoid any headaches. Publish now:
Publish once the respective cli and platforms are published:
|
@shazron why don't we just add information to the docs for local and git url users? It would go in: https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md |
@macdonst sure, let's do that. So are you leaning to "publish now", then? |
@shazron yeah, always be publishing. The earlier we get it out the quicker we get feedback and can improve on things. |
Ok, I'll update the docs for final review and will let all of you know when it is done. |
Ok docs updated for CocoaPods support. Have a look. |
@shazron looks great. I'm going to merge on Monday as I don't want to do a release today. I'd prefer not to be fielding support questions all weekend. |
Hi, is anything blocking the release still? |
@wzoom I was traveling all last week so I did not get a chance to do a release of this functionality. It won't really be usable until cordova-ios 4.3.0 is release anyway so there is no big rush. |
You forgot to change the plugin version on plugin.xml |
@jcesarmobile thanks! updated. |
Requires cordova-ios 4.3.0 or greater, and cordova-cli 6.4.0 or greater. Add GoogleCloudMessaging CocoaPod v1.2.0 Add GGLInstanceID CocoaPod v1.2.1 Update package.json for cordovaDependencies cordova and cordova-ios Update plugin.xml for cordova and cordova-ios dependencies in <engines>
Rebased. |
This thread has been automatically locked. |
Description
This PR is to remove inclusion of GCM inside this plugin, and replace it Instead with a reference to the Cocoapod itself. A future version of the cordova-cli and the cordova-ios platform will support this new Cocoapod reference.
Motivation and Context
This change facilitates easy updates of GCM in this plugin.
How Has This Been Tested?
Note that
pod setup
will clone a repo that is 475MB in size, so it might take a while.Test only with the cli nightlies starting with the nightly released on Monday Sept 5th 8PM PDT or install the
cordova-ios
platform from the git repo directAfter testing, to revert to your original Cordova CLI or the latest:
where VERSION is your specific version.
Types of changes
Checklist:
This is a packaging change, no new tests need to be added.