NativeScript / NativeScript/nativescript-cli
Allow the use of native ios and android framework's solutions/projects rather than an pre-build .framework/.aar file
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 204
- 平均マージ
- 1日 9時間
- マージ済み PR(30日)
- 8
説明
Is your feature request related to a problem? Please describe.
At the moment as a plugin developer I have to pre-build my native framework I have from iOS into an embedded .framework file and for Android into an .aar file and place those into the platforms directory of my plugin. I would like to be able to tell the NativeScript CLI where the actual Xcode/Android Studio projects if my plugin are located and have the CLI use them as "referenced projects" for the output that it created in the platforms folder of the {N} application. The idea is to be able to open that output into Xcode/Android Studio and if that output from the CLI is using a referenced of my native framework's solutions they will be included as "side" projects and I will be able to change my native code and use the IDE rebuild and start functionality (like a native iOS and Android development workflow)
Describe the solution you'd like
Currently the CLI creates the output in the the "platforms" directory (after tns build ios/android command) in such a way that it simply uses the pre-build .framework/.aar files from each node_modules {N} plugin into the build Xcode/Android Studio project of the {N} app. If the CLI can instruct the runtime to not simply use and look for .framework/.aar files but instead use an actual Xcode/Android Studio solution which builds those .framework/.aar files it will be possible to implement an functionality into the iOS and Android runtimes that will use those projects.
Describe alternatives you've considered
Currently the only way to streamline the development workflow of a plugin developer who creates a native iOS/Android library is to either:
- Build and manually move the product of the library to the "platforms" directory of his plugin
or - Use the newly created "nativescript-dev-debugging" plugin which provides workflows for such actions
The drawbacks from both approaches is that they require a full build if the {N} app after the library is replaced (--syncAllFiles).
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、tns build ios/android が platforms ディレクトリにアプリの出力を作成し、現在プラグインの .framework および .aar ファイルをどのように使用しているかを追跡します。そのワークフローを nativescript-dev-debugging と比較します。完了とは、プラグインが提供する Xcode および Android Studio プロジェクトを参照し、サブプロジェクトとして含め、ネイティブ IDE のワークフローを通じて再ビルドできることを意味します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- android, ios, javascript
- 領域
- cli, mobile
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100