git - 我们可以从一个 Repo 中使用多个 Flutter 插件吗?
问题描述
我被困在这一点上,我为我的新颤振应用程序实现了多个插件。但我想将所有这些插件放在一个仓库中,并将它们称为单独的插件
我的插件是
- plugin_custom1
- custom_plugin2
我的仓库名为flutter_plugins
如果链接到我的回购与以下类似
https://maja.azure.com/ramraj/flutter_plugins
所有插件文件夹都放在这个 repo 中
我试图在我的 Pubspec.yaml 中以类似于以下方式指出这些包
plugin_custom1:
git:
url: https://maja.azure.com/ramraj/flutter_pluginspath=%2Fplugin_custom1
然后我在获取包裹时遇到以下错误
(OS Error: The filename, directory name, or volume label syntax is incorrect.
提前致谢
解决方案
我找到了答案
plugin_custom1:
git:
url: https://maja.azure.com/ramraj/flutter_plugins
path:plugin_custom1
请参考以下 Flutter 文档 https://flutter.dev/docs/development/packages-and-plugins/using-packages#dependencies-on-unpublished-packages
推荐阅读
- excel - 如何将此布尔变量实现到此脚本?
- javascript - 有没有办法在使用 App Script 执行期间修改数组中的值
- java - 如果违反约束,则 CrudRepository saveAll 方法抛出异常
- lua - 如何解析显示的配置文件以创建所需的 lua 表?
- c++ - 什么方法可以用来向arduino发送数据
- scala - 在 Scala ActiveRecord 中使用 groupby 编写连接查询
- python - 如何在 Python 中使用 datetime 从当前日期获取最近 90 天(3 个月)的星期日
- java - 如何从 Multipart 文件中读取下载的文件(xml、txt)并将此数据逐行保存到数据库中
- javascript - ReactJS 主组件从其范围之外访问动态数据
- amazon-web-services - 在印度使用 Amazon Lex 构建语音机器人