Github user vladimir-kotikov commented on a diff in the pull request:

    https://github.com/apache/cordova-windows/pull/213#discussion_r92344993
  
    --- Diff: template/cordova/lib/PluginHandler.js ---
    @@ -53,18 +53,37 @@ var handlers = {
         },
         'resource-file':{
             install:function(obj, plugin, project, options) {
    -            // do not copy, but reference the file in the plugin folder. 
This allows to
    -            // have multiple source files map to the same target and 
select the appropriate
    -            // one based on the current build settings, e.g. architecture.
    -            // also, we don't check for existence. This allows to insert 
build variables
    -            // into the source file name, e.g.
    -            // <resource-file src="$(Platform)/My.dll" target="My.dll" />
    -            var relativeSrcPath = getPluginFilePath(plugin, obj.src, 
project.projectFolder);
    -            project.addResourceFileToProject(relativeSrcPath, obj.target, 
getTargetConditions(obj));
    +            var targetConditions = getTargetConditions(obj);
    +            if (targetConditions.reference) {
    --- End diff --
    
    I think that the object that `getTargetConditions` returns was originally 
meant to hold details about target platform (Win8.1, WP8.1, Win10) and 
architecture to create a `condition` attribute, so `reference` field  doesn't 
really fit here - you might just check `if (obj.reference) ...`


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org
For additional commands, e-mail: dev-h...@cordova.apache.org

Reply via email to