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

Invalid cdvBuildMultipleApks typecasting

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.0
    • Component/s: cordova-android
    • Labels:
      None

      Description

      In build.gradle cdvBuildMultipleApks is casted as

      ext.cdvBuildMultipleApks = !!cdvBuildMultipleApks;

      It does not work properly for strings tho. Another words

      !!"false"

      would always return true. That breaks the case when you control params from command line:

      cordova build android -- --gradleArg=-PcdvBuildMultipleApks=false

      since it's always string

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                AlexN Alex N
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: