Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-11771

Installing plugin with symlink option pollutes original directory with intermediate files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • 1.3.0
    • None
    • cordova-plugman
    • None

    Description

      When installing a plugin with custom library using the --link option the whole directory is symlinked and temporary files leak into the original plugin directory on build. This leads to broken builds if the same plugin is linked in 2 projects targeting different Cordova versions.

      Steps to reproduce:

      • Clone https://github.com/Telerik-Verified-Plugins/Telerik-AppFeedback plugin (or any other with an embedded android library)
      • Create 2 test projects with Cordova Android 4.1.1 and 5.2
      • Install the plugin using the --link option of plugman in both projects
      • Build the Cordova 5.2 project
      • Attempt to build the Cordova 4.1.1 project - multiple java errors of the following kind are generated:

      Unknown source file : Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v7/appcompat/R$dimen;

      Attachments

        Activity

          People

            mbektchiev Martin Bektchiev
            mbektchiev Martin Bektchiev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: