Commit Graph
245 Commits
Author SHA1 Message Date
Gil 91ff0c66c9 Have check.sh fallback to checking everything (#4614)
Sometimes PRs have been cut from so long ago that there's no merge base
with master in the shallow clone that Travis makes. In this case, fall
back on just checking everything.
2020-01-07 12:04:21 -08:00
Paul Beusterien da4819b46d Build zip in GHA cron (#4593) 2020-01-06 09:41:54 -08:00
Paul Beusterien fc8639f4a9 Fix cmake build regression (#4596) 2020-01-06 09:33:35 -08:00
Paul Beusterien 1367084063 FirebaseCore directory structure update (#4590) 2020-01-06 07:11:40 -08:00
Paul Beusterien efa9bd9cd4 Remove Firebase xcode project (#4588) 2020-01-03 12:19:41 -08:00
Paul Beusterien a8ec3bf7b8 Start GitHub Actions (#4431) 2020-01-03 07:56:43 -08:00
Paul Beusterien b6cd99e30a Update Firebase Storage directory structure (#4573) 2020-01-03 07:22:33 -08:00
Maksym Malyhin 942a23dc17 FirebaseInstanceID integration tests (#4560)
* InstanceID integration tests

* ./scripts/style.sh

* Travis: run install_prereqs.sh for IID

* install_prereqs.sh: run `install_secrets` for IID

* Flag to disable IID integration tests

* Travis: IID disable integration tests for forks.

* ./scripts/style.sh

* Temporary disable IID test due to b/147102327

* Travis: IID integration tests enabled for all IID builds.
2020-01-02 19:29:29 -05:00
Paul Beusterien 6aea0af5db Run QuickStart Integration Tests from CI (#4567) 2020-01-02 10:27:52 -08:00
Maksym Malyhin ef24de0877 style.sh: update clang-format formula in suggestions (#4545) 2019-12-23 11:25:41 -05:00
Maksym MalyhinandChen Liang f62c7ddcec IID: version dependent on FirebaseInstallations (#4533)
* Firebase Installations: Instance ID now uses FIS under the hood. (#3398)

* Fix merge errors

* Use modular import for FIRInstanceID_Private.h

* Use modular imports for FirebaseInstanceID.h (#3509)

* Changes missing during the fix.

* Changes missing during merge.

* Fix header import.

* ./scripts/style.sh

* Fix FCM tests. (#3888)

* Fix IID FCM token check.

* FirebaseInstallation: merge master into FIS integration branch (#4076)

* Fix IID FCM token check.

* Unused constant deleted.

* FCM tests: fix bad merge.

* Remote Config test app: use local IID and FIS. (#4089)

* token request should pass through if token is not fresh (#4104)

* Merge errors fix.

* IID with FIS: send FIS auth token with IID token request (#4152)

* FIRInstanceIDTokenOperation: add FIS auth token to the IID token request.

* IID tests: don't use FIS private headers.

* IID: indication of compatibility with FIS (#4262)

* FIS: IID incompatible version exception.

* FirebaseInstallations.podspec: set preprocessor flags based on env vars.

* FIS Travis: set required env vars

* /scripts/style.sh

* IID: method to indicate FIS usege added.

* FIS: FIRInstantiationTimingEagerInDefaultApp

* FIS: FIRInstantiationTimingAlwaysEager

* IID: make compatibility method static.

* Make -[FIRInstanceID appInstanceID:] safe to be called from any thread (#4482)

* IID: use a cached value of FID for -[FIRInstanceID appInstanceID:]

* TODO comment

* TODO updated

* FirebaseInstallations: prepare IID with FIS dependency for release (#4522)

* Bump FIrebaseInstallations to 1.0.0

* Travis: remove mm/fis-integration-master branch

* Travis: if_changed script updated to reflect IID dependency on FIS.

* Revert "Travis: remove mm/fis-integration-master branch"

This reverts commit 534dff990a.

* Travis: remove mm/fis-integration-master branch (#4526)

* Formatting and spelling.

* Firebase example proj: pod deintegrate

Co-authored-by: Chen Liang <chliang@google.com>
2019-12-20 10:54:11 -05:00
Gil 85365cb089 Get the remainder of Objective-C tests running under CMake (#4430)
* Add Objective-C API tests to the CMake build

* Fix signedness warnings under the CMake build

* Get the remainder of Objective-C tests running under CMake

Also:
  * Add a Path::HasExtension check
  * Change spec tests to pick up json without NSBundle
2019-12-06 10:11:05 -08:00
Paul Beusterien 7481e8b97f travis job consolidation for Core, GDT, and FIAM (#4385) 2019-11-22 16:57:08 -08:00
Gil d9c3e6a15f Fix the build on Windows (#4384)
* Fix errors about Abseil using std::copy

The C++11 version of this function can be unsafe if used improperly.
Defining this macro is also done in the Abseil build, though they don't
export the setting.

* Prevent output differences in generated certificate data

* Don't regenerate nanopb sources on Windows

There's something wrong with the interaction between protoc and the
nanopb generator that prevents this from working properly.
2019-11-22 16:44:57 -08:00
Gil 37c97d8f32 Fix completely out-of-source CMake builds (#4377)
Visual Studio 2017 runs creates its CMake output directory in a location
outside the git checkout, which causes the check for a current git
repository to fail.
2019-11-21 15:25:32 -08:00
Gil 0d476a399b Upgrade Firestore emulator to 1.10.2 (#4358)
This fixes several flakes in the integration tests.
2019-11-19 13:35:32 -08:00
wu-hui 2a8d069b77 Run integration tests from CMake on mac (#4276) 2019-11-19 13:40:43 -05:00
Konstantin Varlamov 57f8d7d675 Embed root certificates into the binary on Apple platforms as well (#4352)
Currently, on iOS Firestore is loading `roots.pem` file from the gRPC bundle. The mechanism has proved to be brittle, so instead we can use the same approach as the CMake build does -- parse the file at build time and embed its contents into the binary.

One downside of this approach is that now we would have to periodically update the generated files for embedding manually. Judging from history, `roots.pem` is updated quite often in gRPC repo, and can be expected to be modified on each release.

The command to regenerate the certificates is something like:
```sh
mkdir build # From the root of the repo
cd build
cmake .. && make -j 8 generate_grpc_root_certificates
```

TESTED=with Fireeats.
2019-11-19 01:50:08 -05:00
Gil 12fb9f61d2 Upgrade gRPC to 1.24.3; upgrade protobuf to 3.9.2 (#4252)
* Upgrade gRPC to 1.24.3

* Upgrade C++ Protobuf to 3.9.2

Disable -Wunreachable-code in protobuf-generated code

* Regenerate C++ protos with protobuf 3.9.2

* Generate objc protos with Protobuf 3.9.2
2019-11-07 15:23:14 -08:00
Paul Beusterien 52505143e3 Add --analyze to pod lib lint tests (#4161) 2019-11-05 17:42:04 -08:00
Maksym Malyhin af019d09fc check_whitespaces.sh: ignore notices. (#4231) 2019-11-04 16:21:46 -05:00
Gil fb441a0376 Build all sources with CMake (#4159)
* Fix field initialization order

* Reduce dependencies in objc_compatibility_apple_test

This makes it possible to build and test util without having to build
everything

* Add a lint check for CMake files

* Find XCTest, if available

* Fix CMakeLists.txt to include all sources

* Fix test flake in local store tests

This doesn't affect production because we always set the additional
references pointer there, but it's technically optional and some tests
don't do this.
2019-10-28 13:03:21 -07:00
Ryan Wilson 563854e81e Copy component container to GoogleUtilitiesComponents (#4113)
* Move component container to GoogleUtilities.

This will allow non-Firebase SDKs to take advantage of the component
system. Note: Firebase Core will eventually move over to use this, but
more investigation is needed about how this can be done with the least
amount of churn for other SDKs.

* Fix dependency on Logger.

* Add CHANGELOG entry.

* Fix selector name.

* Move ComponentContainer subspec to new pod.

* Rename to GoogleUtilitiesComponents.

* Style, make public headers.

* Update travis with new name.

* Add project to if_changed.sh

* Review comments.

* Enabled static framework, changed homepage.

* Fix missing quote.
2019-10-25 14:05:29 -04:00
Paul Beusterien 42118c9b13 Stop using statics in header (#4149) 2019-10-24 06:36:55 -07:00
Gil 341312b15d style.sh generated changes (#4140)
* style.sh generated changes

* Fix style.sh detection of swift formatting issues
2019-10-23 10:58:50 -07:00
Morgan Chen 532162d55d Update changelogs for M58 (#4135)
* Update changelogs for M58

* Remove link from Firestore changelog
2019-10-23 09:49:18 -07:00
Gil 7e78166064 Use base_configuration_reference.real_path rather than path (#4118)
real_path has the correct value after a pod deintegrate, while path has
some nearly correct value. No idea why these are different.
2019-10-18 12:56:46 -07:00
Paul Beusterien d8e3a11bb1 Restore Firebase pod to closed source location (#4112) 2019-10-17 09:45:04 -07:00
Paul Beusterien 5895838392 Add Firebase Pod to the repo (#4021) 2019-10-08 14:57:07 -07:00
Gil 847d72759d Fix formatting that was somehow ignored (#4002)
* Fix formatting that somehow was ignored.

* Minor tweaks to style.sh

... reflecting updated source layout.
2019-10-07 09:10:47 -07:00
Gil f32cc12ce0 Build Firestore with Xcode 11 (#4005)
* Drop dependency on OCMock

* Move Firestore onto Xcode 11 in Travis

* Special case simulators based on Xcode version, not product

This allows Firestore's build with Xcode 8.3.3 to continue to work.

* Make the Firestore Podfile install only one platform at a time

Use the PLATFORM environment variable to limit which targets are
modified. This makes the selected platform work but leaves the other
platforms in a broken state in the Xcode UI.

* Fix code signing errors on macOS builds
2019-10-07 08:46:06 -07:00
Paul Beusterien 365dfdaa56 Run FIAMDisplay CI on Xcode 11 (#3959) 2019-10-01 11:04:59 -04:00
Paul Beusterien 4a8ee3de60 Fix Catalyst define checks (#3958) 2019-09-30 16:37:21 -07:00
Paul Beusterien 4c19a13651 Make FIAM tests more robust in Travis (#3952) 2019-09-30 15:32:03 -07:00
Paul Beusterien 0aacd28642 Travis to Xcode 11.0 (#3944) 2019-09-30 10:46:31 -07:00
wu-hui dff57b6048 Enable -Werror for Firestore XCode project (#3836) 2019-09-13 12:39:18 -07:00
Paul Beusterien bb563c8497 Migrate travis to Xcode 10.3 and single platform builds (#3714) 2019-08-29 12:26:30 -07:00
Maksym Malyhin 89bae97cd5 Firebase Installations: integration tests on Travis (#3652) 2019-08-27 17:43:49 -04:00
Gil 07a64930e8 Upgrade Firestore emulator to 1.8.0 (#3675) 2019-08-23 17:02:30 -07:00
Gil 0da97f9676 Conditionally use local sources for Firestore (#3648)
This will force post-merge builds to validate compatibility with
pre-release versions of other Firebase pods
2019-08-23 12:08:20 -07:00
Paul Beusterien 2f5e4fdd95 Start RemoteConfig CI and fix/ignore warnings (#3649) 2019-08-22 13:37:44 -07:00
Gil c42bf815a5 Fix Firestore builds under Xcode 8 (#3647)
* Fix Firestore builds under Xcode 8

* FirebaseCore must be a local pod

Otherwise pod install won't pick up local edits to that podspec
2019-08-21 17:15:57 -07:00
Gil aefd4323a2 Remove Objective-C immutable sets and maps (#3590)
* Remove Firestore/third_party/Immutable

* Update podspec and sync_project

* Project updates
2019-08-19 09:09:20 -07:00
Michael Haney b711dd33b8 Initial nanopb support infra for InAppMessaging (#3546)
To assist with moving to GDT and GDTCCT
2019-08-15 16:01:51 -04:00
Morgan Chen 6d9b4ad478 Update make_release_notes to support list of issues (#3604) 2019-08-15 12:32:36 -07:00
Chuan Ren ca19aba3c4 Update email test can now handle email conflict (#3577) 2019-08-14 17:30:40 -07:00
Paul Beusterien 0f856905f0 Run Auth integration tests only in Auth travis phase (#3573) 2019-08-13 08:27:00 -07:00
Paul Beusterien 3b0ed0ee4a Open Source ABTesting (#3507)
* CI for ABTesting
* README update
2019-08-05 19:30:54 -07:00
Sebastian Schmidt 9bfbb9ece0 Enable clang-format for RTDB (#3506) 2019-08-05 13:27:47 -07:00
Maksym Malyhin 77b7c6e1b6 pod_lib_lint.rb improvements (#3418)
* Make sure `pod_lib_lint.rb` fails when lint fails.

* `pod_lib_lint.rb` comment  social_media_url in the podspec.

* Typo

* pod_lib_lint.rb: exit with pod lint status.

* Code style.

* Travis: fix FirebaseInstallations lint parameters.

* Avoid dirtying the workspace when linting. (#3421)

* Proper type for `pod_lint_status`
2019-07-24 11:09:48 -04:00