Commit Graph
314 Commits
Author SHA1 Message Date
Sebastian Schmidt c2fbc77e9e Use secure rules for Firebase Storage Integration tests (#5643) 2020-05-20 12:38:08 -07:00
Gil e462d04ddb Make Executors have deterministic shutdown (#5547)
In particular:

  * All tasks are guaranteed to either run to completion or not run at all;
  * Executors can now be destroyed from the threads they own (if applicable); and
  * Many common concepts between the Executor implementations have been harmonized and shared.

Note:

  * This change does not yet implement `Executor::Dispose` or clean up any of the higher level componentry to take advantage of these changes.
  * The executors implement shutdown by canceling any tasks that haven't started yet. This diverges from the plan (which called for a separate `UserCallbackExecutor` to handle this), but in the end it turns out to be simpler to just cancel everything and make cancel handle tasks-in-progress in a reasonable way. LMK if you have grave objections to this, in which case I can rework this.

This is the foundation for addressing firebase/quickstart-unity#638.
2020-05-18 08:30:02 -07:00
Paul Beusterien d82361409c Initial RC Swift API tests (#5602) 2020-05-13 18:00:34 -07:00
Gran c1a5519b70 Enable Swift Quickstart tests (#5566)
* Enable remoteconfig swift quickstart tests
2020-05-11 11:14:08 -07:00
Gran ca4a65522b Add quickstart tests (#5544)
* Add Quickstart tests
2020-05-08 16:47:49 -07:00
Gran 34597045a9 Add a workflow to run remote config on GHA (#5537)
* Add Remoteconfig Quickstart Test
2020-05-07 09:29:23 -07:00
Paul Beusterien 670845ac1f Add Auth Swift API tests (#5517) 2020-05-04 18:37:07 -07:00
Paul Beusterien 83d7c78923 Update pod gen version and address GHA Catalyst failures (#5509) 2020-04-30 09:47:55 -07:00
Paul Beusterien 64c42f6bb8 Migrate Crashlytics to GHA (#5497) 2020-04-30 09:25:12 -07:00
Doudou Nan a2fbd12168 Build GDTCCT watchOS test apps in GHA (#5495) 2020-04-29 11:58:54 -07:00
Paul Beusterien 061d2c4643 Fix zip nightly build to work with SpecStaging (#5486) 2020-04-28 08:28:00 -07:00
Paul Beusterien 68513286e3 Update nanopb to 0.3.9.5 (CocoaPods 1.30905.0) (#4264) 2020-04-27 17:09:59 -07:00
Chen Liang dabfd91dea Move messaging sample app to the new FirebaseMessaging folder (#5476) 2020-04-27 16:31:17 -07:00
Paul Beusterien 629c2ae20d Fix InstanceID cron build regression (#5468) 2020-04-27 10:54:34 -07:00
Gil e3f3a78aef Remove the Firestore_SwiftTests_iOS target (#5458)
The tests in this target are already covered by
Firestore_IntegrationTests_iOS and also run on the other platforms
through the other platform variants of this target.

Also remove an explicit override of CLANG_WARN_COMMA in the
Firestore_Example_macOS target. This should have been cleaned up earlier
--no other targets have this setting.
2020-04-26 15:01:42 -07:00
Chen Liang 793d763490 create firebase messaging folder (#5445) 2020-04-23 14:43:47 -07:00
Chen Liang f60992fba0 Fix messaging GHA failure (#5430) 2020-04-21 15:44:35 -07:00
Gil 7a58eba2e5 Remove firebase/firestore from paths in Firestore/core (#5374)
* Manual Xcode project fixups

* Remove `firebase/firestore` from paths in Firestore/core

This renames all Firestore files under `Firestore/core` to remove the
interior `firebase/firestore` directory structure. This is motivated by
build failures under Windows where the filenames of intermediates were
too long.

Concretely:

  * `Firebase/core/src/firebase/firestore` becomes `Firebase/core/src`
  * `Firebase/core/test/firebase/firestore` becomes
    `Firebase/core/test/unit`

Moving the tests into a `unit` subdirectory aligns Firestore with the
directory structure in
[AddNewPod](https://github.com/firebase/firebase-ios-sdk/blob/master/AddNewPod.md),
modified for C++ (see discussion in #3224).
2020-04-20 14:57:34 -07:00
Gil 96de8fb74b Add LLDB type summaries for Firestore types (#5407)
There are some particular pain points debugging Firestore today because contents of variables are obscured due to information hiding and shared representation techniques we use. Also, we use elements of the Abseil library to supplement what's available in the C++11 standard library.

Taken together, these make our default experience in LLDB and the Xcode debugger quite painful: getting the path of a document currently takes 5 clicks. This change pulls the document path into the summary line, making it available with no clicks.

This change adds type summaries for

  * DocumentKey and ResourcePath
  * DocumentReference and FIRDocumentReference
  * DocumentSnapshot and FIRDocumentSnapshot
  * absl::optional
  * DatabaseId
2020-04-20 09:55:17 -07:00
Chen Liang 447e544264 add a token refresh integration test in messaging (#5358) 2020-04-15 11:39:34 -07:00
Gil c873af8038 Shorten CMake test targets/begin firebase_core consolidation (#5321)
* Add new, simpler CMake helper functions

... making them more like built-in functions. This makes it possible to
combine other CMake functions in ways that weren't possible with the
original all-in-one approach.

This includes:
  * firebase_ios_add_executable
  * firebase_ios_add_test
  * firebase_ios_add_library

All of which can be combined with target_link_libraries, etc.

* Shorten CMake test targets, e.g. firebase_firestore_util_test => firestore_util_test

* Remove CMake file inclusion check

Now that we're committed to using globs for finding sources, this check
is incompatible and no longer useful.
2020-04-15 11:02:56 -07:00
Chen Liang ed52d0d8f6 Add a new firebase messaging test app using swiftui (#5301) 2020-04-08 20:12:26 -07:00
Paul Beusterien df75e500b0 Migrate Auth to canonical directory structure (#5318) 2020-04-08 17:52:56 -07:00
Paul Beusterien 5820aa9563 Migrate Auth CI from travis to GHA (#5308) 2020-04-08 11:12:46 -07:00
Paul Beusterien b90ddf1339 Limit Swift line lengths to 100 (#5315) 2020-04-08 10:48:24 -07:00
Gil ecfe3ee8de Python 3 compatibility fixes (#5285) 2020-04-03 16:13:55 -07:00
Paul BeusterienandMarek Gilbert 4ea4340285 Upgrade clang-format (#5265)
Co-authored-by: Marek Gilbert <mcg@google.com>
2020-04-03 11:38:31 -07:00
Paul Beusterien 7593515f9e FirebasePod, SymbolCollision and Interop tests to GHA (#5273) 2020-04-03 10:36:24 -07:00
Paul Beusterien 69f9a45de6 Update swiftformat to 0.44.6 (#5263) 2020-04-02 08:40:25 -07:00
Paul Beusterien e7e4414e12 Add FirebaseStorageSwift to GHA CI (#5252) 2020-04-01 17:19:19 -07:00
Maksym Malyhin 795a66dee8 Re-encrypt GHA secrets (#5251)
* Re-encrypt GHA secrets.

* Fix storage plist
2020-04-01 20:02:54 -04:00
Paul Beusterien 94262b37e5 Storage Integration Tests to Swift (#5197) 2020-03-27 15:51:32 -07:00
Paul Beusterien b52b609133 GHA for PRs from GitHub forks (#5180) 2020-03-24 15:43:30 -07:00
Paul Beusterien eeced5d565 Fix travis quickstart tests (#5169) 2020-03-23 17:06:45 -07:00
Paul Beusterien 611079b32c Fix GHA cron and travis unbound variable regressions (#5167) 2020-03-23 06:47:23 -07:00
Paul Beusterien f23c230a4c Test Quickstarts in GHA (#5134) 2020-03-20 16:42:14 -07:00
Chuan Ren 9a7754c59e Enable lint for Auth (#5097) 2020-03-17 10:22:29 -07:00
Paul Beusterien df21e99b7a Add Catalyst testing for GHA (#5115) 2020-03-17 07:54:34 -07:00
Paul Beusterien 73771a0570 FirebaseAuth should be in implicit pod list (#5104) 2020-03-13 13:15:33 -07:00
Sam Edson 85f9926e66 Add Crashlytics to if_changed for GoogleDataTransport changes (#5102) 2020-03-13 15:26:50 -04:00
Morgan Chen 64f8c65599 add Installations to docs script (#5035) 2020-03-06 11:39:10 -08:00
Gil fb0fc07609 Remove setting CMAKE_BUILD_TYPE in CMakeLists.txt (#5027)
This really needs to be set on the command-line if it's to be effective,
and setting it here breaks downstream projects that include
firebase-ios-sdk as a subdirectory.
2020-03-05 15:30:11 -08:00
Jason Hu 194439fdfb Integrating GoogleDataTransport in Crashlytics to Report Crashes (#4989) 2020-03-05 14:59:11 -05:00
Gil d4e86ba091 Fixes for compatibility with builds in firebase-cpp-sdk (#4984)
* Don't modify CMAKE_CXX_FLAGS

* Avoid conflict on RANDOM_FILE

* Only conditionally build tests

* Remove alias provided by the upstream build

* Set SOURCE_DIR and BINARY_DIR for each external library

* Compute repo root without git

This supports building Firestore from a source archive

* Make empty files C++

This makes it possible to compile with a single set of flags for every
cc_library.
2020-02-26 17:54:13 -08:00
Paul Beusterien 54747a092b Fix CI issues from changing interop pod version requirements (#4979) 2020-02-26 13:51:32 -08:00
Chen Liang a310248f49 Make Firebase Storage compile and work in independent watch app (#4955) 2020-02-25 14:06:40 -08:00
Paul Beusterien 0058b259b4 Remove deprecated FIAMDisplay from repo (#4899) 2020-02-13 08:59:43 -08:00
Gil fae5c43af2 Extract log output from xcodebuild runs after failures (#4867) 2020-02-12 15:42:08 -08:00
Gil 69d6ee794b Add a travis output filter (#4866)
* Use a travis-optimized output filter with xcpretty

* Capture and show raw xcodebuild log on failure
2020-02-10 10:26:39 -08:00
Chen Liang f4ae4a4416 re-enable style script for messaging (#4858) 2020-02-07 14:27:18 -08:00