Audrey So commented on CB-11990:

Hi Yuliia,

Thank you for providing more detailed information... it was definitely a 
miscommunication about which ".json" file that was having the issue. I followed 
your steps and also reproduced the same bug. After removing android/ios and 
running cordova prepare in 6.3.0, the ios.json and android.json files are 
restored in the "plugins" directory. They are not restored in the "plugins" 
directory in 6.3.1. I also checked this out in 6.4.0 and it seems to be working 
fine (same as 6.3.0). 6.4.0 will be released next week. There is an issue with 
6.3.1 that will need to be addressed so the case will stay open. I'm glad we 
were able to figure it out. Thanks again for sending those detailed CL files 
-really helpful! --Audrey

> Cordova prepare doesn't restore android.json and ios.json
> ---------------------------------------------------------
>                 Key: CB-11990
>                 URL: https://issues.apache.org/jira/browse/CB-11990
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaLib
>    Affects Versions: 6.3.1
>            Reporter: Yuliia Mykhailova
>            Assignee: Audrey So
>              Labels: reproduced, triaged
>         Attachments: cordova_6.3.0.rtf, cordova_6.3.1.rtf
> If the platform specific .json of plugins was removed, cordova prepare 
> command doesn't re-create it, and as a result doesn't add plugins since 6.3.1 
> version, 6.3.0 is okay.
> [UPD] more detailed steps to reproduce:
> - install cordova@6.3.0
> - go to project with platform and plugins installed
> - do cordova platform remove android (or ios, doesn't matter) -> platform is 
> removed, <platform.json> file is removed
> - do cordova prepare -> platform is added, <platform.json> is recreated, 
> therefore plugins are added to the fresh created platform.
> - install cordova@6.3.1
> - do same steps
> - on a last step the <platform.json> is not recreated, therefore platform is 
> created but no plugins are added.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to