diff --git a/LLDebugTool/Core/Component/Hierarchy/Function/LLConfig+Hierarchy.h b/LLDebugTool/Core/Component/Hierarchy/Function/LLConfig+Hierarchy.h deleted file mode 100644 index 9451e6fe..00000000 --- a/LLDebugTool/Core/Component/Hierarchy/Function/LLConfig+Hierarchy.h +++ /dev/null @@ -1,37 +0,0 @@ -// -// LLConfig+Hierarchy.h -// -// Copyright (c) 2018 LLDebugTool Software Foundation (https://github.com/HDB-Li/LLDebugTool) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface LLConfig (Hierarchy) - -/** - Hierarchy function ignore private class or not. - */ -@property (nonatomic, assign, getter=isHierarchyIgnorePrivateClass) BOOL hierarchyIgnorePrivateClass; - -@end - -NS_ASSUME_NONNULL_END diff --git a/LLDebugTool/Core/Component/Hierarchy/Function/LLConfig+Hierarchy.m b/LLDebugTool/Core/Component/Hierarchy/Function/LLConfig+Hierarchy.m deleted file mode 100644 index 02d6cf8b..00000000 --- a/LLDebugTool/Core/Component/Hierarchy/Function/LLConfig+Hierarchy.m +++ /dev/null @@ -1,38 +0,0 @@ -// -// LLConfig+Hierarchy.m -// -// Copyright (c) 2018 LLDebugTool Software Foundation (https://github.com/HDB-Li/LLDebugTool) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig+Hierarchy.h" - -#import "NSObject+LL_Runtime.h" - -@implementation LLConfig (Hierarchy) - -- (void)setHierarchyIgnorePrivateClass:(BOOL)hierarchyIgnorePrivateClass { - objc_setAssociatedObject(self, @selector(isHierarchyIgnorePrivateClass), @(hierarchyIgnorePrivateClass), OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -- (BOOL)isHierarchyIgnorePrivateClass { - return [objc_getAssociatedObject(self, _cmd) boolValue]; -} - -@end diff --git a/LLDebugTool/Core/Component/Hierarchy/LLHierarchy.h b/LLDebugTool/Core/Component/Hierarchy/LLHierarchy.h index bf8ab907..6f4582b8 100644 --- a/LLDebugTool/Core/Component/Hierarchy/LLHierarchy.h +++ b/LLDebugTool/Core/Component/Hierarchy/LLHierarchy.h @@ -30,7 +30,6 @@ #import "LLEnumDescription.h" #import "NSObject+LL_Hierarchy.h" -#import "LLConfig+Hierarchy.h" #import "LLHierarchyDetailViewController.h" #import "LLHierarchyViewController.h" diff --git a/LLDebugTool/Core/Component/Hierarchy/UserInterface/LLHierarchyViewController.m b/LLDebugTool/Core/Component/Hierarchy/UserInterface/LLHierarchyViewController.m index 0ec6f3d5..12da7a49 100644 --- a/LLDebugTool/Core/Component/Hierarchy/UserInterface/LLHierarchyViewController.m +++ b/LLDebugTool/Core/Component/Hierarchy/UserInterface/LLHierarchyViewController.m @@ -31,11 +31,11 @@ #import "LLWindowManager.h" #import "LLThemeManager.h" #import "LLFactory.h" +#import "LLConfig.h" #import "LLConst.h" #import "LLTool.h" #import "UIViewController+LL_Utils.h" -#import "LLConfig+Hierarchy.h" #import "NSObject+LL_Utils.h" #import "UIView+LL_Utils.h" diff --git a/LLDebugTool/Core/Component/Html/Function/LLConfig+Html.h b/LLDebugTool/Core/Component/Html/Function/LLConfig+Html.h deleted file mode 100644 index d2c9faf3..00000000 --- a/LLDebugTool/Core/Component/Html/Function/LLConfig+Html.h +++ /dev/null @@ -1,40 +0,0 @@ -// -// LLConfig+Html.h -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface LLConfig (Html) - -/** - Default html5 url string used in Html function. must has prefix with http:// or https:// - */ -@property (nonatomic, copy, nullable) NSString *defaultHtmlUrl; - -/** - Custom view controller used in html function. you can use your custom viewController to dynamic debug your web view. must comply with `LLComponentDelegate`. ViewController must set background color. - */ -@property (nonatomic, copy, nullable) UIViewController *(^htmlViewControllerProvider)(NSString * _Nullable url); - -@end - -NS_ASSUME_NONNULL_END diff --git a/LLDebugTool/Core/Component/Html/Function/LLConfig+Html.m b/LLDebugTool/Core/Component/Html/Function/LLConfig+Html.m deleted file mode 100644 index dd29daf0..00000000 --- a/LLDebugTool/Core/Component/Html/Function/LLConfig+Html.m +++ /dev/null @@ -1,44 +0,0 @@ -// -// LLConfig+Html.m -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig+Html.h" - -#import "NSObject+LL_Runtime.h" - -@implementation LLConfig (Html) - -- (void)setDefaultHtmlUrl:(NSString *)defaultHtmlUrl { - objc_setAssociatedObject(self, @selector(defaultHtmlUrl), defaultHtmlUrl, OBJC_ASSOCIATION_COPY_NONATOMIC); -} - -- (NSString *)defaultHtmlUrl { - return objc_getAssociatedObject(self, _cmd); -} - -- (void)setHtmlViewControllerProvider:(UIViewController * _Nonnull (^)(NSString * _Nullable))htmlViewControllerProvider { - objc_setAssociatedObject(self, @selector(htmlViewControllerProvider), htmlViewControllerProvider, OBJC_ASSOCIATION_COPY_NONATOMIC); -} - -- (UIViewController * _Nonnull (^)(NSString * _Nullable))htmlViewControllerProvider { - return objc_getAssociatedObject(self, _cmd); -} - -@end diff --git a/LLDebugTool/Core/Component/Html/LLHtml.h b/LLDebugTool/Core/Component/Html/LLHtml.h index 839739a4..802970fa 100644 --- a/LLDebugTool/Core/Component/Html/LLHtml.h +++ b/LLDebugTool/Core/Component/Html/LLHtml.h @@ -27,8 +27,6 @@ #import "LLHtmlComponent.h" -#import "LLConfig+Html.h" - #import "LLHtmlConfigViewController.h" #import "LLHtmlUIWebViewController.h" #import "LLHtmlWkWebViewController.h" diff --git a/LLDebugTool/Core/Component/Html/UserInterface/LLHtmlConfigViewController.m b/LLDebugTool/Core/Component/Html/UserInterface/LLHtmlConfigViewController.m index abb788ce..2c8eae16 100644 --- a/LLDebugTool/Core/Component/Html/UserInterface/LLHtmlConfigViewController.m +++ b/LLDebugTool/Core/Component/Html/UserInterface/LLHtmlConfigViewController.m @@ -35,11 +35,11 @@ #import "LLThemeManager.h" #import "LLToastUtils.h" #import "LLFactory.h" +#import "LLConfig.h" #import "LLConst.h" #import "UIViewController+LL_Utils.h" #import "UIView+LL_Utils.h" -#import "LLConfig+Html.h" @interface LLHtmlConfigViewController () diff --git a/LLDebugTool/Core/Component/Location/Function/LLConfig+Location.h b/LLDebugTool/Core/Component/Location/Function/LLConfig+Location.h deleted file mode 100644 index 0ccd8cc4..00000000 --- a/LLDebugTool/Core/Component/Location/Function/LLConfig+Location.h +++ /dev/null @@ -1,40 +0,0 @@ -// -// LLConfig+Location.h -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface LLConfig (Location) - -/** - Mock location latitude. - */ -@property (nonatomic, assign) double mockLocationLatitude; - -/** - Mock location longitude. - */ -@property (nonatomic, assign) double mockLocationLongitude; - -@end - -NS_ASSUME_NONNULL_END diff --git a/LLDebugTool/Core/Component/Location/Function/LLConfig+Location.m b/LLDebugTool/Core/Component/Location/Function/LLConfig+Location.m deleted file mode 100644 index de3aea97..00000000 --- a/LLDebugTool/Core/Component/Location/Function/LLConfig+Location.m +++ /dev/null @@ -1,44 +0,0 @@ -// -// LLConfig+Location.m -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig+Location.h" - -#import "NSObject+LL_Runtime.h" - -@implementation LLConfig (Location) - -- (void)setMockLocationLatitude:(double)mockLocationLatitude { - objc_setAssociatedObject(self, @selector(mockLocationLatitude), @(mockLocationLatitude), OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -- (double)mockLocationLatitude { - return [objc_getAssociatedObject(self, _cmd) doubleValue]; -} - -- (void)setMockLocationLongitude:(double)mockLocationLongitude { - objc_setAssociatedObject(self, @selector(mockLocationLongitude), @(mockLocationLongitude), OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -- (double)mockLocationLongitude { - return [objc_getAssociatedObject(self, _cmd) doubleValue]; -} - -@end diff --git a/LLDebugTool/Core/Component/Location/Function/LLLocationProxy.m b/LLDebugTool/Core/Component/Location/Function/LLLocationProxy.m index 892c161b..d1bf040c 100644 --- a/LLDebugTool/Core/Component/Location/Function/LLLocationProxy.m +++ b/LLDebugTool/Core/Component/Location/Function/LLLocationProxy.m @@ -22,8 +22,7 @@ #import "LLLocationProxy.h" #import "LLLocationHelper.h" - -#import "LLConfig+Location.h" +#import "LLConfig.h" @implementation LLLocationProxy diff --git a/LLDebugTool/Core/Component/Location/Function/MKMapView/MKMapView+LL_Location.m b/LLDebugTool/Core/Component/Location/Function/MKMapView/MKMapView+LL_Location.m index 0addd53b..7a9e956d 100644 --- a/LLDebugTool/Core/Component/Location/Function/MKMapView/MKMapView+LL_Location.m +++ b/LLDebugTool/Core/Component/Location/Function/MKMapView/MKMapView+LL_Location.m @@ -22,9 +22,9 @@ #import "MKMapView+LL_Location.h" #import "LLLocationHelper.h" +#import "LLConfig.h" #import "NSObject+LL_Runtime.h" -#import "LLConfig+Location.h" @implementation MKMapView (LL_Location) diff --git a/LLDebugTool/Core/Component/Location/LLLocation.h b/LLDebugTool/Core/Component/Location/LLLocation.h index 2a9a3089..522c6ead 100644 --- a/LLDebugTool/Core/Component/Location/LLLocation.h +++ b/LLDebugTool/Core/Component/Location/LLLocation.h @@ -29,7 +29,6 @@ #import "CLLocationManager+LL_Location.h" #import "MKMapView+LL_Location.h" -#import "LLConfig+Location.h" #import "LLLocationViewController.h" #import "LLPinAnnotationView.h" diff --git a/LLDebugTool/Core/Component/Location/UserInterface/LLLocationViewController.m b/LLDebugTool/Core/Component/Location/UserInterface/LLLocationViewController.m index 48ef0881..5e1ebdd6 100644 --- a/LLDebugTool/Core/Component/Location/UserInterface/LLLocationViewController.m +++ b/LLDebugTool/Core/Component/Location/UserInterface/LLLocationViewController.m @@ -31,11 +31,11 @@ #import "LLSettingManager.h" #import "LLThemeManager.h" #import "LLAnnotation.h" +#import "LLConfig.h" #import "LLConst.h" #import "UIViewController+LL_Utils.h" #import "UIView+LL_Utils.h" -#import "LLConfig+Location.h" static NSString *const kAnnotationID = @"AnnotationID"; diff --git a/LLDebugTool/Core/Component/Log/Function/LLConfig+Log.h b/LLDebugTool/Core/Component/Log/Function/LLConfig+Log.h deleted file mode 100644 index 75a83d83..00000000 --- a/LLDebugTool/Core/Component/Log/Function/LLConfig+Log.h +++ /dev/null @@ -1,69 +0,0 @@ -// -// LLConfig+Log.h -// -// Copyright (c) 2018 LLDebugTool Software Foundation (https://github.com/HDB-Li/LLDebugTool) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig.h" - -NS_ASSUME_NONNULL_BEGIN - -/** - Log style for [LLDebugTool logInFile...]. Customize the log you want. - - - LLConfigLogDetail: Show all detail info. Contain event, file, line, func, date and desc. - - LLConfigLogFileFuncDesc : Show with event, file, func and desc. - - LLConfigLogFileDesc : Show with event, file and desc. - - LLConfigLogNormal: Show as system NSLog - - LLConfigLogNone: Don't show anything. - */ -typedef NS_ENUM(NSUInteger, LLConfigLogStyle) { - LLConfigLogDetail, - LLConfigLogFileFuncDesc, - LLConfigLogFileDesc, - LLConfigLogNormal, - LLConfigLogNone, -}; - -/** - Log Level. It can be used for filter. - - - LLConfigLogLevelDefault: Use to save message or note. - - LLConfigLogLevelAlert: Use to save alert message. - - LLConfigLogLevelWarning: Use to save warning message. - - LLConfigLogLevelError: Use to save error message. - */ -typedef NS_ENUM(NSUInteger, LLConfigLogLevel) { - LLConfigLogLevelDefault, - LLConfigLogLevelAlert, - LLConfigLogLevelWarning, - LLConfigLogLevelError, -}; - -@interface LLConfig (Log) - -/** - Customize the log style. Default is LLConfigLogDetail. - */ -@property (nonatomic, assign) LLConfigLogStyle logStyle; - -@end - -NS_ASSUME_NONNULL_END diff --git a/LLDebugTool/Core/Component/Log/Function/LLConfig+Log.m b/LLDebugTool/Core/Component/Log/Function/LLConfig+Log.m deleted file mode 100644 index 7b0f958f..00000000 --- a/LLDebugTool/Core/Component/Log/Function/LLConfig+Log.m +++ /dev/null @@ -1,38 +0,0 @@ -// -// LLConfig+Log.m -// -// Copyright (c) 2018 LLDebugTool Software Foundation (https://github.com/HDB-Li/LLDebugTool) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig+Log.h" - -#import "NSObject+LL_Runtime.h" - -@implementation LLConfig (Log) - -- (void)setLogStyle:(LLConfigLogStyle)logStyle { - objc_setAssociatedObject(self, @selector(logStyle), @(logStyle), OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -- (LLConfigLogStyle)logStyle { - return [objc_getAssociatedObject(self, _cmd) unsignedIntegerValue]; -} - -@end diff --git a/LLDebugTool/Core/Component/Log/Function/LLConfigHelper+Log.h b/LLDebugTool/Core/Component/Log/Function/LLConfigHelper+Log.h deleted file mode 100644 index df5159ab..00000000 --- a/LLDebugTool/Core/Component/Log/Function/LLConfigHelper+Log.h +++ /dev/null @@ -1,38 +0,0 @@ -// -// LLConfigHelper+Log.h -// -// Copyright (c) 2018 LLDebugTool Software Foundation (https://github.com/HDB-Li/LLDebugTool) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfigHelper.h" - -#import "LLConfig+Log.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface LLConfigHelper (Log) - -+ (NSString *)logStyleDescription; - -+ (NSString *)logStyleDescription:(LLConfigLogStyle)style; - -@end - -NS_ASSUME_NONNULL_END diff --git a/LLDebugTool/Core/Component/Log/Function/LLConfigHelper+Log.m b/LLDebugTool/Core/Component/Log/Function/LLConfigHelper+Log.m deleted file mode 100644 index a0803db6..00000000 --- a/LLDebugTool/Core/Component/Log/Function/LLConfigHelper+Log.m +++ /dev/null @@ -1,47 +0,0 @@ -// -// LLConfigHelper+Log.m -// -// Copyright (c) 2018 LLDebugTool Software Foundation (https://github.com/HDB-Li/LLDebugTool) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfigHelper+Log.h" - -@implementation LLConfigHelper (Log) - -+ (NSString *)logStyleDescription { - return [self logStyleDescription:[LLConfig shared].logStyle]; -} - -+ (NSString *)logStyleDescription:(LLConfigLogStyle)style { - switch (style) { - case LLConfigLogDetail: - return @"Detail"; - case LLConfigLogFileFuncDesc: - return @"File Func Desc"; - case LLConfigLogFileDesc: - return @"File Desc"; - case LLConfigLogNormal: - return @"Normal"; - case LLConfigLogNone: - return @"None"; - } -} - -@end diff --git a/LLDebugTool/Core/Component/Log/Function/LLLogHelper.h b/LLDebugTool/Core/Component/Log/Function/LLLogHelper.h index 56e4a346..3e3c5f53 100644 --- a/LLDebugTool/Core/Component/Log/Function/LLLogHelper.h +++ b/LLDebugTool/Core/Component/Log/Function/LLLogHelper.h @@ -23,7 +23,7 @@ #import -#import "LLConfig+Log.h" +#import "LLConfig.h" NS_ASSUME_NONNULL_BEGIN diff --git a/LLDebugTool/Core/Component/Log/Function/LLLogHelper.m b/LLDebugTool/Core/Component/Log/Function/LLLogHelper.m index 8c56117a..4295a99b 100644 --- a/LLDebugTool/Core/Component/Log/Function/LLLogHelper.m +++ b/LLDebugTool/Core/Component/Log/Function/LLLogHelper.m @@ -26,9 +26,9 @@ #import "LLStorageManager.h" #import "LLFormatterTool.h" #import "LLLogModel.h" +#import "LLConfig.h" #import "NSObject+LL_Utils.h" -#import "LLConfig+Log.h" static LLLogHelper *_instance = nil; diff --git a/LLDebugTool/Core/Component/Log/LLLog.h b/LLDebugTool/Core/Component/Log/LLLog.h index 22ca1943..e9469d6a 100644 --- a/LLDebugTool/Core/Component/Log/LLLog.h +++ b/LLDebugTool/Core/Component/Log/LLLog.h @@ -29,9 +29,6 @@ #import "LLLogHelper.h" #import "LLLogModel.h" -#import "LLConfigHelper+Log.h" -#import "LLConfig+Log.h" - #import "LLLogDetailViewController.h" #import "LLLogViewController.h" #import "LLLogFilterView.h" diff --git a/LLDebugTool/Core/Component/Magnifier/Function/LLConfig+Magnifier.h b/LLDebugTool/Core/Component/Magnifier/Function/LLConfig+Magnifier.h deleted file mode 100644 index 5994f68a..00000000 --- a/LLDebugTool/Core/Component/Magnifier/Function/LLConfig+Magnifier.h +++ /dev/null @@ -1,42 +0,0 @@ -// -// LLConfig+Magnifier.h -// -// Copyright (c) 2018 LLDebugTool Software Foundation (https://github.com/HDB-Li/LLDebugTool) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface LLConfig (Magnifier) - -/** - Magnifier window zoom level, number of pixels per color, default is kLLMagnifierWindowZoomLevel. - */ -@property (nonatomic, assign) NSInteger magnifierZoomLevel; - -/** - Number of rows per magnifier window, default is kLLMagnifierWindowSize. - */ -@property (nonatomic, assign) NSInteger magnifierSize; - -@end - -NS_ASSUME_NONNULL_END diff --git a/LLDebugTool/Core/Component/Magnifier/Function/LLConfig+Magnifier.m b/LLDebugTool/Core/Component/Magnifier/Function/LLConfig+Magnifier.m deleted file mode 100644 index 5bc4fb73..00000000 --- a/LLDebugTool/Core/Component/Magnifier/Function/LLConfig+Magnifier.m +++ /dev/null @@ -1,51 +0,0 @@ -// -// LLConfig+Magnifier.m -// -// Copyright (c) 2018 LLDebugTool Software Foundation (https://github.com/HDB-Li/LLDebugTool) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig+Magnifier.h" - -#import "NSObject+LL_Runtime.h" - -@implementation LLConfig (Magnifier) - -- (void)setMagnifierZoomLevel:(NSInteger)magnifierZoomLevel { - objc_setAssociatedObject(self, @selector(magnifierZoomLevel), @(magnifierZoomLevel), OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -- (NSInteger)magnifierZoomLevel { - return [objc_getAssociatedObject(self, _cmd) integerValue]; -} - -- (void)setMagnifierSize:(NSInteger)magnifierSize { - if (magnifierSize % 2 == 0) { - magnifierSize = magnifierSize + 1; - } else { - magnifierSize = magnifierSize; - } - objc_setAssociatedObject(self, @selector(magnifierSize), @(magnifierSize), OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -- (NSInteger)magnifierSize { - return [objc_getAssociatedObject(self, _cmd) integerValue]; -} - -@end diff --git a/LLDebugTool/Core/Component/Magnifier/LLMagnifier.h b/LLDebugTool/Core/Component/Magnifier/LLMagnifier.h index e719db41..de1c02dd 100644 --- a/LLDebugTool/Core/Component/Magnifier/LLMagnifier.h +++ b/LLDebugTool/Core/Component/Magnifier/LLMagnifier.h @@ -26,8 +26,6 @@ #import "LLMagnifierComponent.h" -#import "LLConfig+Magnifier.h" - #import "LLMagnifierViewController.h" #import "LLMagnifierInfoView.h" #import "LLMagnifierWindow.h" diff --git a/LLDebugTool/Core/Component/Magnifier/UserInterface/LLMagnifierView.m b/LLDebugTool/Core/Component/Magnifier/UserInterface/LLMagnifierView.m index 6ccb0aa7..485776d0 100644 --- a/LLDebugTool/Core/Component/Magnifier/UserInterface/LLMagnifierView.m +++ b/LLDebugTool/Core/Component/Magnifier/UserInterface/LLMagnifierView.m @@ -24,9 +24,9 @@ #import "LLMagnifierView.h" #import "LLThemeManager.h" +#import "LLConfig.h" #import "LLRouter+Screenshot.h" -#import "LLConfig+Magnifier.h" #import "UIImage+LL_Utils.h" #import "UIColor+LL_Utils.h" #import "UIView+LL_Utils.h" diff --git a/LLDebugTool/Core/Component/Magnifier/UserInterface/LLMagnifierViewController.m b/LLDebugTool/Core/Component/Magnifier/UserInterface/LLMagnifierViewController.m index aa44581f..89e9479b 100644 --- a/LLDebugTool/Core/Component/Magnifier/UserInterface/LLMagnifierViewController.m +++ b/LLDebugTool/Core/Component/Magnifier/UserInterface/LLMagnifierViewController.m @@ -26,10 +26,9 @@ #import "LLMagnifierInfoView.h" #import "LLInternalMacros.h" #import "LLMagnifierView.h" +#import "LLConfig.h" #import "LLConst.h" -#import "LLConfig+Magnifier.h" - @interface LLMagnifierViewController () @property (nonatomic, strong) LLMagnifierView *magnifierView; diff --git a/LLDebugTool/Core/Component/Network/Function/LLConfig+Network.h b/LLDebugTool/Core/Component/Network/Function/LLConfig+Network.h deleted file mode 100644 index b3fbd706..00000000 --- a/LLDebugTool/Core/Component/Network/Function/LLConfig+Network.h +++ /dev/null @@ -1,47 +0,0 @@ -// -// LLConfig+Network.h -// -// Copyright (c) 2018 LLDebugTool Software Foundation (https://github.com/HDB-Li/LLDebugTool) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface LLConfig (Network) - -/** - Observer network in hosts, ignore others. - */ -@property (nonatomic, strong, nullable) NSArray *observerdHosts; - -/** - Ignored hosts, low level than observerdHosts. - */ -@property (nonatomic, strong, nullable) NSArray *ignoredHosts; - -/** - Whether observer webView request. - */ -@property (nonatomic, assign) BOOL observerWebView; - -@end - -NS_ASSUME_NONNULL_END diff --git a/LLDebugTool/Core/Component/Network/Function/LLConfig+Network.m b/LLDebugTool/Core/Component/Network/Function/LLConfig+Network.m deleted file mode 100644 index f9c0e17c..00000000 --- a/LLDebugTool/Core/Component/Network/Function/LLConfig+Network.m +++ /dev/null @@ -1,54 +0,0 @@ -// -// LLConfig+Network.m -// -// Copyright (c) 2018 LLDebugTool Software Foundation (https://github.com/HDB-Li/LLDebugTool) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig+Network.h" - -#import "NSObject+LL_Runtime.h" - -@implementation LLConfig (Network) - -- (void)setObserverdHosts:(NSArray *)observerdHosts { - objc_setAssociatedObject(self, @selector(observerdHosts), observerdHosts, OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -- (NSArray *)observerdHosts { - return objc_getAssociatedObject(self, _cmd); -} - -- (void)setIgnoredHosts:(NSArray *)ignoredHosts { - objc_setAssociatedObject(self, @selector(ignoredHosts), ignoredHosts, OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -- (NSArray *)ignoredHosts { - return objc_getAssociatedObject(self, _cmd); -} - -- (void)setObserverWebView:(BOOL)observerWebView { - objc_setAssociatedObject(self, @selector(observerWebView), @(observerWebView), OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -- (BOOL)observerWebView { - return [objc_getAssociatedObject(self, _cmd) boolValue]; -} - -@end diff --git a/LLDebugTool/Core/Component/Network/Function/LLNetworkHelper.m b/LLDebugTool/Core/Component/Network/Function/LLNetworkHelper.m index 67d916a6..4126a144 100644 --- a/LLDebugTool/Core/Component/Network/Function/LLNetworkHelper.m +++ b/LLDebugTool/Core/Component/Network/Function/LLNetworkHelper.m @@ -25,10 +25,10 @@ #import "LLReachability.h" #import "LLURLProtocol.h" +#import "LLConfig.h" #import "LLTool.h" #import "LLRouter+Network.h" -#import "LLConfig+Network.h" static LLNetworkHelper *_instance = nil; diff --git a/LLDebugTool/Core/Component/Network/Function/LLURLProtocol.m b/LLDebugTool/Core/Component/Network/Function/LLURLProtocol.m index c24a4e2c..eb1f2db6 100644 --- a/LLDebugTool/Core/Component/Network/Function/LLURLProtocol.m +++ b/LLDebugTool/Core/Component/Network/Function/LLURLProtocol.m @@ -26,13 +26,13 @@ #import "LLStorageManager.h" #import "LLFormatterTool.h" #import "LLNetworkModel.h" +#import "LLConfig.h" #import "LLTool.h" #import "NSHTTPURLResponse+LL_Network.h" #import "NSInputStream+LL_Network.h" #import "NSData+LL_Network.h" #import "LLRouter+AppInfo.h" -#import "LLConfig+Network.h" static NSString *const HTTPHandledIdentifier = @"HttpHandleIdentifier"; diff --git a/LLDebugTool/Core/Component/Network/LLNetwork.h b/LLDebugTool/Core/Component/Network/LLNetwork.h index cc8be7d7..8e394971 100644 --- a/LLDebugTool/Core/Component/Network/LLNetwork.h +++ b/LLDebugTool/Core/Component/Network/LLNetwork.h @@ -36,7 +36,6 @@ #import "NSInputStream+LL_Network.h" #import "NSURLSession+LL_Network.h" #import "NSData+LL_Network.h" -#import "LLConfig+Network.h" #import "LLNetworkDetailViewController.h" #import "LLNetworkViewController.h" diff --git a/LLDebugTool/Core/Component/WidgetBorder/Function/LLConfig+WidgetBorder.h b/LLDebugTool/Core/Component/WidgetBorder/Function/LLConfig+WidgetBorder.h deleted file mode 100644 index 20d77659..00000000 --- a/LLDebugTool/Core/Component/WidgetBorder/Function/LLConfig+WidgetBorder.h +++ /dev/null @@ -1,37 +0,0 @@ -// -// LLConfig+WidgetBorder.h -// -// Copyright (c) 2018 LLDebugTool Software Foundation (https://github.com/HDB-Li/LLDebugTool) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface LLConfig (WidgetBorder) - -/** -Whether show widget border. Default is NO. -*/ -@property (nonatomic, assign, getter=isShowWidgetBorder) BOOL showWidgetBorder; - -@end - -NS_ASSUME_NONNULL_END diff --git a/LLDebugTool/Core/Component/WidgetBorder/Function/LLConfig+WidgetBorder.m b/LLDebugTool/Core/Component/WidgetBorder/Function/LLConfig+WidgetBorder.m deleted file mode 100644 index d331f202..00000000 --- a/LLDebugTool/Core/Component/WidgetBorder/Function/LLConfig+WidgetBorder.m +++ /dev/null @@ -1,38 +0,0 @@ -// -// LLConfig+WidgetBorder.m -// -// Copyright (c) 2018 LLDebugTool Software Foundation (https://github.com/HDB-Li/LLDebugTool) -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -// SOFTWARE. - -#import "LLConfig+WidgetBorder.h" - -#import "NSObject+LL_Runtime.h" - -@implementation LLConfig (WidgetBorder) - -- (void)setShowWidgetBorder:(BOOL)showWidgetBorder { - objc_setAssociatedObject(self, @selector(isShowWidgetBorder), @(showWidgetBorder), OBJC_ASSOCIATION_RETAIN_NONATOMIC); -} - -- (BOOL)isShowWidgetBorder { - return [objc_getAssociatedObject(self, _cmd) boolValue]; -} - -@end diff --git a/LLDebugTool/Core/Component/WidgetBorder/Function/UIView+LLWidgetBorder.m b/LLDebugTool/Core/Component/WidgetBorder/Function/UIView+LLWidgetBorder.m index b5147d4f..eef3ce13 100644 --- a/LLDebugTool/Core/Component/WidgetBorder/Function/UIView+LLWidgetBorder.m +++ b/LLDebugTool/Core/Component/WidgetBorder/Function/UIView+LLWidgetBorder.m @@ -24,9 +24,9 @@ #import "UIView+LLWidgetBorder.h" #import "LLThemeManager.h" +#import "LLConfig.h" #import "LLConst.h" -#import "LLConfig+WidgetBorder.h" #import "NSObject+LL_Runtime.h" static const char kLLBorderLayerKey; diff --git a/LLDebugTool/Core/Component/WidgetBorder/LLWidgetBorder.h b/LLDebugTool/Core/Component/WidgetBorder/LLWidgetBorder.h index 386a77e8..2c3e810c 100644 --- a/LLDebugTool/Core/Component/WidgetBorder/LLWidgetBorder.h +++ b/LLDebugTool/Core/Component/WidgetBorder/LLWidgetBorder.h @@ -29,7 +29,6 @@ #import "LLWidgetBorderHelper.h" #import "UIView+LLWidgetBorder.h" -#import "LLConfig+WidgetBorder.h" #import "LLWidgetBorderViewController.h" #import "LLWidgetBorderWindow.h" diff --git a/LLDebugTool/Core/Component/WidgetBorder/UserInterface/LLWidgetBorderViewController.m b/LLDebugTool/Core/Component/WidgetBorder/UserInterface/LLWidgetBorderViewController.m index 157e7dc1..bd7659d3 100644 --- a/LLDebugTool/Core/Component/WidgetBorder/UserInterface/LLWidgetBorderViewController.m +++ b/LLDebugTool/Core/Component/WidgetBorder/UserInterface/LLWidgetBorderViewController.m @@ -29,8 +29,7 @@ #import "LLSettingManager.h" #import "LLThemeManager.h" #import "LLFactory.h" - -#import "LLConfig+WidgetBorder.h" +#import "LLConfig.h" @interface LLWidgetBorderViewController () diff --git a/LLDebugTool/Core/Others/CommonUI/View/TitleCell/LLTitleSwitchCell.m b/LLDebugTool/Core/Others/CommonUI/View/TitleCell/LLTitleSwitchCell.m index c81a9cf9..f7f6e125 100644 --- a/LLDebugTool/Core/Others/CommonUI/View/TitleCell/LLTitleSwitchCell.m +++ b/LLDebugTool/Core/Others/CommonUI/View/TitleCell/LLTitleSwitchCell.m @@ -48,11 +48,13 @@ - (void)initUI { - (void)addSwitConstraints { NSLayoutConstraint *left = [NSLayoutConstraint constraintWithItem:self.swit attribute:NSLayoutAttributeLeading relatedBy:NSLayoutRelationEqual toItem:self.detailLabel attribute:NSLayoutAttributeTrailing multiplier:1 constant:kLLGeneralMargin / 2.0]; NSLayoutConstraint *right = [NSLayoutConstraint constraintWithItem:self.swit attribute:NSLayoutAttributeTrailing relatedBy:NSLayoutRelationEqual toItem:self.swit.superview attribute:NSLayoutAttributeTrailing multiplier:1 constant:-kLLGeneralMargin]; - NSLayoutConstraint *centerY = [NSLayoutConstraint constraintWithItem:self.swit attribute:NSLayoutAttributeCenterY relatedBy:NSLayoutRelationEqual toItem:self.swit.superview attribute:NSLayoutAttributeCenterY multiplier:1 constant:0]; NSLayoutConstraint *width = [NSLayoutConstraint constraintWithItem:self.swit attribute:NSLayoutAttributeWidth relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1 constant:51]; NSLayoutConstraint *height = [NSLayoutConstraint constraintWithItem:self.swit attribute:NSLayoutAttributeHeight relatedBy:NSLayoutRelationEqual toItem:nil attribute:NSLayoutAttributeNotAnAttribute multiplier:1 constant:31]; + NSLayoutConstraint *top = [NSLayoutConstraint constraintWithItem:self.swit attribute:NSLayoutAttributeTop relatedBy:NSLayoutRelationEqual toItem:self.swit.superview attribute:NSLayoutAttributeTop multiplier:1 constant:kLLGeneralMargin / 2.0]; + NSLayoutConstraint *bottom = [NSLayoutConstraint constraintWithItem:self.swit attribute:NSLayoutAttributeBottom relatedBy:NSLayoutRelationEqual toItem:self.swit.superview attribute:NSLayoutAttributeBottom multiplier:1 constant:-kLLGeneralMargin / 2.0]; + bottom.priority = UILayoutPriorityDefaultHigh; self.swit.translatesAutoresizingMaskIntoConstraints = NO; - [self.swit.superview addConstraints:@[left, right, centerY, width, height]]; + [self.swit.superview addConstraints:@[left, right, width, height, top, bottom]]; } - (void)primaryColorChanged { diff --git a/LLDebugTool/Core/Others/Component/Function/UserInterface/LLFunctionViewController.m b/LLDebugTool/Core/Others/Component/Function/UserInterface/LLFunctionViewController.m index 494383e8..b91c1bb4 100644 --- a/LLDebugTool/Core/Others/Component/Function/UserInterface/LLFunctionViewController.m +++ b/LLDebugTool/Core/Others/Component/Function/UserInterface/LLFunctionViewController.m @@ -87,27 +87,72 @@ - (void)primaryColorChanged { #pragma mark - Primary - (void)loadData { NSMutableArray *items = [[NSMutableArray alloc] init]; - [items addObject:[[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionNetwork]]; - [items addObject:[[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionLog]]; - [items addObject:[[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionCrash]]; - [items addObject:[[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionAppInfo]]; - [items addObject:[[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionSandbox]]; - [items addObject:[[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionLocation]]; - + LLFunctionItemModel *network = [[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionNetwork]; + if (network) { + [items addObject:network]; + } + LLFunctionItemModel *log = [[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionLog]; + if (log) { + [items addObject:log]; + } + LLFunctionItemModel *crash = [[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionCrash]; + if (crash) { + [items addObject:crash]; + } + LLFunctionItemModel *appInfo = [[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionAppInfo]; + if (appInfo) { + [items addObject:appInfo]; + } + LLFunctionItemModel *sandbox = [[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionSandbox]; + if (sandbox) { + [items addObject:sandbox]; + } + LLFunctionItemModel *location = [[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionLocation]; + if (location) { + [items addObject:location]; + } + self.toolContainerView.dataArray = [items copy]; self.toolContainerView.title = @"Function"; + self.toolContainerView.hidden = items.count == 0; [items removeAllObjects]; - [items addObject:[[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionScreenshot]]; - [items addObject:[[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionHierarchy]]; - [items addObject:[[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionMagnifier]]; - [items addObject:[[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionRuler]]; - [items addObject:[[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionWidgetBorder]]; - [items addObject:[[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionHtml]]; + LLFunctionItemModel *screenshot = [[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionScreenshot]; + if (screenshot) { + [items addObject:screenshot]; + } + + LLFunctionItemModel *hierarchy = [[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionHierarchy]; + if (hierarchy) { + [items addObject:hierarchy]; + } + + LLFunctionItemModel *magnifier = [[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionMagnifier]; + if (magnifier) { + [items addObject:magnifier]; + } + + LLFunctionItemModel *ruler = [[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionRuler]; + if (ruler) { + [items addObject:ruler]; + } + + LLFunctionItemModel *widgetBorder = [[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionWidgetBorder]; + if (widgetBorder) { + [items addObject:widgetBorder]; + } + + LLFunctionItemModel *html = [[LLFunctionItemModel alloc] initWithAction:LLDebugToolActionHtml]; + if (html) { + [items addObject:html]; + } self.shortCutContainerView.dataArray = [items copy]; self.shortCutContainerView.title = @"Short Cut"; + self.shortCutContainerView.hidden = items.count == 0; + + [items removeAllObjects]; } #pragma mark - LLFunctionContainerViewDelegate diff --git a/LLDebugTool/Core/Others/Component/Setting/UserInterface/LLSettingViewController.m b/LLDebugTool/Core/Others/Component/Setting/UserInterface/LLSettingViewController.m index a543898f..96c9b5d6 100644 --- a/LLDebugTool/Core/Others/Component/Setting/UserInterface/LLSettingViewController.m +++ b/LLDebugTool/Core/Others/Component/Setting/UserInterface/LLSettingViewController.m @@ -38,19 +38,6 @@ #import "UIViewController+LL_Utils.h" -#ifdef LLDEBUGTOOL_LOG -#import "LLConfigHelper+Log.h" -#import "LLConfig+Log.h" -#endif - -#ifdef LLDEBUGTOOL_MAGNIFIER -#import "LLConfig+Magnifier.h" -#endif - -#ifdef LLDEBUGTOOL_HIERARCHY -#import "LLConfig+Hierarchy.h" -#endif - @interface LLSettingViewController () @end @@ -103,6 +90,13 @@ - (void)loadData { [settings removeAllObjects]; [self.dataArray addObject:category3]; #endif +#ifdef LLDEBUGTOOL_HIERARCHY + // Hierarchy + [settings addObject:[self getHierarchyIgnorePrivateClassModel]]; + LLTitleCellCategoryModel *category5 = [[LLTitleCellCategoryModel alloc] initWithTitle:@"Hierarchy" items:settings]; + [settings removeAllObjects]; + [self.dataArray addObject:category5]; +#endif #ifdef LLDEBUGTOOL_MAGNIFIER // Magnifier [settings addObject:[self getMagnifierZoomLevelModel]]; @@ -110,13 +104,6 @@ - (void)loadData { LLTitleCellCategoryModel *category4 = [[LLTitleCellCategoryModel alloc] initWithTitle:@"Magnifier" items:settings]; [settings removeAllObjects]; [self.dataArray addObject:category4]; -#endif -#ifdef LLDEBUGTOOL_HIERARCHY - // Hierarchy - [settings addObject:[self getHierarchyIgnorePrivateClassModel]]; - LLTitleCellCategoryModel *category5 = [[LLTitleCellCategoryModel alloc] initWithTitle:@"Hierarchy" items:settings]; - [settings removeAllObjects]; - [self.dataArray addObject:category5]; #endif [self.tableView reloadData]; } @@ -136,15 +123,17 @@ - (LLTitleCellModel *)getDoubleClickComponentModel { - (void)showDoubleClickAlert { NSMutableArray *actions = [[NSMutableArray alloc] init]; + __block NSMutableArray *indexs = [[NSMutableArray alloc] init]; for (NSInteger i = LLDebugToolActionSetting; i < LLDebugToolActionWidgetBorder + 1; i++) { NSString *action = [LLConfigHelper componentDescription:i]; if (action) { [actions addObject:action]; + [indexs addObject:@(i)]; } } __weak typeof(self) weakSelf = self; [self LL_showActionSheetWithTitle:@"Double Click Event" actions:actions currentAction:[LLConfigHelper doubleClickComponentDescription] completion:^(NSInteger index) { - [weakSelf setNewDoubleClick:index + LLDebugToolActionSetting]; + [weakSelf setNewDoubleClick:[indexs[index] unsignedIntegerValue]]; }]; } diff --git a/LLDebugTool/Core/Others/ConfigHelper/LLConfigHelper.h b/LLDebugTool/Core/Others/ConfigHelper/LLConfigHelper.h index ed502136..d9597c8e 100644 --- a/LLDebugTool/Core/Others/ConfigHelper/LLConfigHelper.h +++ b/LLDebugTool/Core/Others/ConfigHelper/LLConfigHelper.h @@ -48,6 +48,10 @@ NS_ASSUME_NONNULL_BEGIN + (NSString *)statusBarStyleDescription:(UIStatusBarStyle)statusBarStyle; ++ (NSString *)logStyleDescription; + ++ (NSString *)logStyleDescription:(LLConfigLogStyle)style; + + (NSString *)doubleClickComponentDescription; + (NSString *)componentDescription:(LLDebugToolAction)action; diff --git a/LLDebugTool/Core/Others/ConfigHelper/LLConfigHelper.m b/LLDebugTool/Core/Others/ConfigHelper/LLConfigHelper.m index be99a882..a5545218 100644 --- a/LLDebugTool/Core/Others/ConfigHelper/LLConfigHelper.m +++ b/LLDebugTool/Core/Others/ConfigHelper/LLConfigHelper.m @@ -112,6 +112,25 @@ + (NSString *)statusBarStyleDescription:(UIStatusBarStyle)statusBarStyle { return nil; } ++ (NSString *)logStyleDescription { + return [self logStyleDescription:[LLConfig shared].logStyle]; +} + ++ (NSString *)logStyleDescription:(LLConfigLogStyle)style { + switch (style) { + case LLConfigLogDetail: + return @"Detail"; + case LLConfigLogFileFuncDesc: + return @"File Func Desc"; + case LLConfigLogFileDesc: + return @"File Desc"; + case LLConfigLogNormal: + return @"Normal"; + case LLConfigLogNone: + return @"None"; + } +} + + (NSString *)doubleClickComponentDescription { return [self componentDescription:[LLConfig shared].doubleClickAction]; } diff --git a/LLDebugTool/Core/Others/Manager/SettingManager/LLSettingManager.m b/LLDebugTool/Core/Others/Manager/SettingManager/LLSettingManager.m index e1847412..131591f6 100644 --- a/LLDebugTool/Core/Others/Manager/SettingManager/LLSettingManager.m +++ b/LLDebugTool/Core/Others/Manager/SettingManager/LLSettingManager.m @@ -25,30 +25,10 @@ #import "LLFunctionComponent.h" #import "LLConfig.h" +#import "LLRouter.h" #import "LLConst.h" #import "NSUserDefaults+LL_Utils.h" -#import "LLRouter.h" - -#ifdef LLDEBUGTOOL_LOG -#import "LLConfig+Log.h" -#endif - -#ifdef LLDEBUGTOOL_MAGNIFIER -#import "LLConfig+Magnifier.h" -#endif - -#ifdef LLDEBUGTOOL_HIERARCHY -#import "LLConfig+Hierarchy.h" -#endif - -#ifdef LLDEBUGTOOL_WIDGET_BORDER -#import "LLConfig+WidgetBorder.h" -#endif - -#ifdef LLDEBUGTOOL_LOCATION -#import "LLConfig+Location.h" -#endif static LLSettingManager *_instance = nil; diff --git a/LLDebugTool/DebugTool/LLConfig.h b/LLDebugTool/DebugTool/LLConfig.h index 051f6368..7b69b400 100644 --- a/LLDebugTool/DebugTool/LLConfig.h +++ b/LLDebugTool/DebugTool/LLConfig.h @@ -135,6 +135,38 @@ typedef NS_ENUM(NSUInteger, LLDebugToolAction) { LLDebugToolActionLocation }; +/** + Log style for [LLDebugTool logInFile...]. Customize the log you want. + + - LLConfigLogDetail: Show all detail info. Contain event, file, line, func, date and desc. + - LLConfigLogFileFuncDesc : Show with event, file, func and desc. + - LLConfigLogFileDesc : Show with event, file and desc. + - LLConfigLogNormal: Show as system NSLog + - LLConfigLogNone: Don't show anything. + */ +typedef NS_ENUM(NSUInteger, LLConfigLogStyle) { + LLConfigLogDetail, + LLConfigLogFileFuncDesc, + LLConfigLogFileDesc, + LLConfigLogNormal, + LLConfigLogNone, +}; + +/** + Log Level. It can be used for filter. + + - LLConfigLogLevelDefault: Use to save message or note. + - LLConfigLogLevelAlert: Use to save alert message. + - LLConfigLogLevelWarning: Use to save warning message. + - LLConfigLogLevelError: Use to save error message. + */ +typedef NS_ENUM(NSUInteger, LLConfigLogLevel) { + LLConfigLogLevelDefault, + LLConfigLogLevelAlert, + LLConfigLogLevelWarning, + LLConfigLogLevelError, +}; + FOUNDATION_EXPORT NSNotificationName _Nonnull const LLConfigDidUpdateWindowStyleNotificationName; NS_ASSUME_NONNULL_BEGIN @@ -207,6 +239,73 @@ NS_ASSUME_NONNULL_BEGIN */ - (void)configStatusBarStyle:(UIStatusBarStyle)statusBarStyle; +#pragma mark - Network +/** + Observer network in hosts, ignore others. + */ +@property (nonatomic, strong, nullable) NSArray *observerdHosts; + +/** + Ignored hosts, low level than observerdHosts. + */ +@property (nonatomic, strong, nullable) NSArray *ignoredHosts; + +/** + Whether observer webView request. + */ +@property (nonatomic, assign) BOOL observerWebView; + +#pragma mark - Log +/** + Customize the log style. Default is LLConfigLogDetail. + */ +@property (nonatomic, assign) LLConfigLogStyle logStyle; + +#pragma mark - Hierarchy +/** + Hierarchy function ignore private class or not. + */ +@property (nonatomic, assign, getter=isHierarchyIgnorePrivateClass) BOOL hierarchyIgnorePrivateClass; + +#pragma mark - Magnifier +/** + Magnifier window zoom level, number of pixels per color, default is kLLMagnifierWindowZoomLevel. + */ +@property (nonatomic, assign) NSInteger magnifierZoomLevel; + +/** + Number of rows per magnifier window, default is kLLMagnifierWindowSize. + */ +@property (nonatomic, assign) NSInteger magnifierSize; + +#pragma mark - Widget Border +/** +Whether show widget border. Default is NO. +*/ +@property (nonatomic, assign, getter=isShowWidgetBorder) BOOL showWidgetBorder; + +#pragma mark - Html +/** + Default html5 url string used in Html function. must has prefix with http:// or https:// + */ +@property (nonatomic, copy, nullable) NSString *defaultHtmlUrl; + +/** + Custom view controller used in html function. you can use your custom viewController to dynamic debug your web view. must comply with `LLComponentDelegate`. ViewController must set background color. + */ +@property (nonatomic, copy, nullable) UIViewController *(^htmlViewControllerProvider)(NSString * _Nullable url); + +#pragma mark - Location +/** + Mock location latitude. + */ +@property (nonatomic, assign) double mockLocationLatitude; + +/** + Mock location longitude. + */ +@property (nonatomic, assign) double mockLocationLongitude; + #pragma mark - Date Formatter /** Date Format Style. Use to recording time when create model. Default is "yyyy-MM-dd HH:mm:ss". diff --git a/LLDebugTool/DebugTool/LLConfig.m b/LLDebugTool/DebugTool/LLConfig.m index 524cd880..5fa68022 100644 --- a/LLDebugTool/DebugTool/LLConfig.m +++ b/LLDebugTool/DebugTool/LLConfig.m @@ -27,16 +27,10 @@ #import "LLDebugTool.h" #import "LLFactory.h" #import "LLRouter.h" +#import "LLConfig.h" #import "LLConst.h" #import "LLTool.h" -#ifdef LLDEBUGTOOL_MAGNIFIER -#import "LLConfig+Magnifier.h" -#endif -#ifdef LLDEBUGTOOL_HIERARCHY -#import "LLConfig+Hierarchy.h" -#endif - static LLConfig *_instance = nil; NSNotificationName const LLConfigDidUpdateWindowStyleNotificationName = @"LLConfigDidUpdateWindowStyleNotificationName"; @@ -121,6 +115,16 @@ - (void)setEntryWindowDisplayPercent:(CGFloat)entryWindowDisplayPercent { _entryWindowDisplayPercent = MIN(MAX(entryWindowDisplayPercent, kLLEntryWindowMinDisplayPercent), kLLEntryWindowMaxDisplayPercent); } +- (void)setMagnifierSize:(NSInteger)magnifierSize { + if (_magnifierSize != magnifierSize) { + if (magnifierSize % 2 == 0) { + _magnifierSize = magnifierSize + 1; + } else { + _magnifierSize = magnifierSize; + } + } +} + #pragma mark - Primary /** Initialize something. diff --git a/LLDebugTool/DebugTool/LLDebugTool.h b/LLDebugTool/DebugTool/LLDebugTool.h index 8690f13e..6988d986 100644 --- a/LLDebugTool/DebugTool/LLDebugTool.h +++ b/LLDebugTool/DebugTool/LLDebugTool.h @@ -25,34 +25,6 @@ #import "LLConfig.h" -#ifdef LLDEBUGTOOL_NETWORK -#import "LLConfig+Network.h" -#endif - -#ifdef LLDEBUGTOOL_LOG -#import "LLConfig+Log.h" -#endif - -#ifdef LLDEBUGTOOL_HIERARCHY -#import "LLConfig+Hierarchy.h" -#endif - -#ifdef LLDEBUGTOOL_MAGNIFIER -#import "LLConfig+Magnifier.h" -#endif - -#ifdef LLDEBUGTOOL_WIDGET_BORDER -#import "LLConfig+WidgetBorder.h" -#endif - -#ifdef LLDEBUGTOOL_HTML -#import "LLConfig+Html.h" -#endif - -#ifdef LLDEBUGTOOL_LOCATION -#import "LLConfig+Location.h" -#endif - NS_ASSUME_NONNULL_BEGIN /** diff --git a/LLDebugTool/LLDebug.h b/LLDebugTool/LLDebug.h index 422756fa..9e31f447 100644 --- a/LLDebugTool/LLDebug.h +++ b/LLDebugTool/LLDebug.h @@ -28,32 +28,4 @@ #import "LLDebugTool.h" #import "LLDebugToolMacros.h" -#ifdef LLDEBUGTOOL_NETWORK -#import "LLConfig+Network.h" -#endif - -#ifdef LLDEBUGTOOL_LOG -#import "LLConfig+Log.h" -#endif - -#ifdef LLDEBUGTOOL_HIERARCHY -#import "LLConfig+Hierarchy.h" -#endif - -#ifdef LLDEBUGTOOL_MAGNIFIER -#import "LLConfig+Magnifier.h" -#endif - -#ifdef LLDEBUGTOOL_WIDGET_BORDER -#import "LLConfig+WidgetBorder.h" -#endif - -#ifdef LLDEBUGTOOL_HTML -#import "LLConfig+Html.h" -#endif - -#ifdef LLDEBUGTOOL_LOCATION -#import "LLConfig+Location.h" -#endif - #endif /* LLDebug_h */ diff --git a/LLDebugToolDemo.xcodeproj/project.pbxproj b/LLDebugToolDemo.xcodeproj/project.pbxproj index d9b6fa2d..3b814876 100644 --- a/LLDebugToolDemo.xcodeproj/project.pbxproj +++ b/LLDebugToolDemo.xcodeproj/project.pbxproj @@ -51,13 +51,6 @@ 363158972356C37A003DEF8C /* NSInputStream+LL_Network.m in Sources */ = {isa = PBXBuildFile; fileRef = 363158962356C37A003DEF8C /* NSInputStream+LL_Network.m */; }; 3633F584232F395100C62185 /* LLWidgetBorderComponent.m in Sources */ = {isa = PBXBuildFile; fileRef = 3633F583232F395100C62185 /* LLWidgetBorderComponent.m */; }; 363DEC532325DFE90090E78C /* LLTitleSliderCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 363DEC522325DFE90090E78C /* LLTitleSliderCell.m */; }; - 363F01F4238541A900631D2E /* LLConfig+Log.m in Sources */ = {isa = PBXBuildFile; fileRef = 363F01F3238541A900631D2E /* LLConfig+Log.m */; }; - 363F01F72385428500631D2E /* LLConfigHelper+Log.m in Sources */ = {isa = PBXBuildFile; fileRef = 363F01F62385428500631D2E /* LLConfigHelper+Log.m */; }; - 363F01FB238546B700631D2E /* LLConfig+Magnifier.m in Sources */ = {isa = PBXBuildFile; fileRef = 363F01FA238546B700631D2E /* LLConfig+Magnifier.m */; }; - 363F01FE23854A1000631D2E /* LLConfig+Network.m in Sources */ = {isa = PBXBuildFile; fileRef = 363F01FD23854A1000631D2E /* LLConfig+Network.m */; }; - 363F020123854B5B00631D2E /* LLConfig+Hierarchy.m in Sources */ = {isa = PBXBuildFile; fileRef = 363F020023854B5B00631D2E /* LLConfig+Hierarchy.m */; }; - 363F020423854C9600631D2E /* LLConfig+WidgetBorder.m in Sources */ = {isa = PBXBuildFile; fileRef = 363F020323854C9600631D2E /* LLConfig+WidgetBorder.m */; }; - 363F020823854D7200631D2E /* LLConfig+Html.m in Sources */ = {isa = PBXBuildFile; fileRef = 363F020723854D7200631D2E /* LLConfig+Html.m */; }; 364570F72313B80800C29200 /* LICENSE in Resources */ = {isa = PBXBuildFile; fileRef = 364570F32313B80800C29200 /* LICENSE */; }; 364570F82313B80800C29200 /* README.md in Resources */ = {isa = PBXBuildFile; fileRef = 364570F42313B80800C29200 /* README.md */; }; 364570F92313B80800C29200 /* CHANGELOG.md in Resources */ = {isa = PBXBuildFile; fileRef = 364570F52313B80800C29200 /* CHANGELOG.md */; }; @@ -111,7 +104,6 @@ 36C9F80D237E8B2E0021BA2D /* LLDetailTitleCellView.m in Sources */ = {isa = PBXBuildFile; fileRef = 36C9F80C237E8B2E0021BA2D /* LLDetailTitleCellView.m */; }; 36C9F810237E8C8A0021BA2D /* LLTitleSwitchCellView.m in Sources */ = {isa = PBXBuildFile; fileRef = 36C9F80F237E8C8A0021BA2D /* LLTitleSwitchCellView.m */; }; 36C9F813237E9B1D0021BA2D /* LLAnnotation.m in Sources */ = {isa = PBXBuildFile; fileRef = 36C9F812237E9B1D0021BA2D /* LLAnnotation.m */; }; - 36CA97BF238619C50004D884 /* LLConfig+Location.m in Sources */ = {isa = PBXBuildFile; fileRef = 36CA97BE238619C50004D884 /* LLConfig+Location.m */; }; 36CD3A7123306D4B00C9C22C /* LLWidgetBorderWindow.m in Sources */ = {isa = PBXBuildFile; fileRef = 36CD3A7023306D4B00C9C22C /* LLWidgetBorderWindow.m */; }; 36CD3A7423306D6000C9C22C /* LLWidgetBorderViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 36CD3A7323306D6000C9C22C /* LLWidgetBorderViewController.m */; }; 36CD3A7823307BEA00C9C22C /* LLWidgetBorderHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = 36CD3A7723307BEA00C9C22C /* LLWidgetBorderHelper.m */; }; @@ -353,20 +345,6 @@ 3633F583232F395100C62185 /* LLWidgetBorderComponent.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LLWidgetBorderComponent.m; sourceTree = ""; }; 363DEC512325DFE90090E78C /* LLTitleSliderCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LLTitleSliderCell.h; sourceTree = ""; }; 363DEC522325DFE90090E78C /* LLTitleSliderCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LLTitleSliderCell.m; sourceTree = ""; }; - 363F01F2238541A900631D2E /* LLConfig+Log.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LLConfig+Log.h"; sourceTree = ""; }; - 363F01F3238541A900631D2E /* LLConfig+Log.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "LLConfig+Log.m"; sourceTree = ""; }; - 363F01F52385428500631D2E /* LLConfigHelper+Log.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LLConfigHelper+Log.h"; sourceTree = ""; }; - 363F01F62385428500631D2E /* LLConfigHelper+Log.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "LLConfigHelper+Log.m"; sourceTree = ""; }; - 363F01F9238546B700631D2E /* LLConfig+Magnifier.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LLConfig+Magnifier.h"; sourceTree = ""; }; - 363F01FA238546B700631D2E /* LLConfig+Magnifier.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "LLConfig+Magnifier.m"; sourceTree = ""; }; - 363F01FC23854A1000631D2E /* LLConfig+Network.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LLConfig+Network.h"; sourceTree = ""; }; - 363F01FD23854A1000631D2E /* LLConfig+Network.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "LLConfig+Network.m"; sourceTree = ""; }; - 363F01FF23854B5B00631D2E /* LLConfig+Hierarchy.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LLConfig+Hierarchy.h"; sourceTree = ""; }; - 363F020023854B5B00631D2E /* LLConfig+Hierarchy.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "LLConfig+Hierarchy.m"; sourceTree = ""; }; - 363F020223854C9600631D2E /* LLConfig+WidgetBorder.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LLConfig+WidgetBorder.h"; sourceTree = ""; }; - 363F020323854C9600631D2E /* LLConfig+WidgetBorder.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "LLConfig+WidgetBorder.m"; sourceTree = ""; }; - 363F020623854D7200631D2E /* LLConfig+Html.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LLConfig+Html.h"; sourceTree = ""; }; - 363F020723854D7200631D2E /* LLConfig+Html.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "LLConfig+Html.m"; sourceTree = ""; }; 364570F32313B80800C29200 /* LICENSE */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = LICENSE; sourceTree = ""; }; 364570F42313B80800C29200 /* README.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; 364570F52313B80800C29200 /* CHANGELOG.md */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = net.daringfireball.markdown; path = CHANGELOG.md; sourceTree = ""; }; @@ -482,8 +460,6 @@ 36C9F80F237E8C8A0021BA2D /* LLTitleSwitchCellView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LLTitleSwitchCellView.m; sourceTree = ""; }; 36C9F811237E9B1D0021BA2D /* LLAnnotation.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LLAnnotation.h; sourceTree = ""; }; 36C9F812237E9B1D0021BA2D /* LLAnnotation.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LLAnnotation.m; sourceTree = ""; }; - 36CA97BD238619C50004D884 /* LLConfig+Location.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "LLConfig+Location.h"; sourceTree = ""; }; - 36CA97BE238619C50004D884 /* LLConfig+Location.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = "LLConfig+Location.m"; sourceTree = ""; }; 36CD3A6F23306D4B00C9C22C /* LLWidgetBorderWindow.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LLWidgetBorderWindow.h; sourceTree = ""; }; 36CD3A7023306D4B00C9C22C /* LLWidgetBorderWindow.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = LLWidgetBorderWindow.m; sourceTree = ""; }; 36CD3A7223306D6000C9C22C /* LLWidgetBorderViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = LLWidgetBorderViewController.h; sourceTree = ""; }; @@ -952,24 +928,6 @@ path = WidgetBorder; sourceTree = ""; }; - 363F01F8238546A100631D2E /* Function */ = { - isa = PBXGroup; - children = ( - 363F01F9238546B700631D2E /* LLConfig+Magnifier.h */, - 363F01FA238546B700631D2E /* LLConfig+Magnifier.m */, - ); - path = Function; - sourceTree = ""; - }; - 363F020523854D6300631D2E /* Function */ = { - isa = PBXGroup; - children = ( - 363F020623854D7200631D2E /* LLConfig+Html.h */, - 363F020723854D7200631D2E /* LLConfig+Html.m */, - ); - path = Function; - sourceTree = ""; - }; 364CF3D6232656FC000B513F /* View */ = { isa = PBXGroup; children = ( @@ -1191,8 +1149,6 @@ 36C9F7F9237E7DD50021BA2D /* LLLocationHelper.m */, 361C383F23826B2000487FA4 /* LLLocationProxy.h */, 361C384023826B2000487FA4 /* LLLocationProxy.m */, - 36CA97BD238619C50004D884 /* LLConfig+Location.h */, - 36CA97BE238619C50004D884 /* LLConfig+Location.m */, ); path = Function; sourceTree = ""; @@ -1232,8 +1188,6 @@ 36CD3A7723307BEA00C9C22C /* LLWidgetBorderHelper.m */, 36CD3A7923307D2600C9C22C /* UIView+LLWidgetBorder.h */, 36CD3A7A23307D2600C9C22C /* UIView+LLWidgetBorder.m */, - 363F020223854C9600631D2E /* LLConfig+WidgetBorder.h */, - 363F020323854C9600631D2E /* LLConfig+WidgetBorder.m */, ); path = Function; sourceTree = ""; @@ -1241,7 +1195,6 @@ 36CDFBC323506361002A913F /* Html */ = { isa = PBXGroup; children = ( - 363F020523854D6300631D2E /* Function */, 36CDFBC523506361002A913F /* UserInterface */, 36CDFBC623506374002A913F /* LLHtmlComponent.h */, 36CDFBC723506374002A913F /* LLHtmlComponent.m */, @@ -1708,8 +1661,6 @@ C49856C622ED90B400E9FBE2 /* LLHierarchyHelper.m */, 36E90D022339F4D400ED43B3 /* NSObject+LL_Hierarchy.h */, 36E90D032339F4D400ED43B3 /* NSObject+LL_Hierarchy.m */, - 363F01FF23854B5B00631D2E /* LLConfig+Hierarchy.h */, - 363F020023854B5B00631D2E /* LLConfig+Hierarchy.m */, ); path = Function; sourceTree = ""; @@ -1721,10 +1672,6 @@ C49856CF22ED90C800E9FBE2 /* LLLogHelper.m */, C49856CC22ED90C800E9FBE2 /* LLLogModel.h */, C49856CE22ED90C800E9FBE2 /* LLLogModel.m */, - 363F01F2238541A900631D2E /* LLConfig+Log.h */, - 363F01F3238541A900631D2E /* LLConfig+Log.m */, - 363F01F52385428500631D2E /* LLConfigHelper+Log.h */, - 363F01F62385428500631D2E /* LLConfigHelper+Log.m */, ); path = Function; sourceTree = ""; @@ -1745,8 +1692,6 @@ 36743D3F2313879700002A92 /* LLReachability.m */, C49856D622ED90DD00E9FBE2 /* LLURLProtocol.h */, C49856D522ED90DD00E9FBE2 /* LLURLProtocol.m */, - 363F01FC23854A1000631D2E /* LLConfig+Network.h */, - 363F01FD23854A1000631D2E /* LLConfig+Network.m */, ); path = Function; sourceTree = ""; @@ -1765,7 +1710,6 @@ C498571122EDE31200E9FBE2 /* Magnifier */ = { isa = PBXGroup; children = ( - 363F01F8238546A100631D2E /* Function */, C498571522EDE39700E9FBE2 /* UserInterface */, C498571222EDE35D00E9FBE2 /* LLMagnifierComponent.h */, C498571322EDE35D00E9FBE2 /* LLMagnifierComponent.m */, @@ -2438,7 +2382,6 @@ 364EF64B2322087C0067C7D7 /* LLAnimateView.m in Sources */, 3633F584232F395100C62185 /* LLWidgetBorderComponent.m in Sources */, 3629E3942136830A00226C79 /* TestWindowStyleViewController.m in Sources */, - 363F01FB238546B700631D2E /* LLConfig+Magnifier.m in Sources */, C4B4E44B22F9C90900F70277 /* NSObject+LL_Runtime.m in Sources */, C498570422EDB37200E9FBE2 /* LLNetworkWindow.m in Sources */, C4B4E44522F9C90900F70277 /* NSString+LL_Utils.m in Sources */, @@ -2478,7 +2421,6 @@ C49856DB22ED90DD00E9FBE2 /* LLNetworkHelper.m in Sources */, 36940514232636AC00C4B146 /* LLTitleSwitchCell.m in Sources */, C45537F622F1E486001A9749 /* LLHierarchyDetailViewController.m in Sources */, - 363F01F72385428500631D2E /* LLConfigHelper+Log.m in Sources */, C4B4E45822F9C90900F70277 /* LLFilterFilePickerView.m in Sources */, 36059409237AB26C00C2D8FF /* LLWindowManager+AppInfo.m in Sources */, 3629E3922136830A00226C79 /* BaseTestViewController.m in Sources */, @@ -2491,7 +2433,6 @@ 36B8563E237BA9F600210B94 /* LLRouter.m in Sources */, 36CDFBCB23506388002A913F /* LLHtmlWindow.m in Sources */, C49856D022ED90C800E9FBE2 /* LLLogModel.m in Sources */, - 363F01FE23854A1000631D2E /* LLConfig+Network.m in Sources */, 36596BC822FD065D00BBB6FA /* LLMoveView.m in Sources */, C4B4E47622F9C90900F70277 /* LLBaseTableViewCell.m in Sources */, 36596BCB22FD07B500BBB6FA /* LLMagnifierView.m in Sources */, @@ -2504,15 +2445,12 @@ C49856C122ED909F00E9FBE2 /* LLCrashHelper.m in Sources */, C4B4E47B22F9C90900F70277 /* LLTool.m in Sources */, 360AE6372330DC160073FECD /* LLSettingComponent.m in Sources */, - 363F020123854B5B00631D2E /* LLConfig+Hierarchy.m in Sources */, C4B4E45522F9C90900F70277 /* LLNoneCopyTextField.m in Sources */, 36A2524D237EA2A00082D408 /* LLPinAnnotationView.m in Sources */, - 36CA97BF238619C50004D884 /* LLConfig+Location.m in Sources */, C43BA81A205AB095006307BE /* main.m in Sources */, C4B4E44222F9C90900F70277 /* NSHTTPURLResponse+LL_Network.m in Sources */, C4B4E44A22F9C90900F70277 /* NSObject+LL_Utils.m in Sources */, C498569A22ED8D4800E9FBE2 /* LLCrashViewController.m in Sources */, - 363F01F4238541A900631D2E /* LLConfig+Log.m in Sources */, 36E493842303E7D700B89F41 /* LLFunctionComponent.m in Sources */, 36E90D042339F4D400ED43B3 /* NSObject+LL_Hierarchy.m in Sources */, 36AB449E231FC5D800AC772B /* LLTitleCellCategoryModel.m in Sources */, @@ -2565,13 +2503,11 @@ C4B4E46522F9C90900F70277 /* LLFunctionItemView.m in Sources */, 36A0007720BE863700AE8810 /* NetTool.m in Sources */, 360D8A5522FD70D3003693AE /* LLHierarchyInfoView.m in Sources */, - 363F020423854C9600631D2E /* LLConfig+WidgetBorder.m in Sources */, C4B4E44022F9C90900F70277 /* UIColor+LL_Utils.m in Sources */, 360AE63A2330DC620073FECD /* LLSettingWindow.m in Sources */, 36B8564A237BF0F800210B94 /* LLRouter+AppInfo.m in Sources */, C4B4E45C22F9C90900F70277 /* LLFilterDatePickerView.m in Sources */, 36DDED7623331967008DD7F9 /* LLDetailTitleCell.m in Sources */, - 363F020823854D7200631D2E /* LLConfig+Html.m in Sources */, 36CD3A7B23307D2600C9C22C /* UIView+LLWidgetBorder.m in Sources */, 36059415237AB7AC00C2D8FF /* LLWindowManager+Screenshot.m in Sources */, C4B4E44622F9C90900F70277 /* UIViewController+LL_Utils.m in Sources */,