NativeScript / NativeScript/nativescript-cli

Two plugins depend on different versions of the same dependency

Open
#3,354 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

bug build os: android to-be-checked
Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

Did you verify this is a real problem by searching the NativeScript Forum and the other open issues in this repo?

Yes

Tell us about the problem

When a native-plugin "A" is added that depends on a specific version of native-dependency... "C". And another native plugin "B" depends on a different version of the native-dependency "C" cli neads to call ./gradlew clean before running build.

Which platform(s) does your issue occur on?

iOS/Android/Both
Android

Please provide the following version numbers that your issue occurs with:
  • CLI: 3.4.0 + next
  • Cross-platform modules: not relevant
  • Runtime(s): 3.4.0 + next
  • Plugin(s):
  • plugin "A"(geolocation) - depends on native-dependency "C" (googlePlayServices version X)
  • plugin "B"(firebase) - depends on native-dependency "C" (googlePlayServices version Y)
Please tell us how to recreate the issue in as much detail as possible.
  • add geolocation plugin
  • tns run android
  • add firebase plugin
  • tns run build (runtime fail, when you try to use geolocation functionality)

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the issue with the geolocation and firebase plugins using the listed tns run android and tns run build sequence, then compare it with the required ./gradlew clean step. Done means the combined plugins build and run on Android without a manual clean, and geolocation functionality does not fail at runtime.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, javascript
Domain
build-system, cli, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.