Skip to content
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

Enhanced pod file integration #369

Merged
merged 2 commits into from
Jul 30, 2018
Merged

Enhanced pod file integration #369

merged 2 commits into from
Jul 30, 2018

Conversation

bmourat
Copy link
Contributor

@bmourat bmourat commented Jul 26, 2018

Enhance current Pod file integration by adding dependencies to target with the current project name. If such a target is not found, a target is determined the old way. Addresses this issue #367.

@thyeggman thyeggman requested a review from dhei July 27, 2018 17:34
in ${this.file}, inside
the "target" section, then rerun the react-native link. AppCenter pods will be added below the comment.
`);
const projectDirectory = path.resolve(__dirname, '..', '..', '..', '..');
Copy link
Member

@dhei dhei Jul 30, 2018

Choose a reason for hiding this comment

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

Concat four '..' to find the project directory assumes "appcenter-link-scripts" npm module is located at "/node_modules/appcenter-link-scripts" rather than multiple level down under the "/node_modules" folder like "/node_modules/appcenter/appcenter-link-scripts". This shouldn't be a problem for anyone using npm v3 or later, so it's good. (I tested this pr works with npm v3.10.10, which is the version of npm on App Center Build VMs.)

@dhei dhei merged commit ed219f9 into develop Jul 30, 2018
@dhei dhei deleted the fix/pod-integration branch July 30, 2018 20:35
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