[Feature]: Capacitor config "includePlugins" should support paths.
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- android, ios, typescript
- 領域
- mobile-dev
調査の方向性
まず、includePlugins エントリがどのように解析され、iOS の Podfile と Android プロジェクト設定に書き込まれるかを追跡します。パスのエントリとプラグイン名のエントリを比較します。完了の条件は、既存のプラグイン名のサポートを壊すことなく、両プラットフォームでパスから正しいプラグイン名とパスが生成されることです。
索引モデルが issue の本文から書いたものです。
説明
Description
Currently the includePlugins property only supports plugin names. If you pass in a path, the string is parsed incorrectly when it's added to the android & ios projects.
Platforms
- iOS
- Android
- Web
Request or proposed solution
For example, currently in capcitor.config:
...
includePlugins: [
"./../../node_modules/@capacitor-community/file-opener",
]
...
Gets added to the Podfile as:
pod '._.._..NodeModulesCapacitorCommunityFileOpener', :path => '../../../../node_modules/@capacitor-community/file-opener'
When it should be added as::
pod 'CapacitorCommunityFileOpener', :path => '../../../../node_modules/@capacitor-community/file-opener'
A similar parsing issue is present on android.
Either this is a bug or the includePlugins array was never designed to handle paths.
For mono-repos this would be very useful as the capacitor project is stored in a separate folder as all our node_modules deps.
Alternatives
For mono-repos that rely on storing node_modules deps separately from a capacitor project, there is another approach detailed here: https://jorgevergara.co/blog/capacitor-monorepo/. However this approach doesn't currently work with some of the newest capacitor plugins as outlined in this bug: https://github.com/ionic-team/capacitor-file-viewer/issues/3.
- 主要言語
- TypeScript
- スター
- 17.1k
- フォーク
- 1.3k
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 26
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ionic-team/capacitor のほかの issue
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ionic-team/capacitor#8759 ·
メンテナーはふだん 1 日以内に返信
-
[Bug]: Plugin call after navigation can be answered before reply proxy is updated対応中かも @MateStrysewske が 71 日前に担当しました。 オープンtriage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
ionic-team/capacitor#8616 ·
メンテナーはふだん 1 日以内に返信
-
help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
ionic-team/capacitor#8574 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
SystemBars: safe area CSS injection throws "Cannot read properties of null" on startup (Android 16)対応中かも @kttalley が 62 日前に担当しました。 オープンtriage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ionic-team/capacitor#8530 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
fix(android): remove unchecked Java compilation warnings対応中かも @Ajamuar が 15 日前に担当しました。 オープンtriage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
ionic-team/capacitor#8529 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
ionic-team/capacitor の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
prio:low scope:world
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
OliverRomhagen/vrigstad-joyride#849 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
genfeedai/genfeed.ai#11916 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
erkamyaman/rust-anything#1153 ·
メンテナーはふだん 1 日以内に返信
-
The Phase 5 report says 0.3.0 waits for the live check対応中かも @fzn0x が今日担当しました。 オープンdocumentation
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信