You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Mark Veenstra (JIRA)" <ji...@apache.org> on 2016/10/13 06:38:21 UTC

[jira] [Created] (CB-12009) target attribute ignored on iOS when installing a Cordova plugin

Mark Veenstra created CB-12009:
----------------------------------

             Summary: target attribute ignored on iOS when installing a Cordova plugin
                 Key: CB-12009
                 URL: https://issues.apache.org/jira/browse/CB-12009
             Project: Apache Cordova
          Issue Type: Bug
          Components: iOS
    Affects Versions: 6.3.0, 6.3.1
            Reporter: Mark Veenstra
            Priority: Critical


In the Cordova plugin.xml documentation it is stated that the {{<resource-file>}} tag can have an attribute {{target}}. See next link: https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#resource-file

But when I try to use this target attribute it is just ignored and all {{<resource-file>}} configurations are added to the {{Resources}} directory on iOS.
It seems to me that the {{cordova-lib}} code just ignores this {{target}} attribute, see next link: https://github.com/apache/cordova-lib/blob/master/cordova-lib/src/plugman/platforms/ios.js#L165

The code grabbed from that link:
{{destFile = path.resolve(project.resources_dir, path.basename(src));}}

Here you can see the destFile is hardcoded for the resources_dir.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org