NativeScript / NativeScript/nativescript-cli

Two plugins depend on different versions of the same dependency

未關閉
#3,354 3 則留言 1 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

bug build os: android to-be-checked
主要語言
JavaScript
星號
1.1k
分支
204
平均合併
1 天 9 小時
30 天內合併 PR
8

描述

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)

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先,使用列出的 tns run androidtns run build 序列重現 geolocation 和 firebase 外掛的問題,然後將其與必要的 ./gradlew clean 步驟進行比較。完成的標準是組合外掛能在 Android 上無需手動 clean 即可建置和執行,且 geolocation 功能在執行階段不會失敗。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
android, javascript
領域
build-system, cli, mobile-dev
Issue 類型
缺陷
難度
4/5
預估耗時
3-5 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。