Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

Commit

Permalink
[iOS] fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
jianhan-he committed Jul 11, 2019
1 parent 5c8399e commit 862c0bf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions weex_core/Source/core/bridge/script/core_side_in_script.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include "core/bridge/eagle_bridge.h"
#include "wson/wson_parser.h"
#include "core/config/core_environment.h"
#include "core/parser/action_args_check.h"
#ifdef OS_ANDROID
#include "core/parser/action_args_check.h"
#include <base/time_calculator.h>
#include "android/weex_extend_js_api.h"
#endif
Expand All @@ -53,7 +53,7 @@ inline char *copyStr(const char *str, int length = 0) {
void CoreSideInScript::CallNative(const char *page_id, const char *task,
const char *callback) {
if (page_id == nullptr || task == nullptr) return;

#ifdef OS_ANDROID
if (WXCoreEnvironment::getInstance()->isUseRunTimeApi()){
if (isCallNativeToFinish(task)){
RenderManager::GetInstance()->CreateFinish(page_id);
Expand All @@ -65,6 +65,7 @@ void CoreSideInScript::CallNative(const char *page_id, const char *task,
}
return;
}
#endif
std::string task_str(task);
std::string target_str("[{\"module\":\"dom\",\"method\":\"createFinish\","
"\"args\":[]}]");
Expand Down

0 comments on commit 862c0bf

Please sign in to comment.