Skip to content

Merge Info.plist from App_Resources and plugins into platforms/ios #1369

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
Jan 7, 2016

Conversation

PanayotCankov
Copy link
Contributor

Solves the #1089 for iOS.

If the file app/App_Resources/iOS/Info.plist exists the new behavior is triggered, otherwise we should be backward compatible.

On prepare we will get that Info.plist and merge it with each platforms/ios/Info.plist file from all plugins that have one. The CFBundleIdentifier will be set to package.json's nativescript.id and the result will be written to platforms/ios/<proj-id>/<proj-id>-Info.plist.

The App_Resources Info.plist has higher priority than the plugin Info.plists.

To use the new feature the hello-world template or the CLI will have to bring in a full blown app/App_Resources/iOS/Info.plist.

To be followed up by:

@PanayotCankov PanayotCankov force-pushed the cankov/app-resources-info-plist branch from 2ff7349 to ed0aace Compare January 4, 2016 13:32
@rosen-vladimirov
Copy link
Contributor

Linter is failling:

>> lib/services/ios-project-service.ts[393, 1]: trailing whitespace


// These got copied but are not actually resources. They should be rather filterd before the copy in the first place but anyway, let's just delete them here.
filterFile("Info.plist");
// filterFile("Podfile");
Copy link
Contributor

Choose a reason for hiding this comment

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

why are these lines commented? Please uncomment them or remove them

@PanayotCankov PanayotCankov force-pushed the cankov/app-resources-info-plist branch 3 times, most recently from ed448ee to cf99858 Compare January 7, 2016 09:23
Add an update route for when the Info.plist is missing in the template
@PanayotCankov PanayotCankov force-pushed the cankov/app-resources-info-plist branch from cf99858 to 66a55a9 Compare January 7, 2016 09:41
@rosen-vladimirov
Copy link
Contributor

👍

PanayotCankov added a commit that referenced this pull request Jan 7, 2016
…plist

Merge Info.plist from App_Resources and plugins into platforms/ios
@PanayotCankov PanayotCankov merged commit e449f29 into master Jan 7, 2016
@PanayotCankov PanayotCankov deleted the cankov/app-resources-info-plist branch January 7, 2016 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants