Gil e03ec25dbb Hot fixes for M60 (#4361) 6 年 前
..
Example 862f6963f4 Merge branch 'master' into release-6.13.0 6 年 前
Protos 62ef244cde C++ migration: remove the dependency on Objective-C `Protobuf` library (#4189) 6 年 前
Source e03ec25dbb Hot fixes for M60 (#4361) 6 年 前
Swift 251a70f26a Make IN queries publicly available (#4174) 6 年 前
core e03ec25dbb Hot fixes for M60 (#4361) 6 年 前
fuzzing 04177614d0 Fix fuzz build (#4192) 6 年 前
third_party 1953cc59a4 Integrate with Abseil via CocoaPods (#4097) 6 年 前
CHANGELOG.md e03ec25dbb Hot fixes for M60 (#4361) 6 年 前
CMakeLists.txt f750f87f9f Add CMake support for FSTLocalSerializer (#3753) 6 年 前
README.md 62ef244cde C++ migration: remove the dependency on Objective-C `Protobuf` library (#4189) 6 年 前
test.sh 5930ad2fee Factor out a universal build script (#884) 8 年 前

README.md

Usage

  • Install prerequisite software
  • Set up a workspace via CocoaPods

    $ cd Firestore/Example
    $ pod update
    $ open Firestore.xcworkspace
    
  • Select the Firestore_Tests_iOS scheme

  • ⌘-u to build and run the unit tests

Running Integration Tests

  • Set up a GoogleServices-Info.plist file in Firestore/Example/App.
  • In Xcode select the Firestore_IntegrationTests_iOS scheme
  • ⌘-u to build and run the integration tests

Running Integration Tests - using the Firestore Emulator

Note: this does not give full coverage, but is much faster than above. b/hotlists/1578399 tracks outstanding issues.

  • Ensure that GoogleServices-Info.plist is back in its default state (git checkout Firestore/Example/App/GoogleServices-Info.plist).
  • Install the Firebase CLI. Essentially:

    npm install -g firebase-tools
    
  • Install the Firestore emulator. Essentially:

    firebase setup:emulators:firestore
    
  • Run the emulator

    firebase serve --only firestore
    
  • In Xcode select the Firestore_IntegrationTests_iOS scheme

  • ⌘-u to build and run the integration tests

Building Protos

Typically you should not need to worrying about regenerating the C++ files from the .proto files. If you do, see instructions at Protos/README.md.