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 00000000..7e38f450 Binary files /dev/null and b/doric-iOS/Devkit/Assets/icon_doricdev_close.png differ diff --git a/doric-iOS/Devkit/Assets/icon_doricdev_move.png b/doric-iOS/Devkit/Assets/icon_doricdev_move.png new file mode 100644 index 00000000..70714fe6 Binary files /dev/null and b/doric-iOS/Devkit/Assets/icon_doricdev_move.png differ diff --git a/doric-iOS/Devkit/Assets/icon_doricdev_next.png b/doric-iOS/Devkit/Assets/icon_doricdev_next.png new file mode 100644 index 00000000..811489f5 Binary files /dev/null and b/doric-iOS/Devkit/Assets/icon_doricdev_next.png differ diff --git a/doric-iOS/Devkit/Assets/icon_doricdev_prev.png b/doric-iOS/Devkit/Assets/icon_doricdev_prev.png new file mode 100644 index 00000000..7bf6c85e Binary files /dev/null and b/doric-iOS/Devkit/Assets/icon_doricdev_prev.png differ 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"];