-
Notifications
You must be signed in to change notification settings - Fork 57
Feature/upload media file android #458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
mzorz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one is almost good to go, I suggest we change the naming convention and that'd be it most probably.
Once more: nice job @marecar3!
|
|
||
| void onMediaLibraryPress(MediaSelectedCallback mediaSelectedCallback); | ||
|
|
||
| void onUploadMediaPress(MediaUploadCallback mediaUploadCallback); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should follow the naming convention used in https://github.com/wordpress-mobile/WordPress-Android/pull/8879/files#diff-38b6aea9cfff5f3e0e4b7389b44de602R3185 and have the verb conjugation be in the past tense, i.e. onUploadMediaButtonClicked and onMediaLibraryButtonClicked, following the same pattern of on<EventHappened> as used in interface EditorFragmentListener
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @mzorz . Fixed!
…le_ios_part_3 Makes the media id used on uploads an Int.
…captured_photo_android # Conflicts: # react-native-gutenberg-bridge/android/src/main/java/org/wordpress/mobile/ReactNativeGutenbergBridge/RNReactNativeGutenbergBridgeModule.java
… where not needed or known
…erly replaced in RN
…edia_id Fix/upload media file media
…captured_photo_android # Conflicts: # react-native-gutenberg-bridge/android/src/main/java/org/wordpress/mobile/ReactNativeGutenbergBridge/RNReactNativeGutenbergBridgeModule.java # react-native-gutenberg-bridge/android/src/main/java/org/wordpress/mobile/WPAndroidGlue/WPAndroidGlueCode.java
…oad_captured_photo_ios
…_photo_ios Upload captured photo ios
# Conflicts: # gutenberg # ios/gutenberg.xcodeproj/project.pbxproj # react-native-gutenberg-bridge/android/src/main/java/org/wordpress/mobile/ReactNativeGutenbergBridge/RNReactNativeGutenbergBridgeModule.java # react-native-gutenberg-bridge/ios/RNReactNativeGutenbergBridge.m # react-native-gutenberg-bridge/ios/RNReactNativeGutenbergBridge.swift
…captured_photo_android # Conflicts: # gutenberg
…captured_photo_android # Conflicts: # gutenberg
…_photo_android Feature/upload captured photo android
# Conflicts: # bundle/android/App.js # bundle/android/App.js.map # bundle/ios/App.js # bundle/ios/App.js.map
SergioEstevao
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking good, we will use other PR's to implement the error handling and the cancelation.
|
@SergioEstevao please wait before merging - I was going to open a PR against this one. Will do against develop now, but please wait a bit. |
Description :
This PR is introducing the logic for exchanging the data between JS side and Android side for purpose of uploading media file.
Test :
It is the part of the WPAndroid PR from which it can be tested.