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

spec attribute for framework element doens't take into account preferences

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: cordova@7.1.0
    • Fix Version/s: None
    • Component/s: cordova-lib
    • Labels:
      None

      Description

      Please,

      consider the following snippet from plugin.xml

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

      If I install such a plugin I get the following podfile

      # DO NOT MODIFY -- auto-generated by Apache Cordova platform :ios, '8.0' target 'App' do project 'App.xcodeproj' pod 'Google-Mobile-Ads-SDK', '$IOS_VERSION' end
      

      I think that, unlikely the src attribute of the framework element, it is not possible to use a preference value for the spec attribute.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: