You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case we do not have some of iOS Resource images in our image-definitions.json file, we do not generate images for them. This was not the case prior 6.2.0 release, so fix the behavior by getting back the old logic - get the image size from the Contents.json and generate image for it.
Also add the images from the templates that are currently missing from our `image-definitions.json` file.
Copy file name to clipboardExpand all lines: lib/services/project-data-service.ts
+9-2Lines changed: 9 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -282,8 +282,15 @@ export class ProjectDataService implements IProjectDataService {
282
282
}
283
283
});
284
284
285
-
if(!foundMatchingDefinition&&image.filename){
286
-
this.$logger.warn(`Didn't find a matching image definition for file ${path.join(path.basename(dirPath),image.filename)}. This file will be skipped from reources generation.`);
285
+
if(!foundMatchingDefinition){
286
+
if(image.height&&image.width){
287
+
this.$logger.trace("Missing data for image",image," in CLI's resource file, but we will try to generate images based on the size from Contents.json");
288
+
finalContent.images.push(image);
289
+
}elseif(image.filename){
290
+
this.$logger.warn(`Didn't find a matching image definition for file ${path.join(path.basename(dirPath),image.filename)}. This file will be skipped from resources generation.`);
291
+
}else{
292
+
this.$logger.trace(`Unable to detect data for image generation of image`,image);
it("generates iOS resources for files, which are not declared in image-definitions.json, but we have their size from resource's Contents.json",async()=>{
0 commit comments