From 6512de3c4aa97d5ea8a003150207a778589480fc Mon Sep 17 00:00:00 2001 From: wwwcg Date: Fri, 19 Jul 2024 17:08:51 +0800 Subject: [PATCH] chore(ios): code quality improve --- ios/sdk/base/executors/HippyJSCExecutor.mm | 2 +- ios/sdk/module/animation2/pop/HPOPAnimator.mm | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ios/sdk/base/executors/HippyJSCExecutor.mm b/ios/sdk/base/executors/HippyJSCExecutor.mm index 42e1558045c..6cd9b7899b1 100644 --- a/ios/sdk/base/executors/HippyJSCExecutor.mm +++ b/ios/sdk/base/executors/HippyJSCExecutor.mm @@ -320,7 +320,7 @@ static unicode_string_view NSStringToU8(NSString* str) { } }; std::unique_ptr ptr = std::make_unique(); - ptr->insert(std::make_pair("ASYNC_TASK_END", taskEndCB)); + ptr->insert(std::make_pair(hippy::base::kAsyncTaskEndKey, taskEndCB)); ptr->insert(std::make_pair(hippy::base::kContextCreatedCBKey, ctxCreateCB)); ptr->insert(std::make_pair(hippy::base::KScopeInitializedCBKey, scopeInitializedCB)); return ptr; diff --git a/ios/sdk/module/animation2/pop/HPOPAnimator.mm b/ios/sdk/module/animation2/pop/HPOPAnimator.mm index f7a0e063f7a..757e8dadbc6 100644 --- a/ios/sdk/module/animation2/pop/HPOPAnimator.mm +++ b/ios/sdk/module/animation2/pop/HPOPAnimator.mm @@ -34,6 +34,7 @@ #import #import +#import #if !TARGET_OS_IPHONE #import