Commit Graph

372 Commits

Author SHA1 Message Date
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
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
Michael Diarmid
96aa7035ce [typescript][storage] export storage statics - fixes #1706 (#1709) 2018-11-26 14:04:39 +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
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
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