-
Notifications
You must be signed in to change notification settings - Fork 509
Conversation
@amritk Thanks for helping! So, looking at the push plugin + docs + blog post, and even though I haven't really tested it myself recently or talked to @macdonst specifically about it, I think there's something not matching or still unclear. You see, at the plugin.xml file over at the push plugin (which was recently updated with the same goal as this, which is to support So, my point is (and @macdonst could help us on this one):
We could summon the boss Joe Bowser in here if needed, but I think we can test and solve this ourselves. |
Yea I wasn't 100% sure if I was doing it right. But I did get it working for my own case. Definitely needs to be checked by someone more knowledgeable. |
@amritk @fredgalvao yeah, the new project structure for Android Studio 3.0.0 compatibility released in cordova-android 7.0.0 is a bit of a pain but it lines us up with Google going forward. Any plugin that relies on paths to config files will need to be updated and a new version released. This is one of the reasons why it is cordova-android 7.0.0. When major version numbers change then you can expect some breaking changes. My suggestion would be for the maintainer to pull in this change, bump the version to 2.0.0 and add and engine section to plugin.xml & package.json so that if you are running cordova-android 7 or higher it installs version 2.0.0 but if cordova-android is less then 7 it installs the 1.x stream. |
@macdonst My question is regarding the actual need to change the |
@fredgalvao in this case there is a mapping in cordova-android for |
I was about to bet there to be a specific mapping for I'll have to test the build on my app with this update, but it'll require a lot of upgrades on my part, so it might take a while. Regardless, facebook-sdk asking for a minSdk=15 shouldn't be an issue, it's just a "minimum", isn't it? It shouldn't conflict, but then again, I'll have to test it myself and see what you're going through. Thanks for clarifying anyway, @macdonst. @amritk I'd say now that it's preferable to leave the old raw |
@fredgalvao cool yea if you can get it working on both then that would be ideal |
@fredgalvao @amritk guyz, had you had time to work on this compatibility with cordova-Android 7.0.0? could I help with some tests or something? or should it be merged? |
I'm just using the pull request, working fine for me at the moment in production. |
@peterpeterparker I am waiting on a few releases on the cordova world to be able to fully test this and all the new stuff on platforms on my project, so it's a "not yet" for me. |
@amritk @fredgalvao thx for your feedback, appreciated! today I noticed that I wasn't able to update any plugins of the last cordova release (https://cordova.apache.org/news/2017/12/20/plugins-release.html) because I wasn't able to upgrade yet to cordova-android@7.0.0, that's why I asked to know the status of this PR if you need any beta tester, just ping me, I would like to help there |
How is it going guys ? |
@rfreis in the meantime, to solve the issue, you could use the workaround described by @ChrisHSandN in #599 it works just fine |
@peterpeterparker thanks for reply. |
@rfreis can't help you there unfortunately, I don't use pro |
@peterpeterparker no problem buddy. Thank you very much for your reply! |
@amritk @peterpeterparker @rfreis FYI I'll be migrating/upgrading platforms on my project soon (this week/weekend) and I'll then have time to play with this a bit. We might have a merge then, if all goes well and if I can clarify the doubts I mentioned before. We'll still need help from someone with permission to publish to npm after that. |
@fredgalvao thx in advance for all the effort, kudos |
config-file seems to correct automaticaly paths only with 'AndroidManifest.xml', files ended with 'config.xml' files ended with 'strings.xml' or files matched with "res/xml'. This PR modifies "res/values/facebookconnect.xml" too and I think the building issue comes from here. Am I wrong ? |
@kevin-lot You seem very much correct. It's close to confirmed that we won't need the change on the As Simon mentioned, we'll need to update plugin.xml on the What do you think, @amritk ? |
@fredgalvao I've to be honest, I don't get all the subtlety of this PR, but just wanted to ask, do you think we should merge it/include it in next version (in the same time as Fb SDK/iOS 11 PR #634) or it's not mergeable? |
Considering what @kevin-lot found with #621, and with the final simpler solution suggested by @ChrisHSandN here I'd say we're safer going on that route instead. It's simpler, delegates configuration to It's independent from the SDK issues, but we should aim to get them both if we want a pristine version working with modern libs. |
If we all agree on that, we can close a bunch of issues with a single release. |
@fredgalvao I'm agree with you, I like @ChrisHSandN solution 👍 I have now merged the iOS11 branch into master. Could you take care of merging and/or closing the PRs related to this cordova-android improvements? I would feel more comfortable to let you do it, you know way better than me this topic Afterwards I suggest that we bump up the plugin version to v2.0.0, agree? If so, I could do it and open a CHANGELOG to document it |
@peterpeterparker Agreed on all topics. It'll be important for the one writing the breaking changes and updating |
@fredgalvao awesome, thx in advance for everything and for your time!!! |
@fredgalvao any news from your side? no pressure at all, just a question thx in advance for your feedback |
Please! |
I have release v1.10.0 with out this improvement, I hope it's ok for you @fredgalvao I have added a note in the Android Guide about how to config the config.xml in order to be compatible with cordova-android >= 7 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR solves the issue with this plugin even for cordova-android v7.1.0
Just merged in the latest changes from upstream. Still seems to be working for me. I did have to re-add the platform though. |
I gonna close this PR as I merged #716 which solves the same issue Note: I merged the other PR as it offers the backwards compatibility with cordova-android < v7 |
This is my attempted fix for the new android 7.0.0 update. Not sure if this works for all cases but its working for me.