-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Resolve issue with plugin target-dir="app*" subdirs #572
Conversation
such as "appco", with unit tests to verify Needed for @katzer plugins that use de/appplant subdirectory, for example: * cordova-plugin-local-notifications * cordova-plugin-badge * cordova-plugin-background-mode Co-authored-by: Christopher J. Brody <[email protected]> Co-authored-by: Julio César <[email protected]>
FYI the inappbrowser plugin is affected, does not load at all on 7.1.3 |
Codecov Report
@@ Coverage Diff @@
## master #572 +/- ##
=======================================
Coverage 62.11% 62.11%
=======================================
Files 17 17
Lines 1985 1985
Branches 371 371
=======================================
Hits 1233 1233
Misses 752 752
Continue to review full report at Codecov.
|
Co-Authored-By: brodybits <[email protected]>
Co-Authored-By: brodybits <[email protected]>
Thanks @janpio for the review. I got a call in 5 minutes, will test with more plugins and merge afterwards. |
And thanks to @kamilbrk for pointing out the issue with |
Tested in a new Cordova projectreproduced using cordova-android@latest (7.1.3)
then the plugin Java files were incorrectly installed in the following relative directory path: Verified on proposed bug fix
then the plugin Java files are correctly installed in the following relative directory path: I also tested that Merging now. P.S. Some additional testing done after merge: Tried Reproduced issue on 7.1.3, resolved on |
(subdirectories) such as "appco", with unit tests to verify Needed for @katzer plugins that use de/appplant subdirectory, for example: * cordova-plugin-local-notifications * cordova-plugin-badge * cordova-plugin-background-mode Also needed for cordova-plugin-inappbrowser Co-authored-by: Christopher J. Brody <[email protected]> Co-authored-by: Julio César <[email protected]> Co-authored-by: Jan Piotrowski <[email protected]>
Use startsWith instead of `includes` to check for remapping of `target-dir` that starts with `libs` or `src/main` (Followup to PR apache#572)
Use `startsWith` instead of `includes` to check for remapping of `target-dir` that starts with `libs` or `src/main` (Followup to PR apache#572)
7.1.4 patch release is now published to resolve the issue. |
(subdirectories) such as "appco", with unit tests to verify correct operation
Needed for @katzer plugins that use
de/appplant
subdirectory, for example:target-dir="src/de/appplant/cordova/plugin/notification"
target-dir="src/de/appplant/cordova/plugin/badge"
target-dir="src/de/appplant/cordova/plugin/background"
Also needed for
cordova-plugin-inappbrowser
Resolves #571