Gil 9d202ae761 Drop support for building Firestore with Xcode 8 (#4842) 6 years ago
..
Example 9d202ae761 Drop support for building Firestore with Xcode 8 (#4842) 6 years ago
Protos 9313d61a21 Add verify support (#4658) 6 years ago
Source 7f84e84bf9 Fixes for issues discovered in the Unity desktop build (#4795) 6 years ago
Swift 2c3585f1c8 Drop Firestore's Podfile dependency on Firebase (#4841) 6 years ago
core 3b4e4138e9 Fix bits.h when compiled by MSVC after including <ciso646> (#4836) 6 years ago
fuzzing 04177614d0 Fix fuzz build (#4192) 6 years ago
third_party c17e1dfad8 Permanently fix formatting presubmit warnings in google3 (#4527) 6 years ago
CHANGELOG.md 18fa42ec76 Update CHANGELOG for Firestore v1.10.2 (M64) (#4835) 6 years ago
CMakeLists.txt 2a8d069b77 Run integration tests from CMake on mac (#4276) 6 years ago
README.md 62ef244cde C++ migration: remove the dependency on Objective-C `Protobuf` library (#4189) 6 years ago
test.sh 5930ad2fee Factor out a universal build script (#884) 8 years ago

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.