Paul Beusterien 4387ed9b79 cherry-picks and versions for 6.8.1 (#3805) 6 年之前
..
Example 4387ed9b79 cherry-picks and versions for 6.8.1 (#3805) 6 年之前
Protos 2c86f3a4d7 Update protos to include IN and ARRAY_CONTAINS_ANY (#3510) 6 年之前
Source c5b5a44603 Rename shutdown to terminate and publish it. (#3694) 6 年之前
Swift c5b5a44603 Rename shutdown to terminate and publish it. (#3694) 6 年之前
core 5dc46ad17d Fix accessing a destroyed object (#3721) (#3725) 6 年之前
fuzzing 0ea8d6dc20 Fix fuzz build (#3420) 6 年之前
third_party aefd4323a2 Remove Objective-C immutable sets and maps (#3590) 6 年之前
CHANGELOG.md 76601bf5e9 Update CHANGELOG for Firestore v1.5.0 (#3705) 6 年之前
CMakeLists.txt 10752cd68c Finish migration of FSTFieldValue to C++ FieldValue (#3178) 6 年之前
README.md 9e0d8f4a4f Update required CocoaPods version in READMEs (#3339) 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 Objective-C files from the .proto files. If you do, see instructions at Protos/README.md.