YorkShen commented on a change in pull request #2715: [android]
修复eagle在Framework尚未init时遇到的platformBridge缺失的问题
URL: https://github.com/apache/incubator-weex/pull/2715#discussion_r303850041
##########
File path: weex_core/Source/android/utils/jni_load.cc
##########
@@ -51,7 +54,8 @@ jint JNI_OnLoad(JavaVM *vm, void *reserved) {
WeexCore::SoUtils::Init(env);
WeexCore::WMLBridge::RegisterJNIUtils(env);
}
-
+ PlatformBridge* bridge = new AndroidBridgeInSimple;
+ WeexCoreManager::Instance()->set_platform_bridge(bridge);
Review comment:
Remove the following lines in wx_bridge.cpp :
https://github.com/apache/incubator-weex/blob/67bad4f44cd6aaabd46d532c2050228d0f669e5b/weex_core/Source/android/wrap/wx_bridge.cpp#L302-L303
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services