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

Should allow preferences having empty default

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • 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

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

            Dates

              Created:
              Updated: