Commit Graph

2458 Commits

Author SHA1 Message Date
Salakar
b73372cd2a [tests][firestore] additional tests for arrayUnion & arrayRemove 2019-01-04 21:05:40 +00:00
Salakar
b1dcb57dfd [firestore][js] arrayUnion & arrayRemove updated to accept any types including References & Objects 2019-01-04 21:02:17 +00:00
Salakar
711d125423 [firestore][ios] arrayUnion & arrayRemove updated to accept any types including References & Objects 2019-01-04 21:00:26 +00:00
Salakar
6bc668c8ab [tests][firestore] added tests for #1439 #1437 #1573 #1552 - unable to reproduce 2019-01-04 18:27:45 +00:00
Salakar
d5fd178841 [ios][messaging] hasPermission now correctly returns true/false instead of 1/0 - fixes #1547 2019-01-04 13:10:43 +00:00
Salakar
1d271736fa [types][flow] fix Flow error 2019-01-04 00:53:25 +00:00
Salakar
a05a8c97b3 [tests][firestore] update path tests 2019-01-04 00:31:30 +00:00
Salakar
71e0489139 [types][flow] Fix #1558 2019-01-04 00:26:08 +00:00
Salakar
f752ab01af [types][flow] Fix #1205 2019-01-03 23:46:05 +00:00
Salakar
db45915c22 [types][ts] Fix #1515 2019-01-03 23:35:48 +00:00
Tyler Jones
5b7e7f690f [ts] fix Messaging requestPermission return type (#1513)
See: 619cd17516/src/modules/messaging/index.js (L129)
2019-01-03 21:32:22 +00:00
Michael Diarmid
1d83962f26 [messaging] getToken/deleteToken/onTokenRefresh improvements (#1805)
[IOS] [BUGFIX] [MESSAGING] fix getToken() always returning initialToken (#1510)

[ANDROID] [NOTICE] [MESSAGING] deprecate RNFirebaseInstanceIdService in favour of FirebaseMessagingService's onNewToken event. Remove this service from your AndroidManifest.xml

[IOS] [ANDROID] [INTERNAL] [MESSAGING] getToken & deleteToken now use Firebase InstanceID token management apis (with an FCM scope).
2019-01-03 17:01:51 +00:00
Guy Blank
a8ac5ef3fc Handle UNUserNotificationCenter completionHandlers (#1803)
[IOS][ENHANCEMENT][NOTIFICATIONS] - handle NSUserNotificationCenter completion handlers
2019-01-03 16:33:12 +00:00
Michael Diarmid
e0df0ae646 Update PULL_REQUEST_TEMPLATE.md 2019-01-02 20:24:07 +00:00
Michael Diarmid
78540907a2 Update codecov.yml 2019-01-02 20:23:07 +00:00
Michael Diarmid
a381951361 Update README.md 2019-01-01 00:32:23 +00:00
Joseph Cheung
c013eb4e4c Fix Messaging interface and MessagingStatic's ios property (#1800) 2019-01-01 00:28:22 +00:00
Noah Allen
094b1b1621 Fixes #1788 NSNull vs nil issue (#1790)
* Fix "Unsupported value sent to buildTypeMap" error.

* Remove extra space.
2018-12-24 17:44:57 +00:00
Zhigang Fang
5c1e838ff5 Upgrade iOS version to iOS9 (#1784) 2018-12-23 14:53:21 +00:00
Michael Diarmid
ce9ac422c3 Merge branch 'v5.x.x' into master 2018-12-20 11:53:33 +00:00
Guy Blank
23ed1fb086 Fixes #1772 (#1773)
* Fix backgroundFetchResult typo for failure

* align to styling with comma
2018-12-19 13:47:37 +00:00
Salakar
277ae54bed [core][js] ensure native initialized app names are also upper cased
Thanks @compojoom for the report.
2018-12-15 13:20:48 +00:00
Michael Diarmid
0baee383d0 Update config.yml 2018-12-11 19:56:00 +00:00
Michael Diarmid
e2e299eea7 Update config.yml 2018-12-11 19:53:49 +00:00
Michael Diarmid
fa7b98895e Re-configure Android CI (#1488)
* [tests][wip] re-configure android ci

* [tests] re-configure android ci

* [tests] re-configure android ci

* [tests] re-configure android ci

* [tests] re-configure android ci

* [tests] re-configure android ci

* [tests] disable gradle daemon

* [tests] misc

* [tests] misc

* misc ci

* ci

* ci

* ci

* ci

* ci

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* switch to rnfb docker image

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [ios][auth] cleanup and add new auth error codes

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]
2018-12-09 19:37:11 +01:00
Michael Diarmid
831362838a [tests] iOS Firebase SDK v5.14.0 (#1735)
* Update Podfile

* Delete Podfile.lock

* Update config.yml

* Update config.yml

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]
2018-12-08 05:42:23 +01:00
Tim Wang
1ab8439748 Add enableCrashlyticsCollection to Crashlytics (#1718)
* Add enableCrashlyticsCollection to Crashlytics

* Fix typo

* Add e2e test

* Update e2e test

* Add program mark for fabric

* Update config.yml

increment yarn caching version - eslint bug

* Delete yarn.lock

* update yarn lock

* update Podfile.lock

* update Podfile.lock / yarn.lock

* update cache versions

* [tests] update podfile

* [tests][ci] remove pods cache =/

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]

* [tests][ci]
2018-12-06 18:31:28 +01:00
Efstathios Ntonas
42f9c9fec9 fixed null token in getToken() on Android (#1724)
* fixed null token in getToken()

* added promise reject

* removed unwanted import IOException
2018-12-05 08:23:36 +00:00
Michael Diarmid
d13f0af53f [typescript][firestore] update toUint8Array definition
Fixes #1715
2018-11-28 15:38:25 +00:00
Salakar
d33affb070 5.1.1 2018-11-26 15:18:21 +00:00
Michael Diarmid
9b79259d63 [android][build] add support for android sources from root - fixes #1697 (#1711)
[android][build] update build script to support expo RN - fixes #1697
2018-11-26 16:10:48 +01:00
Michael Diarmid
b760b4cb0f [typescript][firestore] improve onSnapshot error definitions - fixes #1708 (#1710) 2018-11-26 14:49:51 +01:00
Michael Diarmid
96aa7035ce [typescript][storage] export storage statics - fixes #1706 (#1709) 2018-11-26 14:04:39 +01:00
Erik Haider Forsén
04fba7900a Corrects flow return type (#1703)
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request properly. -->
<!-- If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged. -->
<!-- Please esure you've also read the `/CONTRIBUTING.md` guide. -->

### Summary
Using `firebase.links().createShortLink()` returns a promise with a string wrapper object. As far as I can tell, there is no reason it can not be a string literal, witch (to me) seems more logical (it is also the return type of the underlying function call).
### Checklist

- [x] Supports `Android`
- [x] Supports `iOS`
- [ ] `e2e` tests added or updated in [/tests/e2e/\*](/tests/e2e)
- [ ] Updated the documentation in the [docs repo](https://github.com/invertase/react-native-firebase-docs)
  - **LINK TO DOCS PR HERE**
- [x] Flow types updated
- [ ] Typescript types updated

### Test Plan
Tested locally, works for me. 
<!-- Demonstrate the code is solid. -->
<!-- Example: The exact testing commands you ran and their final output (e.g. screenshot of test summary). -->
<!-- Example: Screenshots / videos if the pull request changes UI related code such as Notifications or Admob -->

### Release Plan

<!-- Help reviewers and the release process by writing your own release notes. See below for examples. -->

[TYPES][ENHANCEMENT] [LINKS] - Corrects flow return type to string literal instead of string wrapper

<!--
  **INTERNAL tagged notes will not be included in the next version's release notes.**

    CATEGORY
  [----------]      TYPE
  [ TYPES    ] [-------------]       LOCATION
  [ JS       ] [ BREAKING    ] [------------------]
  [ GENERAL  ] [ BUGFIX      ] [ {FirebaseModule} ]
  [ INTERNAL ] [ ENHANCEMENT ] [ {Filename}       ]
  [ IOS      ] [ FEATURE     ] [ {Directory}      ]   |-----------|
  [ ANDROID  ] [ MINOR       ] [ {Framework}      ] - | {Message} |
  [----------] [-------------] [------------------]   |-----------|

 EXAMPLES:

 [IOS] [ANDROID] [BREAKING] [AUTHENTICATION] - Change a thing that breaks other things
 [ANDROID] [BUGFIX] [FIRESTORE] - Did a thing to fix a thing with a Firestore thing
 [JS] [BREAKING] - Remove a deprecated thing
 [TYPES] [ENHANCEMENT] [NOTIFICATIONS] - Update flow types for a thing in notifications
 [JS] [ENHANCEMENT] - Expose export of a internal thing utility for public usage
 [INTERNAL] [FEATURE] [./utils] - Added an internal util to make doing a thing easier
-->

---

Think `react-native-firebase` is great? Please consider supporting the project with any of the below:

- 👉 Donate via [Open Collective](https://opencollective.com/react-native-firebase/donate)
- 👉 Follow [`React Native Firebase`](https://twitter.com/rnfirebase) and [`Invertase`](https://twitter.com/invertaseio) on Twitter
- 👉 Star this repo on GitHub ️
- 👉 Contribute; see our [contributing guide](/CONTRIBUTING.md)

🔥
2018-11-23 13:56:50 +00:00
Tim Wang
a735d271be Add setUserProperties to index.d.ts (#1699)
<!-- Thanks for submitting a pull request! Please provide enough information so that others can review your pull request properly. -->
<!-- If this PR fixes an issue, type "Fixes #issueNumber" to automatically close the issue when the PR is merged. -->
<!-- Please esure you've also read the `/CONTRIBUTING.md` guide. -->

### Summary

<!-- Explain the **motivation** for making this change e.g. what existing problem does the pull request solve? -->

Add setUserProperties to TypeScript typing file.

Source code at https://github.com/invertase/react-native-firebase/blob/master/src/modules/analytics/index.js#L154

### Checklist

- [ ] Supports `Android`
- [ ] Supports `iOS`
- [ ] `e2e` tests added or updated in [/tests/e2e/\*](/tests/e2e)
- [ ] Updated the documentation in the [docs repo](https://github.com/invertase/react-native-firebase-docs)
  - **LINK TO DOCS PR HERE**
- [ ] Flow types updated
- [x] Typescript types updated

### Test Plan

<!-- Demonstrate the code is solid. -->
<!-- Example: The exact testing commands you ran and their final output (e.g. screenshot of test summary). -->
<!-- Example: Screenshots / videos if the pull request changes UI related code such as Notifications or Admob -->

### Release Plan

<!-- Help reviewers and the release process by writing your own release notes. See below for examples. -->

[TYPES] [BUGFIX] [ANALYTICS] Add setUserProperties TS typing.

<!--
  **INTERNAL tagged notes will not be included in the next version's release notes.**

    CATEGORY
  [----------]      TYPE
  [ TYPES    ] [-------------]       LOCATION
  [ JS       ] [ BREAKING    ] [------------------]
  [ GENERAL  ] [ BUGFIX      ] [ {FirebaseModule} ]
  [ INTERNAL ] [ ENHANCEMENT ] [ {Filename}       ]
  [ IOS      ] [ FEATURE     ] [ {Directory}      ]   |-----------|
  [ ANDROID  ] [ MINOR       ] [ {Framework}      ] - | {Message} |
  [----------] [-------------] [------------------]   |-----------|

 EXAMPLES:

 [IOS] [ANDROID] [BREAKING] [AUTHENTICATION] - Change a thing that breaks other things
 [ANDROID] [BUGFIX] [FIRESTORE] - Did a thing to fix a thing with a Firestore thing
 [JS] [BREAKING] - Remove a deprecated thing
 [TYPES] [ENHANCEMENT] [NOTIFICATIONS] - Update flow types for a thing in notifications
 [JS] [ENHANCEMENT] - Expose export of a internal thing utility for public usage
 [INTERNAL] [FEATURE] [./utils] - Added an internal util to make doing a thing easier
-->

---

Think `react-native-firebase` is great? Please consider supporting the project with any of the below:

- 👉 Donate via [Open Collective](https://opencollective.com/react-native-firebase/donate)
- 👉 Follow [`React Native Firebase`](https://twitter.com/rnfirebase) and [`Invertase`](https://twitter.com/invertaseio) on Twitter
- 👉 Star this repo on GitHub ️
- 👉 Contribute; see our [contributing guide](/CONTRIBUTING.md)
2018-11-21 10:30:08 +01:00
Rakan Nimer
a19ed879a9 Increase test coverage of Realtime Database (#1694)
Add more tests for Realtime Database

### Summary

Increases test coverage, which should be helpful when starting work on v6.

### Checklist

- [x] `e2e` tests added or updated in [/tests/e2e/\*](/tests/e2e)

### Release Plan

[TESTING][ENHANCEMENT][Database] - More tests

Think `react-native-firebase` is great? Please consider supporting the project with any of the below:

- 👉 Donate via [Open Collective](https://opencollective.com/react-native-firebase/donate)
- 👉 Follow [`React Native Firebase`](https://twitter.com/rnfirebase) and [`Invertase`](https://twitter.com/invertaseio) on Twitter
- 👉 Star this repo on GitHub ️
- 👉 Contribute; see our [contributing guide](/CONTRIBUTING.md)
2018-11-20 14:53:15 +02:00
Daehoon Kim
716b49a9cd Fix authStateChanged after app is reloaded (fixes #1677) (#1698) 2018-11-20 12:13:56 +00:00
yernar
9486cdcc20 fixed #1687 (#1692) 2018-11-19 11:24:16 +00:00
Rakan Nimer
f2bf9c3179 Run prettier on index.d.ts & Add auth listener callback type (#1689)
### Summary

Ran prettier on index.d.ts and added AuthListenerCallback to typescript declaration file and pass it to auth listeners

### Checklist

- [ ] Supports `Android`
- [ ] Supports `iOS`
- [ ] `e2e` tests added or updated in [/tests/e2e/\*](/tests/e2e)
- [ ] Updated the documentation in the [docs repo](https://github.com/invertase/react-native-firebase-docs)
  - **LINK TO DOCS PR HERE**
- [ ] Flow types updated
- [x] Typescript types updated


### Release Plan

[TYPES][ENHANCEMENT] [AUTHENTICATION] - Update TS types for auth listeners

---

Think `react-native-firebase` is great? Please consider supporting the project with any of the below:

- 👉 Donate via [Open Collective](https://opencollective.com/react-native-firebase/donate)
- 👉 Follow [`React Native Firebase`](https://twitter.com/rnfirebase) and [`Invertase`](https://twitter.com/invertaseio) on Twitter
- 👉 Star this repo on GitHub ️
- 👉 Contribute; see our [contributing guide](/CONTRIBUTING.md)
2018-11-15 17:09:00 +02:00
Michael Diarmid
f16970060c Update README.md 2018-11-05 19:34:21 +00:00
Salakar
7b9898c973 5.1.0 2018-11-05 17:10:43 +00:00
Salakar
5b0282ed28 [core][android][ios] add app.delete() support 2018-11-05 16:46:06 +00:00
Salakar
ead0ca59be 5.1.0-rc3 2018-11-04 04:08:23 +00:00
Michael Diarmid
5120121797 [ios][android] Authentication improvements (#1663)
* [internals][js] nativeWithArgs wrapper incorrectly wrapping NativeModule constants - should only wrap functions

* [ios][android][js][auth] ensure user login state is consistent across RN reloads + tests

* remove test focus

* [android][auth] clear all auth state and id token listeners between React Native reloads

* [ios][auth] clear all auth state and id token listeners between React Native reloads

* [ios][auth] cleanup and add new auth error codes
2018-11-04 04:06:40 +00:00
Salakar
424d1e8f60 [tests][ios] update Firebase pods to ~>5.11.0 2018-11-01 13:39:42 +00:00
Salakar
a734d7b706 [android] update Firebase SDK dependencies 2018-11-01 13:12:17 +00:00
Salakar
cc3d8e74d8 [js][database] add support for exportVal() - #fixes 1497 2018-10-31 18:29:09 +01:00
Salakar
31fc0c4b77 5.1.0-rc2 2018-10-27 05:37:06 +01:00
Michael Diarmid
d3b9b24cca [android][database] database improvements (#1619)
- [ANDROID] [BUGFIX] [DATABASE] - Database listeners now correctly tearing down between RN reloads. (Fixes #1498 #1611 #1609)
 - [JS] [BUGFIX] [DATABASE] - Fixed an issue where `Reference.toString()` incorrectly contains `//` instead of `/` when joining the parent and child paths.
 - [JS] [BUGFIX] [DATABASE] - Rework `.push()` behaviour to match WebSDK and correctly return a Reference instance in all scenarios. (Fixes #893 #1464 #1572)
 - [JS] [ENHANCEMENT] [UTILS] - Added a `firebase.utils().database.cleanup()` utility method which removes all database listeners.
2018-10-27 05:34:09 +01:00
Salakar
210c966443 [ios][notifications] missing default case + typo 2018-10-26 20:06:07 +01:00