-
Notifications
You must be signed in to change notification settings - Fork 508
Add workaround for using setting strings in cordova-android 7.x #716
Conversation
I gave this PR a bit more thought and I think this should be fixed in I could not find any relevant issue in the Thanks, @peterpeterparker! |
@adipascu thx for the feedback and thx in any case for submitting a PR, highly appreciated! |
Hi again @peterpeterparker . It seems like cordova-android 7 changed its project structure. I have seen cordova-android 7 adopt some workarounds to be compatible with plugins targeting 6.x, but this does not cover whats being used in cordova-plugin-facebook4 (cordova-android#550, cordova-android#549) I have tested this PR with cordova-android versions:
I have rebased and cleaned up the PR a bit. Looking forward! |
Currently the path of I suggest doing the least amount of changes required. |
@adipascu I'm agree. I'll try to have a test with your PR today, if it works fine with my app, I'll merge it, close other PR and issues, release a new version of the plugin etc. But, if I do so, could I count on you in case some users afterwards would notice some problems in case it would need improvements and fixes regarding this topic? I would appreciate that help |
Yeah, I'll be active on github, if you need more info you can contact me by email (its in the git log) |
looks good, thx for the PR @adipascu 👍 it has been released in v3.3.0 |
@peterpeterparker |
@adipascu at first I thought too I would release a major version but then I thought that you don't "need" but that you "could" remove the workaround I mean if you still let the workaround in your |
If somebody keeps the old workaround while on v3.3.0, they end up with the config in both I just tested the app with a fresh platforms/plugins install to confirm. |
@adipascu v3.3.0 unpublished from npm and removed from the plugin, instead I just published v4.0.0 with a note about the breaking change in the CHANGELOG and release notes |
Looks like cordova-android 7 does not correctly prefix the target resource with
app/src/main/
.This PR keeps the old correct target and adds another target that includes the full project path.