Commit Graph

565 Commits

Author SHA1 Message Date
Salakar 368b3ad068 [functions][android][js] implementation - wip 2018-05-04 16:33:59 +01:00
Chris Bianca ff41a45fdd [firestore][types] Add Typescript types for Blob 2018-05-04 16:30:32 +01:00
Chris Bianca 5f21ddc0fc
Merge pull request #1050 from TaopaiC/remote-input-alloweddatatypes
fix allowedDataTypes in fromNativeAndroidRemoteInput
2018-05-04 16:23:20 +01:00
Salakar 8dee086f1f [functions][js] start of functions implementationn 2018-05-04 08:37:30 +01:00
Salakar 374c617672 [internals][js] move Base64 util to shared utils 2018-05-03 21:54:45 +01:00
Salakar d493e00a67 [firestore][js] additional Blob class input arg validations 2018-05-03 21:50:53 +01:00
Salakar 9c49d9ef57 [firestore][js] implement Blob support 2018-05-03 20:13:51 +01:00
Salakar d180b40d19 [firestore][js] blob uint8 coversion + blob comparator 2018-05-02 10:05:30 +01:00
Salakar ff3b0fd7ea [firestore][js] start of blob support 2018-05-01 22:20:55 +01:00
TaopaiC 5f7edf668c fix allowedDataTypes in fromNativeAndroidRemoteInput 2018-05-01 23:45:55 +08:00
Chris Bianca 7cc7d5afe5 [auth] Fix possible race condition #980 2018-04-26 09:21:10 +01:00
Adam Michel ea8e106129
Use union type for `fieldPath` option to query `orderBy` and `where` functions.
Constructing and passing a FieldPath object to the `orderBy` or `where` functions of a Firestore query currently raises a type error since those functions are only typed to expect a `string` value. This fixes that since those functions do accept FieldPath object types as well as astrings.
2018-04-24 12:46:23 -07:00
Salakar d0b6972e39 [database][js] fixed a regression where snapshot.child() would no longer work on array values 2018-04-22 00:29:33 +01:00
Salakar 0a828aae40 [firestore][js] fix issue with parent() incorrectly returning a 'parent' Path on a root level Path 2018-04-22 00:25:36 +01:00
Sibelius Seraphini 3ca951184f
feat(flow): prefer string over String 2018-04-19 12:01:40 -03:00
Salakar f4832410bb [firestore] .settings() - use hasOwnProperty instead of truthy value existence checks 2018-04-16 18:20:08 +01:00
Salakar 88410b409a [firestore] fix incomplete transaction error stack 2018-04-16 17:39:29 +01:00
Salakar 317b02b901 [firestore] Path - remove unreachable code paths 2018-04-16 16:21:24 +01:00
Salakar b534e02016 [firestore] added missing conditional for firestore transaction errors - should now error on failed promise validations 2018-04-16 16:20:33 +01:00
Salakar 5589ed7f4f [database] fix flow issue 2018-04-16 10:11:18 +01:00
Chris Bianca c275e02fcc [types] Fix typescript issues 2018-04-16 08:14:30 +01:00
Salakar 2a1e365231 fix flow issue #978 2018-04-13 22:37:48 +01:00
Chris Bianca 3a5686c226 [ios][notifications] Handle messaging token refreshed before bridge initialised #960 2018-04-13 14:23:55 +01:00
Salakar c14e60017e [firestore][DocumentSnapshot] explicitly bind context on data/get methods to keep context during destructuring (includes tests) 2018-04-13 11:50:30 +01:00
Chris Bianca b0abf23c6d [firestore] Add support for settings 2018-04-13 09:58:53 +01:00
Chris Bianca 1922a25198 [firestore] Add setLogLevel support 2018-04-13 08:41:57 +01:00
Chris Bianca c27918c53c [types] Add missing constructors 2018-04-13 08:41:57 +01:00
Salakar b918eea630 [firestore] add support for `DocumentSnapshot.get('dot.notated.field.path')` 2018-04-12 12:38:28 +01:00
Salakar f1e9d28869 [firestore] add support for `DocumentSnapshot.get('dot.notated.field.path')` 2018-04-12 12:30:41 +01:00
Chris Bianca 590d69ce89 [types] Add missing typescript statics for messaging, notifications and links 2018-04-12 08:50:13 +01:00
Chris Bianca 0645d179b3 [notifications] Make title and body optional fields 2018-04-11 18:15:38 +01:00
Michele Bombardi 3d80395c82 typings 2018-04-08 11:46:41 +02:00
Chris Bianca b21e7d0eab [crashlytics] Move to top level crashlytics namespace 2018-04-03 16:51:05 +01:00
Chris Bianca f5fa7436a9 [notifications] Add enableLights and enableVibration to AndroidChannel 2018-03-31 15:42:14 +01:00
Chris Bianca 1f8e973ded Merge branch 'event-delay' 2018-03-30 11:07:18 +01:00
Chris Bianca 801adabb27 [notifications] Add jsInitialised method to improve getInitialNotification 2018-03-30 10:31:06 +01:00
Chris Bianca 06c06b764f [invites] Add jsInitialised method to improve getInitialInvitation 2018-03-30 10:07:23 +01:00
Chris Bianca e7be3cc7f8 [links] Correct platform OS name 2018-03-30 09:52:37 +01:00
Chris Bianca a6c63d4f50 [links] Introduce JS initialised method to improve getInitialLink 2018-03-30 09:25:41 +01:00
Sibelius Seraphini 96f55e329e
feat(flow): export NotificationOpen
fix #923
2018-03-29 13:53:39 -03:00
Chris Bianca cf24a7dcc8 [types] Add TypeScript typings for firestore transactions 2018-03-28 16:00:58 +01:00
Chris Bianca d101813b5f [messaging][notifications] Make all methods return a promise where they didn’t previously 2018-03-28 11:02:39 +01:00
Chris Bianca dd940b953b [firestore] Add support for enable / disable network 2018-03-27 17:31:25 +01:00
Chris Bianca 804ef772c0 [database] Fix issue with server time offset #910 2018-03-27 16:33:51 +01:00
Chris Bianca 6ff34f4daa [notifications] Add support for Android BigPictureStyle and BigTextStyle 2018-03-27 16:15:31 +01:00
Chris Bianca 1ea711fb31 [types] Some basic typescript stuff for new messaging, notifications and links rewrite 2018-03-23 17:31:25 +00:00
Chris Bianca 8a9033457d [tests] Fix various test errors 2018-03-23 17:03:53 +00:00
Chris Bianca 477e509101 [iid] Rename instanceid to iid 2018-03-23 14:59:00 +00:00
Chris Bianca 56d9c43a81 [links] More minor fixes 2018-03-23 14:36:16 +00:00
Chris Bianca b9dab3cb17 [links] Some error checking 2018-03-23 13:26:20 +00:00
Chris Bianca 7f90e485c8 [links] Refactor links to use builder classes 2018-03-23 13:24:31 +00:00
Chris Bianca 526ea04853 Merge branch 'ios-invites' 2018-03-23 11:47:28 +00:00
Chris Bianca e430a4f132 [invites] Tweaks 2018-03-23 11:38:59 +00:00
Chris Bianca 72a1d1d439 [invites][links] Fix some iOS specific issues 2018-03-23 10:33:17 +00:00
Elliot Hesp 5baab58584
Merge pull request #903 from ifiokjr/patch-1
FIX: Types for requestPermissions on iOS
2018-03-23 09:52:41 +00:00
Chris Bianca 1a5253997d [database] Multi database check url format, and make logging static 2018-03-23 08:42:10 +00:00
Chris Bianca a605a703fb
Merge pull request #881 from pocketgems/multiple_databases_3.3.0_upstream
Implement multiple database shard support
2018-03-23 08:35:01 +00:00
Ifiok Jr b06d68e39e
fix: types for request permission
Currently returns void rather than a promise which causes TypeScript compilation to fail.
2018-03-23 06:32:32 +00:00
Chris Bianca 2891027f25 [tests] Fix some configuration issues 2018-03-22 14:55:02 +00:00
Chris Bianca 53babb4cd9 [invites] Initial JS and Android invites functionality 2018-03-22 12:46:37 +00:00
Chris Bianca e3ea0d3fc7 [analytics] Add additional validation 2018-03-22 08:46:00 +00:00
JinHao Chen cc8799b465 Implement multiple database shard support 2018-03-21 12:51:02 -07:00
Chris Bianca e791648c24 Tests for firestore and auth 2018-03-20 16:07:37 +00:00
Chris Bianca 287ad216cf [notifications] Fix flow type 2018-03-09 11:15:27 +00:00
Chris Bianca e537955212 [notifications] Add support for android actions 2018-03-09 11:09:28 +00:00
Olli Varis 47438a459c Modifies push() to return ThenableReference 2018-03-09 09:37:15 +02:00
Kenneth Skovhus a6880a00a9 [types] Use literal values for strings 2018-03-09 05:16:40 +01:00
Simon Bengtsson aa2511cbd3 [database][js] Reject promise instead of resolving an error object when ref.once('value') fails 2018-03-08 14:10:41 +01:00
Chris Bianca a82afe92d6 Merge branch 'v3.3.x'
# Conflicts:
#	tests/ios/Podfile.lock
2018-03-08 11:53:31 +00:00
Chris Bianca 7f8a486b40 [types] Fix transaction flow type errors 2018-03-08 11:13:21 +00:00
Chris Bianca 68cfd24810 [messaging] Fix a couple of flow errors 2018-03-08 10:42:35 +00:00
Chris Bianca 7619548a2c Merge branch 'master' into fcm-rewrite
# Conflicts:
#	lib/modules/core/firebase.js
#	tests/ios/Podfile.lock
2018-03-08 09:32:57 +00:00
Chris Bianca 57ffa9bd3e [notifications] Fix some android issues with local notifications 2018-03-07 18:29:53 +00:00
Chris Bianca a6734fa439 [auth][types] Fix incorrect return type for createUserAndRetrieveDataWithEmailAndPassword #862 2018-03-07 14:33:16 +00:00
Chris Bianca aa367e7be8 Merge branch 'fcm-rewrite-separate-events' into fcm-rewrite 2018-03-07 12:46:40 +00:00
Chris Bianca 7b9269fec5 [notifications] Rename `onNotificationOpened` to `onNotificationOpen` 2018-03-06 18:20:49 +00:00
Chris Bianca b9df258402 [notifications] Android channel and channel group support 2018-03-05 08:28:13 +00:00
Salakar 820bb0b0d4 [internals] remove bows logger + window shims - fixes #858 2018-03-05 01:58:42 +00:00
Salakar d1e86f59ab [js][analytics] logEvent now validates argument types (fixes #846) 2018-03-05 00:27:49 +00:00
Michael Diarmid f1a7a13587
Merge branch 'master' into firestore-transactions 2018-03-05 00:05:37 +00:00
Chris Bianca f1b5626483 [firestore] Add unsupported network methods 2018-03-02 10:28:17 +00:00
Chris Bianca 49757eb56d A few more firestore tests 2018-03-01 19:04:13 +00:00
Salakar a21fc755a1 merge master 2018-03-01 16:32:44 +00:00
Chris Bianca 7acace4ce6 [notifications][ios] Properly define attachment options 2018-03-01 08:39:24 +00:00
Chris Bianca ee3b2932ef [notifications] Rename `onPressed` to `onOpened` 2018-02-24 11:32:14 +00:00
Salakar e73812a1e0 fix #848 2018-02-24 05:53:07 +00:00
Chris Bianca 07bc258c08 [messaging] Add missing setTo method 2018-02-23 16:36:59 +00:00
Chris Bianca c5778c3d0d [notifications] JS tidy up 2018-02-23 16:11:59 +00:00
Chris Bianca 2838bbc0cd [notifications] Last part of iOS implementation 2018-02-23 15:34:00 +00:00
Salakar 3f4c59f81d [firestore][js] misc transactions internals changes 2018-02-23 03:02:17 +00:00
Salakar 5fb1ad6781 [firestore] fix issue with NaN serialization 2018-02-23 02:59:39 +00:00
Chris Bianca 8e84dd576b [notifications] Specific notificationPressed data type including action 2018-02-22 17:25:15 +00:00
Chris Bianca 303cb4c428 [notifications] Refactor for better support of separate messages 2018-02-22 15:52:24 +00:00
Chris Bianca a244f17853 [fcm] More iOS event separation 2018-02-18 16:02:31 +00:00
Chris Bianca 5ca7222517 [build] Remove unnecessary `providesModule` declaration 2018-02-17 13:22:46 +00:00
Chris Bianca 0002bd0753 [build] Remove providesModule 2018-02-17 13:10:13 +00:00
Chris Bianca c57c6a74a8 [flow] Remove custom flow error tag 2018-02-17 12:55:19 +00:00
Chris Bianca 9255b4be10 [notifications] Minor fixes 2018-02-16 09:46:53 +00:00
Chris Bianca e6a7004c5d [types] Export messaging and notifications types 2018-02-15 15:34:31 +00:00
Chris Bianca cd0ef4e3b7 [notifications] Continue android implementation 2018-02-15 14:59:21 +00:00