-
-
Notifications
You must be signed in to change notification settings - Fork 197
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
Conversation
✅ |
✅ |
👍 |
_.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(", ") : "" }`); |
There was a problem hiding this comment.
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(", ")
''
>
✅ |
} | ||
|
||
private get pbxProj(): any { | ||
let project = new xcode.project(this.pbxProjPath); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This function is called only one time - https://github.com/NativeScript/nativescript-cli/pull/590/files#diff-b673f137deb4afccccc0bd5f1572c2a0R229
There was a problem hiding this comment.
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.
👍 after addressing @rosen-vladimirov and @ligaz comments. |
✅ |
✅ |
✅ |
👍 |
✅ |
✅ |
Enable image resources from App_Resources in iOS
Fixes #520
NativeScript/ios-jsc#202