Skip to content

Fix add android platform dependencies #1760

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

Conversation

TsvetanMilanov
Copy link
Contributor

When checking if platform dependency is installed in the current project before adding the platform need to check if the current version is valid or check in the node_modules directory for the installed plugin version.

@TsvetanMilanov TsvetanMilanov self-assigned this May 14, 2016

// The plugin version is not valid. Check node_modules for the valid version.
if (!cleanedVerson) {
dependencyVersionInProject = this.$fs.exists(path.join(this.$projectData.projectDir, "node_modules", dependency.name, "package.json")).wait() &&
Copy link
Contributor

Choose a reason for hiding this comment

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

"node_modules" -> constants.NODE_MODULES_FOLDER_NAME
"package.json" -> constants.PACKAGE_JSON_FILE_NAME

When checking if platform dependency is installed in the current project before adding the platform need to check if the current version is valid or check in the node_modules directory for the installed plugin version.
@TsvetanMilanov TsvetanMilanov force-pushed the milanov/fix-add-android-platform-dependencies branch from 8863411 to 317e180 Compare May 14, 2016 08:54
@rosen-vladimirov
Copy link
Contributor

👍

@TsvetanMilanov TsvetanMilanov merged commit 4aa4e0b into release May 14, 2016
@TsvetanMilanov TsvetanMilanov deleted the milanov/fix-add-android-platform-dependencies branch May 14, 2016 09:05
@TsvetanMilanov TsvetanMilanov restored the milanov/fix-add-android-platform-dependencies branch May 14, 2016 09:09
@TsvetanMilanov TsvetanMilanov deleted the milanov/fix-add-android-platform-dependencies branch May 14, 2016 09:10
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.

2 participants