Skip to content

feat: improve detection of NativeScript plugins #5221

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 22, 2020

Conversation

rosen-vladimirov
Copy link
Contributor

Currently in case you have multiple occurences of a NativeScript plugin in node_modules, most of the time the build of application fails. For iOS Xcode fails with duplicate resources (most commonly frameworks) and for Android the Static Binding Generator will fail in case the JavaScript of a plugin differs.

Improve the handling by checking the versions of NativeScript plugins. In case the same version is installed multiple times, show warning to the user and link only one of the versions to the native build.
In case multiple versions are detected, throw an error - currently we cannot support this case.

PR Checklist

Implements issue #5214

@rosen-vladimirov
Copy link
Contributor Author

test cli-template cli-plugin

@rosen-vladimirov
Copy link
Contributor Author

test cli-templates

Currently in case you have multiple occurences of a NativeScript plugin in node_modules, most of the time the build of application fails. For iOS Xcode fails with duplicate resources (most commonly frameworks) and for Android the Static Binding Generator will fail in case the JavaScript of a plugin differs.

Improve the handling by checking the versions of NativeScript plugins. In case the same version is installed multiple times, show warning to the user and link only one of the versions to the native build.
In case multiple versions are detected, throw an error - currently we cannot support this case.
@rosen-vladimirov rosen-vladimirov force-pushed the vladimirov/conflicting-native-resources branch from d37df94 to 9f948a1 Compare January 22, 2020 07:01
@rosen-vladimirov
Copy link
Contributor Author

test cli-templates cli-plugin

@rosen-vladimirov rosen-vladimirov merged commit bb8e816 into master Jan 22, 2020
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/conflicting-native-resources branch January 22, 2020 15:41
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