Commit Graph

363 Commits

Author SHA1 Message Date
salakar f6928634f2 [android][ios][storage] UploadTaskSnapshot `downloadUrl` renamed to download `downloadURL` to match web sdk. fixes #379 2017-09-07 03:02:31 +01:00
Omer Levy 012f8b79b1 [ios] Add long and short links creation 2017-09-04 09:01:00 -04:00
Brian M Hiss 32cb4155b4 [auth][phone] Allow for linkWithCredential() for PhoneAuthProvider. 2017-09-01 15:47:42 +08:00
Salakar 0fc7f7aabb [database][ios] error codes now correctly lower cased - incorrect tests updated to match 2017-08-28 13:53:09 +01:00
Chris Bianca ef3bc33914 [ios][storage] Correctly set the mime type of the image or video being uploaded 2017-08-25 18:05:50 +01:00
Chris Bianca ec6d91b6e8 [ios][storage] Multi-app support for iOS storage 2017-08-25 16:18:42 +01:00
Chris Bianca 1230bd7108 [ios][database] New implementation for off and on to match Android 2017-08-22 17:29:02 +01:00
Chris Bianca c370d099ff [ios] Further framework and header path fixes 2017-08-18 13:34:52 +01:00
Chris Bianca 40ec5e756a [ios] Remove pods from frameworks search path to prevent compile errors 2017-08-18 11:13:06 +01:00
Chris Bianca 9c937c1e9e Remove unnecessary search paths 2017-08-18 10:37:27 +01:00
Chris Bianca c2c01531f8 [ios] Remove erroneous check in 2017-08-17 17:59:16 +01:00
Chris Bianca 843ef88684 [ios][db] Fix database imports 2017-08-17 17:32:09 +01:00
Chris Bianca bb98c4f9e5 [ios] Change all library imports to use <> notation 2017-08-17 17:26:20 +01:00
Chris Bianca 5ad3802627 [ios][remoteconfig] Fix another compilation error 2017-08-17 16:29:49 +01:00
Chris Bianca cf2431b9e2 [ios][config] Fix incorrectly named implementation 2017-08-17 11:48:53 +01:00
Salakar 56e9a1d5f6 [ios][database] update database events 2017-08-16 21:39:05 +01:00
Salakar e3f0213aaa [ios] fixed xcode derp where it imported full path to AppleTV OS version of Foundation.h - random 2017-08-15 13:28:50 +01:00
Salakar 590cb58d49 [storage][ios] fixed customMetadata not being uploaded via putFile - fixes #276 2017-08-14 13:51:17 +01:00
Salakar f1709970e9 [database][wip] on/off logic refactor - heavily still wip so things still to change 2017-08-14 11:05:49 +01:00
Salakar 0675aa076d Merge branch 'master' of https://github.com/invertase/react-native-firebase into v3
# Conflicts:
#	ios/RNFirebase/admob/RNFirebaseAdMob.m
#	ios/RNFirebase/database/RNFirebaseDatabase.h
#	ios/RNFirebase/database/RNFirebaseDatabaseReference.m
#	lib/modules/admob/index.js
#	tests/ios/Podfile.lock
2017-08-12 19:07:51 +01:00
Salakar ac258681bc Merge branch 'master' of https://github.com/invertase/react-native-firebase into v3
# Conflicts:
#	ios/RNFirebase/admob/RNFirebaseAdMob.m
#	ios/RNFirebase/database/RNFirebaseDatabase.h
#	ios/RNFirebase/database/RNFirebaseDatabaseReference.m
#	lib/modules/admob/index.js
#	tests/ios/Podfile.lock
2017-08-11 17:37:12 +01:00
Chris Bianca 97cc5ee131 [ios] Fix conditional imports 2017-08-11 16:07:39 +01:00
Chris Bianca af1f65f835 [ads][ios] Remove duplicate import 2017-08-10 15:02:25 +01:00
Salakar 78e9f4b7c7 [ios][database] updated keepSynced to now work with modifiers 2017-08-05 21:43:53 +01:00
Chris Bianca db68b4d05c [ios] Add RNFirebaseDatabaseReference to Xcode project 2017-08-03 11:35:55 +01:00
Chris Bianca a785b050db [database][ios][wip] Replicate Android changes on iOS 2017-08-02 16:51:57 +01:00
Salakar 7fc40a2740 Merge branch 'master' of https://github.com/invertase/react-native-firebase into multi-apps 2017-07-30 07:34:51 +01:00
Salakar e3d1261973 [database][wip] refactor & improvements to add support for multiple apps 2017-07-30 07:34:41 +01:00
Akshet Pandey 6375f32c35 Fix incorrect status message when remote config fetch is successful 2017-07-29 15:59:17 -07:00
Salakar 33470419ed Merge branch 'master' of https://github.com/invertase/react-native-firebase into multi-apps 2017-07-20 09:59:52 +01:00
Chris Bianca 46772d253d [android][ios][database] Add missing setPriority and setWithPriority methods 2017-07-19 18:18:16 +01:00
Chris Bianca c2400edd0a [ios][config] Add react utils import 2017-07-19 16:22:00 +01:00
Chris Bianca 27453ac31a [ios][database] Refactor RNFirebaseDatabaseReference 2017-07-19 16:02:26 +01:00
Chris Bianca dc10f29b78 [ios][messaging] Add back in userNotificationCenter messaging methods 2017-07-19 12:49:18 +01:00
Salakar 03377255f6 [core][both] added delete app method (android is just a stub method as the firebase sdk does not support it) 2017-07-18 06:02:53 +01:00
Salakar d8fee7f5cb [auth][ios] finalised auth changed listener logic 2017-07-17 20:56:08 +01:00
Salakar 075cd690ce [android][ios][core] initialize app parameters no longer prefixed by platform name i.e iosClientId becomes clientId. Use react native platform module to provide platform specific options. 2017-07-17 19:43:36 +01:00
Salakar 48570f5510 [ios][auth] fix unlink method - missing appName / targeted app instance after master merge 2017-07-17 18:26:13 +01:00
Salakar 813b91f5ad [ios][app] apps initialized natively now automatically initialized js side - via react module getConstants 2017-07-17 18:20:27 +01:00
Salakar ef259fbbc0 Merge branch 'master' of https://github.com/invertase/react-native-firebase into multi-apps 2017-07-17 17:35:16 +01:00
Salakar 97447dab5e [android][auth] implemented missing 'unlink' method 2017-07-12 16:26:02 +01:00
Salakar 282f953f52 [both] continued work on multi app support - storage now full supported and auth WIP 2017-07-12 15:49:33 +01:00
Salakar c6773dc808 Merge branch 'master' of https://github.com/invertase/react-native-firebase into multi-apps
# Conflicts:
#	android/src/main/java/io/invertase/firebase/auth/RNFirebaseAuth.java
2017-07-12 13:39:29 +01:00
Salakar 0898f0913d [js][ios][android][auth] checkActionCode now returns an actionType string in the result 2017-07-12 12:59:35 +01:00
Salakar fd93d24e1a [js][ios][android][auth] checkActionCode implemented 2017-07-05 14:56:18 +01:00
Salakar 08f4f0c97b [js][ios][android][auth] applyActionCode implemented 2017-07-05 14:16:35 +01:00
Salakar 0dda8d9174 [js][ios][android][auth] confirmPasswordReset implemented 2017-07-04 18:22:18 +01:00
Salakar 333c449ab4 Merge branch 'master' of https://github.com/invertase/react-native-firebase 2017-07-04 16:19:52 +01:00
Salakar 2f67e8b35b [both][database] all 'once' event types now supported - not just 'value' 2017-07-04 16:17:42 +01:00
Elliot Hesp ce0934d44c Merge branch 'master' of github.com:invertase/react-native-firebase 2017-07-04 15:40:03 +01:00
Elliot Hesp 92b3860230 [admob][ios] Fix an issue whereby interstitials on iOS could not be reused with the same adUnit ID 2017-07-04 15:39:56 +01:00
Salakar 9572538af0 [ios][database] added support for all eventTypes in ref.once(eventType) 2017-07-04 14:13:49 +01:00
Salakar f97db8eba1 more work on multiple apps support 2017-07-04 13:05:19 +01:00
Salakar ec22e510bc more work on multiple app initialization 2017-06-30 17:23:32 +01:00
nico 1f61933d65 removed newline 2017-06-29 18:27:47 +02:00
Salakar 80ae8425ce started work on multiple app initialization 2017-06-29 17:24:34 +01:00
nico d77dd094db fixed ios custom metaData 2017-06-29 18:12:57 +02:00
Elliot Hesp c22fb3911f [admob] Add openDebugMenu support 2017-06-27 15:14:02 +01:00
Michael Diarmid 2b6fe541e8 [ios] sendEmailVerification now correctly returns the currentUser 2017-06-20 19:49:45 +01:00
Elliot Hesp 52d94763bb [ios][admob] Check AdMob exists 2017-06-20 13:22:09 +01:00
Elliot Hesp 54bf957cb3 [admob] Support 11.0 VideoController methods 2017-06-20 12:19:26 +01:00
Elliot Hesp d159d9bb6b [ios][admob] Implement NativeExpress 2017-06-16 17:40:05 +01:00
Elliot Hesp 0e27d7345e Merge branch 'v2' of github.com:invertase/react-native-firebase into v2 2017-06-16 15:35:38 +01:00
Elliot Hesp 6af227b648 [ios][admob] Ensure previous banner is removed from view when re-rendering 2017-06-16 15:35:12 +01:00
Elliot Hesp 0525672860 [ios][admob] Use static helper methods over delegate methods 2017-06-16 15:22:35 +01:00
Elliot Hesp f6db5656ae [ios][admob] Fix testDevices not adding emulator device 2017-06-16 15:21:49 +01:00
Elliot Hesp af5bf655fe [ios][admob] Implement Banner 2017-06-16 15:20:34 +01:00
Chris Bianca 39041637eb Merge branch 'master' into v2
# Conflicts:
#	bin/cocoapods.sh
#	docs/installation-ios.md
#	ios/Podfile.template
2017-06-16 13:45:45 +01:00
Chris Bianca 4a7a7574db [ios] Break modules into subfolders 2017-06-16 11:15:42 +01:00
Elliot Hesp d031d332e3 [ios][database] Pass null key to NSDict for previousChildName 2017-06-16 09:30:02 +01:00
Elliot Hesp bafd59283f [ios][database] Prevent null value being passed to JSEvent 2017-06-16 08:39:16 +01:00
Elliot Hesp 3809fa8f63 [auth] Pass previousChildName back to callback 2017-06-15 14:55:52 +01:00
Chris Bianca 280145da9f [docs][ios] Remove react native link support due to issues and update documentation 2017-06-13 16:18:12 +01:00
Chris Bianca d68703da64 [ios] Update setup to use Podfile template contents 2017-06-13 16:12:35 +01:00
Michael Diarmid 87eb76520e [ios][auth] replace deprecated methods
- FIREmailAuthProvider() -> FIREmailPasswordAuthProvider()
- getIDTokenForcingRefresh() -> getTokenForcingRefresh()
2017-06-13 06:21:45 +01:00
Elliot Hesp 4c87131328 [crash][both] Add support for isCrashCollectionEnabled & setCrashCollectionEnabled 2017-06-12 14:26:56 +01:00
Elliot Hesp 9342a0e748 [admob][ios] Implement Rewarded Videos 2017-06-07 14:19:06 +01:00
Elliot Hesp 921eac06a4 [admob][ios] Finish up Interstitial with events + AdRequest handling 2017-06-07 12:37:32 +01:00
Elliot Hesp f92e1b7afd [admob][ios] Started basic working version of Interstitial 2017-06-05 17:00:59 +01:00
Chris Bianca 51f50ca17d [ios] Remove eventemitter interface when module hasn’t been included 2017-05-31 15:53:08 +01:00
Chris Bianca a1cff881e1 [android][ios][js] Detect missing native module rather than using empty function 2017-05-31 15:22:15 +01:00
Chris Bianca dcd6321561 [ios] Tidy up of iOS imports and other misc clean up 2017-05-31 09:54:02 +01:00
Chris Bianca fc3ad620a4 [ios][messaging] Make firebase/messaging pod optional 2017-05-30 13:20:42 +01:00
Chris Bianca f82897218f [ios][js] Misc clean up 2017-05-30 11:44:06 +01:00
Chris Bianca 2e3624a8d9 [ios][admob] Fix compilation issues 2017-05-30 10:22:48 +01:00
Chris Bianca abc4de2257 [messaging][iOS] Tidy up messaging and bring it in inline with latest version of Firebase Messaging (4.0.0) 2017-05-30 08:26:40 +01:00
Elliot Hesp fdcf4ef2f3 [admob] Update documentation 2017-05-27 20:46:17 +01:00
Salakar 278957f2ea [ios][all] removed < RN 40 conditional imports as RN 40 is now the minimum supported version 2017-05-27 15:28:24 +01:00
Salakar 6751dc0882 [ios] removed unused errors module 2017-05-27 15:27:22 +01:00
Salakar b7b4febe3f [ios][admob] added stub modules 2017-05-27 15:24:51 +01:00
Salakar 18e65b697f [ios][database] linting fixes + now detects if pod installed (makes the pod an optional dependency) 2017-05-25 16:00:12 +01:00
Salakar eba23bad15 [ios] update podfile template - added comments around optional firebase pods 2017-05-25 15:59:30 +01:00
Salakar d095279c71 [ios][auth] now detects if pod installed (makes the pod an optional dependency) 2017-05-25 15:33:41 +01:00
Salakar e531cb6f8d [ios][remote-config] now detects if pod installed (makes the pod an optional dependency) 2017-05-25 15:24:53 +01:00
Salakar 6e167736b6 [ios][crash] now detects if pod installed (makes the pod an optional dependency) 2017-05-25 15:21:10 +01:00
Salakar 531acece76 [ios][storage] now detects if pod installed (makes the pod an optional dependency) 2017-05-25 15:14:01 +01:00
Salakar 410f260fc0 [ios][perf] now detects if pod installed (makes the pod an optional dependency) 2017-05-25 15:03:20 +01:00
Salakar c851e5c083 [ios][analytics] now detects if pod installed (makes the pod an optional dependency) 2017-05-25 15:03:08 +01:00
Salakar 0ef3a5341c [ios] cleanup/remove old code from RNFirebase.h/m 2017-05-25 15:01:53 +01:00
Elliot Hesp 45f8f4076d [auth] Implemented fetchProvidersForEmail 2017-05-25 14:45:03 +01:00
Elliot Hesp 231f6852de [pref][ios] Add Performance to Podfile template 2017-05-25 12:04:40 +01:00
Elliot Hesp 66df0b0463 [pref][ios] Implement performance monitoring 2017-05-25 10:39:54 +01:00
Elliot Hesp fe8c486dcb [config] Added setDefaultsFromResource method 2017-05-23 14:53:19 +01:00
Elliot Hesp fb90f444d9 Fix merge conflict 2017-05-23 14:10:07 +01:00
Elliot Hesp 25e8bb6d5a [config] Standardize ios & android 2017-05-23 14:08:59 +01:00
Elliot Hesp 69872fa5b9 [ios][config] Always resolve activated status 2017-05-23 11:51:16 +01:00
Chris Bianca 5120bc8b46 [ios][storage] Better support uploading files with a file:// prefix 2017-05-22 15:25:35 +01:00
Elliot Hesp 22a6ac1b07 [ios][config] Fix fetch handler typo 2017-05-22 10:38:39 +01:00
Akshet Pandey ede85d7717 Add nonnull to type 2017-05-19 20:26:23 -07:00
Akshet Pandey fdf60444fe Implement Firebase Remote Config for iOS 2017-05-19 16:17:28 -07:00
Chris Bianca 90a130c729 [ios] Use RCTSharedApplication() instead of [UIApplication sharedApplication] 2017-05-15 12:00:41 +01:00
Salakar cf12fc1c10 [ios][auth] fix crash - fixes #112 2017-05-13 13:08:43 +01:00
Salakar bb64cae09c [ios][database] query modifiers with float values now correctly query - added 2 issue specific tests - fixes #108 2017-05-13 02:38:27 +01:00
Salakar a46505d7eb [ios] fix convertProviderData nil issue 2017-05-13 01:46:27 +01:00
Salakar fd19999e48 [ios] fix NSURL json serialization issue when using providerData, now uses absoluteString 2017-05-12 15:15:02 +01:00
Salakar f3136427c2 [ios] fix NSURL json serialization issue when using providerData, now uses absoluteString 2017-05-12 14:30:28 +01:00
Salakar 06d20cac5c [ios] change convertProviderData to use a for in statement 2017-05-12 13:58:16 +01:00
Salakar 9977f1f5fa [ios] added user `providerData` props - fixed typo 2017-05-12 13:18:32 +01:00
Salakar 6c68d85261 [ios] added user `providerData` props 2017-05-12 13:13:17 +01:00
Salakar 781f864692 [ios] fix for #97 2017-05-09 17:20:06 +01:00
Salakar 286f886cfa Merge branch 'master' of https://github.com/invertase/react-native-firebase
# Conflicts:
#	tests/ios/Podfile.lock
2017-05-09 15:32:37 +01:00
Salakar 1d0acf4244 upgrade tests app to RN 44 2017-05-09 13:53:05 +01:00
Salakar da556ae8c9 [ios] add backwards compatibility to RN imports - fixed #80 2017-05-05 09:46:22 +01:00
Salakar 618b34cd4f [ios] update pod spec & template 2017-05-02 10:54:18 +01:00
Salakar 8fe6ffee8c [ios] added RNFirebase to podfile template 2017-05-02 10:42:24 +01:00
Chris Bianca 6d4b5bc406 [ios] Add multiple listener support 2017-04-26 17:34:16 +01:00
Alexander Kuttig 98b6d64836 fixed CrashReporting on iOS
added RNFirebaseCrash.h and RNFirebaseCrash.m to ios project and build target
Renamed lib/modules/crash class name from Analytics to Crash
2017-04-19 16:16:55 +02:00
Alexander Kuttig 127bdfbbee fixed onDisconnectSet on iOS
removed onDisconnectSetString
renamed onDisconnectSetObject to onDisconnectSet
called Firebase onDisconnectSetValue with props.value
2017-04-19 13:05:23 +02:00
Salakar bdf588e0e2 [js][android][ios][storage] uploadTask.on now correctly receives a success status event 2017-04-07 17:57:57 +01:00
Salakar 343710dbf9 [js][ios][messaging] fixed misc messaging .send() types 2017-04-03 10:33:18 +01:00
Salakar 91e9263965 [js][ios][android][messaging] full implementation of upstream send including RemoteMessage builder 2017-03-30 16:25:27 +01:00
Salakar 48e57d2065 [ios][android][auth] getToken now correctly accepts forceRefresh argument. Fixes #21. 2017-03-30 10:55:16 +01:00
Salakar b012bf22f6 [ios][storage] getMetaData --> getMetadata renamed 2017-03-29 17:48:21 +01:00
Chris Bianca 43df6b5564 Add a promise response to iOS messaging requestPermissions to return permission popup response (iOS 10+) 2017-03-27 12:51:52 +01:00
Salakar fda59ecdcb [ios][database] transaction support implemented 2017-03-25 00:59:27 +00:00
Salakar 67a2b41a61 [ios][storage] fixes #15, fixed an issue where some storage errors are unserializable by RN - workaround is just to send nil instead of the NSError 2017-03-23 00:37:38 +00:00
Salakar f132ddb614 [ios][storage] fixed issue where invalid file paths for download would error with unknown 2017-03-22 23:20:02 +00:00
Salakar 352b8db780 [ios][storage] lowercase TaskState's to match web sdk 2017-03-22 19:47:22 +00:00
Salakar e23302fb24 [ios][storage] switch to native promises and implemented web error codes 2017-03-22 18:49:36 +00:00
Salakar d4c2f95cca [ios,js] full fcm implementation, first draft for ios 2017-03-21 15:11:07 +00:00
Salakar 1789fae541 [ios][auth] implemented currentUser.updateProfile() method 2017-03-18 01:10:22 +00:00
Salakar ad52991ffc [ios][auth] implemented currentUser.updatePassword() method 2017-03-18 00:41:10 +00:00
Salakar 5320d506bf [ios][auth] added sendEmailVerification, reload and updateEmail methods 2017-03-18 00:31:02 +00:00
Salakar 70567b3b3e [ios] implement currentUser.reauthenticate(credential) 2017-03-18 00:04:31 +00:00
Salakar 83e5d1f3d0 [android] implemented auth().link & signInWithCredential - for all providers, password, twitter, facebook, google and github 2017-03-17 23:33:55 +00:00
Salakar 9cdd48a95a [ios] implemented auth().link - for all providers, password, twitter, facebook, google and github 2017-03-17 22:34:35 +00:00
Salakar 48f6d90690 [android] added promiseRejectAuthException method to match ios 2017-03-17 22:00:13 +00:00
Salakar 96fc1c7e42 [ios] finished standardizing auth exception codes/messages 2017-03-17 21:41:17 +00:00
Salakar 93b2561878 [ios] misc auth 2017-03-17 19:08:51 +00:00
Salakar 6977f06a67 [ios] completed remaining .auth().. methods 2017-03-17 18:04:13 +00:00
Salakar b9fd032b6d [ios] commented out authToDict function as it's still todo - causes a crash on some xcode environments (weird) 2017-03-17 16:03:30 +00:00
Salakar 50c97ad542 misc build script changes 2017-03-17 14:57:22 +00:00
Salakar 9f5b132f38 [android, ios] currentUser.getToken() - now uses promise and correctly returns a string 2017-03-16 12:35:03 +00:00
Salakar 1acbff834f [ios, android] fixed messaging() send() - now a promise on native - added stub method for ios as the existing one was empty 2017-03-15 14:00:28 +00:00
Salakar cd4664fb68 [ios] fixed messaging getToken, listen/unlisten token refresh 2017-03-15 13:05:56 +00:00
Salakar 6d52b6d4d3 messaging().getToken now correctly returns a string on both platforms 2017-03-15 12:57:36 +00:00
Salakar 0914a9341c [ios,android] WIP - moving auth to promises & fixing ios <-> android discrepancies 2017-03-14 19:04:16 +00:00
Salakar b18a7a0d6a switch ios onAuthStateChange handlers to new format 2017-03-14 10:57:57 +00:00
Chris Bianca eab45d7dc8 Fix issues with Analytics 2017-03-10 14:43:09 +00:00
Chris Bianca 77a09f5810 Add Firebase Crash Reporting for iOS and Android 2017-03-10 14:18:07 +00:00
Chris Bianca a4e464dbba Upload iOS live photos as static images 2017-03-09 16:57:37 +00:00
Chris Bianca 25e4d39a16 Remove db listener when an error occurs as it is removed internally by Firebase (iOS) 2017-03-09 16:46:02 +00:00
Salakar 05a35b7b82 ios - initial build 2017-03-09 15:26:28 +00:00