Maksym Malyhin cf172a4b22 Update versions for Release 6.1.0 6 rokov pred
..
Example cf172a4b22 Update versions for Release 6.1.0 6 rokov pred
Protos 53d3ca199a CMake: Upgrade nanopb to 0.3.9.2 (#2985) 6 rokov pred
Source 2a263eac83 Port FIRQuery to C++ (#2986) 6 rokov pred
Swift 754d5c07d4 Expose Collection Group queries. (#2786) 7 rokov pred
core 2a263eac83 Port FIRQuery to C++ (#2986) 6 rokov pred
fuzzing 26e358ffc2 Make fuzzing compile (#2693) 7 rokov pred
third_party e1d39275b5 Fix ABSL_ASSERT when compiling with -Wcomma 7 rokov pred
CHANGELOG.md b8f1631b74 Update CHANGELOG for Firestore v1.3.1 (#2994) 6 rokov pred
CMakeLists.txt 762b0b5500 Reimplement util::MakeString(NSString*) (#1673) 7 rokov pred
README.md 547ed27027 Add support for running Firestore integration tests against the emulator (#2922) 7 rokov pred
test.sh 5930ad2fee Factor out a universal build script (#884) 8 rokov pred

README.md

Usage

  • 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 Objective-C files from the .proto files. If you do, see instructions at Protos/README.md.