Commit Graph

58 Commits

Author SHA1 Message Date
Mike Diarmid
34b1d92005 [v6] Implement Invites (#2015)
[v6] Implement Invites
2019-03-28 20:52:16 +00:00
Salakar
57c6d16683 [skip ci] linting 2019-03-27 04:25:28 +00:00
Ilja Daderko
fb7109e52a [v6] Implement Remote Config (#1896) 2019-03-26 13:03:57 +00:00
Mike Diarmid
c89ba48e92 [v6] Implement Crashlytics upgrade + required internals changes (#1958)
[crashlytics]

Fixes: #1643, #1848, #1964, #1920, #1884, #1783, #1966, #1940, #1447

Features/Bugs Todo:

  Capture JS Exceptions with stack traces automatically
  Capture Unhandled Promise Rejections with stack traces automatically
  [Android] .crash() not captured in debug due to RN RedBox; see #1921
  Support advanced user identifier features
  [Android] Enable Crashlyics NDK reporting by default (gist)
  Support toggling native crash logging off/on (e.g. disable in DEV)
  Support toggling JS crash logging off/on (e.g. disable in DEV)

  [ios] Static framework support for all modules
  [ios] Implement CocoaPods Firebase RN modules auto-loader script
  Implement firebase.json config loader; Android & iOS
  [tests] Fix false positive tests that catch errors (tests did not check that errors actually threw)
  [android] Cleanup manifest permissions for all modules
  [android] Implement Content provider base class
  [android] Investigate/fix issue where setDataCollectionDefaultEnabled is false by default in Firebase - it disables Crashlytics reporting
2019-03-13 17:07:21 +00:00
Michael Diarmid
93a3b36f37 [v6] Implement In-App Messaging (fiam) (#1925)
firebase.fiam().*
2019-02-27 07:59:16 +00:00
Salakar
510a94b079 [tests] increase number of retries 2019-02-25 02:44:18 +00:00
Michael Diarmid
cd13977377 [v6] implement Performance Monitoring (#1916) 2019-02-24 13:07:59 +00:00
Salakar
66423a3a0b [tests][functions] added useFunctionsEmulator test 2019-02-10 05:15:32 +00:00
Salakar
19a8b46a9b [tests] import new modules for testing 2019-02-10 04:07:42 +00:00
Salakar
93d49057d8 [tests] remove all helpers 2019-02-10 01:45:13 +00:00
Salakar
523164ef9d [tests] remove all firebase project credentials 2019-02-10 01:44:23 +00:00
Salakar
c35ec3f9bc update notices 2019-02-05 04:50:07 +00:00
Salakar
d47830b702 [tests] initialise default app natively to work around Firebase Perf hard requirement on default app plist/json setup 2019-02-05 02:36:50 +00:00
Salakar
666027a188 [tests] cleanup after hook 2019-02-01 11:15:01 +00:00
Michael Diarmid
17d778cf66 Refactor into monorepo for v6 (#1837)
> You can [learn more about this here](https://blog.invertase.io/react-native-firebase-2019-7e334ca9bcc6).
2019-02-01 10:37:48 +00:00
Salakar
b73372cd2a [tests][firestore] additional tests for arrayUnion & arrayRemove 2019-01-04 21:05:40 +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
a05a8c97b3 [tests][firestore] update path tests 2019-01-04 00:31:30 +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
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
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
Salakar
5b0282ed28 [core][android][ios] add app.delete() support 2018-11-05 16:46:06 +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
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
Andrzej Lewandowski
44c7c92acf [Android][IOS][Firestore] add arrayRemove and arrayUnion to FieldValue (#1624)
### Summary

Add methods arrayRemove and arrayUnion to work with arrays in firestore.

Fixes #1389

### Checklist
* [x]  Supports `Android`
* [x]  Supports `iOS`
* [x]  `e2e` tests added or updated in [/tests/e2e/*](/tests/e2e)
* [x]  Updated the documentation in the [docs repo](https://github.com/invertase/react-native-firebase-docs)

https://github.com/invertase/react-native-firebase-docs/pull/134

* [x]  Flow types updated
* [x]  Typescript types updated
2018-10-23 13:40:11 +01:00
Felipe Waku
bf3f5001a0 Returning null as downloadUrl in upload task (#1620)
solves: #1591 using the first solution:

> 1. Still consider the invocation a success, providing downloadURL as null.

Can some maintainer help me with the new test case? I need a file with permission to upload but not to download.
2018-10-20 00:55:01 +01:00
Salakar
f7b0acdada [tests][ios] misc firestore transactions 2018-10-16 18:15:18 +01:00
Salakar
4b8d840648 [ios][notifications] fix completion crash: #1576 2018-10-16 18:14:32 +01:00
Salakar
35a393fcc9 [tests] misc 2018-09-27 09:59:04 +01:00
Salakar
6ac1ae8e88 [tests][auth] remove fetchProvidersForEmail usage - fn no longer exists 2018-09-25 19:03:00 +01:00
Salakar
6e7feaa7e8 [tests][auth] add getIdTokenResult test 2018-09-25 19:02:26 +01:00
Salakar
192b509a40 [auth][[ios][js] deprecate all *AndRetrieveData* methods on auth() and User 2018-09-24 23:39:43 +01:00
Salakar
4b50be30a3 [tests][android][perf] add delay to work around detox relaunch issue 2018-09-24 03:10:40 +01:00
Salakar
855b8fab53 [firestore][android] re-write serialize class and add support for NaN & Infinity numbers 2018-09-24 02:48:29 +01:00
Salakar
685270402e [tests] add in app ui for current test status + enable test retrying 2018-09-22 20:31:55 +01:00
Salakar
c75b722c53 [tests][firestore] add document SnapshotError tests 2018-09-21 00:13:05 +01:00
Salakar
f9e9179242 [tests][firestore] add collection SnapshotError tests 2018-09-21 00:12:46 +01:00
Salakar
3ac9311eaa [firestore] remove unnecessary intern fn _offDocumentSnapshot -> EE already returns a subscription instance with a remove();
[firestore] additionally refactor unsubscribe so it can be called if an error is received on subscribing
2018-09-20 18:13:07 +01:00
Salakar
197a26d8c4 [tests][firestore] remove only 2018-09-20 17:11:01 +01:00
Salakar
a8130d7c3d [tests][firestore] add where array-contains tests 2018-09-20 16:58:40 +01:00
Salakar
75dc609047 [tests][firestore] fix documentReference tests 2018-09-20 16:36:22 +01:00
Salakar
5c51407709 [tests][firestore] re-write onSnapshot tests to remove race conditions 2018-09-20 16:25:49 +01:00
Salakar
0c9435af33 [tests][firestore] cleanup tests & helpers - wip 2018-09-20 13:21:47 +01:00
Salakar
24979724cc [tests] fix coverage issue - temp revert to .babelrc file until metro PR lands 2018-09-17 04:59:12 +01:00
Salakar
c8abdd53d0 [tests][auth] ensure signed out state before each auth test 2018-09-16 17:58:01 +01:00
Salakar
fb57495a15 [tests][auth] add signInWithPhoneNumber tests 2018-09-16 17:57:18 +01:00
Michael Diarmid
6305f15458 Merge pull request #1476 from oblador/updatePhoneNumber
[auth] Support updatePhoneNumber
2018-09-16 13:12:36 +01:00
Salakar
93d39412f5 [tests] refactor to use latest Jet setup 2018-09-12 21:05:48 +01:00
Joel Arvidsson
a272910119 [auth] Support updatePhoneNumber 2018-09-10 15:36:40 +02:00