简体   繁体   English

如何将 cloud_firestore 插件的主仓库版本(在 flutterfire 包中)添加到我的应用程序的 pubspec.yaml?

[英]How do i add the master repo version of cloud_firestore plugin (inside flutterfire package) to my app's pubspec.yaml?

I need the disableNetwork() feature of cloud firestore in my flutter app.我需要在我的 flutter 应用程序中使用 cloud firestore 的 disableNetwork() 功能。 It is not available in the latest version (0.13.7) of cloud_firestore .它在 cloud_firestore 的最新版本 (0.13.7) 中不可用 It is available in the master repo of the git hub repository.它在 git 集线器存储库的主存储库中可用。 I could not add the git link which directs to the cloud_firestore package because it is inside the repository flutterfire .我无法添加指向cloud_firestore package 的 git 链接,因为它位于存储库flutterfire内。 So, how do i add it in my pubspec.yaml file.那么,我如何将它添加到我的 pubspec.yaml 文件中。

  cloud_firestore: 
     git: https://github.com/FirebaseExtended/flutterfire.git

Use the path option as described here .使用此处描述的path选项。

For example:例如:

dependencies:
  kittens:
    git:
      url: git@github.com:munificent/cats.git
      path: path/to/kittens

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何修复 pubspec.yaml 和 pubspec.lock 中的合并冲突? - How do I fix merge conflic in pubspec.yaml and pubspec.lock? Flutter/Git — 帮助替换 pubspec.yaml 中的 package - Flutter/Git — Help replacing package in pubspec.yaml Flutter 的 pubspec.yaml 版本更改的自动提交标记 - Automatic commit tagging on pubspec.yaml version change for Flutter 如何将主存储库的更改合并到我自己的更改? - How do I merge the master repo's changes to my own? 使用heroku repo插件获取我的repo的副本,如何获取我的应用程序的副本? - Using the heroku repo plugin to get a copy of my repo, how do I get a copy of my app? 如何将 git fork 的更改合并到我的 repo 的 master 中? - How do I merge changes of a git fork into master of my repo? 如何在我的代码仓库中包含 Gradle 自动递增的版本号? - How do I include a Gradle auto-incremented version number in my code's repo? 如何为我的ionic框架的npm安装添加基于git repo的插件? - How do i add a git repo based plugin to my npm install for ionic framework? 如何在不更改主存储库的情况下在本地将我的存储库恢复到其原始 state? - How do i restore my repo to its original state locally without changing the master repo? 如何在Composer中使用我的仓库的分叉版本? - How do I use my forked version of a repo in Composer?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM