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

Should allow preferences having empty default

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: cordova-lib

      Description

      Please,

      consider the following snippet from plugin.xml

      <platform name="ios"><preference name="VERSION" default="" /><framework src="Google-Mobile-Ads-SDK" type="podspec" spec="$VERSION" /></platform>
      

      It would be useful if preferences having an empty default are considered valid instead of missing.

      This new behavior lets you use a preference to specify a podspec version and if the preference has empty default, it means the latest version should be installed.

      Today, there is no other way to do it unless CocoaPods changes podfile to let you specify something like +, * or latest to install the latest version of a podspec (instead of omitting the version at all).

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              adriano.digiovanni Adriano Di Giovanni
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: