繁体   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?

我需要在我的 flutter 应用程序中使用 cloud firestore 的 disableNetwork() 功能。 它在 cloud_firestore 的最新版本 (0.13.7) 中不可用 它在 git 集线器存储库的主存储库中可用。 我无法添加指向cloud_firestore package 的 git 链接,因为它位于存储库flutterfire内。 那么,我如何将它添加到我的 pubspec.yaml 文件中。

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

使用此处描述的path选项。

例如:

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

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM