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

Missing options for hooks: before_prepare and after_prepare

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.8.0
    • 2.9.0
    • cordova-cli
    • None
    • cordova-cli 2.8.19

    Description

      Tested on Cordova 2.8.19.

      The hooks before_prepare and after_prepare intend to pass the following options data:

          { platforms: [....] }
      

      However, the hooks do not fire with the above data. Instead, the data object is the process object.

      Examples:

          cordova.on('before_prepare', function(data, done) {
              console.log(data.platforms);  // undefined
              done();
          });
      
          cordova.on('after_prepare', function(data, done) {
              console.log(data.platforms);  // undefined
              done();
          });
      

      Attachments

        Activity

          People

            filmaj Filip Maj
            mwbrooks Michael William Brooks
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: