Commit Graph
68 Commits
Author SHA1 Message Date
Paul Beusterien 672256e11e C API for Firebase Version (#6690) 2020-10-07 15:03:20 -07:00
Maksym Malyhin a3a59c1bfc FIS: require projectID and valid API Key format (#6678)
* FIRInstallations validation: remove GCMSenderID fallback for missing projectID

* FIRInstallationsIDController: remove GCMSenderID fallback for  missing projectID

* Add API Key validation

* Changelog

* changelog

* Constant for API key lenght

* array] -> alloc] init]

* typo

* message

* ./scripts/style.sh

* Fix dummy API key in integration tests

* Update dummy API Keys to match the expected format

* debug test quickstart with no xcpretty

* fix debug

* Use debug QS repo branch

* print debug

* Add missing allowed characters `-`, `_`

* Nicer dummy API Keys

* Comment

* Revert "Use debug QS repo branch"

This reverts commit 69739dd6ae.

* Revert "fix debug"

This reverts commit 84fcbc7543.

* Revert "debug test quickstart with no xcpretty"

This reverts commit 1fa21ed62a.
2020-10-07 17:25:03 -04:00
Paul Beusterien d76e37174d Public Version API (#6651) 2020-10-05 09:38:35 -07:00
Paul Beusterien 83e898ab5c One Firebase version (#6634) 2020-10-02 12:26:22 -07:00
Maksym Malyhin dfffd85572 FIS: disable IID migration tests by default (#6619)
* FIS: disable IID migration tests by default

* remove redundant env variable

* Fix merge errors
2020-10-01 16:08:39 -04:00
Maksym Malyhin f84d094f06 FIS: don't log anything on success validation (#6635) (#6636) 2020-10-01 15:07:21 -04:00
Paul Beusterien d9e53a7dd1 FIS IID tests shouldn't use repo-relative imports 2020-09-30 15:22:00 -07:00
Paul Beusterien 5d0a1c8ccb Merge remote-tracking branch 'origin/firebase7-main' into pb-merge-firebase7 2020-09-30 14:23:40 -07:00
Maksym Malyhin 90c21428c0 M81 FIS cherry pick of #6570 (#6616)
* FIS: Additional FIRInstallationsItem validation (#6570)

* FIS API tests for no FID in response

* FIRInstallationsIDControllerTests: test names

* FIRInstallationsIDControllerTests: corrupted storage tests

* FIRInstallationsItem validation

* Fix FIRInstallationsItem.IIDDefaultToken copy

* Improve error description.

* FIRInstallationsItem validation error

* FIRInstallationsItem validation tests

* ./scripts/style.sh

* FIRInstallationsIDController: validate stored installation

* FIRInstallationsAPIService installation validation

* Changelog

* Update versions

* patch version

* release manifest
2020-09-30 13:10:30 -07:00
Maksym Malyhin d26b543572 FIS: Additional FIRInstallationsItem validation (#6570)
* FIS API tests for no FID in response

* FIRInstallationsIDControllerTests: test names

* FIRInstallationsIDControllerTests: corrupted storage tests

* FIRInstallationsItem validation

* Fix FIRInstallationsItem.IIDDefaultToken copy

* Improve error description.

* FIRInstallationsItem validation error

* FIRInstallationsItem validation tests

* ./scripts/style.sh

* FIRInstallationsIDController: validate stored installation

* FIRInstallationsAPIService installation validation

* Changelog
2020-09-30 14:02:03 -04:00
Paul Beusterien f2bcd5d82b Make all GoogleUtilities APIs public (#6588) 2020-09-29 07:26:10 -07:00
Paul Beusterien 89dd31a7ae IID: repo-relative headers (#6539) 2020-09-23 11:00:54 -07:00
Paul Beusterien 1ccb1e801d M78 Changelogs - SwiftPM and watchOS updates (#6292) 2020-08-18 10:03:53 -07:00
Maksym Malyhin 7895478eba FirebaseInstallations: API requests backoff (#6232)
* FirebaseInstallations: API requests backoff (#6207)

* FIRInstallationsBackoffController introduced

* FIRCurrentDateProvider introduced

* FIRInstallationsBackoffControllerTests

* style

* FIRInstallationsBackoffController implementation

* WIP: tests

* Response to backoff event mapping

* FIRInstallationsIDController: integration with FIRInstallationsBackoffController

* Remove not existing error code.

* FIRInstallationsIDController: integration with FIRInstallationsBackoffController

* FIRInstallationsIDController: depend on FIRInstallationsBackoffControllerProtocol

* FIRInstallationsIDControllerTests: supplement tests with backoff validation

* TODOs

* TODO

* API docs

* Header import fixed

* FIS backoff adjustments and tests (#6230)

* Maximum backoff interval 30 min

* Errors adjusted

* Tests updated

* Exclude 401 and 404 from backoff as autorecoverable

* comments

* FIS 1.6.0 changelog (#6234)

* Change log version fixed
2020-08-10 09:36:04 -04:00
Maksym Malyhin abc8283e03 FirebaseInstallations: use ephemeral NSURLSession to prevent caching of request/response (#6226)
* FirebaseInstallations: use ephemeral NSURLSession to prevent caching of request/response

* Changelog
2020-08-07 11:35:25 -04:00
Paul Beusterien ec54ab71ed Add missing <TargetConditionals.h> before TARGET_OS_OSX test (#6186) 2020-08-03 09:08:33 -07:00
Paul Beusterien ebe6365ceb Installations - new public header structure (#6174) 2020-07-31 07:40:55 -07:00
Maksym Malyhin 5d29cfc2c2 Unreleased M74 changelog items updated with M75 (#5988) 2020-07-07 10:24:25 -04:00
Paul Beusterien 87a1b7de5e M74 changelogs (#5921) 2020-06-25 16:34:03 -07:00
Paul Beusterien 42e89d3e66 Initial check imports script (#5843) 2020-06-18 12:12:37 -07:00
Paul Beusterien c07c89ee75 Repo-relative imports for Installations (#5832) 2020-06-17 07:26:40 -07:00
Paul Beusterien 3f556ddb9e Update GoogleUtilities' clients with repo-relative imports (#5824) 2020-06-16 09:05:29 -07:00
Paul Beusterien d4621a636f Use preserve_paths instead of CocoaPods private (#5758) 2020-06-09 05:21:28 -07:00
Morgan Chen a20199b325 Update changelogs for M72 (#5714)
* Update changelogs for M72

* Fix misspelling
2020-06-01 15:22:09 -07:00
Maksym Malyhin aa14b5cdcb FIS: disable Auth token auto fetch (#5656)
* FIS: disable Auth token auto fetch

* Punctuation

* Changelog

* Don't fail tests when no default app was created

* style
2020-05-20 17:26:10 -04:00
Maksym Malyhin e5a1360e2c FIS - make server error logs more readable (#5654)
* FIS - make server error logs more readable

* Changelog
2020-05-20 12:48:16 -04:00
Maksym Malyhin 96ba3a8338 FIS changelog update (#5614)
* FIS changelog update

* Fix versions
2020-05-15 10:54:20 -04:00
Maksym Malyhin de3b856cf2 Mac OS FIS: use Firebase App ID as a suffix to Keychain service name Mac OS (#5603)
* FIS: use bundle ID as a prefix to Keychain service name on Mac OS

* Remove "storage" from var name

* Run ./scripts/style.sh

* Use Firebase App ID as a suffix to Keychain service name on Mac OS
2020-05-15 08:55:43 -04:00
Maksym Malyhin 16bd413df9 M69 changelog for GUL and FIS (#5411)
* M69 changelog for GUL and FIS

* Punctuation
2020-04-20 09:44:47 -04:00
Andreas Rayo Kniep 3fffcd8b7c Created REQUIRED_FIREBASE_OPTIONS_IOS.md (#5347)
* Created REQUIRED_FIREBASE_OPTIONS_IOS.md

Created public documentation that can be linked to from error messages thrown if client-side lenient format checks of Firebase options fail.

b/153238875
https://docs.google.com/document/d/1iuA_LsX650KVlrwS6bN-eVUUQIv_cgKmqMxI7lMGFao/

* Update REQUIRED_FIREBASE_OPTIONS_IOS.md

fixed newline
2020-04-11 21:57:27 -07:00
Maksym Malyhin 7bd8faaaa4 Move FIRSecureStorage to GoogleUtilities (#5329)
* FIRSecureStorage -> GULKeychainStorage: renamed and moved to GoogleUtilities

* FIS updated to GULKeychainStorage

* Run ./scripts/style.sh

* Headers order

* GULKeychainUtils API docs

* GULKeychainStorage: require Keychain service name
2020-04-09 17:06:41 -04:00
Paul Beusterien 19f61833dc Fix changelog typo (#5146) 2020-03-18 14:32:59 -07:00
Maksym Malyhin 6fca4b0c06 FIS changelog M67 (#5125) 2020-03-17 10:00:41 -04:00
Maksym Malyhin dd70b46370 Installations: access FIRHeartbeatInfo from a background thread (#5114)
* FIS: assert heartbeat storage is not accessed in main thread.

* FIS: Access hearbeat storage from a background queue.
2020-03-16 17:29:11 -04:00
Maksym Malyhin 1bc3255436 Firebase Installations: validation of FIROptions parameters (#4683)
* FIS: Throw exception on incomplete Firebase config.

* API docs updated.

* FirebaseInstallations bump minor version: 1.1.0

* Fix tests

* Text fixed

* Make exception message more informative

* Fix Remote Config tests.

* Tests updated to use GCMSenderID if projectID is not available.

* Use `GCMSenderID` when `projectID` is not available.

* ./scripts/style.sh

* Comments

* GCMSenderID and projectID validation updated.

* Comment

* FirebaseInstallations: version bump to 1.0.1.

* FIS changelog

* FirebaseInstallations: version bump to 1.1.0

* FIS and Core changelogs.

* Changelogs remove GCMSenderID

* Typo

* Typo

* fix link

* Revert Core changelog

* FIS changelog fix.
2020-01-16 16:13:49 -05:00
Maksym Malyhin 883af8cd2b FIS changelog: fix console link. (#4678) 2020-01-14 11:46:11 -05:00
Andreas Rayo Kniep ff567532d6 Added highlighting for predefined terms in the Cloud Console (#4639) 2020-01-09 09:54:58 -05:00
Maksym Malyhin 823a02cbb5 FirebaseMessaging changelog: FirebaseInstallations (#4625)
* FirebaseMessaging changelog: FirebaseInstallations

* FirebaseInstallations changelog: header format consistent with FirebaseCore

* dependency -> transitive dependency

* corrections
2020-01-08 13:37:56 -05:00
Maksym Malyhin 7a86bef404 FirebaseInstallations changelog (#4617)
* FirebaseInstallations changelog

* Punctuation
2020-01-08 10:54:28 -05:00
Maksym Malyhin aebfb279a0 FirebaseInstallations: more unit tests to prove correct behaviour (#4612)
* FIS: more unit tests to prove correct behaviour

* Fix comments

* Fix comments

* Add missing return value to `then` block.
2020-01-07 19:14:38 -05:00
Maksym Malyhin 6004f9c490 Revert "FitebaseInstallations: fix create FID race condition (#4576)" (#4598)
This reverts commit 89bd10ff8e.
2020-01-06 19:02:56 -05:00
Maksym Malyhin 89bd10ff8e FitebaseInstallations: fix create FID race condition (#4576)
* FIS: test duplicated Create FID API requests.

* Fix getInstallationItem race condition.
2020-01-02 17:02:23 -05:00
Chen Liang e4456c011b Enables Firebase Messaging push notification function on watch only and independent watch app (#4016) 2019-12-23 16:45:19 -08:00
Maksym Malyhin e118f2c5e6 Apply static analyzer issue fix (cl/284637845) (#4544) 2019-12-23 11:41:47 -05:00
Maksym Malyhin 7b63ce904b FirebaseInstallations - extensions support (#4495)
* FIS - use shared user defaults if `accessGroup` is set.

* Use `FIROptions.appGroupID` to set keychain `accessGroup`

* ./scripts/style.sh
2019-12-13 17:06:07 -05:00
Ryan Wilson 306e6c0622 Fix OCMock issues with FIS (#4406)
Fixes #4351
2019-11-27 12:08:47 -05:00
Vinay Guthal bc071a88d0 Add fis heartbeat support (#4353)
* installapiservice

* insallations api test

* update tests

* add mock tests

* add installations api
2019-11-25 11:21:32 -08:00
Maksym Malyhin f6e1eea53c FIS: IID incompatible version exception. (#4258)
* FIS: IID incompatible version exception.

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

* FIS Travis: set required env vars

* /scripts/style.sh

* FIS: FIRInstantiationTimingEagerInDefaultApp

* FIS: FIRInstantiationTimingAlwaysEager
2019-11-07 13:26:52 -05:00
Maksym Malyhin 76b47085c9 FIS: Use IID auth token to authorize IID migration. (#4224)
* `FIRInstallationsIIDTokenStore` introduced. `FIRInstallationsIIDCheckinStore` removed.

* FIRInstallationsIIDTokenStoreTests

* Run ./scripts/style.sh

* FIRInstallationsIIDTokenStore implementation.

* ./scripts/style.sh

* Fix tvOS and macOS availability.

* Rename IIDAuthToken -> IIDDefaultToken

* FIRInstallationsIIDTokenStoreTests: fix flaky IID token removal

* ./scripts/style.sh
2019-11-04 11:45:17 -05:00
ChaoqunCHEN a507b40f17 Add bundle id http header to FIS requests (#4194)
* Add bundle id http header to FIS requests

* Add bundle id http header to FIS requests
2019-10-31 08:50:07 -07:00