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

Incorrect array merging in *-Info.plist

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.1.1
    • Fix Version/s: None
    • Component/s: cordova-cli, cordova-lib
    • Labels:
      None
    • Environment:

      Mac OS X Yosemity

      Description

      After installing phonegap-facebook-plugin each consequent run of 'cordova prepare' results in creating a duplicate of the dictionary containing Facebook custom url scheme.
      After plugin installation App-Info.plist looks like:

          <key>CFBundleURLTypes</key>
          <array>
            <dict>
              <key>CFBundleURLSchemes</key>
              <array>
                <string>fb123456789</string>
              </array>
            </dict>
          </array>
      

      After 'cordova prepare':

          <key>CFBundleURLTypes</key>
          <array>
            <dict>
              <key>CFBundleURLSchemes</key>
              <array>
                <string>fb123456789</string>
              </array>
            </dict>
            <dict>
              <key>CFBundleURLSchemes</key>
              <array>
                <string>fb123456789</string>
              </array>
            </dict>
          </array>
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                m1r4gexx Sviatoslav Grebenchucov
              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: