Commit Graph

359 Commits

Author SHA1 Message Date
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
Michael Diarmid
1f4f9f68b6 Update README.md 2018-10-22 13:16:46 +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
1b538d800f [tests] update deps 2018-10-17 19:24:55 +01:00
Salakar
b4ac1ab7b0 [tests][ios] switch to iPhone X device type for detox 2018-10-16 18:16:45 +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
4b0486e58a [tests][ios] update podfile.lock 2018-10-15 20:38:38 +01:00
Salakar
5b8e9763c4 [ios][firestore] transactions re-work 2018-10-15 20:14:48 +01:00
Salakar
7992f6e359 [ios] update project file
[ios] update firebase sdks to v5.10.0
2018-10-14 16:43:29 +01:00
Salakar
af4b2f8681 [android] update firebase sdk dependencies 2018-10-12 18:09:43 +01:00
Salakar
3eea8dd011 [android][tests] update gradle to 4.6 2018-10-12 18:09:01 +01:00
Salakar
35a393fcc9 [tests] misc 2018-09-27 09:59:04 +01:00
Salakar
ed68f29178 [ios][tests] update to v5.9.0 iOS SDKs 2018-09-25 22:40:56 +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
fb6153db94 [notifications][android] fix #1527 2018-09-25 12:01:42 +01:00
Salakar
192b509a40 [auth][[ios][js] deprecate all *AndRetrieveData* methods on auth() and User 2018-09-24 23:39:43 +01:00
Salakar
38954423a7 [ios] Firebase SDK update v5.6.0 => v5.8.1 2018-09-24 04:42:25 +01:00
Salakar
bb4659d964 [android] update Firebase SDK deps 2018-09-24 04:41:37 +01:00
Salakar
ccac667177 [tests][ios] update Podfile 2018-09-24 04:14:31 +01:00
Salakar
f3d6700ad1 [tests][ios] update podfile.lock 2018-09-24 03:19:34 +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
571d9b6031 [firestore][ios] re-write FirestoreDocReference internals + add support for Infinity & NaN numbers 2018-09-23 07:49:50 +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
9de4b4431a [tests][types] create flow-typed/firebase for use in testing app 2018-09-21 00:01:42 +01:00
Salakar
de4f5f6559 [tests] misc project config 2018-09-21 00:00: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
eb1f0acda6 [tests] update podfile lock 2018-09-20 14:16:09 +01:00
Salakar
0c9435af33 [tests][firestore] cleanup tests & helpers - wip 2018-09-20 13:21:47 +01:00
Salakar
4f7ca7f072 [notifications] fix for #1445 - thanks @rahulgi for helping debug <3 2018-09-20 10:23:30 +01:00
Salakar
5fefab5b35 [tests] update podfile lock 2018-09-19 13:47:55 +01:00
Salakar
84c860dd7d Merge remote-tracking branch 'origin/master' 2018-09-17 04:59:21 +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
dc0a62402f [tests] misc project config 2018-09-16 23:01:11 +01:00
Salakar
62e2c42ec6 [tests][android] disable bundle deltas - TODO move to Jet 2018-09-16 22:56:26 +01:00
Salakar
6b0146e3dd [tests][auth] set firebase.auth.AuthSettings settings before running Phone Auth tests 2018-09-16 21:39:51 +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
Salakar
485eed0238 [tests][ios] update url scheme for phone auth testing 2018-09-16 17:55:04 +01:00
Michael Diarmid
6305f15458 Merge pull request #1476 from oblador/updatePhoneNumber
[auth] Support updatePhoneNumber
2018-09-16 13:12:36 +01:00
Salakar
b9ebe1faf1 [tests] misc 2018-09-15 19:28:03 +01:00