From eec0d793349a991a37a31b9131ec2525fd6c0dd9 Mon Sep 17 00:00:00 2001 From: wwwcg Date: Wed, 6 Sep 2023 14:50:14 +0800 Subject: [PATCH] chore(ios): remove all clang-format instruction (#3452) Co-authored-by: OpenHippy <124017524+open-hippy@users.noreply.github.com> --- driver/js/scripts/build-core.js | 1 - driver/js/src/vm/jsc/native_source_code_ios.cc | 1 - driver/js/src/vm/v8/native_source_code_android.cc | 1 - framework/ios/base/executors/HippyJSExecutor.mm | 2 -- .../ios/debug/websocket/HippyWebSocketManager.m | 6 ------ framework/ios/module/dev/HippyDevMenu.mm | 4 ---- framework/ios/module/dev/HippyRedBox.mm | 2 -- .../module/eventobserver/HippyEventObserverModule.mm | 4 ---- .../ios/module/exception/HippyExceptionModule.mm | 2 -- .../ios/module/imageloader/HippyImageLoaderModule.mm | 4 ---- .../module/localstorage/HippyAsyncLocalStorage.mm | 12 ------------ framework/ios/module/netinfo/HippyNetInfo.mm | 2 -- framework/ios/module/network/HippyNetWork.mm | 6 ------ .../core/src/bridge/native_source_code_flutter.cc | 1 - modules/ios/base/HPConvert.m | 1 - .../NativeRenderFooterRefreshManager.mm | 6 ------ .../NativeRenderHeaderRefreshManager.mm | 6 ------ .../listview/NativeRenderBaseListViewManager.mm | 4 ---- .../navigator/NativeRenderNavigatorViewManager.mm | 4 ---- .../NativeRenderRefreshWrapperViewManager.mm | 4 ---- .../scrollview/NativeRenderScrollViewManager.mm | 6 ------ .../NativeRenderSmartViewPagerViewManager.mm | 6 ------ .../textinput/NativeRenderTextViewManager.mm | 12 ------------ .../ios/renderer/component/view/NativeRenderView.m | 2 -- 24 files changed, 99 deletions(-) diff --git a/driver/js/scripts/build-core.js b/driver/js/scripts/build-core.js index aceda22655a..8204d2e9686 100644 --- a/driver/js/scripts/build-core.js +++ b/driver/js/scripts/build-core.js @@ -81,7 +81,6 @@ const CodePieces = { #include "driver/vm/native_source_code.h" #include "footstone/macros.h" -// clang-format off namespace {`; }, diff --git a/driver/js/src/vm/jsc/native_source_code_ios.cc b/driver/js/src/vm/jsc/native_source_code_ios.cc index ae758254c98..d0280b5c13a 100644 --- a/driver/js/src/vm/jsc/native_source_code_ios.cc +++ b/driver/js/src/vm/jsc/native_source_code_ios.cc @@ -23,7 +23,6 @@ #include "driver/vm/native_source_code.h" #include "footstone/macros.h" -// clang-format off namespace { const uint8_t k_bootstrap[] = { 34,117,115,101,32,115,116,114,105,99,116,34,59,10,10,102,117,110,99,116,105,111,110,32,95,99,108,97,115,115,67,97,108,108,67,104,101,99,107,40,105,110,115,116,97,110,99,101,44,32,67,111,110,115,116,114,117,99,116,111,114,41,32,123,32,105,102,32,40,33,40,105,110,115,116,97,110,99,101,32,105,110,115,116,97,110,99,101,111,102,32,67,111,110,115,116,114,117,99,116,111,114,41,41,32,123,32,116,104,114,111,119,32,110,101,119,32,84,121,112,101,69,114,114,111,114,40,34,67,97,110,110,111,116,32,99,97,108,108,32,97,32,99,108,97,115,115,32,97,115,32,97,32,102,117,110,99,116,105,111,110,34,41,59,32,125,32,125,10,102,117,110,99,116,105,111,110,32,95,100,101,102,105,110,101,80,114,111,112,101,114,116,105,101,115,40,116,97,114,103,101,116,44,32,112,114,111,112,115,41,32,123,32,102,111,114,32,40,118,97,114,32,105,32,61,32,48,59,32,105,32,60,32,112,114,111,112,115,46,108,101,110,103,116,104,59,32,105,43,43,41,32,123,32,118,97,114,32,100,101,115,99,114,105,112,116,111,114,32,61,32,112,114,111,112,115,91,105,93,59,32,100,101,115,99,114,105,112,116,111,114,46,101,110,117,109,101,114,97,98,108,101,32,61,32,100,101,115,99,114,105,112,116,111,114,46,101,110,117,109,101,114,97,98,108,101,32,124,124,32,102,97,108,115,101,59,32,100,101,115,99,114,105,112,116,111,114,46,99,111,110,102,105,103,117,114,97,98,108,101,32,61,32,116,114,117,101,59,32,105,102,32,40,34,118,97,108,117,101,34,32,105,110,32,100,101,115,99,114,105,112,116,111,114,41,32,100,101,115,99,114,105,112,116,111,114,46,119,114,105,116,97,98,108,101,32,61,32,116,114,117,101,59,32,79,98,106,101,99,116,46,100,101,102,105,110,101,80,114,111,112,101,114,116,121,40,116,97,114,103,101,116,44,32,95,116,111,80,114,111,112,101,114,116,121,75,101,121,40,100,101,115,99,114,105,112,116,111,114,46,107,101,121,41,44,32,100,101,115,99,114,105,112,116,111,114,41,59,32,125,32,125,10,102,117,110,99,116,105,111,110,32,95,99,114,101,97,116,101,67,108,97,115,115,40,67,111,110,115,116,114,117,99,116,111,114,44,32,112,114,111,116,111,80,114,111,112,115,44,32,115,116,97,116,105,99,80,114,111,112,115,41,32,123,32,105,102,32,40,112,114,111,116,111,80,114,111,112,115,41,32,95,100,101,102,105,110,101,80,114,111,112,101,114,116,105,101,115,40,67,111,110,115,116,114,117,99,116,111,114,46,112,114,111,116,111,116,121,112,101,44,32,112,114,111,116,111,80,114,111,112,115,41,59,32,105,102,32,40,115,116,97,116,105,99,80,114,111,112,115,41,32,95,100,101,102,105,110,101,80,114,111,112,101,114,116,105,101,115,40,67,111,110,115,116,114,117,99,116,111,114,44,32,115,116,97,116,105,99,80,114,111,112,115,41,59,32,79,98,106,101,99,116,46,100,101,102,105,110,101,80,114,111,112,101,114,116,121,40,67,111,110,115,116,114,117,99,116,111,114,44,32,34,112,114,111,116,111,116,121,112,101,34,44,32,123,32,119,114,105,116,97,98,108,101,58,32,102,97,108,115,101,32,125,41,59,32,114,101,116,117,114,110,32,67,111,110,115,116,114,117,99,116,111,114,59,32,125,10,102,117,110,99,116,105,111,110,32,95,116,111,80,114,111,112,101,114,116,121,75,101,121,40,97,114,103,41,32,123,32,118,97,114,32,107,101,121,32,61,32,95,116,111,80,114,105,109,105,116,105,118,101,40,97,114,103,44,32,34,115,116,114,105,110,103,34,41,59,32,114,101,116,117,114,110,32,95,116,121,112,101,111,102,40,107,101,121,41,32,61,61,61,32,34,115,121,109,98,111,108,34,32,63,32,107,101,121,32,58,32,83,116,114,105,110,103,40,107,101,121,41,59,32,125,10,102,117,110,99,116,105,111,110,32,95,116,111,80,114,105,109,105,116,105,118,101,40,105,110,112,117,116,44,32,104,105,110,116,41,32,123,32,105,102,32,40,95,116,121,112,101,111,102,40,105,110,112,117,116,41,32,33,61,61,32,34,111,98,106,101,99,116,34,32,124,124,32,105,110,112,117,116,32,61,61,61,32,110,117,108,108,41,32,114,101,116,117,114,110,32,105,110,112,117,116,59,32,118,97,114,32,112,114,105,109,32,61,32,105,110,112,117,116,91,83,121,109,98,111,108,46,116,111,80,114,105,109,105,116,105,118,101,93,59,32,105,102,32,40,112,114,105,109,32,33,61,61,32,117,110,100,101,102,105,110,101,100,41,32,123,32,118,97,114,32,114,101,115,32,61,32,112,114,105,109,46,99,97,108,108,40,105,110,112,117,116,44,32,104,105,110,116,32,124,124,32,34,100,101,102,97,117,108,116,34,41,59,32,105,102,32,40,95,116,121,112,101,111,102,40,114,101,115,41,32,33,61,61,32,34,111,98,106,101,99,116,34,41,32,114,101,116,117,114,110,32,114,101,115,59,32,116,104,114,111,119,32,110,101,119,32,84,121,112,101,69,114,114,111,114,40,34,64,64,116,111,80,114,105,109,105,116,105,118,101,32,109,117,115,116,32,114,101,116,117,114,110,32,97,32,112,114,105,109,105,116,105,118,101,32,118,97,108,117,101,46,34,41,59,32,125,32,114,101,116,117,114,110,32,40,104,105,110,116,32,61,61,61,32,34,115,116,114,105,110,103,34,32,63,32,83,116,114,105,110,103,32,58,32,78,117,109,98,101,114,41,40,105,110,112,117,116,41,59,32,125,10,102,117,110,99,116,105,111,110,32,95,116,121,112,101,111,102,40,111,98,106,41,32,123,32,34,64,98,97,98,101,108,47,104,101,108,112,101,114,115,32,45,32,116,121,112,101,111,102,34,59,32,114,101,116,117,114,110,32,95,116,121,112,101,111,102,32,61,32,34,102,117,110,99,116,105,111,110,34,32,61,61,32,116,121,112,101,111,102,32,83,121,109,98,111,108,32,38,38,32,34,115,121,109,98,111,108,34,32,61,61,32,116,121,112,101,111,102,32,83,121,109,98,111,108,46,105,116,101,114,97,116,111,114,32,63,32,102,117,110,99,116,105,111,110,32,40,111,98,106,41,32,123,32,114,101,116,117,114,110,32,116,121,112,101,111,102,32,111,98,106,59,32,125,32,58,32,102,117,110,99,116,105,111,110,32,40,111,98,106,41,32,123,32,114,101,116,117,114,110,32,111,98,106,32,38,38,32,34,102,117,110,99,116,105,111,110,34,32,61,61,32,116,121,112,101,111,102,32,83,121,109,98,111,108,32,38,38,32,111,98,106,46,99,111,110,115,116,114,117,99,116,111,114,32,61,61,61,32,83,121,109,98,111,108,32,38,38,32,111,98,106,32,33,61,61,32,83,121,109,98,111,108,46,112,114,111,116,111,116,121,112,101,32,63,32,34,115,121,109,98,111,108,34,32,58,32,116,121,112,101,111,102,32,111,98,106,59,32,125,44,32,95,116,121,112,101,111,102,40,111,98,106,41,59,32,125,10,40,102,117,110,99,116,105,111,110,32,40,103,101,116,73,110,116,101,114,110,97,108,66,105,110,100,105,110,103,41,32,123,10,32,32,103,108,111,98,97,108,46,72,105,112,112,121,32,61,32,103,108,111,98,97,108,46,72,105,112,112,121,32,124,124,32,123,125,59,10,32,32,118,97,114,32,98,105,110,100,105,110,103,79,98,106,32,61,32,123,125,59,10,32,32,118,97,114,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,32,61,32,102,117,110,99,116,105,111,110,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,109,111,100,117,108,101,41,32,123,10,32,32,32,32,105,102,32,40,95,116,121,112,101,111,102,40,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,41,32,33,61,61,32,39,111,98,106,101,99,116,39,41,32,123,10,32,32,32,32,32,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,32,61,32,103,101,116,73,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,109,111,100,117,108,101,41,59,10,32,32,32,32,125,10,32,32,32,32,114,101,116,117,114,110,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,59,10,32,32,125,59,10,32,32,118,97,114,32,67,111,110,116,101,120,116,105,102,121,83,99,114,105,112,116,32,61,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,39,67,111,110,116,101,120,116,105,102,121,77,111,100,117,108,101,39,41,59,10,32,32,118,97,114,32,78,97,116,105,118,101,77,111,100,117,108,101,32,61,32,102,117,110,99,116,105,111,110,32,40,41,32,123,10,32,32,32,32,102,117,110,99,116,105,111,110,32,78,97,116,105,118,101,77,111,100,117,108,101,40,102,105,108,101,110,97,109,101,41,32,123,10,32,32,32,32,32,32,95,99,108,97,115,115,67,97,108,108,67,104,101,99,107,40,116,104,105,115,44,32,78,97,116,105,118,101,77,111,100,117,108,101,41,59,10,32,32,32,32,32,32,116,104,105,115,46,102,105,108,101,110,97,109,101,32,61,32,102,105,108,101,110,97,109,101,59,10,32,32,32,32,32,32,116,104,105,115,46,101,120,112,111,114,116,115,32,61,32,123,125,59,10,32,32,32,32,125,10,32,32,32,32,95,99,114,101,97,116,101,67,108,97,115,115,40,78,97,116,105,118,101,77,111,100,117,108,101,44,32,91,123,10,32,32,32,32,32,32,107,101,121,58,32,34,99,111,109,112,105,108,101,34,44,10,32,32,32,32,32,32,118,97,108,117,101,58,32,102,117,110,99,116,105,111,110,32,99,111,109,112,105,108,101,40,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,102,110,32,61,32,67,111,110,116,101,120,116,105,102,121,83,99,114,105,112,116,46,82,117,110,73,110,84,104,105,115,67,111,110,116,101,120,116,40,116,104,105,115,46,102,105,108,101,110,97,109,101,41,59,10,32,32,32,32,32,32,32,32,102,110,40,116,104,105,115,46,101,120,112,111,114,116,115,44,32,78,97,116,105,118,101,77,111,100,117,108,101,46,114,101,113,117,105,114,101,44,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,41,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,44,32,123,10,32,32,32,32,32,32,107,101,121,58,32,34,99,97,99,104,101,34,44,10,32,32,32,32,32,32,118,97,108,117,101,58,32,102,117,110,99,116,105,111,110,32,99,97,99,104,101,40,41,32,123,10,32,32,32,32,32,32,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,91,116,104,105,115,46,102,105,108,101,110,97,109,101,93,32,61,32,116,104,105,115,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,93,44,32,91,123,10,32,32,32,32,32,32,107,101,121,58,32,34,114,101,113,117,105,114,101,34,44,10,32,32,32,32,32,32,118,97,108,117,101,58,32,102,117,110,99,116,105,111,110,32,114,101,113,117,105,114,101,40,102,105,108,101,80,97,116,104,41,32,123,10,32,32,32,32,32,32,32,32,118,97,114,32,102,105,108,101,80,97,116,104,65,114,114,32,61,32,102,105,108,101,80,97,116,104,46,115,112,108,105,116,40,39,47,39,41,59,10,32,32,32,32,32,32,32,32,118,97,114,32,102,105,108,101,110,97,109,101,32,61,32,102,105,108,101,80,97,116,104,65,114,114,91,102,105,108,101,80,97,116,104,65,114,114,46,108,101,110,103,116,104,32,45,32,49,93,59,10,32,32,32,32,32,32,32,32,118,97,114,32,99,97,99,104,101,100,32,61,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,91,102,105,108,101,110,97,109,101,93,59,10,32,32,32,32,32,32,32,32,105,102,32,40,99,97,99,104,101,100,41,32,123,10,32,32,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,97,99,104,101,100,46,101,120,112,111,114,116,115,59,10,32,32,32,32,32,32,32,32,125,10,32,32,32,32,32,32,32,32,118,97,114,32,110,97,116,105,118,101,77,111,100,117,108,101,32,61,32,110,101,119,32,78,97,116,105,118,101,77,111,100,117,108,101,40,102,105,108,101,110,97,109,101,41,59,10,32,32,32,32,32,32,32,32,110,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,40,41,59,10,32,32,32,32,32,32,32,32,110,97,116,105,118,101,77,111,100,117,108,101,46,99,111,109,112,105,108,101,40,41,59,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,110,97,116,105,118,101,77,111,100,117,108,101,46,101,120,112,111,114,116,115,59,10,32,32,32,32,32,32,125,10,32,32,32,32,125,93,41,59,10,32,32,32,32,114,101,116,117,114,110,32,78,97,116,105,118,101,77,111,100,117,108,101,59,10,32,32,125,40,41,59,10,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,32,61,32,123,125,59,10,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,114,101,113,117,105,114,101,40,39,104,105,112,112,121,46,106,115,39,41,59,10,125,41,59,0 }; // NOLINT diff --git a/driver/js/src/vm/v8/native_source_code_android.cc b/driver/js/src/vm/v8/native_source_code_android.cc index d92bf6f741b..e754cfd1145 100644 --- a/driver/js/src/vm/v8/native_source_code_android.cc +++ b/driver/js/src/vm/v8/native_source_code_android.cc @@ -23,7 +23,6 @@ #include "driver/vm/native_source_code.h" #include "footstone/macros.h" -// clang-format off namespace { const uint8_t k_bootstrap[] = { 40,102,117,110,99,116,105,111,110,32,40,103,101,116,73,110,116,101,114,110,97,108,66,105,110,100,105,110,103,41,32,123,10,32,32,103,108,111,98,97,108,46,72,105,112,112,121,32,61,32,103,108,111,98,97,108,46,72,105,112,112,121,32,124,124,32,123,125,59,10,32,32,99,111,110,115,116,32,98,105,110,100,105,110,103,79,98,106,32,61,32,123,125,59,10,32,32,99,111,110,115,116,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,32,61,32,102,117,110,99,116,105,111,110,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,109,111,100,117,108,101,41,32,123,10,32,32,32,32,105,102,32,40,116,121,112,101,111,102,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,32,33,61,61,32,39,111,98,106,101,99,116,39,41,32,123,10,32,32,32,32,32,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,32,61,32,103,101,116,73,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,109,111,100,117,108,101,41,59,10,32,32,32,32,125,10,32,32,32,32,114,101,116,117,114,110,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,59,10,32,32,125,59,10,32,32,99,111,110,115,116,32,67,111,110,116,101,120,116,105,102,121,83,99,114,105,112,116,32,61,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,39,67,111,110,116,101,120,116,105,102,121,77,111,100,117,108,101,39,41,59,10,32,32,99,108,97,115,115,32,78,97,116,105,118,101,77,111,100,117,108,101,32,123,10,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,40,102,105,108,101,110,97,109,101,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,102,105,108,101,110,97,109,101,32,61,32,102,105,108,101,110,97,109,101,59,10,32,32,32,32,32,32,116,104,105,115,46,101,120,112,111,114,116,115,32,61,32,123,125,59,10,32,32,32,32,125,10,32,32,32,32,115,116,97,116,105,99,32,114,101,113,117,105,114,101,40,102,105,108,101,80,97,116,104,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,102,105,108,101,80,97,116,104,65,114,114,32,61,32,102,105,108,101,80,97,116,104,46,115,112,108,105,116,40,39,47,39,41,59,10,32,32,32,32,32,32,99,111,110,115,116,32,102,105,108,101,110,97,109,101,32,61,32,102,105,108,101,80,97,116,104,65,114,114,91,102,105,108,101,80,97,116,104,65,114,114,46,108,101,110,103,116,104,32,45,32,49,93,59,10,32,32,32,32,32,32,99,111,110,115,116,32,99,97,99,104,101,100,32,61,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,91,102,105,108,101,110,97,109,101,93,59,10,32,32,32,32,32,32,105,102,32,40,99,97,99,104,101,100,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,97,99,104,101,100,46,101,120,112,111,114,116,115,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,99,111,110,115,116,32,110,97,116,105,118,101,77,111,100,117,108,101,32,61,32,110,101,119,32,78,97,116,105,118,101,77,111,100,117,108,101,40,102,105,108,101,110,97,109,101,41,59,10,32,32,32,32,32,32,110,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,40,41,59,10,32,32,32,32,32,32,110,97,116,105,118,101,77,111,100,117,108,101,46,99,111,109,112,105,108,101,40,41,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,110,97,116,105,118,101,77,111,100,117,108,101,46,101,120,112,111,114,116,115,59,10,32,32,32,32,125,10,32,32,32,32,99,111,109,112,105,108,101,40,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,102,110,32,61,32,67,111,110,116,101,120,116,105,102,121,83,99,114,105,112,116,46,82,117,110,73,110,84,104,105,115,67,111,110,116,101,120,116,40,116,104,105,115,46,102,105,108,101,110,97,109,101,41,59,10,32,32,32,32,32,32,102,110,40,116,104,105,115,46,101,120,112,111,114,116,115,44,32,78,97,116,105,118,101,77,111,100,117,108,101,46,114,101,113,117,105,114,101,44,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,41,59,10,32,32,32,32,125,10,32,32,32,32,99,97,99,104,101,40,41,32,123,10,32,32,32,32,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,91,116,104,105,115,46,102,105,108,101,110,97,109,101,93,32,61,32,116,104,105,115,59,10,32,32,32,32,125,10,32,32,125,10,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,32,61,32,123,125,59,10,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,114,101,113,117,105,114,101,40,39,104,105,112,112,121,46,106,115,39,41,59,10,125,41,59,0 }; // NOLINT diff --git a/framework/ios/base/executors/HippyJSExecutor.mm b/framework/ios/base/executors/HippyJSExecutor.mm index 7ea82c70074..ae0ec7e803e 100644 --- a/framework/ios/base/executors/HippyJSExecutor.mm +++ b/framework/ios/base/executors/HippyJSExecutor.mm @@ -364,7 +364,6 @@ - (NSString *)enginekey { return _enginekey ?: [NSString stringWithFormat:@"%p", self]; } -// clang-format off - (void)setContextName:(NSString *)contextName { #ifdef JS_JSC if (!contextName) { @@ -410,7 +409,6 @@ - (void)setInspecable:(BOOL)inspectable { #endif //defined(__IPHONE_16_4) && __IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_16_4 #endif //JS_JSC } -// clang-format on - (void)dealloc { HPLogInfo(@"[Hippy_OC_Log][Life_Circle],HippyJSCExecutor dealloc %p", self); diff --git a/framework/ios/debug/websocket/HippyWebSocketManager.m b/framework/ios/debug/websocket/HippyWebSocketManager.m index 1465d95c05f..ad20d48b653 100644 --- a/framework/ios/debug/websocket/HippyWebSocketManager.m +++ b/framework/ios/debug/websocket/HippyWebSocketManager.m @@ -61,7 +61,6 @@ - (void)invalidate { } } -// clang-format off HIPPY_EXPORT_METHOD(connect:(NSDictionary *)params resolver:(HippyPromiseResolveBlock)resolve rejecter:(HippyPromiseRejectBlock)reject) { NSDictionary *headers = params[@"headers"]; NSString *url = params[@"url"]; @@ -75,9 +74,7 @@ - (void)invalidate { resolve(@{@"code": @(0), @"id": socketId}); [socket open]; } -// clang-format on -// clang-format off HIPPY_EXPORT_METHOD(close:(NSDictionary *)params) { NSNumber *socketId = params[@"id"]; NSNumber *code = params[@"code"]; @@ -92,9 +89,7 @@ - (void)invalidate { } } } -// clang-format on -// clang-format off HIPPY_EXPORT_METHOD(send:(NSDictionary *)params) { NSNumber *socketId = params[@"id"]; NSString *data = params[@"data"]; @@ -103,7 +98,6 @@ - (void)invalidate { [socket send:data]; } } -// clang-format on - (void)webSocket:(HippySRWebSocket *)webSocket didReceiveMessage:(id)message { dispatch_async(_queue, ^{ diff --git a/framework/ios/module/dev/HippyDevMenu.mm b/framework/ios/module/dev/HippyDevMenu.mm index bda031fc7db..bc979160f0d 100644 --- a/framework/ios/module/dev/HippyDevMenu.mm +++ b/framework/ios/module/dev/HippyDevMenu.mm @@ -225,13 +225,10 @@ - (void)addItem:(__unused HippyDevMenuItem *)item { return items; } -// clang-format off HIPPY_EXPORT_METHOD(reload) { [_bridge requestReload]; } -// clang-format on -// clang-format off HIPPY_EXPORT_METHOD(show) { if (_actionSheet || !_bridge || HPRunningInAppExtension()) { return; @@ -269,7 +266,6 @@ - (void)addItem:(__unused HippyDevMenuItem *)item { [HPPresentedViewController() presentViewController:_actionSheet animated:YES completion:^(void){}]; } -// clang-format on @end diff --git a/framework/ios/module/dev/HippyRedBox.mm b/framework/ios/module/dev/HippyRedBox.mm index 0f79397f79a..71524a0252b 100644 --- a/framework/ios/module/dev/HippyRedBox.mm +++ b/framework/ios/module/dev/HippyRedBox.mm @@ -406,13 +406,11 @@ - (void)showErrorMessage:(NSString *)message withStack:(NSArray *)stack isUpdate }); } -// clang-format off HIPPY_EXPORT_METHOD(dismiss) { dispatch_async(dispatch_get_main_queue(), ^{ [self->_window dismiss]; }); } -// clang-format on - (void)invalidate { [self dismiss]; diff --git a/framework/ios/module/eventobserver/HippyEventObserverModule.mm b/framework/ios/module/eventobserver/HippyEventObserverModule.mm index 5e8d089d537..94e44ab9754 100644 --- a/framework/ios/module/eventobserver/HippyEventObserverModule.mm +++ b/framework/ios/module/eventobserver/HippyEventObserverModule.mm @@ -45,7 +45,6 @@ - (instancetype)init return self; } -// clang-format off HIPPY_EXPORT_METHOD(addListener:(NSString *)eventName) { HPAssertParam(eventName); NSNumber *value = _config[eventName]; @@ -57,9 +56,7 @@ - (instancetype)init } _config[eventName] = value; } -// clang-format on -// clang-format off HIPPY_EXPORT_METHOD(removeListener:(NSString *)eventName) { NSNumber *value = _config[eventName]; if (value == nil || value.integerValue == 1) { @@ -70,7 +67,6 @@ - (instancetype)init _config[eventName] = value; } } -// clang-format on - (void)addEventObserverForName:(__unused NSString *)eventName { diff --git a/framework/ios/module/exception/HippyExceptionModule.mm b/framework/ios/module/exception/HippyExceptionModule.mm index 0b5dd2d4c0b..ca70fcf2b63 100644 --- a/framework/ios/module/exception/HippyExceptionModule.mm +++ b/framework/ios/module/exception/HippyExceptionModule.mm @@ -32,7 +32,6 @@ @implementation HippyExceptionModule HIPPY_EXPORT_MODULE(ExceptionModule) -// clang-format off HIPPY_EXPORT_METHOD(handleException:(NSString *)title detail:(NSString *)detail timeInterval:(nonnull NSNumber *)timeInterval resolver:(__unused HippyPromiseResolveBlock)resolve @@ -68,6 +67,5 @@ @implementation HippyExceptionModule NSError *error = [NSError errorWithDomain:HPErrorDomain code:1 userInfo:errorInfo]; HPFatal(error, @{@"bridge": self.bridge}); } -// clang-format on @end diff --git a/framework/ios/module/imageloader/HippyImageLoaderModule.mm b/framework/ios/module/imageloader/HippyImageLoaderModule.mm index af63d01ce7f..c61d8af3334 100644 --- a/framework/ios/module/imageloader/HippyImageLoaderModule.mm +++ b/framework/ios/module/imageloader/HippyImageLoaderModule.mm @@ -55,7 +55,6 @@ @implementation HippyImageLoaderModule return nil; } -// clang-format off HIPPY_EXPORT_METHOD(getSize:(NSString *)urlString resolver:(HippyPromiseResolveBlock)resolve rejecter:(HippyPromiseRejectBlock)reject) { [self.bridge loadContentsAsynchronouslyFromUrl:urlString method:@"Get" @@ -93,9 +92,7 @@ @implementation HippyImageLoaderModule } }]; } -// clang-format on -// clang-format off HIPPY_EXPORT_METHOD(prefetch:(NSString *)urlString) { [self.bridge loadContentsAsynchronouslyFromUrl:urlString method:@"Get" @@ -107,6 +104,5 @@ @implementation HippyImageLoaderModule }]; } -// clang-format on @end diff --git a/framework/ios/module/localstorage/HippyAsyncLocalStorage.mm b/framework/ios/module/localstorage/HippyAsyncLocalStorage.mm index 2679f80b2b3..aae43840aa7 100644 --- a/framework/ios/module/localstorage/HippyAsyncLocalStorage.mm +++ b/framework/ios/module/localstorage/HippyAsyncLocalStorage.mm @@ -366,7 +366,6 @@ - (BOOL)handleDataSizeExceedForIOType:(NSUInteger)IOType moduleName:(NSString *) #pragma mark - Exported JS Functions -// clang-format off HIPPY_EXPORT_METHOD(multiGet:(NSArray *)keys callback:(HippyResponseSenderBlock)callback) { NSDictionary *errorOut = [self _ensureSetup]; @@ -384,9 +383,7 @@ - (BOOL)handleDataSizeExceedForIOType:(NSUInteger)IOType moduleName:(NSString *) } callback(@[HPNullIfNil(errors), result]); } -// clang-format on -// clang-format off HIPPY_EXPORT_METHOD(multiSet:(NSArray *> *)kvPairs callback:(HippyResponseSenderBlock)callback) { NSDictionary *errorOut = [self _ensureSetup]; @@ -405,9 +402,7 @@ - (BOOL)handleDataSizeExceedForIOType:(NSUInteger)IOType moduleName:(NSString *) } callback(@[HPNullIfNil(errors)]); } -// clang-format on -// clang-format off HIPPY_EXPORT_METHOD(multiMerge:(NSArray *> *)kvPairs callback:(HippyResponseSenderBlock)callback) { NSDictionary *errorOut = [self _ensureSetup]; @@ -442,9 +437,7 @@ - (BOOL)handleDataSizeExceedForIOType:(NSUInteger)IOType moduleName:(NSString *) } callback(@[HPNullIfNil(errors)]); } -// clang-format on -// clang-format off HIPPY_EXPORT_METHOD(multiRemove:(NSArray *)keys callback:(HippyResponseSenderBlock)callback) { NSDictionary *errorOut = [self _ensureSetup]; @@ -476,18 +469,14 @@ - (BOOL)handleDataSizeExceedForIOType:(NSUInteger)IOType moduleName:(NSString *) } callback(@[HPNullIfNil(errors)]); } -// clang-format on -// clang-format off HIPPY_EXPORT_METHOD(clear:(HippyResponseSenderBlock)callback) { [_manifest removeAllObjects]; [HippyGetCache() removeAllObjects]; NSDictionary *error = [self HippyDeleteStorageDirectory]; callback(@[HPNullIfNil(error)]); } -// clang-format on -// clang-format off HIPPY_EXPORT_METHOD(getAllKeys:(HippyResponseSenderBlock)callback) { NSDictionary *errorOut = [self _ensureSetup]; if (errorOut) { @@ -496,6 +485,5 @@ - (BOOL)handleDataSizeExceedForIOType:(NSUInteger)IOType moduleName:(NSString *) callback(@[(id)kCFNull, _manifest.allKeys]); } } -// clang-format on @end diff --git a/framework/ios/module/netinfo/HippyNetInfo.mm b/framework/ios/module/netinfo/HippyNetInfo.mm index 8ad5da8b27b..2066d050ef5 100644 --- a/framework/ios/module/netinfo/HippyNetInfo.mm +++ b/framework/ios/module/netinfo/HippyNetInfo.mm @@ -71,7 +71,6 @@ - (void)hippyNetworkTypeChanged:(HippyNetworkTypeObject *)networkType { #pragma mark - Public API -// clang-format off HIPPY_EXPORT_METHOD(getCurrentConnectivity:(HippyPromiseResolveBlock)resolve reject:(__unused HippyPromiseRejectBlock)reject) { if (!resolve) { @@ -81,6 +80,5 @@ - (void)hippyNetworkTypeChanged:(HippyNetworkTypeObject *)networkType { NSDictionary *dic = callbackParamFromCellType(obj); resolve(dic); } -// clang-format on @end diff --git a/framework/ios/module/network/HippyNetWork.mm b/framework/ios/module/network/HippyNetWork.mm index 27329485823..f435ef57a56 100644 --- a/framework/ios/module/network/HippyNetWork.mm +++ b/framework/ios/module/network/HippyNetWork.mm @@ -45,7 +45,6 @@ @implementation HippyNetWork HIPPY_EXPORT_MODULE(network) -// clang-format off HIPPY_EXPORT_METHOD(fetch:(NSDictionary *)params resolver:(__unused HippyPromiseResolveBlock)resolve rejecter:(__unused HippyPromiseRejectBlock)reject) { if (!resolve) { return; @@ -94,9 +93,7 @@ @implementation HippyNetWork resolve(result); }]; } -// clang-format on -// clang-format off HIPPY_EXPORT_METHOD(getCookie:(NSString *)urlString resolver:(HippyPromiseResolveBlock)resolve rejecter:(__unused HippyPromiseRejectBlock)reject) { NSData *uriData = [urlString dataUsingEncoding:NSUTF8StringEncoding]; if (nil == uriData) { @@ -115,9 +112,7 @@ @implementation HippyNetWork } resolve(string); } -// clang-format on -// clang-format off HIPPY_EXPORT_METHOD(setCookie:(NSString *)urlString keyValue:(NSString *)keyValue expireString:(NSString *)expireString) { NSData *uriData = [urlString dataUsingEncoding:NSUTF8StringEncoding]; if (nil == uriData) { @@ -186,7 +181,6 @@ @implementation HippyNetWork [[NSHTTPCookieStorage sharedHTTPCookieStorage] setCookies:cookies forURL:source_url mainDocumentURL:nil]; }); } -// clang-format on - (void)deleteCookiesForURL:(NSURL *)url { NSString *path = [[url path] isEqualToString:@""]?@"/":[url path]; diff --git a/framework/voltron/core/src/bridge/native_source_code_flutter.cc b/framework/voltron/core/src/bridge/native_source_code_flutter.cc index b1589c606cd..ab9fa509951 100644 --- a/framework/voltron/core/src/bridge/native_source_code_flutter.cc +++ b/framework/voltron/core/src/bridge/native_source_code_flutter.cc @@ -23,7 +23,6 @@ #include "driver/vm/native_source_code.h" #include "footstone/macros.h" -// clang-format off namespace { const uint8_t k_bootstrap[] = { 40,102,117,110,99,116,105,111,110,32,40,103,101,116,73,110,116,101,114,110,97,108,66,105,110,100,105,110,103,41,32,123,10,32,32,103,108,111,98,97,108,46,72,105,112,112,121,32,61,32,103,108,111,98,97,108,46,72,105,112,112,121,32,124,124,32,123,125,59,10,32,32,99,111,110,115,116,32,98,105,110,100,105,110,103,79,98,106,32,61,32,123,125,59,10,32,32,99,111,110,115,116,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,32,61,32,102,117,110,99,116,105,111,110,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,109,111,100,117,108,101,41,32,123,10,32,32,32,32,105,102,32,40,116,121,112,101,111,102,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,32,33,61,61,32,39,111,98,106,101,99,116,39,41,32,123,10,32,32,32,32,32,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,32,61,32,103,101,116,73,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,109,111,100,117,108,101,41,59,10,32,32,32,32,125,10,32,32,32,32,114,101,116,117,114,110,32,98,105,110,100,105,110,103,79,98,106,91,109,111,100,117,108,101,93,59,10,32,32,125,59,10,32,32,99,111,110,115,116,32,67,111,110,116,101,120,116,105,102,121,83,99,114,105,112,116,32,61,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,40,39,67,111,110,116,101,120,116,105,102,121,77,111,100,117,108,101,39,41,59,10,32,32,99,108,97,115,115,32,78,97,116,105,118,101,77,111,100,117,108,101,32,123,10,32,32,32,32,99,111,110,115,116,114,117,99,116,111,114,40,102,105,108,101,110,97,109,101,41,32,123,10,32,32,32,32,32,32,116,104,105,115,46,102,105,108,101,110,97,109,101,32,61,32,102,105,108,101,110,97,109,101,59,10,32,32,32,32,32,32,116,104,105,115,46,101,120,112,111,114,116,115,32,61,32,123,125,59,10,32,32,32,32,125,10,32,32,32,32,115,116,97,116,105,99,32,114,101,113,117,105,114,101,40,102,105,108,101,80,97,116,104,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,102,105,108,101,80,97,116,104,65,114,114,32,61,32,102,105,108,101,80,97,116,104,46,115,112,108,105,116,40,39,47,39,41,59,10,32,32,32,32,32,32,99,111,110,115,116,32,102,105,108,101,110,97,109,101,32,61,32,102,105,108,101,80,97,116,104,65,114,114,91,102,105,108,101,80,97,116,104,65,114,114,46,108,101,110,103,116,104,32,45,32,49,93,59,10,32,32,32,32,32,32,99,111,110,115,116,32,99,97,99,104,101,100,32,61,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,91,102,105,108,101,110,97,109,101,93,59,10,32,32,32,32,32,32,105,102,32,40,99,97,99,104,101,100,41,32,123,10,32,32,32,32,32,32,32,32,114,101,116,117,114,110,32,99,97,99,104,101,100,46,101,120,112,111,114,116,115,59,10,32,32,32,32,32,32,125,10,32,32,32,32,32,32,99,111,110,115,116,32,110,97,116,105,118,101,77,111,100,117,108,101,32,61,32,110,101,119,32,78,97,116,105,118,101,77,111,100,117,108,101,40,102,105,108,101,110,97,109,101,41,59,10,32,32,32,32,32,32,110,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,40,41,59,10,32,32,32,32,32,32,110,97,116,105,118,101,77,111,100,117,108,101,46,99,111,109,112,105,108,101,40,41,59,10,32,32,32,32,32,32,114,101,116,117,114,110,32,110,97,116,105,118,101,77,111,100,117,108,101,46,101,120,112,111,114,116,115,59,10,32,32,32,32,125,10,32,32,32,32,99,111,109,112,105,108,101,40,41,32,123,10,32,32,32,32,32,32,99,111,110,115,116,32,102,110,32,61,32,67,111,110,116,101,120,116,105,102,121,83,99,114,105,112,116,46,82,117,110,73,110,84,104,105,115,67,111,110,116,101,120,116,40,116,104,105,115,46,102,105,108,101,110,97,109,101,41,59,10,32,32,32,32,32,32,102,110,40,116,104,105,115,46,101,120,112,111,114,116,115,44,32,78,97,116,105,118,101,77,111,100,117,108,101,46,114,101,113,117,105,114,101,44,32,105,110,116,101,114,110,97,108,66,105,110,100,105,110,103,41,59,10,32,32,32,32,125,10,32,32,32,32,99,97,99,104,101,40,41,32,123,10,32,32,32,32,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,91,116,104,105,115,46,102,105,108,101,110,97,109,101,93,32,61,32,116,104,105,115,59,10,32,32,32,32,125,10,32,32,125,10,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,99,97,99,104,101,32,61,32,123,125,59,10,32,32,78,97,116,105,118,101,77,111,100,117,108,101,46,114,101,113,117,105,114,101,40,39,104,105,112,112,121,46,106,115,39,41,59,10,125,41,59,0 }; // NOLINT diff --git a/modules/ios/base/HPConvert.m b/modules/ios/base/HPConvert.m index e37c3056129..b171e3cf232 100644 --- a/modules/ios/base/HPConvert.m +++ b/modules/ios/base/HPConvert.m @@ -28,7 +28,6 @@ @implementation HPConvert -// clang-format off HP_CONVERTER(id, id, self) HP_CONVERTER(BOOL, BOOL, boolValue) diff --git a/renderer/native/ios/renderer/component/footerrefresh/NativeRenderFooterRefreshManager.mm b/renderer/native/ios/renderer/component/footerrefresh/NativeRenderFooterRefreshManager.mm index 32157d8ba04..90bfe023604 100644 --- a/renderer/native/ios/renderer/component/footerrefresh/NativeRenderFooterRefreshManager.mm +++ b/renderer/native/ios/renderer/component/footerrefresh/NativeRenderFooterRefreshManager.mm @@ -32,32 +32,26 @@ @implementation NativeRenderFooterRefreshManager NATIVE_RENDER_EXPORT_VIEW_PROPERTY(onFooterReleased, NativeRenderDirectEventBlock) NATIVE_RENDER_EXPORT_VIEW_PROPERTY(onFooterPulling, NativeRenderDirectEventBlock) -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(collapsePullFooter:(nonnull NSNumber *)reactTag) { [self.renderImpl addUIBlock:^(NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { NativeRenderRefresh *refreshView = viewRegistry[reactTag]; [refreshView refreshFinish]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(collapsePullFooterWithOptions:(nonnull NSNumber *)reactTag options:(NSDictionary *)options) { [self.renderImpl addUIBlock:^(NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { NativeRenderRefresh *refreshView = viewRegistry[reactTag]; [refreshView refreshFinishWithOption:options]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(expandPullFooter:(nonnull NSNumber *)reactTag) { [self.renderImpl addUIBlock:^(NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { NativeRenderRefresh *refreshView = viewRegistry[reactTag]; [refreshView refresh]; }]; } -// clang-format on - (UIView *)view { return [[NativeRenderFooterRefresh alloc] init]; diff --git a/renderer/native/ios/renderer/component/headerrefresh/NativeRenderHeaderRefreshManager.mm b/renderer/native/ios/renderer/component/headerrefresh/NativeRenderHeaderRefreshManager.mm index 221dca17d06..6a25ea60f5a 100644 --- a/renderer/native/ios/renderer/component/headerrefresh/NativeRenderHeaderRefreshManager.mm +++ b/renderer/native/ios/renderer/component/headerrefresh/NativeRenderHeaderRefreshManager.mm @@ -31,32 +31,26 @@ @implementation NativeRenderHeaderRefreshManager NATIVE_RENDER_EXPORT_VIEW_PROPERTY(onHeaderReleased, NativeRenderDirectEventBlock) NATIVE_RENDER_EXPORT_VIEW_PROPERTY(onHeaderPulling, NativeRenderDirectEventBlock) -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(expandPullHeader:(nonnull NSNumber *)reactTag) { [self.renderImpl addUIBlock:^(NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { NativeRenderRefresh *refreshView = viewRegistry[reactTag]; [refreshView refresh]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(collapsePullHeader:(nonnull NSNumber *)reactTag) { [self.renderImpl addUIBlock:^(NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { NativeRenderRefresh *refreshView = viewRegistry[reactTag]; [refreshView refreshFinish]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(collapsePullHeaderWithOptions:(nonnull NSNumber *)reactTag options:(NSDictionary *)options) { [self.renderImpl addUIBlock:^(NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { NativeRenderRefresh *refreshView = viewRegistry[reactTag]; [refreshView refreshFinishWithOption:options]; }]; } -// clang-format on - (UIView *)view { return [[NativeRenderHeaderRefresh alloc] init]; diff --git a/renderer/native/ios/renderer/component/listview/NativeRenderBaseListViewManager.mm b/renderer/native/ios/renderer/component/listview/NativeRenderBaseListViewManager.mm index 982675a1e60..bba4ef918c8 100644 --- a/renderer/native/ios/renderer/component/listview/NativeRenderBaseListViewManager.mm +++ b/renderer/native/ios/renderer/component/listview/NativeRenderBaseListViewManager.mm @@ -55,7 +55,6 @@ - (NativeRenderObjectView *)nativeRenderObjectView { return [[NativeRenderObjectWaterfall alloc] init]; } -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(scrollToIndex:(nonnull NSNumber *)componentTag xIndex:(__unused NSNumber *)xIndex yIndex:(NSNumber *)yIndex @@ -70,9 +69,7 @@ - (NativeRenderObjectView *)nativeRenderObjectView { [view scrollToIndex: yIndex.integerValue animated: [animation boolValue]]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(scrollToContentOffset:(nonnull NSNumber *)componentTag x:(nonnull NSNumber *)x y:(nonnull NSNumber *)y @@ -87,6 +84,5 @@ - (NativeRenderObjectView *)nativeRenderObjectView { [view scrollToContentOffset:CGPointMake([x floatValue], [y floatValue]) animated: [animation boolValue]]; }]; } -// clang-format on @end diff --git a/renderer/native/ios/renderer/component/navigator/NativeRenderNavigatorViewManager.mm b/renderer/native/ios/renderer/component/navigator/NativeRenderNavigatorViewManager.mm index 29d0fe16324..0fd4dfd8bc4 100644 --- a/renderer/native/ios/renderer/component/navigator/NativeRenderNavigatorViewManager.mm +++ b/renderer/native/ios/renderer/component/navigator/NativeRenderNavigatorViewManager.mm @@ -37,21 +37,17 @@ - (UIView *)view { return hostView; } -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(push:(NSNumber *__nonnull)componentTag parms:(NSDictionary *__nonnull)params) { [self.renderImpl addUIBlock:^(NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { NativeRenderNavigatorHostView *navigatorHostView = viewRegistry[componentTag]; [navigatorHostView push:params]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(pop:(NSNumber *__nonnull)componentTag parms:(NSDictionary *__nonnull)params) { [self.renderImpl addUIBlock:^(NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { NativeRenderNavigatorHostView *navigatorHostView = viewRegistry[componentTag]; [navigatorHostView pop:params]; }]; } -// clang-format on @end diff --git a/renderer/native/ios/renderer/component/refreshview/NativeRenderRefreshWrapperViewManager.mm b/renderer/native/ios/renderer/component/refreshview/NativeRenderRefreshWrapperViewManager.mm index c0072fff69c..9ae96888369 100644 --- a/renderer/native/ios/renderer/component/refreshview/NativeRenderRefreshWrapperViewManager.mm +++ b/renderer/native/ios/renderer/component/refreshview/NativeRenderRefreshWrapperViewManager.mm @@ -35,22 +35,18 @@ - (UIView *)view { return [NativeRenderRefreshWrapper new]; } -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(refreshComplected:(NSNumber *__nonnull)componentTag) { [self.renderImpl addUIBlock:^(NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { NativeRenderRefreshWrapper *wrapperView = viewRegistry[componentTag]; [wrapperView refreshCompleted]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(startRefresh:(NSNumber *__nonnull)componentTag) { [self.renderImpl addUIBlock:^(NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { NativeRenderRefreshWrapper *wrapperView = viewRegistry[componentTag]; [wrapperView startRefresh]; }]; } -// clang-format on @end diff --git a/renderer/native/ios/renderer/component/scrollview/NativeRenderScrollViewManager.mm b/renderer/native/ios/renderer/component/scrollview/NativeRenderScrollViewManager.mm index aaa7e137e9f..1b9bfb62141 100644 --- a/renderer/native/ios/renderer/component/scrollview/NativeRenderScrollViewManager.mm +++ b/renderer/native/ios/renderer/component/scrollview/NativeRenderScrollViewManager.mm @@ -97,7 +97,6 @@ - (UIView *)view { // view.overflow = OverflowScroll; //} -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(getContentSize:(nonnull NSNumber *)componentTag callback:(RenderUIResponseSenderBlock)callback) { [self.renderImpl addUIBlock:^(__unused NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { @@ -106,9 +105,7 @@ - (UIView *)view { callback(@{@"width" : @(size.width),@"height" : @(size.height)}); }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(scrollTo:(nonnull NSNumber *)componentTag offsetX:(NSNumber *)x offsetY:(NSNumber *)y @@ -124,9 +121,7 @@ - (UIView *)view { } }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(scrollToWithOptions:(nonnull NSNumber *)componentTag options:(NSDictionary *)options) { [self.renderImpl addUIBlock:^(__unused NativeRenderImpl *renderContext, NSDictionary *viewRegistry){ @@ -154,6 +149,5 @@ - (UIView *)view { } }]; } -// clang-format on @end diff --git a/renderer/native/ios/renderer/component/smartViewPager/NativeRenderSmartViewPagerViewManager.mm b/renderer/native/ios/renderer/component/smartViewPager/NativeRenderSmartViewPagerViewManager.mm index a83507f5470..4464eb5b97a 100644 --- a/renderer/native/ios/renderer/component/smartViewPager/NativeRenderSmartViewPagerViewManager.mm +++ b/renderer/native/ios/renderer/component/smartViewPager/NativeRenderSmartViewPagerViewManager.mm @@ -47,7 +47,6 @@ - (UIView *)view { return [[NativeRenderSmartViewPagerView alloc] init]; } -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(setPage:(nonnull NSNumber *)componentTag pageNumber:(NSNumber *)pageNumber) { [self.renderImpl addUIBlock:^(__unused NativeRenderImpl *renderContext, NSDictionary *viewRegistry){ @@ -61,9 +60,7 @@ - (UIView *)view { [(NativeRenderSmartViewPagerView *)view setPage:pageNumberInteger animated:YES]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(setPageWithoutAnimation:(nonnull NSNumber *)componentTag pageNumber:(NSNumber *)pageNumber) { [self.renderImpl addUIBlock:^(__unused NativeRenderImpl *renderContext, NSDictionary *viewRegistry){ @@ -76,9 +73,7 @@ - (UIView *)view { [(NativeRenderSmartViewPagerView *)view setPage:pageNumberInteger animated:NO]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(getPageIndex:(nonnull NSNumber *)componentTag callback:(RenderUIResponseSenderBlock)callback) { [self.renderImpl addUIBlock:^(__unused NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { @@ -87,7 +82,6 @@ - (UIView *)view { callback(@(currrentPage)); }]; } -// clang-format on @end diff --git a/renderer/native/ios/renderer/component/textinput/NativeRenderTextViewManager.mm b/renderer/native/ios/renderer/component/textinput/NativeRenderTextViewManager.mm index 9b1e5a0f658..5534d9cecdb 100644 --- a/renderer/native/ios/renderer/component/textinput/NativeRenderTextViewManager.mm +++ b/renderer/native/ios/renderer/component/textinput/NativeRenderTextViewManager.mm @@ -73,7 +73,6 @@ - (NativeRenderObjectView *)nativeRenderObjectView { NATIVE_RENDER_EXPORT_VIEW_PROPERTY(defaultValue, NSString) NATIVE_RENDER_EXPORT_VIEW_PROPERTY(isNightMode, BOOL) -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(focusTextInput:(nonnull NSNumber *)componentTag) { [self.renderImpl addUIBlock:^(__unused NativeRenderImpl *renderContext, NSDictionary *viewRegistry){ NativeRenderBaseTextInput *view = (NativeRenderBaseTextInput *)viewRegistry[componentTag]; @@ -84,9 +83,7 @@ - (NativeRenderObjectView *)nativeRenderObjectView { [view focus]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(isFocused:(nonnull NSNumber *)componentTag callback:(RenderUIResponseSenderBlock)callback) { [self.renderImpl addUIBlock:^(__unused NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { NativeRenderBaseTextInput *view = (NativeRenderBaseTextInput *)viewRegistry[componentTag]; @@ -98,9 +95,7 @@ - (NativeRenderObjectView *)nativeRenderObjectView { callback([NSDictionary dictionaryWithObject:[NSNumber numberWithBool:isFocused] forKey:@"value"]); }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(blurTextInput:(nonnull NSNumber *)componentTag) { [self.renderImpl addUIBlock:^(__unused NativeRenderImpl *renderContext, NSDictionary *viewRegistry){ NativeRenderBaseTextInput *view = (NativeRenderBaseTextInput *)viewRegistry[componentTag]; @@ -111,9 +106,7 @@ - (NativeRenderObjectView *)nativeRenderObjectView { [view blur]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(clear:(nonnull NSNumber *)componentTag) { [self.renderImpl addUIBlock:^(__unused NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { NativeRenderBaseTextInput *view = (NativeRenderBaseTextInput *)viewRegistry[componentTag]; @@ -124,9 +117,7 @@ - (NativeRenderObjectView *)nativeRenderObjectView { [view clearText]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(setValue:(nonnull NSNumber *)componentTag text:(NSString *)text ) { [self.renderImpl addUIBlock:^(__unused NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { @@ -138,9 +129,7 @@ - (NativeRenderObjectView *)nativeRenderObjectView { [view setValue: text]; }]; } -// clang-format on -// clang-format off NATIVE_RENDER_COMPONENT_EXPORT_METHOD(getValue:(nonnull NSNumber *)componentTag callback:(RenderUIResponseSenderBlock)callback ) { [self.renderImpl addUIBlock:^(__unused NativeRenderImpl *renderContext, NSDictionary *viewRegistry) { @@ -152,7 +141,6 @@ - (NativeRenderObjectView *)nativeRenderObjectView { callback([NSDictionary dictionaryWithObject:stringValue forKey:@"text"]); }]; } -// clang-format on NATIVE_RENDER_EXPORT_RENDER_OBJECT_PROPERTY(text, NSString) NATIVE_RENDER_EXPORT_RENDER_OBJECT_PROPERTY(placeholder, NSString) diff --git a/renderer/native/ios/renderer/component/view/NativeRenderView.m b/renderer/native/ios/renderer/component/view/NativeRenderView.m index a773fae4e74..898eefcf1ed 100644 --- a/renderer/native/ios/renderer/component/view/NativeRenderView.m +++ b/renderer/native/ios/renderer/component/view/NativeRenderView.m @@ -413,7 +413,6 @@ - (void)updateClippingForLayer:(CALayer *)layer { #pragma mark Border Color -// clang-format off #define setBorderColor(side) \ -(void)setBorder##side##Color : (CGColorRef)color { \ if (CGColorEqualToColor(_border##side##Color, color)) { \ @@ -476,7 +475,6 @@ -(void)setBorder##side##Style : (NativeRenderBorderStyle)style { \ } setBorderStyle() -// clang-format on - (void)dealloc { CGColorRelease(_borderColor);