Skip to content

Enable image resources from App_Resources in iOS #590

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2015
Merged

Conversation

Fatme
Copy link
Contributor

@Fatme Fatme commented Jun 24, 2015

@Fatme Fatme added this to the 1.1.2 milestone Jun 24, 2015
@Fatme Fatme added the bug label Jun 24, 2015
@Fatme Fatme force-pushed the fatme/images-ios branch from bdf58f3 to eb484c1 Compare June 24, 2015 08:00
@ns-bot
Copy link

ns-bot commented Jun 24, 2015

@Fatme Fatme force-pushed the fatme/images-ios branch from eb484c1 to 1e7742a Compare June 24, 2015 08:09
@ns-bot
Copy link

ns-bot commented Jun 24, 2015

@ErjanGavalji
Copy link
Contributor

👍

_.each(imagesToAdd, image => project.addResourceFile(path.join(this.platformData.appResourcesDestinationDirectoryPath, image)));

let imagesToRemove = _.difference(imageNames, currentImageNames);
this.$logger.trace(`Images to remove from xcode project: ${ imagesToRemove.length !== 0 ? imagesToRemove.join(", ") : "" }`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can omit the length check.

builder@ab-linuxbpc-1:~/.ssh$ node
> [].join(", ")
''
>

@Fatme Fatme force-pushed the fatme/images-ios branch from 1e7742a to 653c310 Compare June 24, 2015 09:51
@ns-bot
Copy link

ns-bot commented Jun 24, 2015

}

private get pbxProj(): any {
let project = new xcode.project(this.pbxProjPath);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it expected to return new project every time you try using the property pbxProj?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we can make it a function instead of property then.

@teobugslayer
Copy link
Contributor

👍 after addressing @rosen-vladimirov and @ligaz comments.

@Fatme Fatme force-pushed the fatme/images-ios branch from 653c310 to c0d157d Compare June 24, 2015 15:30
@ns-bot
Copy link

ns-bot commented Jun 24, 2015

@Fatme Fatme force-pushed the fatme/images-ios branch from c0d157d to 24f3041 Compare June 24, 2015 16:25
@ns-bot
Copy link

ns-bot commented Jun 24, 2015

@Fatme Fatme assigned Fatme and unassigned rosen-vladimirov Jun 25, 2015
@Fatme Fatme force-pushed the fatme/images-ios branch from 24f3041 to 9914b6d Compare June 25, 2015 11:46
@ns-bot
Copy link

ns-bot commented Jun 25, 2015

@rosen-vladimirov
Copy link
Contributor

👍

@Fatme Fatme force-pushed the fatme/images-ios branch from 9914b6d to 34bccda Compare June 25, 2015 11:53
@ns-bot
Copy link

ns-bot commented Jun 25, 2015

@Fatme Fatme force-pushed the fatme/images-ios branch from 34bccda to ea04549 Compare June 26, 2015 08:03
@ns-bot
Copy link

ns-bot commented Jun 26, 2015

Fatme pushed a commit that referenced this pull request Jun 26, 2015
Enable image resources from App_Resources in iOS
@Fatme Fatme merged commit 9395362 into release Jun 26, 2015
@Fatme Fatme deleted the fatme/images-ios branch June 26, 2015 08:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants