From 47022fe715ea5042da32c6e44e0c3a7359fd30db Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Wed, 14 Jul 2021 11:41:50 +0800 Subject: [PATCH] iOS update devkit ui,add snapshot switch and performance switch --- DoricDevkit.podspec | 5 +- .../Devkit/Assets/icon_doricdev_close.png | Bin 0 -> 2868 bytes .../Devkit/Assets/icon_doricdev_move.png | Bin 0 -> 5659 bytes .../Devkit/Assets/icon_doricdev_next.png | Bin 0 -> 2812 bytes .../Devkit/Assets/icon_doricdev_prev.png | Bin 0 -> 3347 bytes .../Devkit/Classes/DoricDevViewController.m | 75 ++++++++++++++---- doric-iOS/Pod/Classes/DoricRegistry.h | 4 + doric-iOS/Pod/Classes/DoricRegistry.m | 10 +++ 8 files changed, 77 insertions(+), 17 deletions(-) create mode 100644 doric-iOS/Devkit/Assets/icon_doricdev_close.png create mode 100644 doric-iOS/Devkit/Assets/icon_doricdev_move.png create mode 100644 doric-iOS/Devkit/Assets/icon_doricdev_next.png create mode 100644 doric-iOS/Devkit/Assets/icon_doricdev_prev.png diff --git a/DoricDevkit.podspec b/DoricDevkit.podspec index 180e9049..51df6e06 100644 --- a/DoricDevkit.podspec +++ b/DoricDevkit.podspec @@ -15,7 +15,10 @@ Doric iOS Devkit for debugging & hotload. s.ios.deployment_target = '8.0' s.source_files = 'doric-iOS/Devkit/Classes/**/*' - + + s.resource_bundles = { + 'DoricDevkit' => ['doric-iOS/Devkit/Assets/**/*'] + } s.public_header_files = 'doric-iOS/Devkit/Classes/**/*.h' s.dependency 'DoricCore' diff --git a/doric-iOS/Devkit/Assets/icon_doricdev_close.png b/doric-iOS/Devkit/Assets/icon_doricdev_close.png new file mode 100644 index 0000000000000000000000000000000000000000..7e38f450ac1986fb51a7c046b9cd593c1611adcc GIT binary patch literal 2868 zcmchZdpMM7AIG0LV8$>q5;Ey24>~w3Rz}DunHg+aomhw3CaEQ6oJOd9hOOA9*~g5P zaq2L$$`+}FM#(bmIE0LHSfd6xOk|yUD~W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uXesGuvO1Fhc8(>wch3kKY zDBzHP`qXsc4~FOEB7I@fN#-O|?oH0S0P#y1H`le--u20nFG!We>M?l8w4)f3yY(uGwhbTMggUxcK|DN)cS|!b7?vOKzf! zxCc93$7_(s zC#Or<9=fW1;XP8@odYHhHk5K`P}IO*PMVw^Ny<$=NwH=yxA5-JO_$WbuEo<6Sbx=6 zrId!NtgH$pwW5#ey_A30^tFz_cqetQq@-fj!0JUYGLBQlA9#x9;95D8nt`67m553Ur=f+H z6hnTo`RSgwJoqu&V%kjRudr$C5!?hV$>zjDb=IvG`Vf3qoOPO!KE(J@^(0Fq?SB}4 aploIfW4s;x6vcja0LF&qm^uU8!+!%@|K~yg literal 0 HcmV?d00001 diff --git a/doric-iOS/Devkit/Classes/DoricDevViewController.m b/doric-iOS/Devkit/Classes/DoricDevViewController.m index f7bcfeba..fae3f46b 100644 --- a/doric-iOS/Devkit/Classes/DoricDevViewController.m +++ b/doric-iOS/Devkit/Classes/DoricDevViewController.m @@ -27,6 +27,7 @@ #import "DoricDevViewController.h" #import "QRScanViewController.h" #import "DoricDebugDriver.h" +#import "DoricRegistry.h" @interface DoricContextCell : UITableViewCell @property(nonatomic, strong) UILabel *tvId; @@ -130,7 +131,10 @@ @interface DoricDevViewController () *registries; @property(nonatomic, strong) NSMutableDictionary *envDic; @property(nonatomic, assign) BOOL enablePerformance; +@property(nonatomic, assign) BOOL enableRecordSnapshot; + (instancetype)instance; @end @@ -71,6 +72,7 @@ - (instancetype)init { _registries = [NSHashTable new]; _envDic = [NSMutableDictionary new]; _enablePerformance = NO; + _enableRecordSnapshot = NO; } return self; } @@ -140,6 +142,14 @@ + (BOOL)isEnablePerformance { return DoricLibraries.instance.enablePerformance; } ++ (void)enableRenderSnapshot:(BOOL)enable { + DoricLibraries.instance.enableRecordSnapshot = enable; +} + ++ (BOOL)isEnableRenderSnapshot { + return DoricLibraries.instance.enableRecordSnapshot; +} + - (void)innerRegister { [self registerNativePlugin:DoricShaderPlugin.class withName:@"shader"]; [self registerNativePlugin:DoricModalPlugin.class withName:@"modal"];