Skip to content
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

[Gutenberg] Audio Block - Add From URL - React Native Prompt Android Integration #13833

Closed
wants to merge 1 commit into from

Conversation

jd-alexander
Copy link
Contributor

@jd-alexander jd-alexander commented Jan 20, 2021

gutenberg mobile PR wordpress-mobile/gutenberg-mobile#3031
gutenberg PR WordPress/gutenberg#27817

Solution

Introduces the Insert From URL functionality to the Audio Block via a Native Alert Dialog on Android. This library react-native-prompt-android was needed because the Alert.prompt functionality in React Native doesn't work out of the box in Android. So on iOS, an input alert component is presented so this library acts a polyfill for the Alert.prompt API in React Native, so that we can utilize the same APIs in code but we will have true cross platform support.

Testing

Dark Mode Light Mode

Reviewing

Only 1 reviewer is needed but anyone can review.

Submitter Checklist

  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.
  • I have considered adding accessibility improvements for my changes.
  • If it's feasible, I have added unit tests.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jan 20, 2021

You can trigger optional UI/connected tests for these changes by visiting CircleCI here.

@peril-wordpress-mobile
Copy link

Warnings
⚠️ PR is missing at least one label.

Generated by 🚫 dangerJS

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Jan 21, 2021

You can test the changes on this Pull Request by downloading the APK here.

Base automatically changed from gutenberg/audio_block_consolidated_media_picker_integration to develop January 28, 2021 22:17
@JavonDavis
Copy link
Contributor

Hey @jd-alexander! Bumping this to 16.8, if you'd like to get it in for this release please merge this into release/16.7 and then DM me to release a new Beta version.

@JavonDavis JavonDavis modified the milestones: 16.7, 16.8 Feb 8, 2021
@jd-alexander jd-alexander modified the milestones: 16.8, 16.9 Feb 18, 2021
@JavonDavis
Copy link
Contributor

Hey again @jd-alexander! Bumping this to 17.0, if you'd like to get it in for this release please merge this into release/16.9 and then DM me to release a new Beta version.

@JavonDavis JavonDavis modified the milestones: 16.9, 17.0 Mar 8, 2021
@JavonDavis JavonDavis modified the milestones: 17.0, 17.1 Mar 22, 2021
@JavonDavis JavonDavis modified the milestones: 17.1, 17.2 Apr 5, 2021
@jd-alexander jd-alexander force-pushed the gutenberg/audio_block_add_from_url branch from 23cadbc to 314356d Compare April 8, 2021 04:40
@jd-alexander jd-alexander reopened this Apr 8, 2021
@jd-alexander
Copy link
Contributor Author

The block editor is crashing here. I will investigate this more tomorrow.

@JavonDavis JavonDavis modified the milestones: 17.2, 17.3 Apr 19, 2021
@jd-alexander
Copy link
Contributor Author

@ceyhun I created issues for the remaining tasks here I will be addressing. I am currently waiting on the Android PR for this to build so I can test it to verify that all is well with the new Android component it is utilizing and then it's good to go.

@jd-alexander
Copy link
Contributor Author

I am getting this crash when I attempt to open the editor.

  
    --------- beginning of crash
