Commit Graph

2118 Commits

Author SHA1 Message Date
Salakar 5fa86b8d1f [functions][ios] regions, multiapp & useFunctionsEmulator support 2018-08-16 15:05:51 +01:00
Salakar a061006759 [ios] update Firebase SDK pods minimum supported version 2018-08-16 14:51:17 +01:00
Salakar 87cf8d900c [tests][ios] update Firebase pods to v5.6.0 2018-08-16 14:49:46 +01:00
Salakar af4e247ef3 Merge remote-tracking branch 'origin/master' 2018-08-16 13:13:33 +01:00
Salakar de524a52fb [tests] update cloud functions testing project to include region testing function 2018-08-16 13:13:16 +01:00
Salakar 1b309d1dae [database][js] rename internal property 2018-08-16 13:11:34 +01:00
Salakar e800756bfa [tests][ios] update dependencies 2018-08-16 13:10:43 +01:00
Michael Diarmid 742863d9df
Merge pull request #1393 from ryanggrey/background-notification-fix-ios
Background notification fix for ios
2018-08-16 12:46:20 +01:00
Salakar 5839aadf0f [database][android] reset transaction signalled state on await() 2018-08-16 07:18:01 +01:00
Salakar 0c46523045 [auth][types] AuthProvider.credential token allow null or string explicitly 2018-08-16 06:38:58 +01:00
Salakar 097316b63b v5.0.0-rc0 2018-08-16 06:38:04 +01:00
Michael Diarmid 8358144259
Merge pull request #1400 from PatronGG/nullable-idtoken-string
Type declaration of AuthProvider.credential allows null token
2018-08-15 22:47:33 +01:00
Ryan Grey 5689d702e4 Update ts/flow types
CompletionHandler is no longer passed as a param to listener.
Instead it exists on the IOSNotification class.
2018-08-15 11:51:35 +01:00
Ryan Grey 0d0f85d217 Add complete getter for IOSNotification 2018-08-15 11:32:23 +01:00
Ryan Grey 363c315d60 Pass notifications (not ios notifications) into IOSNotification 2018-08-15 11:32:23 +01:00
Ryan Grey cfb5f3a304 Ensure notificationId is set before constructing IOSNotification 2018-08-15 11:32:23 +01:00
Ryan Grey 0af7c02955 Move autocompletion into IOSNotification class 2018-08-15 09:10:34 +01:00
Ryan Grey 000a4ec724 Move ios API into IOSNotifications 2018-08-15 09:10:33 +01:00
Ryan Grey 1ad4b8c0dd Make the user handling of completion all or nothing
The user controls this with a `_shouldAutoComplete` property. If true
we'll immediately call the completion handler for them. If false then
control is given to the user and we won't try and auto complete.
2018-08-14 14:33:01 +01:00
Gustavo Brunoro 40b9c4d339 Type declaration of AuthProvider.credential allows null token 2018-08-14 01:03:17 -03:00
Salakar 619cd17516 [messaging][js] re-order deleteToken method 2018-08-14 02:04:30 +01:00
Salakar c6d0470b14 merge 2018-08-14 02:03:39 +01:00
Salakar 2bb91b2c38 [messaging][js] add `deleteToken` support - fixes #1335 2018-08-14 02:02:38 +01:00
Salakar 769b3e742a android dep version changes 2018-08-14 02:00:27 +01:00
Michael Diarmid 433127c4bc
Merge pull request #1348 from bilalsyed001/master
[iOS] Fix getInitialLink to handle unresolved url
2018-08-14 01:53:55 +01:00
Michael Diarmid 23e28e453f
Merge pull request #1398 from invertase/functions-multi-app-regions
[utils][js][android] add `firebase.utils().getPlayServicesStatus(): P…
2018-08-14 01:51:01 +01:00
Salakar f86163460d [utils][js][android] add `firebase.utils().getPlayServicesStatus(): Promise<GoogleApiAvailabilityType | null>` to retrieve the latest play services status. Fixes #1257 2018-08-14 01:49:59 +01:00
Michael Diarmid f83ddb89a6
update version compatibility table 2018-08-14 01:30:58 +01:00
Michael Diarmid 39675fc828
Merge pull request #1395 from invertase/functions-multi-app-regions
[functions][wip] add support for multiple apps, specifying a region & useFunctionsEmulator
2018-08-14 01:22:46 +01:00
Michael Diarmid c44aed7d8a
Merge pull request #1397 from PatronGG/export-auth-credential-type
Exports the AuthCredential type
2018-08-14 01:16:03 +01:00
Salakar d65d9e405c [tests] update tests to use jet package 2018-08-14 01:11:57 +01:00
Salakar a2c56a5be4 [internals][js] remove legacy `options` arg for module constructors and cleanup constructor args 2018-08-14 01:11:14 +01:00
Gustavo Brunoro e41397b904 exports the AuthCredential type 2018-08-13 20:22:25 -03:00
Salakar a2205160d8 [functions][android] add support for multiple firebase apps and specifying a function region 2018-08-13 23:18:08 +01:00
Salakar fbc47c5cf2 [functions][js] add support for multiple firebase apps and specifying a function region 2018-08-13 23:17:53 +01:00
Salakar 7632da1809 [js][internals] internals re-write to generalise `app()`/`ModuleBase` arguments - now uses `customUrlOrRegion` - meaning support for custom functions() regions, custom database() shard urls and custom storage() bucket urls internally use the same logic 2018-08-13 23:06:15 +01:00
Ryan Grey 89f7698e5f Merge branch 'master' into background-notification-fix-ios 2018-08-13 08:28:37 +01:00
Ryan Grey 6a69ae66b1 Auto complete early when no user listeners.
This is to clear up memory on the objective-c side without needing to
signal the start/stop of user listeners.
2018-08-10 17:13:02 +01:00
Ryan Grey a8b4435abf Update ts types 2018-08-10 10:16:07 +01:00
Michael Diarmid 098edb35b5
Merge pull request #845 from ajcrites/type-modules
Improving type definitions to better match firebase-js-sdk
2018-08-09 17:16:57 +01:00
Andrew Crites 68ea9120ca
[types]: Export config property from firebase 2018-08-09 11:30:52 -04:00
Andrew Crites 1d56ddda6d
[types]: Rename FireStore to Firestore. Remove deleted crash export 2018-08-09 11:27:48 -04:00
Andrew Crites 12af6f39f3
[types]: adding module for config 2018-08-09 11:19:59 -04:00
Andrew Crites 1d91cad542
[types]: Format typings and export new additions 2018-08-09 11:19:41 -04:00
Andrew Crites c61f860d67
[types]: Completing TypeScript module definitions 2018-08-09 11:19:01 -04:00
Andrew Crites 317bc6be18
[types]: TypeScript modules for easier import
* database

* storage
2018-08-09 11:18:09 -04:00
Andrew Crites adba9467e7
[module] Export module functions directly 2018-08-09 11:14:46 -04:00
Ryan Grey ab42108234 Add auto call to done which awaits the listener before doing so
The idea is to catch any cases where the API user is not calling done manually.
This has the issue that we've modified pre-existing function to take a
Promisified callback instead of just a callback. Any user upgrading to a
version that contains this that does not read the upgrade guide and make
appropriate changes will:
- be passing a plain callback (not promisified)
- not be calling done
- may be performing async (something that triggers a later callback) in their
onNotificationDisplayed handler.

This all means that we will be auto calling `done` prior to them performing
any background work. This is exactly how things worked prior to these changes
so perhaps the user is no worse off.
2018-08-08 11:09:02 +01:00
Ryan Grey 0291605934 Protect against multiple calls to start/stop handling native methods 2018-08-06 15:22:15 +01:00
Ryan Grey b53695ad52 Add RCTConverter+UIBackgroundFetchResult to handle auto conversion 2018-08-06 13:05:16 +01:00