Commit Graph
22 Commits
Author SHA1 Message Date
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
Maksym Malyhin 8eded3f5be Remove deprecated -[FIRInstanceID appInstanceID:] (#6677)
* Remove deprecated -[FIRInstanceID appInstanceID:]

* changelog

* typo fix
2020-10-06 16:44:07 -04:00
Paul Beusterien 5d0a1c8ccb Merge remote-tracking branch 'origin/firebase7-main' into pb-merge-firebase7 2020-09-30 14:23:40 -07:00
Chen Liang f0e7b8e195 Add InstanceID deprecation warning (#6585) 2020-09-29 13:35:31 -07:00
Paul Beusterien 89dd31a7ae IID: repo-relative headers (#6539) 2020-09-23 11:00:54 -07:00
Paul Beusterien c07c89ee75 Repo-relative imports for Installations (#5832) 2020-06-17 07:26:40 -07:00
Paul Beusterien d4621a636f Use preserve_paths instead of CocoaPods private (#5758) 2020-06-09 05:21:28 -07: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 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
Chen Liang fcc2aabae8 Fix a few misuse of OCMock in Messaging and InstanceID (#4363) 2019-11-19 19:21:26 -08:00
Chen Liang e0b6d2347c tokenWithAuthorizedEntity: method should also check if token is fresh (#4096) 2019-10-16 16:09:03 -07:00
Chen Liang af730a90ec Always check if IID and token are consistent (#4025) 2019-10-09 11:13:44 -07:00
Morgan Chen d6af8615e2 Fix token fetch not invoking callback for unchanged token (#3251) 2019-06-25 10:47:59 -07:00
Chen Liang 7eb1747e4b Adding macOS support for Messaging and InstanceID (#2880) 2019-05-30 15:31:38 -07:00
Paul Beusterien bf62c8c9df Add InstanceID test_spec (#3036) 2019-05-21 11:22:43 -07:00
Chen Liang 8ab26dd651 remove test header from source code (#2783) 2019-04-09 15:54:09 -07:00
Chen Liang 0212c46f7c remove deprecated token API (#2741) 2019-04-08 16:19:21 -07:00
Maksym Malyhin 0738c0efd2 Fix handler for multiple calls of -[FIRInstanceID instanceIDWithHandler:] (#2445) (#2559) 2019-03-24 17:17:10 -04:00
Chen Liang b34a2780bd Ensure token refresh notification is triggered any time a new token is refreshed. b/77662386 (#2562) 2019-03-22 13:45:02 -07:00
Chen Liang 032f0bfa28 Adding unit tests for InstanceID tvOS support (#2483) 2019-03-07 10:07:22 -08:00
Ryan Wilson 1b777acdca Fix IID singleton usage. (#2446)
The singleton is cached and vended from the Core component system, we
shouldn't wrap it in a dispatch_async or cache it with a global variable.

This matches a change internally that has been made and shipped.
2019-02-26 12:26:42 -08:00
Paul Beusterien 42c5ae17fc Open source InstanceID (#2414) 2019-02-21 10:51:38 -08:00