Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

CB-11516 windows: Preparing icons w/ target fails #179

Closed
wants to merge 1 commit into from

Conversation

hoovercj
Copy link

Putting the following line in the config will will cause an error: "Source
directory does not exist: Square44x44Logo_100.scale"

In prepare.js, copyImages calls mapImageResources but subdirectory
information was lost. copyMrtImage in an earlier commit preserved this
information (shown in the link below), but it was lost in a refactoring.

copyImage(path.join(srcDir, img), destFileName+scale+destExt);

This was missed by a defect in the copyIcons test in
Prepare.Win10.spec.js:
readdirSync was spied on to return an array of file paths when it
actually only returns an array of the filenames. This caused the
copyIcons spec to pass but the code failed when used.

Putting the following line in the config will will cause an error: "Source
directory does not exist: Square44x44Logo_100.scale"
<icon src="res/Windows/Square44x44Logo_100.png" target="SmallIcon"/>
In prepare.js, `copyImages` calls `mapImageResources` but subdirectory
information was lost. `copyMrtImage` in an earlier commit preserved this
information (shown in the link below), but it was lost in a refactoring.
https://github.com/apache/cordova-windows/blob/c1b80be51cdbd90160b6cb8162350bced8e1c44b/template/cordova/lib/prepare.js#L316
This was missed by a defect in the `copyIcons` test in
Prepare.Win10.spec.js:
`readdirSync` was spied on to return an array of file paths when it
actually only returns an array of the filenames. This caused the
`copyIcons` spec to pass but the code failed when used.
@codecov-io
Copy link

Current coverage is 72.17%

Merging #179 into master will not change coverage

@@             master       #179   diff @@
==========================================
  Files            14         14          
  Lines          1905       1905          
  Methods         351        351          
  Messages          0          0          
  Branches        385        385          
==========================================
  Hits           1375       1375          
  Misses          530        530          
  Partials          0          0          

Powered by Codecov. Last updated by 04a0099...0f1be17

@vladimir-kotikov
Copy link
Member

LGTM

@asfgit asfgit closed this in b0502ae Jul 4, 2016
vladimir-kotikov pushed a commit to vladimir-kotikov/cordova-windows that referenced this pull request Jul 8, 2016
asfgit pushed a commit that referenced this pull request Jul 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants