You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/01/23 13:54:24 UTC

[GitHub] bramk opened a new issue #636: Missing cordova_plugins.js after platform add/prepare

bramk opened a new issue #636: Missing cordova_plugins.js after platform add/prepare
URL: https://github.com/apache/cordova-android/issues/636
 
 
   When adding android platform 7.0.0/7.1.4 on an existing project I can build/install the app, but it is non-functional because `cordova_plugins.js` is missing. All is fine using android platform 6.3.0/6.4.0.
   
   I did some debugging and what I can see when I do `cordova platform add android@7.1.4`:
   
   1. `PluginManager#` writes `www` and not `platform_www` because `options.usePlatformWww` is not truthy? On platform 6.3.0/6.4.0 it does.
   2. During merging the `cordova_plugins.js` version in `www` is deleted, because it does not exist in `platform_www`.
   ```
   Merging and updating files from [www, platforms/android/platform_www] to platforms/android/app/src/main/assets/www
   ...
     delete platforms/android/app/src/main/assets/www/cordova_plugins.js (no source)
    ```
   When I subsequently add a plugin using `cordova plugin add` the  `cordova_plugins.js` is being created in both `www` and `platform_www` and everything is fine again.
   
   From CB-11022 I got that the `usePlatformWww` was added as an optimization, but Iḿ not clear how this should work hear or why it breaks.
   
   version disclosures:
   node@v6.9.5
   npm@3.10.10
   cordova@8.1.2 (cordova-lib@8.1.1)

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org