2021-04-29 12:15:24.011 15094-15375/org.wordpress.android.prealpha A/libc: Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x69006c in tid 15375 (mqt_js), pid 15094 (ndroid.prealpha)
2021-04-29 12:15:24.153 15384-15384/? A/DEBUG: *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
2021-04-29 12:15:24.154 15384-15384/? A/DEBUG: Build fingerprint: 'google/sdk_gphone_x86_arm/generic_x86_arm:11/RSR1.201013.001/6903271:userdebug/dev-keys'
2021-04-29 12:15:24.154 15384-15384/? A/DEBUG: Revision: '0'
2021-04-29 12:15:24.154 15384-15384/? A/DEBUG: ABI: 'x86'
2021-04-29 12:15:24.154 15384-15384/? A/DEBUG: Timestamp: 2021-04-29 12:15:24-0500
2021-04-29 12:15:24.154 15384-15384/? A/DEBUG: pid: 15094, tid: 15375, name: mqt_js  >>> org.wordpress.android.prealpha <<<
2021-04-29 12:15:24.154 15384-15384/? A/DEBUG: uid: 10154
2021-04-29 12:15:24.154 15384-15384/? A/DEBUG: signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x69006c
2021-04-29 12:15:24.154 15384-15384/? A/DEBUG:     eax 0069006c  ebx a893aadc  ecx a78436a0  edx eb0de500
2021-04-29 12:15:24.155 15384-15384/? A/DEBUG:     edi a893aadc  esi a78436a0
2021-04-29 12:15:24.155 15384-15384/? A/DEBUG:     ebp a78435a8  esp a7843590  eip a876373a
2021-04-29 12:15:24.262 15384-15384/? A/DEBUG: backtrace:
2021-04-29 12:15:24.262 15384-15384/? A/DEBUG:       #00 pc 0001b73a  /data/app/~~bVgpEdfKq0ZHCU1d4zPX9w==/org.wordpress.android.prealpha-wkwcbzMXYCIdr-8G5IY2CQ==/lib/x86/libhermes.so (BuildId: 6edffcdc58850c69f3cfe5b067de1187988a97cc)
2021-04-29 12:15:24.262 15384-15384/? A/DEBUG:       #01 pc 00018929  /data/app/~~bVgpEdfKq0ZHCU1d4zPX9w==/org.wordpress.android.prealpha-wkwcbzMXYCIdr-8G5IY2CQ==/lib/x86/libhermes.so (BuildId: 6edffcdc58850c69f3cfe5b067de1187988a97cc)
2021-04-29 12:15:24.262 15384-15384/? A/DEBUG:       #02 pc 000187ee  /data/app/~~bVgpEdfKq0ZHCU1d4zPX9w==/org.wordpress.android.prealpha-wkwcbzMXYCIdr-8G5IY2CQ==/lib/x86/libhermes.so (facebook::hermes::makeHermesRuntime(hermes::vm::RuntimeConfig const&)+49) (BuildId: 6edffcdc58850c69f3cfe5b067de1187988a97cc)
2021-04-29 12:15:24.262 15384-15384/? A/DEBUG:       #03 pc 00019e4d  /data/app/~~bVgpEdfKq0ZHCU1d4zPX9w==/org.wordpress.android.prealpha-wkwcbzMXYCIdr-8G5IY2CQ==/lib/x86/libhermes-executor-release.so (facebook::react::HermesExecutorFactory::createJSExecutor(std::__ndk1::shared_ptr<facebook::react::ExecutorDelegate>, std::__ndk1::shared_ptr<facebook::react::MessageQueueThread>)+61) (BuildId: 555a1f151ae008230fc4743239203136c2e6ab97)
2021-04-29 12:15:24.262 15384-15384/? A/DEBUG:       #04 pc 0009c2c8  /data/app/~~bVgpEdfKq0ZHCU1d4zPX9w==/org.wordpress.android.prealpha-wkwcbzMXYCIdr-8G5IY2CQ==/lib/x86/libreactnativejni.so (facebook::react::NativeToJsBridge::NativeToJsBridge(facebook::react::JSExecutorFactory*, std::__ndk1::shared_ptr<facebook::react::ModuleRegistry>, std::__ndk1::shared_ptr<facebook::react::MessageQueueThread>, std::__ndk1::shared_ptr<facebook::react::InstanceCallback>)+216) (BuildId: 930803d0b368271f5f896b0cefe51d5c5c2e92b3)
2021-04-29 12:15:24.262 15384-15384/? A/DEBUG:       #05 pc 00093fca  /data/app/~~bVgpEdfKq0ZHCU1d4zPX9w==/org.wordpress.android.prealpha-wkwcbzMXYCIdr-8G5IY2CQ==/lib/x86/libreactnativejni.so (std::__ndk1::__compressed_pair_elem<facebook::react::NativeToJsBridge, 1, false>::__compressed_pair_elem<facebook::react::JSExecutorFactory*&&, std::__ndk1::shared_ptr<facebook::react::ModuleRegistry>&, std::__ndk1::shared_ptr<facebook::react::MessageQueueThread>&, std::__ndk1::shared_ptr<facebook::react::InstanceCallback>&, 0u, 1u, 2u, 3u>(std::__ndk1::piecewise_construct_t, std::__ndk1::tuple<facebook::react::JSExecutorFactory*&&, std::__ndk1::shared_ptr<facebook::react::ModuleRegistry>&, std::__ndk1::shared_ptr<facebook::react::MessageQueueThread>&, std::__ndk1::shared_ptr<facebook::react::InstanceCallback>&>, std::__ndk1::__tuple_indices<0u, 1u, 2u, 3u>)+154) (BuildId: 930803d0b368271f5f896b0cefe51d5c5c2e92b3)
2021-04-29 12:15:24.262 15384-15384/? A/DEBUG:       #06 pc 00093d06  /data/app/~~bVgpEdfKq0ZHCU1d4zPX9w==/org.wordpress.android.prealpha-wkwcbzMXYCIdr-8G5IY2CQ==/lib/x86/libreactnativejni.so (BuildId: 930803d0b368271f5f896b0cefe51d5c5c2e92b3)
2021-04-29 12:15:24.262 15384-15384/? A/DEBUG:       #07 pc 00062089  /data/app/~~bVgpEdfKq0ZHCU1d4zPX9w==/org.wordpress.android.prealpha-wkwcbzMXYCIdr-8G5IY2CQ==/lib/x86/libreactnativejni.so (BuildId: 930803d0b368271f5f896b0cefe51d5c5c2e92b3)
2021-04-29 12:15:24.262 15384-15384/? A/DEBUG:       #08 pc 0005fe15  /data/app/~~bVgpEdfKq0ZHCU1d4zPX9w==/org.wordpress.android.prealpha-wkwcbzMXYCIdr-8G5IY2CQ==/lib/x86/libreactnativejni.so (BuildId: 930803d0b368271f5f896b0cefe51d5c5c2e92b3)
2021-04-29 12:15:24.263 15384-15384/? A/DEBUG:       #09 pc 0004ee42  /data/app/~~bVgpEdfKq0ZHCU1d4zPX9w==/org.wordpress.android.prealpha-wkwcbzMXYCIdr-8G5IY2CQ==/lib/x86/libreactnativejni.so (facebook::jni::detail::MethodWrapper<void (facebook::react::JNativeRunnable::*)(), &(facebook::react::JNativeRunnable::run()), facebook::react::JNativeRunnable, void>::dispatch(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<facebook::react::JNativeRunnable, facebook::react::Runnable>::JavaPart, facebook::react::Runnable, void>::_javaobject*>)+50) (BuildId: 930803d0b368271f5f896b0cefe51d5c5c2e92b3)
2021-04-29 12:15:24.263 15384-15384/? A/DEBUG:       #10 pc 0004eda9  /data/app/~~bVgpEdfKq0ZHCU1d4zPX9w==/org.wordpress.android.prealpha-wkwcbzMXYCIdr-8G5IY2CQ==/lib/x86/libreactnativejni.so (facebook::jni::detail::FunctionWrapper<void (*)(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<facebook::react::JNativeRunnable, facebook::react::Runnable>::JavaPart, facebook::react::Runnable, void>::_javaobject*>), &(facebook::jni::detail::MethodWrapper<void (facebook::react::JNativeRunnable::*)(), &(facebook::react::JNativeRunnable::run()), facebook::react::JNativeRunnable, void>::dispatch(facebook::jni::alias_ref<facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<facebook::react::JNativeRunnable, facebook::react::Runnable>::JavaPart, facebook::react::Runnable, void>::_javaobject*>)), facebook::jni::detail::JTypeFor<facebook::jni::HybridClass<facebook::react::JNativeRunnable, facebook::react::Runnable>::JavaPart, facebook::react::Runnable, void>::_javaobject*, void>::call(_JNIEnv*, _jobject*)+73) (BuildId: 930803d0b368271f5f896b0cefe51d5c5c2e92b3)
2021-04-29 12:15:24.263 15384-15384/? A/DEBUG:       #11 pc 0004ed53  /data/app/~~bVgpEdfKq0ZHCU1d4zPX9w==/org.wordpress.android.prealpha-wkwcbzMXYCIdr-8G5IY2CQ==/lib/x86/libreactnativejni.so (facebook::jni::detail::MethodWrapper<void (facebook::react::JNativeRunnable::*)(), &(facebook::react::JNativeRunnable::run()), facebook::react::JNativeRunnable, void>::call(_JNIEnv*, _jobject*)+35) (BuildId: 930803d0b368271f5f896b0cefe51d5c5c2e92b3)
2021-04-29 12:15:24.263 15384-15384/? A/DEBUG:       #12 pc 00142132  /apex/com.android.art/lib/libart.so (art_quick_generic_jni_trampoline+82) (BuildId: 8191579dfafff37a5cbca70f

@JavonDavis JavonDavis modified the milestones: 17.3, 17.4 May 3, 2021
@jd-alexander jd-alexander force-pushed the gutenberg/audio_block_add_from_url branch from eecb562 to 8535510 Compare May 19, 2021 04:27
@jd-alexander
Copy link
Contributor Author

The error with Hermes has been resolved by utilizing the latest gutenberg-mobile build from S3.

@jd-alexander
Copy link
Contributor Author

This PR can be closed as it was a test PR for wordpress-mobile/gutenberg-mobile#3031

@jkmassel jkmassel deleted the gutenberg/audio_block_add_from_url branch October 17, 2024 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants