Ability to merge ExportOptions.plist from App_Resources and from plugins
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 35/100
- Issue 類型
- 功能
- 描述清晰度
- 描述清楚
- 活躍度
- 停滯
- 技術堆疊
- javascript
- 領域
- cli, mobile-dev
研究方向
從 lib/services/ios-project-service.ts 中的 mergeInfoPlists 函式和硬編碼的 Info.plist 路徑開始。追蹤 plugin 和 App_Resources plist 檔案的定位與合併方式,然後判斷同一個進入點應如何涵蓋 ExportOptions.plist。完成的標準是兩個 plist 來源都能提供自訂的 ExportOptions.plist 選項,同時現有的 Info.plist 合併仍能正常運作。
由索引模型根據 Issue 內容生成。
描述
It’ll be great to support merging of ExportOptions.plist file from App_Resources and from plugins. This way every user will be able to add custom options to this file and NativeScript CLI will merge them with the default options. Also, every plugin author will be able to add such custom options in platforms/ios folder of the plugin in case when it is required.
Currently NativeScript CLI supports merging of Info.plist files from plugins and from App_Resources. As the format of ExportOptions.plist and Info.plist is the same (the both files are .plist format), it seems the merging of ExportOptions.plist should be very similar to the merging of Info.plist files. Here is the code that merges Info.plist files. The mergeInfoPlists function has hardcoded path to the Info.plist file. It seems the common logic of this function can be extracted to a separate function, for example mergePlistFile. After that we can call this function for Info.plist and ExportOptions.plist:
mergePlistFile(<path to Info.plist>);
mergePlistFile(<path to ExportOptions.plist>);
- 主要語言
- JavaScript
- 星號
- 1.1k
- 分支
- 204
- 平均合併
- 1 天 9 小時
- 30 天內合併 PR
- 8
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NativeScript/nativescript-cli 的其他 Issue
-
in-progress
NativeScript/nativescript-cli#6140 · 2 則留言 · 已指派 1 人 ·
-
NativeScript/nativescript-cli#6090 · 已指派 1 人 ·
-
in progress
NativeScript/nativescript-cli#6015 · 1 個 reaction · 已指派 1 人 ·
-
question
難度 4/5 3-5 天 新手友好度 48/100
NativeScript/nativescript-cli#5992 · 5 則留言 ·
-
feature-pending-triage
難度 4/5 3-5 天 新手友好度 35/100
NativeScript/nativescript-cli#5975 ·
查看 NativeScript/nativescript-cli 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
Seeed-Studio/wiki-documents#5655 · 2 則留言 ·
-
bug
難度 2/5 1-3 小時 新手友好度 76/100
capricorn86/happy-dom#2435 ·
-
難度 2/5 1-3 小時 新手友好度 88/100
-
Edit: CW+ 未關閉channels:edit check:passed
難度 2/5 1-3 小時 新手友好度 68/100
-
01 type: bug 30 needs: triage 99 tag: UX Accessibility
難度 2/5 1-3 小時 新手友好度 82/100