Commit Graph

718 Commits

Author SHA1 Message Date
Darren Ackers
0cfb92cc96 tests(analytics): migration for jest tests (#3577)
[skip-ci]
2020-04-30 14:42:03 +01:00
Darren Ackers
ebc392e8fe tests: switch to ts-jest (#3578)
[skip-ci]
2020-04-29 16:00:14 +01:00
Darren Ackers
e10482b217 tests(functions): functions jest tests (#3565)
[skip-ci]
2020-04-28 13:36:56 +01:00
Darren Ackers
11de92afc0 tests(perf): migrate JS only tests to Jest (#3557)
[skip-ci]
2020-04-27 21:17:56 +01:00
@Salakar
0ed1feb8aa chore(release): publish [skip-ci]
- @react-native-firebase/functions@6.8.0
 - react-native-firebase-tests@6.7.3
2020-04-27 19:59:40 +00:00
Russell Wheatley
50c0f12ef0 feat(functions): support function timeout (#3534)
Added support for configurable function timeout which allows you to set the timeout for a cloud function call in milliseconds.
2020-04-27 20:58:10 +01:00
@Salakar
d351edcb27 chore(release): publish [skip-ci]
- @react-native-firebase/functions@6.7.2
 - @react-native-firebase/perf@6.7.2
 - react-native-firebase-tests@6.7.2
2020-04-27 07:23:07 +00:00
Darren Ackers
f58700e686 tests: start integration of Jest tests (#3529)
[skip ci]
2020-04-24 16:57:47 +01:00
@Salakar
e447ca6814 chore(release): publish [skip-ci]
- @react-native-firebase/template@6.8.0
2020-04-22 16:56:33 +00:00
Salakar
8f007fa97a feat: update RFNB version 2020-04-22 17:55:07 +01:00
@Salakar
424b0da686 chore(release): publish [skip-ci]
- @react-native-firebase/admob@6.7.1
 - @react-native-firebase/analytics@6.7.1
 - @react-native-firebase/app-types@6.7.1
 - @react-native-firebase/app@6.7.1
 - @react-native-firebase/auth@6.7.1
 - @react-native-firebase/crashlytics@6.7.1
 - @react-native-firebase/database@6.7.1
 - @react-native-firebase/dynamic-links@6.7.1
 - @react-native-firebase/firestore@6.7.1
 - @react-native-firebase/functions@6.7.1
 - @react-native-firebase/iid@6.7.1
 - @react-native-firebase/in-app-messaging@6.7.1
 - @react-native-firebase/messaging@6.7.1
 - @react-native-firebase/ml-natural-language@6.7.1
 - @react-native-firebase/ml-vision@6.7.1
 - @react-native-firebase/perf@6.7.1
 - @react-native-firebase/remote-config@6.7.1
 - @react-native-firebase/storage@6.7.1
 - @react-native-firebase/template@6.7.1
 - react-native-firebase-tests@6.7.1
2020-04-22 16:45:24 +00:00
Salakar
edd9b0ae1e chore: remove gitHead from package.json 2020-04-22 17:44:01 +01:00
@Salakar
d536b93b42 chore(release): publish [skip-ci]
- @react-native-firebase/admob@6.7.0
 - @react-native-firebase/analytics@6.7.0
 - @react-native-firebase/app-types@6.7.0
 - @react-native-firebase/app@6.7.0
 - @react-native-firebase/auth@6.7.0
 - @react-native-firebase/crashlytics@6.7.0
 - @react-native-firebase/database@6.7.0
 - @react-native-firebase/dynamic-links@6.7.0
 - @react-native-firebase/firestore@6.7.0
 - @react-native-firebase/functions@6.7.0
 - @react-native-firebase/iid@6.7.0
 - @react-native-firebase/in-app-messaging@6.7.0
 - @react-native-firebase/messaging@6.7.0
 - @react-native-firebase/ml-natural-language@6.7.0
 - @react-native-firebase/ml-vision@6.7.0
 - @react-native-firebase/perf@6.7.0
 - @react-native-firebase/remote-config@6.7.0
 - @react-native-firebase/storage@6.7.0
 - @react-native-firebase/template@6.7.0
 - react-native-firebase-tests@6.7.0
2020-04-22 16:37:22 +00:00
Salakar
5fec546bb8 feat(template): update RFNB version 2020-04-22 17:35:45 +01:00
@Salakar
cd4e3453d9 chore(release): publish [skip-ci]
- @react-native-firebase/admob@6.6.0
 - @react-native-firebase/analytics@6.6.0
 - @react-native-firebase/app-types@6.6.0
 - @react-native-firebase/app@6.6.0
 - @react-native-firebase/auth@6.6.0
 - @react-native-firebase/crashlytics@6.6.0
 - @react-native-firebase/database@6.6.0
 - @react-native-firebase/dynamic-links@6.6.0
 - @react-native-firebase/firestore@6.6.0
 - @react-native-firebase/functions@6.6.0
 - @react-native-firebase/iid@6.6.0
 - @react-native-firebase/in-app-messaging@6.6.0
 - @react-native-firebase/messaging@6.6.0
 - @react-native-firebase/ml-natural-language@6.6.0
 - @react-native-firebase/ml-vision@6.6.0
 - @react-native-firebase/perf@6.6.0
 - @react-native-firebase/remote-config@6.6.0
 - @react-native-firebase/storage@6.6.0
 - @react-native-firebase/template@6.6.0
 - react-native-firebase-tests@6.6.0
2020-04-22 16:15:53 +00:00
Mike Diarmid
e2c2d64d22 feat: independently version packages (#3513)
* feat: remove core version lock

* chore: v6.4.1

* chore: v6.4.1

* chore: configure lerna for independent versions

* chore: configure lerna for independent versions

* chore: only check docs folder

skipping elsewhere due to generated files such as changelogs
2020-04-22 15:48:13 +01:00
Mike Diarmid
a800cdbc81 fix(messaging,ios): keep original UNUserNotificationCenter dele… (#3427)
* fix(messaging,ios): keep original UNUserNotificationCenter delegate

Keeps a reference to any original UNUserNotificationCenter delegates that are set before we replace the delegate with out own implementation. Internally we will also call the original delegate if our code does not already handle the delegate call. This should keep compatibility with other RN modules that set the delegate.

* v6.4.1-alpha.0

* Revert "v6.4.1-alpha.0"

This reverts commit b355a86a

* feat: automatically register with APNs

* docs: typos

* fix: forward delegate call to FIRAuth

Fixes / supersedes #3425

* fix(messaging): add activity check to getInitialNotification (#3495)

* fix(messaging): add activity check to getInitialNotification

* fix(messaging): add activity check to getInitialNotification

* Update .spellcheck.dict.txt

Co-authored-by: Mike Diarmid <mike.diarmid@gmail.com>

Co-authored-by: Elliot Hesp <elliot.hesp@gmail.com>
2020-04-22 12:49:52 +01:00
Mike Diarmid
7f52366e22 docs: spelling & grammar fixes & GitHub Action (#3490) 2020-04-17 21:06:29 +01:00
Mike Diarmid
e427fcfd9b chore: github actions (#3472) 2020-04-17 14:54:16 +01:00
Russell Wheatley
b412c7139a chore(dynamic-links): add static types (#3489)
* update gitignore

* added statics to dynamic links
2020-04-17 12:28:29 +01:00
Mike Diarmid
67bbd30a34 chore: upgrade testing project to RN 0.62.x (#3433)
* chore: upgrade testing project to RN 0.62.x

* add placeholder flow script for CI

* update jet to fix iOS issue

* revert typedoc version (latest version not working)

* add `react-native-port-patcher` back in - port still being ignored by RN so patching manually

* add `react-native-port-patcher` back in - port still being ignored by RN so patching manually

* temporarily use iphone x for detox until CI servers upgraded

* -

* Update package.json

* Update on.e2e.js

* Update orderByValue.e2e.js

* Update on.e2e.js

* Update init.js

* -
2020-04-14 21:14:44 +01:00
Salakar
963e32cab5 chore(release): v6.4.0 2020-04-03 14:44:17 +01:00
Salakar
aa127b8444 chore(release): v6.4.0 2020-04-03 14:41:40 +01:00
Darren Ackers
8e99b9cb90 fix(storage): fixed a bug with parsing encoded urls (#3369)
* fix(firestore-storage): fixed a bug with parsing encoded urls

* Reverted emulator name for ios

* reverted detox library
2020-04-03 14:30:24 +01:00
Sampo Juustila
eebfb04a7c fix(analytics): logEvent params can be objects, further fix for… (#3351)
* fix(analytics): pass logEvent params as-is broken in #3219
* fix(types,analytics): logEvent types for #3219
* refactor(types,analytics): simplify logEvent type
2020-04-03 14:26:56 +01:00
Justin Huntington
73511472bd fix(functions): throw UNAVAILABLE code on network IO errors (#3327) 2020-04-03 14:20:53 +01:00
Elliot Hesp
68c6bce140 chore(docs): migrate to new docs website (#3389) 2020-04-03 14:00:59 +01:00
Salakar
432ad63a6f refactor(docs): change links to new site 2020-04-03 14:00:00 +01:00
Mike Diarmid
530f8bbb51 feat(ios): allow static_framework usage via Podfile global (#3388)
First pass at addressing #3253 to allow release in 6.4.0. For v7.0.0 we should make the default value true along with the RN min version set to 0.61.x +
2020-04-02 18:29:13 +01:00
Russell Wheatley
8adef653fa fix(auth): user.metadata uses ISO strings (#3360)
* fix(auth): user.metadata uses ISO strings

* chore(auth): move code to metadata getter

* chore(auth): refactor user.metadata

* test(auth): metadata props are milliseconds
2020-03-31 07:28:56 +01:00
Russell Wheatley
b90a736fc8 fix(firestore): improve query validation (#3320)
* fix(firestore): improve validation
* chore(firestore):use toPath() method
* test(firestore):where & orderBy validation

Co-authored-by: Mike Diarmid <mike.diarmid@gmail.com>
2020-03-27 17:36:45 +00:00
Russell Wheatley
ea1962270b feat(storage): made put method return Task. added snapshot API.
* feat(storage): snapshot prop on Task. put is Task

* removed this._task from StorageReference

* Apply suggestions from code review

not awaiting promise

Co-Authored-By: Mike Diarmid <mike.diarmid@gmail.com>

Co-authored-by: Mike Diarmid <mike.diarmid@gmail.com>
2020-03-27 16:51:47 +00:00
Elliot Hesp
d66a6118f8 feat(messaging): ios & android messaging updates & fixes (#3339)
See PR #3339 for changes.

Co-authored-by: Salakar <mike.diarmid@gmail.com>
2020-03-27 00:06:30 +00:00
Mike Hardy
d65e6341a4 Avoid out-of-memory in Android build
Fixes #3154 by allowing gradle to have more than the default memory
Firebase dependencies are pretty heavy and the build will fail otherwise
2020-03-25 17:03:06 -05:00
Mike Diarmid
65ec7eb431 fix(types,analytics): logEvent types for #3219 2020-03-25 14:31:00 +00:00
Elliot Hesp
77a213a569 chore(analytics): remove useless type 2020-03-24 12:02:24 +00:00
Russell Wheatley
1661f6e084 fix(dynamic-links): missing 'return' statement (#3318) 2020-03-18 09:47:50 +00:00
EzlyJohnnie
54bc6f8403 fix(dynamic-links,ios): links options not correctly applied (#3316)
Co-authored-by: Johnnie Cheng <Xiaojun.Cheng@thewarehouse.co.nz>
2020-03-18 09:32:27 +00:00
Elliot Hesp
cf0bbdcaf0 feature(messaging): android messaging upgrade (#3309)
* messaging receiver updates / initial notification handling

* Attach Notification to RemoteMessage

Co-authored-by: Mike Diarmid <mike.diarmid@gmail.com>
2020-03-17 11:51:36 +00:00
Kazuki
3b129dcc00 fix(messaging): allow RNFirebaseMessagingHeadlessTask to run in… (#3311) 2020-03-17 11:42:02 +00:00
russellwheatley
ea66c683ca fix(messaging): registerRemoteNotifictions 2020-03-12 18:04:57 +00:00
Pablo Kebees
df0a4589d0 Merge branch 'master' into @phaen/fiestore-type-parameters 2020-03-12 15:42:14 +01:00
Ely Alvarado
bd4dc06a05 fix(messaging): fix remote notification tokens
* Don't abort registerForRemoteNotifications

The native call to `registerForRemoteNotifications` shouldn't be aborted even if `isRegisteredForRemoteNotifications` returns `true`. This is because after successful registration on the first boot, on successive boots the app `isRegisteredForRemoteNotifications` will return true, and then `registerForRemoteNotifications` won't be called again and therefore the APNSToken will never be set (because it is only set on the `didRegisterForRemoteNotificationsWithDeviceToken` swizzled by the `FIRMessagingRemoteNotificationsProxy`)

* Set APNSToken on didRegisterForRemoteNotificationsWithDevicetoken

This is what `FIRMessagingRemoteNotificationsProxy` does, and doing it here seems to avoid the race condition caused by `didRegisterForRemoteNotificationsWithDeviceToken` here being executed first and resolving the promise before the token is set (at least on iOS 12). It doesn't do any damage anyway to do it here first anyway.

Co-authored-by: Russell Wheatley <russellwheatley85@gmail.com>
2020-03-12 14:27:19 +00:00
Pablo Kebees
0f7bf3cafa Removed Typescript from example 2020-03-12 13:10:46 +01:00
Pablo Kebees
c6949d0830 Merge branch 'master' into patch-1 2020-03-12 10:19:55 +01:00
ehesp
bf5271ef46 chore(firestore) remove "HTML" tags from comment blocks 2020-03-04 15:41:35 +00:00
Mike Hardy
166692d68e build(ios, in-app-messaging): update firebase sdk pod name (#3264)
This was changed in firebase iOS SDK 6.16.0 - https://firebase.google.com/support/release-notes/ios#firebase-in-app-messaging_1

I am unsure on backwards-compatibility of this changed, I am only attempting to build against current (SDK 6.18.0 as I type this)
2020-03-03 15:55:34 +00:00
svbutko
48a8670b07 Change the statics type of ShortLinkType 2020-02-27 21:37:13 +02:00
Sergei Butko
870d0a1986 Convert ShortLinkType to enum from interface
This was probably a mistake but at this very moment this part of the code makes no sense as interface and logically should be presented as enum.
2020-02-22 21:40:44 +02:00
Russell Wheatley
6311dc8f68 bug(firestore): match fb firestore behaviour (#3205)
* bug(firestore): match fb firestore behaviour

* tests(firestore): removed duplicate test

* Update packages/firestore/e2e/Query/query.e2e.js

* Update packages/firestore/e2e/Query/query.e2e.js

* tests(firestore): update error tests

Co-authored-by: Mike Diarmid <mike.diarmid@gmail.com>
2020-02-18 12:15:54 +00:00