diff --git a/SQManagement/SQManagement/Tools/SQAuthorizationTool.h b/SQLifestyle/SQExtension/SQAuthorizationTool.h similarity index 100% rename from SQManagement/SQManagement/Tools/SQAuthorizationTool.h rename to SQLifestyle/SQExtension/SQAuthorizationTool.h diff --git a/SQManagement/SQManagement/Tools/SQAuthorizationTool.m b/SQLifestyle/SQExtension/SQAuthorizationTool.m similarity index 100% rename from SQManagement/SQManagement/Tools/SQAuthorizationTool.m rename to SQLifestyle/SQExtension/SQAuthorizationTool.m diff --git a/SQManagement/Podfile b/SQManagement/Podfile deleted file mode 100644 index 83fb0fc0..00000000 --- a/SQManagement/Podfile +++ /dev/null @@ -1,10 +0,0 @@ -# Uncomment the next line to define a global platform for your project -# platform :ios, '9.0' - -target 'SQManagement' do - # Uncomment the next line if you're using Swift or would like to use dynamic frameworks - # use_frameworks! - - # Pods for SQManagement - -end diff --git a/SQManagement/Podfile.lock b/SQManagement/Podfile.lock deleted file mode 100644 index 9c60cfa8..00000000 --- a/SQManagement/Podfile.lock +++ /dev/null @@ -1,3 +0,0 @@ -PODFILE CHECKSUM: 3f7c4419b8b079eb1bc8490d3ee796bcbb510bb7 - -COCOAPODS: 1.8.1 diff --git a/SQManagement/SQManagement.xcodeproj/project.pbxproj b/SQManagement/SQManagement.xcodeproj/project.pbxproj deleted file mode 100644 index 37aa1577..00000000 --- a/SQManagement/SQManagement.xcodeproj/project.pbxproj +++ /dev/null @@ -1,615 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 50; - objects = { - -/* Begin PBXBuildFile section */ - 14040349233F887300D0BC12 /* SQTabBarController.m in Sources */ = {isa = PBXBuildFile; fileRef = 14040347233F887200D0BC12 /* SQTabBarController.m */; }; - 1404034A233F887300D0BC12 /* SQTabbarControllerAnimatedTransitioning.m in Sources */ = {isa = PBXBuildFile; fileRef = 14040348233F887200D0BC12 /* SQTabbarControllerAnimatedTransitioning.m */; }; - 140BBD162340550F0077E130 /* SQTimeEventsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 140BBD152340550F0077E130 /* SQTimeEventsViewController.m */; }; - 140BBD1E23408AED0077E130 /* SQConnectionEventsViewController.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 140BBD1D23408AED0077E130 /* SQConnectionEventsViewController.storyboard */; }; - 14233205233F923700D4FA3B /* SQConnectionModel.m in Sources */ = {isa = PBXBuildFile; fileRef = 14233204233F923700D4FA3B /* SQConnectionModel.m */; }; - 142787F3233CB4AB0000FEBB /* SQTimeViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 142787F2233CB4AB0000FEBB /* SQTimeViewController.m */; }; - 142787F6233CBC1F0000FEBB /* SQEnergyViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 142787F5233CBC1F0000FEBB /* SQEnergyViewController.m */; }; - 142787FC233CBC980000FEBB /* SQH1TitleViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 142787FB233CBC980000FEBB /* SQH1TitleViewController.m */; }; - 149AC8852339B92F009C88AB /* SQConnectionEventsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 149AC8842339B92F009C88AB /* SQConnectionEventsViewController.m */; }; - 149AC8882339BEE6009C88AB /* SQProfileHeaderView.m in Sources */ = {isa = PBXBuildFile; fileRef = 149AC8872339BEE6009C88AB /* SQProfileHeaderView.m */; }; - 149AC88A2339BEF1009C88AB /* SQProfileHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 149AC8892339BEF1009C88AB /* SQProfileHeaderView.xib */; }; - 149AC88E2339C146009C88AB /* SQConnectionPropertyCell.m in Sources */ = {isa = PBXBuildFile; fileRef = 149AC88C2339C146009C88AB /* SQConnectionPropertyCell.m */; }; - 149AC88F2339C146009C88AB /* SQConnectionPropertyCell.xib in Resources */ = {isa = PBXBuildFile; fileRef = 149AC88D2339C146009C88AB /* SQConnectionPropertyCell.xib */; }; - 149AC8982339F7D4009C88AB /* SQSearchInputView.m in Sources */ = {isa = PBXBuildFile; fileRef = 149AC8962339F7D4009C88AB /* SQSearchInputView.m */; }; - 149AC8992339F7D4009C88AB /* SQSearchInputView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 149AC8972339F7D4009C88AB /* SQSearchInputView.xib */; }; - 14D633B0233763FF004FD86A /* SQAuthorizationTool.m in Sources */ = {isa = PBXBuildFile; fileRef = 14D633AF233763FF004FD86A /* SQAuthorizationTool.m */; }; - 14DC37CB23374CFB00867A92 /* SQH1TitleView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 14DC37C923374CFB00867A92 /* SQH1TitleView.xib */; }; - 14DC37CC23374CFB00867A92 /* SQH1TitleView.m in Sources */ = {isa = PBXBuildFile; fileRef = 14DC37CA23374CFB00867A92 /* SQH1TitleView.m */; }; - 14DC37CF23374DC600867A92 /* SQConnectionsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 14DC37CE23374DC600867A92 /* SQConnectionsViewController.m */; }; - 14DC37DF23374FA500867A92 /* UIViewController+SQExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 14DC37D523374FA500867A92 /* UIViewController+SQExtension.m */; }; - 14DC37E023374FA500867A92 /* NSObject+SQExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 14DC37D823374FA500867A92 /* NSObject+SQExtension.m */; }; - 14DC37E123374FA500867A92 /* UIView+SQExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 14DC37D923374FA500867A92 /* UIView+SQExtension.m */; }; - 14DC37E223374FA500867A92 /* UIImage+SQExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 14DC37DB23374FA500867A92 /* UIImage+SQExtension.m */; }; - 14DC37E323374FA500867A92 /* UIColor+SQExtension.m in Sources */ = {isa = PBXBuildFile; fileRef = 14DC37DC23374FA500867A92 /* UIColor+SQExtension.m */; }; - 14DC37E72337509E00867A92 /* SQNavigationController.m in Sources */ = {isa = PBXBuildFile; fileRef = 14DC37E62337509E00867A92 /* SQNavigationController.m */; }; - 14E97DC72335014B004FC20D /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 14E97DC62335014B004FC20D /* AppDelegate.m */; }; - 14E97DCA2335014B004FC20D /* SceneDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 14E97DC92335014B004FC20D /* SceneDelegate.m */; }; - 14E97DD02335014B004FC20D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 14E97DCE2335014B004FC20D /* Main.storyboard */; }; - 14E97DD32335014B004FC20D /* SQManagement.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 14E97DD12335014B004FC20D /* SQManagement.xcdatamodeld */; }; - 14E97DD52335014C004FC20D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 14E97DD42335014C004FC20D /* Assets.xcassets */; }; - 14E97DD82335014C004FC20D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 14E97DD62335014C004FC20D /* LaunchScreen.storyboard */; }; - 14E97DDB2335014C004FC20D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 14E97DDA2335014C004FC20D /* main.m */; }; - 86281F350488505EC9276321 /* libPods-SQManagement.a in Frameworks */ = {isa = PBXBuildFile; fileRef = C91FED4AB00DF039B94EC2BE /* libPods-SQManagement.a */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - 14040345233F887200D0BC12 /* SQTabBarController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SQTabBarController.h; sourceTree = ""; }; - 14040346233F887200D0BC12 /* SQTabbarControllerAnimatedTransitioning.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SQTabbarControllerAnimatedTransitioning.h; sourceTree = ""; }; - 14040347233F887200D0BC12 /* SQTabBarController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SQTabBarController.m; sourceTree = ""; }; - 14040348233F887200D0BC12 /* SQTabbarControllerAnimatedTransitioning.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SQTabbarControllerAnimatedTransitioning.m; sourceTree = ""; }; - 140BBD142340550F0077E130 /* SQTimeEventsViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQTimeEventsViewController.h; sourceTree = ""; }; - 140BBD152340550F0077E130 /* SQTimeEventsViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQTimeEventsViewController.m; sourceTree = ""; }; - 140BBD1D23408AED0077E130 /* SQConnectionEventsViewController.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; path = SQConnectionEventsViewController.storyboard; sourceTree = ""; }; - 14233203233F923700D4FA3B /* SQConnectionModel.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQConnectionModel.h; sourceTree = ""; }; - 14233204233F923700D4FA3B /* SQConnectionModel.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQConnectionModel.m; sourceTree = ""; }; - 142787F1233CB4AB0000FEBB /* SQTimeViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQTimeViewController.h; sourceTree = ""; }; - 142787F2233CB4AB0000FEBB /* SQTimeViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQTimeViewController.m; sourceTree = ""; }; - 142787F4233CBC1F0000FEBB /* SQEnergyViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQEnergyViewController.h; sourceTree = ""; }; - 142787F5233CBC1F0000FEBB /* SQEnergyViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQEnergyViewController.m; sourceTree = ""; }; - 142787FA233CBC980000FEBB /* SQH1TitleViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQH1TitleViewController.h; sourceTree = ""; }; - 142787FB233CBC980000FEBB /* SQH1TitleViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQH1TitleViewController.m; sourceTree = ""; }; - 149AC8832339B92F009C88AB /* SQConnectionEventsViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQConnectionEventsViewController.h; sourceTree = ""; }; - 149AC8842339B92F009C88AB /* SQConnectionEventsViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQConnectionEventsViewController.m; sourceTree = ""; }; - 149AC8862339BEE6009C88AB /* SQProfileHeaderView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQProfileHeaderView.h; sourceTree = ""; }; - 149AC8872339BEE6009C88AB /* SQProfileHeaderView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQProfileHeaderView.m; sourceTree = ""; }; - 149AC8892339BEF1009C88AB /* SQProfileHeaderView.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SQProfileHeaderView.xib; sourceTree = ""; }; - 149AC88B2339C146009C88AB /* SQConnectionPropertyCell.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQConnectionPropertyCell.h; sourceTree = ""; }; - 149AC88C2339C146009C88AB /* SQConnectionPropertyCell.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQConnectionPropertyCell.m; sourceTree = ""; }; - 149AC88D2339C146009C88AB /* SQConnectionPropertyCell.xib */ = {isa = PBXFileReference; lastKnownFileType = file.xib; path = SQConnectionPropertyCell.xib; sourceTree = ""; }; - 149AC8952339F7D4009C88AB /* SQSearchInputView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SQSearchInputView.h; sourceTree = ""; }; - 149AC8962339F7D4009C88AB /* SQSearchInputView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SQSearchInputView.m; sourceTree = ""; }; - 149AC8972339F7D4009C88AB /* SQSearchInputView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SQSearchInputView.xib; sourceTree = ""; }; - 14D633AE233763FF004FD86A /* SQAuthorizationTool.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQAuthorizationTool.h; sourceTree = ""; }; - 14D633AF233763FF004FD86A /* SQAuthorizationTool.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQAuthorizationTool.m; sourceTree = ""; }; - 14DC37C823374CFB00867A92 /* SQH1TitleView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SQH1TitleView.h; sourceTree = ""; }; - 14DC37C923374CFB00867A92 /* SQH1TitleView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = SQH1TitleView.xib; sourceTree = ""; }; - 14DC37CA23374CFB00867A92 /* SQH1TitleView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SQH1TitleView.m; sourceTree = ""; }; - 14DC37CD23374DC600867A92 /* SQConnectionsViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SQConnectionsViewController.h; sourceTree = ""; }; - 14DC37CE23374DC600867A92 /* SQConnectionsViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SQConnectionsViewController.m; sourceTree = ""; }; - 14DC37D523374FA500867A92 /* UIViewController+SQExtension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIViewController+SQExtension.m"; sourceTree = ""; }; - 14DC37D623374FA500867A92 /* UIColor+SQExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIColor+SQExtension.h"; sourceTree = ""; }; - 14DC37D723374FA500867A92 /* UIImage+SQExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIImage+SQExtension.h"; sourceTree = ""; }; - 14DC37D823374FA500867A92 /* NSObject+SQExtension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "NSObject+SQExtension.m"; sourceTree = ""; }; - 14DC37D923374FA500867A92 /* UIView+SQExtension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIView+SQExtension.m"; sourceTree = ""; }; - 14DC37DA23374FA500867A92 /* UIViewController+SQExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIViewController+SQExtension.h"; sourceTree = ""; }; - 14DC37DB23374FA500867A92 /* UIImage+SQExtension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIImage+SQExtension.m"; sourceTree = ""; }; - 14DC37DC23374FA500867A92 /* UIColor+SQExtension.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIColor+SQExtension.m"; sourceTree = ""; }; - 14DC37DD23374FA500867A92 /* UIView+SQExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIView+SQExtension.h"; sourceTree = ""; }; - 14DC37DE23374FA500867A92 /* NSObject+SQExtension.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "NSObject+SQExtension.h"; sourceTree = ""; }; - 14DC37E52337509E00867A92 /* SQNavigationController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SQNavigationController.h; sourceTree = ""; }; - 14DC37E62337509E00867A92 /* SQNavigationController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SQNavigationController.m; sourceTree = ""; }; - 14E97DC22335014B004FC20D /* SQManagement.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SQManagement.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 14E97DC52335014B004FC20D /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = ""; }; - 14E97DC62335014B004FC20D /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = ""; }; - 14E97DC82335014B004FC20D /* SceneDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = SceneDelegate.h; sourceTree = ""; }; - 14E97DC92335014B004FC20D /* SceneDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = SceneDelegate.m; sourceTree = ""; }; - 14E97DCF2335014B004FC20D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - 14E97DD22335014B004FC20D /* SQManagement.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = SQManagement.xcdatamodel; sourceTree = ""; }; - 14E97DD42335014C004FC20D /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 14E97DD72335014C004FC20D /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - 14E97DD92335014C004FC20D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 14E97DDA2335014C004FC20D /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; - 89A0EA0199FF65AB661C1245 /* Pods-SQManagement.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SQManagement.release.xcconfig"; path = "Pods/Target Support Files/Pods-SQManagement/Pods-SQManagement.release.xcconfig"; sourceTree = ""; }; - 99BE157C243BF020FE69E727 /* Pods-SQManagement.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-SQManagement.debug.xcconfig"; path = "Pods/Target Support Files/Pods-SQManagement/Pods-SQManagement.debug.xcconfig"; sourceTree = ""; }; - C91FED4AB00DF039B94EC2BE /* libPods-SQManagement.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-SQManagement.a"; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 14E97DBF2335014B004FC20D /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - 86281F350488505EC9276321 /* libPods-SQManagement.a in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 140BBD1F23408B660077E130 /* Connections */ = { - isa = PBXGroup; - children = ( - 14233203233F923700D4FA3B /* SQConnectionModel.h */, - 14233204233F923700D4FA3B /* SQConnectionModel.m */, - 149AC88B2339C146009C88AB /* SQConnectionPropertyCell.h */, - 149AC88C2339C146009C88AB /* SQConnectionPropertyCell.m */, - 149AC88D2339C146009C88AB /* SQConnectionPropertyCell.xib */, - 14DC37CD23374DC600867A92 /* SQConnectionsViewController.h */, - 14DC37CE23374DC600867A92 /* SQConnectionsViewController.m */, - 149AC8832339B92F009C88AB /* SQConnectionEventsViewController.h */, - 149AC8842339B92F009C88AB /* SQConnectionEventsViewController.m */, - 140BBD1D23408AED0077E130 /* SQConnectionEventsViewController.storyboard */, - ); - path = Connections; - sourceTree = ""; - }; - 14CA7F0723408C6A00910428 /* Time */ = { - isa = PBXGroup; - children = ( - 142787F1233CB4AB0000FEBB /* SQTimeViewController.h */, - 142787F2233CB4AB0000FEBB /* SQTimeViewController.m */, - 140BBD142340550F0077E130 /* SQTimeEventsViewController.h */, - 140BBD152340550F0077E130 /* SQTimeEventsViewController.m */, - ); - path = Time; - sourceTree = ""; - }; - 14CA7F0823408C7E00910428 /* Energy */ = { - isa = PBXGroup; - children = ( - 142787F4233CBC1F0000FEBB /* SQEnergyViewController.h */, - 142787F5233CBC1F0000FEBB /* SQEnergyViewController.m */, - ); - path = Energy; - sourceTree = ""; - }; - 14D633B123376549004FD86A /* Tools */ = { - isa = PBXGroup; - children = ( - 14D633AE233763FF004FD86A /* SQAuthorizationTool.h */, - 14D633AF233763FF004FD86A /* SQAuthorizationTool.m */, - ); - path = Tools; - sourceTree = ""; - }; - 14DC37D023374F6E00867A92 /* Coms */ = { - isa = PBXGroup; - children = ( - 142787FA233CBC980000FEBB /* SQH1TitleViewController.h */, - 142787FB233CBC980000FEBB /* SQH1TitleViewController.m */, - ); - path = Coms; - sourceTree = ""; - }; - 14DC37D123374F7700867A92 /* Main */ = { - isa = PBXGroup; - children = ( - 14E97DC52335014B004FC20D /* AppDelegate.h */, - 14E97DC62335014B004FC20D /* AppDelegate.m */, - 14E97DC82335014B004FC20D /* SceneDelegate.h */, - 14E97DC92335014B004FC20D /* SceneDelegate.m */, - 14DC37E52337509E00867A92 /* SQNavigationController.h */, - 14DC37E62337509E00867A92 /* SQNavigationController.m */, - 14040345233F887200D0BC12 /* SQTabBarController.h */, - 14040347233F887200D0BC12 /* SQTabBarController.m */, - 14040346233F887200D0BC12 /* SQTabbarControllerAnimatedTransitioning.h */, - 14040348233F887200D0BC12 /* SQTabbarControllerAnimatedTransitioning.m */, - ); - path = Main; - sourceTree = ""; - }; - 14DC37D423374FA500867A92 /* SQExtension */ = { - isa = PBXGroup; - children = ( - 14DC37D523374FA500867A92 /* UIViewController+SQExtension.m */, - 14DC37DA23374FA500867A92 /* UIViewController+SQExtension.h */, - 14DC37D623374FA500867A92 /* UIColor+SQExtension.h */, - 14DC37DC23374FA500867A92 /* UIColor+SQExtension.m */, - 14DC37D723374FA500867A92 /* UIImage+SQExtension.h */, - 14DC37DB23374FA500867A92 /* UIImage+SQExtension.m */, - 14DC37DD23374FA500867A92 /* UIView+SQExtension.h */, - 14DC37D923374FA500867A92 /* UIView+SQExtension.m */, - 14DC37DE23374FA500867A92 /* NSObject+SQExtension.h */, - 14DC37D823374FA500867A92 /* NSObject+SQExtension.m */, - ); - path = SQExtension; - sourceTree = ""; - }; - 14DC37E423374FC300867A92 /* UI */ = { - isa = PBXGroup; - children = ( - 149AC8952339F7D4009C88AB /* SQSearchInputView.h */, - 149AC8962339F7D4009C88AB /* SQSearchInputView.m */, - 149AC8972339F7D4009C88AB /* SQSearchInputView.xib */, - 14DC37C823374CFB00867A92 /* SQH1TitleView.h */, - 14DC37CA23374CFB00867A92 /* SQH1TitleView.m */, - 14DC37C923374CFB00867A92 /* SQH1TitleView.xib */, - 149AC8862339BEE6009C88AB /* SQProfileHeaderView.h */, - 149AC8872339BEE6009C88AB /* SQProfileHeaderView.m */, - 149AC8892339BEF1009C88AB /* SQProfileHeaderView.xib */, - ); - path = UI; - sourceTree = ""; - }; - 14E97DB92335014B004FC20D = { - isa = PBXGroup; - children = ( - 14E97DC42335014B004FC20D /* SQManagement */, - 14E97DC32335014B004FC20D /* Products */, - FA6EE21F06D0877937ED8617 /* Pods */, - F3A90838C4773BFF69463DAE /* Frameworks */, - ); - sourceTree = ""; - }; - 14E97DC32335014B004FC20D /* Products */ = { - isa = PBXGroup; - children = ( - 14E97DC22335014B004FC20D /* SQManagement.app */, - ); - name = Products; - sourceTree = ""; - }; - 14E97DC42335014B004FC20D /* SQManagement */ = { - isa = PBXGroup; - children = ( - 14DC37D123374F7700867A92 /* Main */, - 14DC37D023374F6E00867A92 /* Coms */, - 14D633B123376549004FD86A /* Tools */, - 14DC37E423374FC300867A92 /* UI */, - 140BBD1F23408B660077E130 /* Connections */, - 14CA7F0723408C6A00910428 /* Time */, - 14CA7F0823408C7E00910428 /* Energy */, - 14DC37D423374FA500867A92 /* SQExtension */, - 14E97DCE2335014B004FC20D /* Main.storyboard */, - 14E97DD42335014C004FC20D /* Assets.xcassets */, - 14E97DD62335014C004FC20D /* LaunchScreen.storyboard */, - 14E97DD92335014C004FC20D /* Info.plist */, - 14E97DDA2335014C004FC20D /* main.m */, - 14E97DD12335014B004FC20D /* SQManagement.xcdatamodeld */, - ); - path = SQManagement; - sourceTree = ""; - }; - F3A90838C4773BFF69463DAE /* Frameworks */ = { - isa = PBXGroup; - children = ( - C91FED4AB00DF039B94EC2BE /* libPods-SQManagement.a */, - ); - name = Frameworks; - sourceTree = ""; - }; - FA6EE21F06D0877937ED8617 /* Pods */ = { - isa = PBXGroup; - children = ( - 99BE157C243BF020FE69E727 /* Pods-SQManagement.debug.xcconfig */, - 89A0EA0199FF65AB661C1245 /* Pods-SQManagement.release.xcconfig */, - ); - name = Pods; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 14E97DC12335014B004FC20D /* SQManagement */ = { - isa = PBXNativeTarget; - buildConfigurationList = 14E97DDE2335014C004FC20D /* Build configuration list for PBXNativeTarget "SQManagement" */; - buildPhases = ( - C9ECDFE4EE3D424B8EB4AC79 /* [CP] Check Pods Manifest.lock */, - 14E97DBE2335014B004FC20D /* Sources */, - 14E97DBF2335014B004FC20D /* Frameworks */, - 14E97DC02335014B004FC20D /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = SQManagement; - productName = SQManagement; - productReference = 14E97DC22335014B004FC20D /* SQManagement.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 14E97DBA2335014B004FC20D /* Project object */ = { - isa = PBXProject; - attributes = { - LastUpgradeCheck = 1100; - ORGANIZATIONNAME = "Castie!"; - TargetAttributes = { - 14E97DC12335014B004FC20D = { - CreatedOnToolsVersion = 11.0; - }; - }; - }; - buildConfigurationList = 14E97DBD2335014B004FC20D /* Build configuration list for PBXProject "SQManagement" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = 14E97DB92335014B004FC20D; - productRefGroup = 14E97DC32335014B004FC20D /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 14E97DC12335014B004FC20D /* SQManagement */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 14E97DC02335014B004FC20D /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 149AC8992339F7D4009C88AB /* SQSearchInputView.xib in Resources */, - 14DC37CB23374CFB00867A92 /* SQH1TitleView.xib in Resources */, - 140BBD1E23408AED0077E130 /* SQConnectionEventsViewController.storyboard in Resources */, - 14E97DD82335014C004FC20D /* LaunchScreen.storyboard in Resources */, - 14E97DD52335014C004FC20D /* Assets.xcassets in Resources */, - 14E97DD02335014B004FC20D /* Main.storyboard in Resources */, - 149AC88A2339BEF1009C88AB /* SQProfileHeaderView.xib in Resources */, - 149AC88F2339C146009C88AB /* SQConnectionPropertyCell.xib in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - C9ECDFE4EE3D424B8EB4AC79 /* [CP] Check Pods Manifest.lock */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputFileListPaths = ( - ); - inputPaths = ( - "${PODS_PODFILE_DIR_PATH}/Podfile.lock", - "${PODS_ROOT}/Manifest.lock", - ); - name = "[CP] Check Pods Manifest.lock"; - outputFileListPaths = ( - ); - outputPaths = ( - "$(DERIVED_FILE_DIR)/Pods-SQManagement-checkManifestLockResult.txt", - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/sh; - shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n"; - showEnvVarsInLog = 0; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 14E97DBE2335014B004FC20D /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 14DC37E123374FA500867A92 /* UIView+SQExtension.m in Sources */, - 140BBD162340550F0077E130 /* SQTimeEventsViewController.m in Sources */, - 14E97DDB2335014C004FC20D /* main.m in Sources */, - 14DC37E323374FA500867A92 /* UIColor+SQExtension.m in Sources */, - 14DC37E72337509E00867A92 /* SQNavigationController.m in Sources */, - 14DC37DF23374FA500867A92 /* UIViewController+SQExtension.m in Sources */, - 14E97DC72335014B004FC20D /* AppDelegate.m in Sources */, - 149AC88E2339C146009C88AB /* SQConnectionPropertyCell.m in Sources */, - 14E97DD32335014B004FC20D /* SQManagement.xcdatamodeld in Sources */, - 14DC37CC23374CFB00867A92 /* SQH1TitleView.m in Sources */, - 149AC8982339F7D4009C88AB /* SQSearchInputView.m in Sources */, - 14040349233F887300D0BC12 /* SQTabBarController.m in Sources */, - 14D633B0233763FF004FD86A /* SQAuthorizationTool.m in Sources */, - 14233205233F923700D4FA3B /* SQConnectionModel.m in Sources */, - 142787F6233CBC1F0000FEBB /* SQEnergyViewController.m in Sources */, - 142787F3233CB4AB0000FEBB /* SQTimeViewController.m in Sources */, - 149AC8882339BEE6009C88AB /* SQProfileHeaderView.m in Sources */, - 14DC37E023374FA500867A92 /* NSObject+SQExtension.m in Sources */, - 1404034A233F887300D0BC12 /* SQTabbarControllerAnimatedTransitioning.m in Sources */, - 14DC37CF23374DC600867A92 /* SQConnectionsViewController.m in Sources */, - 149AC8852339B92F009C88AB /* SQConnectionEventsViewController.m in Sources */, - 14E97DCA2335014B004FC20D /* SceneDelegate.m in Sources */, - 142787FC233CBC980000FEBB /* SQH1TitleViewController.m in Sources */, - 14DC37E223374FA500867A92 /* UIImage+SQExtension.m in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 14E97DCE2335014B004FC20D /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 14E97DCF2335014B004FC20D /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; - 14E97DD62335014C004FC20D /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 14E97DD72335014C004FC20D /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 14E97DDC2335014C004FC20D /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - }; - name = Debug; - }; - 14E97DDD2335014C004FC20D /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - SDKROOT = iphoneos; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - 14E97DDF2335014C004FC20D /* Debug */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 99BE157C243BF020FE69E727 /* Pods-SQManagement.debug.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = BMZP26248F; - INFOPLIST_FILE = SQManagement/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = coderZsq.SQManagement; - PRODUCT_NAME = "$(TARGET_NAME)"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - 14E97DE02335014C004FC20D /* Release */ = { - isa = XCBuildConfiguration; - baseConfigurationReference = 89A0EA0199FF65AB661C1245 /* Pods-SQManagement.release.xcconfig */; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = BMZP26248F; - INFOPLIST_FILE = SQManagement/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 13.0; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - PRODUCT_BUNDLE_IDENTIFIER = coderZsq.SQManagement; - PRODUCT_NAME = "$(TARGET_NAME)"; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 14E97DBD2335014B004FC20D /* Build configuration list for PBXProject "SQManagement" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 14E97DDC2335014C004FC20D /* Debug */, - 14E97DDD2335014C004FC20D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - 14E97DDE2335014C004FC20D /* Build configuration list for PBXNativeTarget "SQManagement" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 14E97DDF2335014C004FC20D /* Debug */, - 14E97DE02335014C004FC20D /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - -/* Begin XCVersionGroup section */ - 14E97DD12335014B004FC20D /* SQManagement.xcdatamodeld */ = { - isa = XCVersionGroup; - children = ( - 14E97DD22335014B004FC20D /* SQManagement.xcdatamodel */, - ); - currentVersion = 14E97DD22335014B004FC20D /* SQManagement.xcdatamodel */; - path = SQManagement.xcdatamodeld; - sourceTree = ""; - versionGroupType = wrapper.xcdatamodel; - }; -/* End XCVersionGroup section */ - }; - rootObject = 14E97DBA2335014B004FC20D /* Project object */; -} diff --git a/SQManagement/SQManagement.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/SQManagement/SQManagement.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index d18d4521..00000000 --- a/SQManagement/SQManagement.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/SQManagement/SQManagement.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/SQManagement/SQManagement.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d98100..00000000 --- a/SQManagement/SQManagement.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/SQManagement/SQManagement.xcworkspace/contents.xcworkspacedata b/SQManagement/SQManagement.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index bb24f6fa..00000000 --- a/SQManagement/SQManagement.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - diff --git a/SQManagement/SQManagement.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/SQManagement/SQManagement.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d98100..00000000 --- a/SQManagement/SQManagement.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/SQManagement/SQManagement/Assets.xcassets/AppIcon.appiconset/Contents.json b/SQManagement/SQManagement/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index d8db8d65..00000000 --- a/SQManagement/SQManagement/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "20x20", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "20x20", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" - }, - { - "idiom" : "ipad", - "size" : "20x20", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "20x20", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "83.5x83.5", - "scale" : "2x" - }, - { - "idiom" : "ios-marketing", - "size" : "1024x1024", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/SQManagement/SQManagement/Assets.xcassets/Contents.json b/SQManagement/SQManagement/Assets.xcassets/Contents.json deleted file mode 100644 index da4a164c..00000000 --- a/SQManagement/SQManagement/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/SQManagement/SQManagement/Assets.xcassets/search_icon.imageset/Contents.json b/SQManagement/SQManagement/Assets.xcassets/search_icon.imageset/Contents.json deleted file mode 100644 index dcfd3cb7..00000000 --- a/SQManagement/SQManagement/Assets.xcassets/search_icon.imageset/Contents.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "scale" : "1x" - }, - { - "idiom" : "universal", - "scale" : "2x" - }, - { - "idiom" : "universal", - "filename" : "search_icon-2.png", - "scale" : "3x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/SQManagement/SQManagement/Assets.xcassets/search_icon.imageset/search_icon-2.png b/SQManagement/SQManagement/Assets.xcassets/search_icon.imageset/search_icon-2.png deleted file mode 100644 index 3146e336..00000000 Binary files a/SQManagement/SQManagement/Assets.xcassets/search_icon.imageset/search_icon-2.png and /dev/null differ diff --git a/SQManagement/SQManagement/Base.lproj/ConnectionEventsViewController~.storyboard b/SQManagement/SQManagement/Base.lproj/ConnectionEventsViewController~.storyboard deleted file mode 100644 index 3bb1cd24..00000000 --- a/SQManagement/SQManagement/Base.lproj/ConnectionEventsViewController~.storyboard +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SQManagement/SQManagement/Base.lproj/LaunchScreen.storyboard b/SQManagement/SQManagement/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index 865e9329..00000000 --- a/SQManagement/SQManagement/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SQManagement/SQManagement/Base.lproj/Main.storyboard b/SQManagement/SQManagement/Base.lproj/Main.storyboard deleted file mode 100644 index c6970ed3..00000000 --- a/SQManagement/SQManagement/Base.lproj/Main.storyboard +++ /dev/null @@ -1,221 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SQManagement/SQManagement/Coms/SQH1TitleViewController.h b/SQManagement/SQManagement/Coms/SQH1TitleViewController.h deleted file mode 100644 index 6af12033..00000000 --- a/SQManagement/SQManagement/Coms/SQH1TitleViewController.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// SQH1TitleViewController.h -// SQManagement -// -// Created by 朱双泉 on 2019/9/26. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface SQH1TitleViewController : UITableViewController - -- (BOOL)isShowNavigationShadowImage; - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/Coms/SQH1TitleViewController.m b/SQManagement/SQManagement/Coms/SQH1TitleViewController.m deleted file mode 100644 index f6cf2e00..00000000 --- a/SQManagement/SQManagement/Coms/SQH1TitleViewController.m +++ /dev/null @@ -1,64 +0,0 @@ -// -// SQH1TitleViewController.m -// SQManagement -// -// Created by 朱双泉 on 2019/9/26. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQH1TitleViewController.h" -#import "SQH1TitleView.h" -#import "UIViewController+SQExtension.h" -#import "UIImage+SQExtension.h" - -@interface SQH1TitleViewController () -@property (nonatomic, weak) UILabel *titleLabel; -@property (nonatomic, weak) UIColor *defaultColor; -@property (nonatomic, assign, getter=isFirstAppear) BOOL firstAppear; -@end - -@implementation SQH1TitleViewController - -- (void)viewWillAppear:(BOOL)animated { - [super viewWillAppear:animated]; - if (!self.isFirstAppear) { - self.titleLabel = [self findNavigationBarContentViewTitleLabel]; - self.defaultColor = self.titleLabel.textColor; - UILabel *titleLabel = [UILabel new]; - titleLabel.font = self.titleLabel.font; - titleLabel.text = self.titleLabel.text; - titleLabel.textColor = [UIColor clearColor]; - titleLabel.frame = self.titleLabel.frame; - self.navigationItem.titleView = titleLabel; - self.titleLabel = titleLabel; - self.firstAppear = YES; - } -} - -- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { - if (section == 0) return [SQH1TitleView viewWithTitle:self.title]; - return nil; -} - -- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { - if (section == 0) return 64; - return 44; -} - -- (BOOL)isShowNavigationShadowImage { - return YES; -} - -- (void)scrollViewDidScroll:(UIScrollView *)scrollView { - [self.view endEditing:YES]; - self.titleLabel.textColor = scrollView.contentOffset.y > -48.f ? self.defaultColor : [UIColor clearColor]; - if ([self isShowNavigationShadowImage]) { - UIColor *color = [UIColor whiteColor]; - if (self.titleLabel.textColor == self.defaultColor) { - color = [[UIColor lightGrayColor] colorWithAlphaComponent:0.3]; - } - [self.navigationController.navigationBar setShadowImage:[UIImage imageWithColor:color]]; - } -} - -@end diff --git a/SQManagement/SQManagement/Connections/SQConnectionEventsViewController.h b/SQManagement/SQManagement/Connections/SQConnectionEventsViewController.h deleted file mode 100644 index 7ce1fdbf..00000000 --- a/SQManagement/SQManagement/Connections/SQConnectionEventsViewController.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// SQAddConnectionViewController.h -// SQManagement -// -// Created by 朱双泉 on 2019/9/24. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@class SQConnectionModel; - -@interface SQConnectionEventsViewController : UITableViewController - -@property (nonatomic, strong) SQConnectionModel *connection; - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/Connections/SQConnectionEventsViewController.m b/SQManagement/SQManagement/Connections/SQConnectionEventsViewController.m deleted file mode 100644 index 9b033d1f..00000000 --- a/SQManagement/SQManagement/Connections/SQConnectionEventsViewController.m +++ /dev/null @@ -1,131 +0,0 @@ -// -// SQAddConnectionViewController.m -// SQManagement -// -// Created by 朱双泉 on 2019/9/24. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQConnectionEventsViewController.h" -#import "SQProfileHeaderView.h" -#import "SQConnectionPropertyCell.h" -#import "UIColor+SQExtension.h" -#import "UIView+SQExtension.h" -#import "SQConnectionModel.h" - -@interface SQConnectionEventsViewController () -@property (nonatomic, strong) NSArray *dataSource; -@property (nonatomic, strong) SQProfileHeaderView *headerView; -@end - -@implementation SQConnectionEventsViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - if (!self.connection) { - self.title = @"新增人脉"; - self.connection = [SQConnectionModel new]; - } else { - self.title = self.connection.name; - } - self.dataSource = @[ - @[@"姓名", @"角色", @"职业", @"地区", @"行业", @"影响力", @"亲密程度", @"黄金人脉圈"], - @[@"联系方式", @"社交记录"], - @[@"特征", @"工作", @"爱好", @"特殊细节", @"给我的启发"], - ]; - self.tableView.backgroundColor = [UIColor colorWithHexString:@"f8f8f8"]; - [self.tableView registerNib:[UINib nibWithNibName:NSStringFromClass([SQConnectionPropertyCell class]) bundle:nil] forCellReuseIdentifier:NSStringFromClass([SQConnectionPropertyCell class])]; - self.headerView = [SQProfileHeaderView headerView]; - self.headerView.profileImageView.image = [UIImage imageWithData:self.connection.profile];; - __weak typeof(self) weakSelf = self; - [self.headerView whenTapped:^{ - UIImagePickerController *imagePickerVc = [[UIImagePickerController alloc] init]; - imagePickerVc.delegate = weakSelf; - imagePickerVc.allowsEditing = YES; - UIAlertController *alertVc = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:(UIAlertControllerStyleActionSheet)]; - [alertVc addAction:[UIAlertAction actionWithTitle:@"立即拍摄照片" style:(UIAlertActionStyleDefault) handler:^(UIAlertAction * _Nonnull action) { - if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]){ - imagePickerVc.sourceType = UIImagePickerControllerSourceTypeCamera; - imagePickerVc.cameraDevice = UIImagePickerControllerCameraDeviceRear; - [weakSelf presentViewController:imagePickerVc animated:YES completion:nil]; - } - }]]; - [alertVc addAction:[UIAlertAction actionWithTitle:@"从相册中获取" style:(UIAlertActionStyleDefault) handler:^(UIAlertAction * _Nonnull action) { - if([UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypePhotoLibrary]){ - imagePickerVc.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; - [weakSelf presentViewController:imagePickerVc animated:YES completion:nil]; - } - }]]; - [alertVc addAction:[UIAlertAction actionWithTitle:@"取消" style:(UIAlertActionStyleCancel) handler:nil]]; - [weakSelf presentViewController:alertVc animated:YES completion:nil]; - }]; -} - -- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { - return self.dataSource.count; -} - -- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { - NSArray *rows = self.dataSource[section]; - return rows.count; -} - -- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - SQConnectionPropertyCell *cell = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([SQConnectionPropertyCell class])]; - cell.titleLabel.text = self.dataSource[indexPath.section][indexPath.row]; - cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; - if (indexPath.section == 0) { - [self.connection map:indexPath.row bind:cell.inputLabel]; - } - return cell; -} - -- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { - if (section == 0) return self.headerView; - return nil; -} - -- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { - if (section == 0) return 100; - return 1; -} - -- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { - [tableView deselectRowAtIndexPath:indexPath animated:YES]; - if (indexPath.section == 0 && indexPath.row < 5) { - NSString *string = self.dataSource[indexPath.section][indexPath.row]; - UIAlertController *alertVc = [UIAlertController alertControllerWithTitle:nil message:string preferredStyle:(UIAlertControllerStyleAlert)]; - [alertVc addTextFieldWithConfigurationHandler:^(UITextField * _Nonnull textField) { - textField.text = [self mapConnectionModelFor:string]; - textField.placeholder = [NSString stringWithFormat:@"请输入%@", string]; - }]; - [alertVc addAction:[UIAlertAction actionWithTitle:@"取消" style:(UIAlertActionStyleCancel) handler:nil]]; - __weak typeof(alertVc) weakSelf = alertVc; - [alertVc addAction:[UIAlertAction actionWithTitle:@"确定" style:(UIAlertActionStyleDefault) handler:^(UIAlertAction * _Nonnull action) { - [self.connection map:indexPath.row bind:weakSelf.textFields.firstObject]; - [self.tableView reloadRowsAtIndexPaths:@[indexPath] withRowAnimation:(UITableViewRowAnimationNone)]; - }]]; - [self presentViewController:alertVc animated:YES completion:nil]; - } -} - -- (NSString *)mapConnectionModelFor:(NSString *)key { - return @{ - @"姓名" : self.connection.name, - @"角色" : self.connection.role, - @"职业" : self.connection.occupation, - @"地区" : self.connection.region, - @"行业" : self.connection.industry - }[key]; -} - -- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { - [picker dismissViewControllerAnimated:YES completion:nil]; - self.headerView.profileImageView.image = [info objectForKey:UIImagePickerControllerOriginalImage]; -} - -- (void)dismiss { - [self dismissViewControllerAnimated:YES completion:nil]; -} - -@end diff --git a/SQManagement/SQManagement/Connections/SQConnectionEventsViewController.storyboard b/SQManagement/SQManagement/Connections/SQConnectionEventsViewController.storyboard deleted file mode 100644 index 1097ea86..00000000 --- a/SQManagement/SQManagement/Connections/SQConnectionEventsViewController.storyboard +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SQManagement/SQManagement/Connections/SQConnectionModel.h b/SQManagement/SQManagement/Connections/SQConnectionModel.h deleted file mode 100644 index 7e771699..00000000 --- a/SQManagement/SQManagement/Connections/SQConnectionModel.h +++ /dev/null @@ -1,30 +0,0 @@ -// -// SQConnectionModel.h -// SQManagement -// -// Created by 朱双泉 on 2019/9/28. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface SQConnectionModel : NSObject - -@property (nonatomic, strong) NSData *profile; -@property (nonatomic, copy) NSString *identifier; -@property (nonatomic, copy) NSString *name; -@property (nonatomic, copy) NSString *role; -@property (nonatomic, copy) NSString *occupation; -@property (nonatomic, copy) NSString *region; -@property (nonatomic, copy) NSString *industry; -@property (nonatomic, copy) NSString *effect; -@property (nonatomic, copy) NSString *intimacy; -@property (nonatomic, copy) NSString *goldenCircle; - -- (void)map:(NSUInteger)row bind:(UIView *)view; - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/Connections/SQConnectionModel.m b/SQManagement/SQManagement/Connections/SQConnectionModel.m deleted file mode 100644 index 6e200b6e..00000000 --- a/SQManagement/SQManagement/Connections/SQConnectionModel.m +++ /dev/null @@ -1,101 +0,0 @@ -// -// SQConnectionModel.m -// SQManagement -// -// Created by 朱双泉 on 2019/9/28. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import -#import "SQConnectionModel.h" - -typedef NS_ENUM(NSInteger, SQConnectionProperty) { - SQConnectionName = 0, - SQConnectionRole, - SQConnectionOccupation, - SQConnectionRegion, - SQConnectionIndustry, - SQConnectionEffect, - SQConnectionIntimacy, - SQConnectionGoldenCircle, -}; - -@implementation SQConnectionModel - -- (instancetype)init -{ - self = [super init]; - if (self) { - self.name = @""; - self.role = @""; - self.occupation= @""; - self.region = @""; - self.industry = @""; - } - return self; -} - -- (void)map:(NSUInteger)row bind:(UIView *)view { - switch (row) { - case SQConnectionName: - if ([view isKindOfClass:UITextField.class]) { - self.name = [view valueForKey:@"text"]; - } else if ([view isKindOfClass:UILabel.class]) { - [view setValue:self.name forKey:@"text"]; - } - break; - case SQConnectionRole: - if ([view isKindOfClass:UITextField.class]) { - self.role = [view valueForKey:@"text"]; - } else if ([view isKindOfClass:UILabel.class]) { - [view setValue:self.role forKey:@"text"]; - } - break; - case SQConnectionOccupation: - if ([view isKindOfClass:UITextField.class]) { - self.occupation = [view valueForKey:@"text"]; - } else if ([view isKindOfClass:UILabel.class]) { - [view setValue:self.occupation forKey:@"text"]; - } - break; - case SQConnectionRegion: - if ([view isKindOfClass:UITextField.class]) { - self.region = [view valueForKey:@"text"]; - } else if ([view isKindOfClass:UILabel.class]) { - [view setValue:self.region forKey:@"text"]; - } - break; - case SQConnectionIndustry: - if ([view isKindOfClass:UITextField.class]) { - self.industry = [view valueForKey:@"text"]; - } else if ([view isKindOfClass:UILabel.class]) { - [view setValue:self.industry forKey:@"text"]; - } - break; - case SQConnectionEffect: - if ([view isKindOfClass:UITextField.class]) { - self.effect = [view valueForKey:@"text"]; - } else if ([view isKindOfClass:UILabel.class]) { - [view setValue:self.effect forKey:@"text"]; - } - break; - case SQConnectionIntimacy: - if ([view isKindOfClass:UITextField.class]) { - self.intimacy = [view valueForKey:@"text"]; - } else if ([view isKindOfClass:UILabel.class]) { - [view setValue:self.intimacy forKey:@"text"]; - } - break; - case SQConnectionGoldenCircle: - if ([view isKindOfClass:UITextField.class]) { - self.goldenCircle = [view valueForKey:@"text"]; - } else if ([view isKindOfClass:UILabel.class]) { - [view setValue:self.goldenCircle forKey:@"text"]; - } - break; - default: - break; - } -} - -@end diff --git a/SQManagement/SQManagement/Connections/SQConnectionPropertyCell.h b/SQManagement/SQManagement/Connections/SQConnectionPropertyCell.h deleted file mode 100644 index 1a8d3deb..00000000 --- a/SQManagement/SQManagement/Connections/SQConnectionPropertyCell.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// SQConnectionPropertyCell.h -// SQManagement -// -// Created by 朱双泉 on 2019/9/24. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface SQConnectionPropertyCell : UITableViewCell - -@property (weak, nonatomic) IBOutlet UILabel *titleLabel; -@property (weak, nonatomic) IBOutlet UILabel *inputLabel; -@property (weak, nonatomic) IBOutlet UIImageView *iconImageView; - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/Connections/SQConnectionPropertyCell.m b/SQManagement/SQManagement/Connections/SQConnectionPropertyCell.m deleted file mode 100644 index 92be366a..00000000 --- a/SQManagement/SQManagement/Connections/SQConnectionPropertyCell.m +++ /dev/null @@ -1,22 +0,0 @@ -// -// SQConnectionPropertyCell.m -// SQManagement -// -// Created by 朱双泉 on 2019/9/24. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQConnectionPropertyCell.h" - -@implementation SQConnectionPropertyCell - -- (void)awakeFromNib { - [super awakeFromNib]; - self.iconImageView.layer.cornerRadius = 4; - self.iconImageView.layer.masksToBounds = YES; - self.iconImageView.layer.shadowColor = [UIColor lightGrayColor].CGColor; - self.iconImageView.layer.shadowOffset = CGSizeMake(2, 2); - self.iconImageView.layer.shadowOpacity = 0.8; -} - -@end diff --git a/SQManagement/SQManagement/Connections/SQConnectionPropertyCell.xib b/SQManagement/SQManagement/Connections/SQConnectionPropertyCell.xib deleted file mode 100644 index e8aa9a33..00000000 --- a/SQManagement/SQManagement/Connections/SQConnectionPropertyCell.xib +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SQManagement/SQManagement/Connections/SQConnectionsViewController.h b/SQManagement/SQManagement/Connections/SQConnectionsViewController.h deleted file mode 100644 index 54e82136..00000000 --- a/SQManagement/SQManagement/Connections/SQConnectionsViewController.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// SQConnectionsViewController.h -// SQManagement -// -// Created by 朱双泉 on 2019/9/22. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQH1TitleViewController.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface SQConnectionsViewController : SQH1TitleViewController - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/Connections/SQConnectionsViewController.m b/SQManagement/SQManagement/Connections/SQConnectionsViewController.m deleted file mode 100644 index d4b18024..00000000 --- a/SQManagement/SQManagement/Connections/SQConnectionsViewController.m +++ /dev/null @@ -1,79 +0,0 @@ -// -// SQConnectionsViewController.m -// SQManagement -// -// Created by 朱双泉 on 2019/9/22. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQConnectionsViewController.h" -#import "SQH1TitleView.h" -#import "SQSearchInputView.h" -#import "SQAuthorizationTool.h" -#import "SQConnectionEventsViewController.h" -#import "SQConnectionModel.h" - -@interface SQConnectionsViewController () -@property (nonatomic, strong) NSMutableArray *dataSource; -@end - -@implementation SQConnectionsViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - self.title = @"人脉"; - self.dataSource = [NSMutableArray array]; - [SQAuthorizationTool fetchContacts:^(NSArray * _Nonnull contacts) { - for (SQContact *contact in contacts) { - SQConnectionModel *model = [SQConnectionModel new]; - model.identifier = contact.identifier; - model.profile = contact.thumbnailImageData; - model.name = [NSString stringWithFormat:@"%@%@", contact.familyName, contact.givenName]; - model.occupation = contact.jobTitle; - [self.dataSource addObject:model]; - } - [self.tableView reloadData]; - }]; -} - -- (BOOL)isShowNavigationShadowImage { - return NO; -} - -- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { - return 2; -} - -- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { - if (section == 0) return 0; - else return self.dataSource.count; -} - -- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - UITableViewCell *cell= [tableView dequeueReusableCellWithIdentifier:@"cell"]; - if (!cell) { - cell = [[UITableViewCell alloc] initWithStyle:(UITableViewCellStyleDefault) reuseIdentifier:@"cell"]; - } - SQConnectionModel *model = self.dataSource[indexPath.row]; - cell.textLabel.text = model.name; - return cell; -} - -- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { - if (section == 0) return [SQH1TitleView viewWithTitle:self.title]; - else return [SQSearchInputView inputView]; -} - -- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { - if (section == 0) return 64; - return 44; -} - -- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { - [tableView deselectRowAtIndexPath:indexPath animated:YES]; - SQConnectionEventsViewController *connectionEventsVc = [[UIStoryboard storyboardWithName:NSStringFromClass(SQConnectionEventsViewController.class) bundle:nil] instantiateInitialViewController]; - connectionEventsVc.connection = self.dataSource[indexPath.row]; - [self.navigationController pushViewController:connectionEventsVc animated:YES]; -} - -@end diff --git a/SQManagement/SQManagement/Energy/SQEnergyViewController.h b/SQManagement/SQManagement/Energy/SQEnergyViewController.h deleted file mode 100644 index 4db99b1b..00000000 --- a/SQManagement/SQManagement/Energy/SQEnergyViewController.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// SQEnergyViewController.h -// SQManagement -// -// Created by 朱双泉 on 2019/9/26. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQH1TitleViewController.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface SQEnergyViewController : SQH1TitleViewController - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/Energy/SQEnergyViewController.m b/SQManagement/SQManagement/Energy/SQEnergyViewController.m deleted file mode 100644 index ef6cd895..00000000 --- a/SQManagement/SQManagement/Energy/SQEnergyViewController.m +++ /dev/null @@ -1,56 +0,0 @@ -// -// SQEnergyViewController.m -// SQManagement -// -// Created by 朱双泉 on 2019/9/26. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQEnergyViewController.h" -#import "SQH1TitleView.h" -#import "SQSearchInputView.h" - -@interface SQEnergyViewController () - -@end - -@implementation SQEnergyViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - self.title = @"精力"; -} - -- (BOOL)isShowNavigationShadowImage { - return NO; -} - -- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { - return 2; -} - -- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { - if (section == 0) return 0; - else return 20; -} - -- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - UITableViewCell *cell= [tableView dequeueReusableCellWithIdentifier:@"cell"]; - if (!cell) { - cell = [[UITableViewCell alloc] initWithStyle:(UITableViewCellStyleDefault) reuseIdentifier:@"cell"]; - } - cell.textLabel.text = [NSString stringWithFormat:@"%li", indexPath.row]; - return cell; -} - -- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { - if (section == 0) return [SQH1TitleView viewWithTitle:self.title]; - else return [SQSearchInputView inputView]; -} - -- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { - if (section == 0) return 64; - return 44; -} - -@end diff --git a/SQManagement/SQManagement/Info.plist b/SQManagement/SQManagement/Info.plist deleted file mode 100644 index 9dbb0cf3..00000000 --- a/SQManagement/SQManagement/Info.plist +++ /dev/null @@ -1,70 +0,0 @@ - - - - - NSContactsUsageDescription - - NSPhotoLibraryUsageDescription - - NSCameraUsageDescription - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - SceneDelegate - UISceneStoryboardFile - Main - - - - - UILaunchStoryboardName - LaunchScreen - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/SQManagement/SQManagement/Main/AppDelegate.h b/SQManagement/SQManagement/Main/AppDelegate.h deleted file mode 100644 index ef4aa18d..00000000 --- a/SQManagement/SQManagement/Main/AppDelegate.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// AppDelegate.h -// SQManagement -// -// Created by 朱双泉 on 2019/9/20. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import -#import - -@interface AppDelegate : UIResponder - -@property (readonly, strong) NSPersistentCloudKitContainer *persistentContainer; - -- (void)saveContext; - - -@end - diff --git a/SQManagement/SQManagement/Main/AppDelegate.m b/SQManagement/SQManagement/Main/AppDelegate.m deleted file mode 100644 index 8e3a4591..00000000 --- a/SQManagement/SQManagement/Main/AppDelegate.m +++ /dev/null @@ -1,86 +0,0 @@ -// -// AppDelegate.m -// SQManagement -// -// Created by 朱双泉 on 2019/9/20. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "AppDelegate.h" - -@interface AppDelegate () - -@end - -@implementation AppDelegate - - -- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { - // Override point for customization after application launch. - return YES; -} - - -#pragma mark - UISceneSession lifecycle - - -- (UISceneConfiguration *)application:(UIApplication *)application configurationForConnectingSceneSession:(UISceneSession *)connectingSceneSession options:(UISceneConnectionOptions *)options { - // Called when a new scene session is being created. - // Use this method to select a configuration to create the new scene with. - return [[UISceneConfiguration alloc] initWithName:@"Default Configuration" sessionRole:connectingSceneSession.role]; -} - - -- (void)application:(UIApplication *)application didDiscardSceneSessions:(NSSet *)sceneSessions { - // Called when the user discards a scene session. - // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. - // Use this method to release any resources that were specific to the discarded scenes, as they will not return. -} - - -#pragma mark - Core Data stack - -@synthesize persistentContainer = _persistentContainer; - -- (NSPersistentCloudKitContainer *)persistentContainer { - // The persistent container for the application. This implementation creates and returns a container, having loaded the store for the application to it. - @synchronized (self) { - if (_persistentContainer == nil) { - _persistentContainer = [[NSPersistentCloudKitContainer alloc] initWithName:@"SQManagement"]; - [_persistentContainer loadPersistentStoresWithCompletionHandler:^(NSPersistentStoreDescription *storeDescription, NSError *error) { - if (error != nil) { - // Replace this implementation with code to handle the error appropriately. - // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. - - /* - Typical reasons for an error here include: - * The parent directory does not exist, cannot be created, or disallows writing. - * The persistent store is not accessible, due to permissions or data protection when the device is locked. - * The device is out of space. - * The store could not be migrated to the current model version. - Check the error message to determine what the actual problem was. - */ - NSLog(@"Unresolved error %@, %@", error, error.userInfo); - abort(); - } - }]; - } - } - - return _persistentContainer; -} - -#pragma mark - Core Data Saving support - -- (void)saveContext { - NSManagedObjectContext *context = self.persistentContainer.viewContext; - NSError *error = nil; - if ([context hasChanges] && ![context save:&error]) { - // Replace this implementation with code to handle the error appropriately. - // abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. - NSLog(@"Unresolved error %@, %@", error, error.userInfo); - abort(); - } -} - -@end diff --git a/SQManagement/SQManagement/Main/SQNavigationController.h b/SQManagement/SQManagement/Main/SQNavigationController.h deleted file mode 100644 index 970f0bf1..00000000 --- a/SQManagement/SQManagement/Main/SQNavigationController.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// SQNavigationController.h -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface SQNavigationController : UINavigationController - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/Main/SQNavigationController.m b/SQManagement/SQManagement/Main/SQNavigationController.m deleted file mode 100644 index ad286a50..00000000 --- a/SQManagement/SQManagement/Main/SQNavigationController.m +++ /dev/null @@ -1,43 +0,0 @@ -// -// SQNavigationController.m -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQNavigationController.h" -#import "UIImage+SQExtension.h" -#import "UIColor+SQExtension.h" - -@interface SQNavigationController () - -@end - -@implementation SQNavigationController - -- (void)viewDidLoad { - [super viewDidLoad]; - [self.navigationBar setBackgroundImage:[UIImage imageWithColor:[UIColor whiteColor]] forBarMetrics:UIBarMetricsDefault]; - [self.navigationBar setShadowImage:[UIImage imageWithColor:[UIColor whiteColor]]]; - - id target = self.interactivePopGestureRecognizer.delegate; -#pragma clang diagnostic push -#pragma clang diagnostic ignored "-Wundeclared-selector" - UIPanGestureRecognizer * pan = [[UIPanGestureRecognizer alloc]initWithTarget:target action:@selector(handleNavigationTransition:)]; -#pragma clang diagnostic pop - pan.delegate = self; - [self.view addGestureRecognizer:pan]; - [self.interactivePopGestureRecognizer setEnabled:NO]; -} - -- (BOOL)gestureRecognizerShouldBegin:(UIGestureRecognizer *)gestureRecognizer { - return self.childViewControllers.count == 1 ? NO : YES; -} - -- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated { - if (self.viewControllers.count) viewController.hidesBottomBarWhenPushed = YES; - [super pushViewController:viewController animated:animated]; -} - -@end diff --git a/SQManagement/SQManagement/Main/SQTabBarController.h b/SQManagement/SQManagement/Main/SQTabBarController.h deleted file mode 100644 index 3a4ecbff..00000000 --- a/SQManagement/SQManagement/Main/SQTabBarController.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// SQTabBarController.h -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface SQTabBarController : UITabBarController - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/Main/SQTabBarController.m b/SQManagement/SQManagement/Main/SQTabBarController.m deleted file mode 100644 index 0d856fb8..00000000 --- a/SQManagement/SQManagement/Main/SQTabBarController.m +++ /dev/null @@ -1,49 +0,0 @@ -// -// SQTabBarController.m -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQTabBarController.h" -#import "SQTabbarControllerAnimatedTransitioning.h" -#import "UIColor+SQExtension.h" - -@interface SQTabBarController () - -@property (nonatomic, assign) NSUInteger lastSelectIndex; - -@end - -@implementation SQTabBarController - -- (void)viewDidLoad { - [super viewDidLoad]; - self.delegate = self; - [self hookApplicationWillEnterForeground]; -} - -- (void)hookApplicationWillEnterForeground { - self.view.backgroundColor = [UIColor whiteColor]; - if (@available(iOS 13.0, *)) { - self.view.backgroundColor = [UIColor colorWithDynamicProvider:^UIColor * _Nonnull(UITraitCollection * _Nonnull trait) { - if (trait.userInterfaceStyle == UIUserInterfaceStyleDark) { - return [UIColor colorWithHexString:@"#1c1c1e"]; - } else { - return [UIColor whiteColor]; - } - }]; - } -} - -- (id )tabBarController:(UITabBarController *)tabBarController animationControllerForTransitionFromViewController:(UIViewController *)fromVC toViewController:(UIViewController *)toVC { - NSUInteger fromVCIndex = [self.childViewControllers indexOfObject:fromVC]; - NSUInteger toVCIndex = [self.childViewControllers indexOfObject:toVC]; - SQTabbarControllerAnimatedTransitioning *animatedTransitioning = [SQTabbarControllerAnimatedTransitioning new]; - animatedTransitioning.fromVCIndex = fromVCIndex; - animatedTransitioning.toVCIndex = toVCIndex; - return animatedTransitioning; -} - -@end diff --git a/SQManagement/SQManagement/Main/SQTabbarControllerAnimatedTransitioning.h b/SQManagement/SQManagement/Main/SQTabbarControllerAnimatedTransitioning.h deleted file mode 100644 index 1716ad95..00000000 --- a/SQManagement/SQManagement/Main/SQTabbarControllerAnimatedTransitioning.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// SQTabbarControllerAnimatedTransitioning.h -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface SQTabbarControllerAnimatedTransitioning : NSObject - -@property (nonatomic, assign) NSUInteger fromVCIndex; - -@property (nonatomic, assign) NSUInteger toVCIndex; - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/Main/SQTabbarControllerAnimatedTransitioning.m b/SQManagement/SQManagement/Main/SQTabbarControllerAnimatedTransitioning.m deleted file mode 100644 index 2e373dbb..00000000 --- a/SQManagement/SQManagement/Main/SQTabbarControllerAnimatedTransitioning.m +++ /dev/null @@ -1,40 +0,0 @@ -// -// SQTabbarControllerAnimatedTransitioning.m -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQTabbarControllerAnimatedTransitioning.h" - -static CGFloat const kPadding = 10; -static CGFloat const kDamping = 0.75; -static CGFloat const kVelocity = 2; - -@implementation SQTabbarControllerAnimatedTransitioning - -- (NSTimeInterval)transitionDuration:(id)transitionContext { - return kDamping; -} - -- (void)animateTransition:(id)transitionContext { - - UIViewController * toViewController = [transitionContext viewControllerForKey:UITransitionContextToViewControllerKey]; - UIViewController * fromViewController = [transitionContext viewControllerForKey:UITransitionContextFromViewControllerKey]; - UIView * containerView = [transitionContext containerView]; - CGFloat translation = containerView.bounds.size.width + kPadding; - CGAffineTransform transform = CGAffineTransformMakeTranslation ((self.fromVCIndex > self.toVCIndex ? YES : NO) ? translation : -translation, 0); - toViewController.view.transform = CGAffineTransformInvert (transform); - [containerView addSubview:toViewController.view]; - - [UIView animateWithDuration:[self transitionDuration:transitionContext] delay:0 usingSpringWithDamping:kDamping initialSpringVelocity:kVelocity options:UIViewAnimationOptionCurveEaseInOut animations:^{ - fromViewController.view.transform = transform; - toViewController.view.transform = CGAffineTransformIdentity; - } completion:^(BOOL finished) { - fromViewController.view.transform = CGAffineTransformIdentity; - [transitionContext completeTransition:![transitionContext transitionWasCancelled]]; - }]; -} - -@end diff --git a/SQManagement/SQManagement/Main/SceneDelegate.h b/SQManagement/SQManagement/Main/SceneDelegate.h deleted file mode 100644 index b2cbd639..00000000 --- a/SQManagement/SQManagement/Main/SceneDelegate.h +++ /dev/null @@ -1,16 +0,0 @@ -// -// SceneDelegate.h -// SQManagement -// -// Created by 朱双泉 on 2019/9/20. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -@interface SceneDelegate : UIResponder - -@property (strong, nonatomic) UIWindow * window; - -@end - diff --git a/SQManagement/SQManagement/Main/SceneDelegate.m b/SQManagement/SQManagement/Main/SceneDelegate.m deleted file mode 100644 index 0c5e4d07..00000000 --- a/SQManagement/SQManagement/Main/SceneDelegate.m +++ /dev/null @@ -1,54 +0,0 @@ -#import "SceneDelegate.h" -#import "AppDelegate.h" - -@interface SceneDelegate () - -@end - -@implementation SceneDelegate - - -- (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions { - // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. - // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. - // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). -} - - -- (void)sceneDidDisconnect:(UIScene *)scene { - // Called as the scene is being released by the system. - // This occurs shortly after the scene enters the background, or when its session is discarded. - // Release any resources associated with this scene that can be re-created the next time the scene connects. - // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). -} - - -- (void)sceneDidBecomeActive:(UIScene *)scene { - // Called when the scene has moved from an inactive state to an active state. - // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. -} - - -- (void)sceneWillResignActive:(UIScene *)scene { - // Called when the scene will move from an active state to an inactive state. - // This may occur due to temporary interruptions (ex. an incoming phone call). -} - - -- (void)sceneWillEnterForeground:(UIScene *)scene { - // Called as the scene transitions from the background to the foreground. - // Use this method to undo the changes made on entering the background. -} - - -- (void)sceneDidEnterBackground:(UIScene *)scene { - // Called as the scene transitions from the foreground to the background. - // Use this method to save data, release shared resources, and store enough scene-specific state information - // to restore the scene back to its current state. - - // Save changes in the application's managed object context when the application transitions to the background. - [(AppDelegate *)UIApplication.sharedApplication.delegate saveContext]; -} - - -@end diff --git a/SQManagement/SQManagement/SQExtension/NSObject+SQExtension.h b/SQManagement/SQManagement/SQExtension/NSObject+SQExtension.h deleted file mode 100644 index ad391338..00000000 --- a/SQManagement/SQManagement/SQExtension/NSObject+SQExtension.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// NSObject+SQExtension.h -// SQMagnet -// -// Created by 朱双泉 on 2019/7/13. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface NSObject (SQExtension) - -- (UIViewController *)getRootViewController; - -- (UIViewController *)getCurrentViewController; - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/SQExtension/NSObject+SQExtension.m b/SQManagement/SQManagement/SQExtension/NSObject+SQExtension.m deleted file mode 100644 index 5785d8d0..00000000 --- a/SQManagement/SQManagement/SQExtension/NSObject+SQExtension.m +++ /dev/null @@ -1,42 +0,0 @@ -// -// NSObject+SQExtension.m -// SQMagnet -// -// Created by 朱双泉 on 2019/7/13. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "NSObject+SQExtension.h" - -@implementation NSObject (SQExtension) - -- (UIViewController *)getRootViewController { - return [UIApplication sharedApplication].delegate.window.rootViewController; -} - -- (UIViewController *)getCurrentViewController { - UIViewController* currentViewController = [self getRootViewController]; - BOOL flag = YES; - while (flag) { - if (currentViewController.presentedViewController) { - currentViewController = currentViewController.presentedViewController; - } else if ([currentViewController isKindOfClass:[UINavigationController class]]) { - UINavigationController* navigationController = (UINavigationController* )currentViewController; - currentViewController = [navigationController.childViewControllers lastObject]; - } else if ([currentViewController isKindOfClass:[UITabBarController class]]) { - UITabBarController *tabBarController = (UITabBarController *)currentViewController; - currentViewController = tabBarController.selectedViewController; - } else { - NSUInteger childViewControllerCount = currentViewController.childViewControllers.count; - if (childViewControllerCount > 0) { - currentViewController = currentViewController.childViewControllers.lastObject; - return currentViewController; - } else { - return currentViewController; - } - } - } - return currentViewController; -} - -@end diff --git a/SQManagement/SQManagement/SQExtension/UIColor+SQExtension.h b/SQManagement/SQManagement/SQExtension/UIColor+SQExtension.h deleted file mode 100755 index 3a05e9fb..00000000 --- a/SQManagement/SQManagement/SQExtension/UIColor+SQExtension.h +++ /dev/null @@ -1,20 +0,0 @@ -// -// UIColor+SQExtension.h -// -// Created by Doubles_Z on 15/9/5. -// Copyright (c) 2015年 Doubles_Z. All rights reserved. -// - -#import - -@interface UIColor (SQExtension) - -+ (UIColor *)colorWithHexString:(NSString *)hexString; - -+ (UIColor *)colorWithHexString:(NSString *)hexString alpha:(CGFloat)alpha; - -+ (UIColor *)colorWith8BitRed:(NSInteger)red green:(NSInteger)green blue:(NSInteger)blue; - -+ (UIColor *)colorWith8BitRed:(NSInteger)red green:(NSInteger)green blue:(NSInteger)blue alpha:(CGFloat)alpha; - -@end diff --git a/SQManagement/SQManagement/SQExtension/UIColor+SQExtension.m b/SQManagement/SQManagement/SQExtension/UIColor+SQExtension.m deleted file mode 100755 index d13a90ae..00000000 --- a/SQManagement/SQManagement/SQExtension/UIColor+SQExtension.m +++ /dev/null @@ -1,70 +0,0 @@ -// -// UIColor+SQExtension.m -// -// Created by Doubles_Z on 15/9/5. -// Copyright (c) 2015年 Doubles_Z. All rights reserved. -// - -#import "UIColor+SQExtension.h" - -@implementation UIColor (SQExtension) - -+ (UIColor *)colorWithHexString:(NSString *)hexString { - return [[self class] colorWithHexString:hexString alpha:1.0f]; -} - -+ (UIColor *)colorWithHexString:(NSString *)hexString alpha:(CGFloat)alpha { - - if('#' != [hexString characterAtIndex:0]) { - hexString = [NSString stringWithFormat:@"#%@", hexString]; - } - assert(7 == hexString.length || 4 == hexString.length); - hexString = [[self class] hexStringTransformFromThreeCharacters:hexString]; - - NSString * redHex = [NSString stringWithFormat:@"0x%@", [hexString substringWithRange:NSMakeRange(1, 2)]]; - unsigned redInt = [[self class] hexValueToUnsigned:redHex]; - - NSString * greenHex = [NSString stringWithFormat:@"0x%@", [hexString substringWithRange:NSMakeRange(3, 2)]]; - unsigned greenInt = [[self class] hexValueToUnsigned:greenHex]; - - NSString * blueHex = [NSString stringWithFormat:@"0x%@", [hexString substringWithRange:NSMakeRange(5, 2)]]; - unsigned blueInt = [[self class] hexValueToUnsigned:blueHex]; - - return [UIColor colorWith8BitRed:redInt green:greenInt blue:blueInt alpha:alpha]; -} - -+ (UIColor *)colorWith8BitRed:(NSInteger)red green:(NSInteger)green blue:(NSInteger)blue { - return [[self class] colorWith8BitRed:red green:green blue:blue alpha:1.0]; -} - -+ (UIColor *)colorWith8BitRed:(NSInteger)red green:(NSInteger)green blue:(NSInteger)blue alpha:(CGFloat)alpha { - - UIColor *color = nil; -#if (TARGET_IPHONE_SIMULATOR || TARGET_OS_IPHONE) - color = [UIColor colorWithRed:(float)red/255 green:(float)green/255 blue:(float)blue/255 alpha:alpha]; -#else - color = [UIColor colorWithCalibratedRed:(float)red/255 green:(float)green/255 blue:(float)blue/255 alpha:alpha]; -#endif - return color; -} -/** private method */ -+ (NSString *)hexStringTransformFromThreeCharacters:(NSString *)hexString { - - if(hexString.length == 4) { - hexString = [NSString stringWithFormat:@"#%@%@%@%@%@%@", - [hexString substringWithRange:NSMakeRange(1, 1)],[hexString substringWithRange:NSMakeRange(1, 1)], - [hexString substringWithRange:NSMakeRange(2, 1)],[hexString substringWithRange:NSMakeRange(2, 1)], - [hexString substringWithRange:NSMakeRange(3, 1)],[hexString substringWithRange:NSMakeRange(3, 1)]]; - } - return hexString; -} -/** private method */ -+ (unsigned)hexValueToUnsigned:(NSString *)hexValue { - - unsigned value = 0; - NSScanner * hexValueScanner = [NSScanner scannerWithString:hexValue]; - [hexValueScanner scanHexInt:&value]; - return value; -} - -@end diff --git a/SQManagement/SQManagement/SQExtension/UIImage+SQExtension.h b/SQManagement/SQManagement/SQExtension/UIImage+SQExtension.h deleted file mode 100644 index b16f972b..00000000 --- a/SQManagement/SQManagement/SQExtension/UIImage+SQExtension.h +++ /dev/null @@ -1,29 +0,0 @@ -// -// UIImage+SQExtension.h -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface UIImage (SQExtension) - -+ (UIImage *)imageResizableNamed:(NSString *)name; - -+ (UIImage *)imageWatermarkNamed:(NSString *)watermarkName named:(NSString *)name scale:(CGFloat)scale; - -+ (UIImage *)imageRoundNamed:(NSString *)name borderWidth:(CGFloat)borderWidth borderColor:(UIColor *)borderColor; - -+ (UIImage *)imageCaptureWithView:(UIView *)view; - -+ (UIImage *)imageWithColor:(UIColor *)color; - -- (UIColor *)pixelColorAtLocation:(CGPoint)point; - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/SQExtension/UIImage+SQExtension.m b/SQManagement/SQManagement/SQExtension/UIImage+SQExtension.m deleted file mode 100644 index 8574193c..00000000 --- a/SQManagement/SQManagement/SQExtension/UIImage+SQExtension.m +++ /dev/null @@ -1,155 +0,0 @@ -// -// UIImage+SQExtension.m -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "UIImage+SQExtension.h" - -@implementation UIImage (SQExtension) - -+ (UIImage *)imageResizableNamed:(NSString *)name { - - UIImage * image = [UIImage imageNamed:name]; - CGFloat width = image.size.width * 0.5f; - CGFloat height = image.size.height * 0.5f; - return [image resizableImageWithCapInsets:UIEdgeInsetsMake(height, width, height, width)]; -} - -+ (UIImage *)imageWatermarkNamed:(NSString *)watermarkName named:(NSString *)name scale:(CGFloat)scale { - - UIImage * background = [UIImage imageNamed:name]; - UIGraphicsBeginImageContextWithOptions(background.size, NO, 0.0f); - [background drawInRect:CGRectMake(0, 0, background.size.width, background.size.height)]; - - UIImage * watermark = [UIImage imageNamed:watermarkName]; - CGFloat watermarkW = watermark.size.width * scale; - CGFloat watermarkH = watermark.size.height * scale; - CGFloat watermarkX = background.size.width - watermarkW - 8; - CGFloat watermarkY = background.size.height - watermarkH - 8; - [watermark drawInRect:CGRectMake(watermarkX, watermarkY, watermarkW, watermarkH)]; - - UIImage * image = UIGraphicsGetImageFromCurrentImageContext(); - UIGraphicsEndImageContext(); - return image; -} - -+ (UIImage *)imageRoundNamed:(NSString *)name borderWidth:(CGFloat)borderWidth borderColor:(UIColor *)borderColor { - - UIImage * original = [UIImage imageNamed:name]; - CGFloat originalW = original.size.width + 2 * borderWidth; - CGFloat originalH = original.size.height + 2 * borderWidth; - CGSize originalSize = CGSizeMake(originalW, originalH); - UIGraphicsBeginImageContextWithOptions(originalSize, NO, 0.0f); - - CGContextRef context = UIGraphicsGetCurrentContext(); [borderColor set]; - CGFloat ex_radius = originalW * 0.5f; - CGFloat centerX = ex_radius; - CGFloat centerY = ex_radius; - CGContextAddArc(context, centerX, centerY, ex_radius, 0, M_PI * 2, 0); - CGContextFillPath(context); - CGFloat in_radius = ex_radius - borderWidth; - CGContextAddArc(context, centerX, centerY, in_radius, 0, M_PI * 2, 0); - - UIImage * image = UIGraphicsGetImageFromCurrentImageContext(); - UIGraphicsEndImageContext(); - return image; -} - -+ (UIImage *)imageWithColor:(UIColor *)color { - - CGRect rect = CGRectMake(0, 0, 1, 1); - UIGraphicsBeginImageContext(rect.size); - CGContextRef context = UIGraphicsGetCurrentContext(); - CGContextSetFillColorWithColor(context, [color CGColor]); - CGContextFillRect(context, rect); - - UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); - UIGraphicsEndImageContext(); - return image; -} - -+ (UIImage *)imageCaptureWithView:(UIView *)view { - - UIGraphicsBeginImageContextWithOptions(view.frame.size, NO, 0.0f); - [view.layer renderInContext:UIGraphicsGetCurrentContext()]; - - UIImage * image = UIGraphicsGetImageFromCurrentImageContext(); - UIGraphicsEndImageContext(); - return image; -} - -- (UIColor *)pixelColorAtLocation:(CGPoint)point { - - UIColor *color = nil; - CGImageRef inImage = self.CGImage; - CGContextRef contexRef = [self ARGBBitmapContextFromImage:inImage]; - if (contexRef == NULL) return nil; - - size_t w = CGImageGetWidth(inImage); - size_t h = CGImageGetHeight(inImage); - CGRect rect = {{0,0},{w,h}}; - - CGContextDrawImage(contexRef, rect, inImage); - - unsigned char * data = CGBitmapContextGetData (contexRef); - if (data != NULL) { - - int offset = 4 * ((w * round(point.y))+round(point.x)); - int alpha = data[offset]; - int red = data[offset+1]; - int green = data[offset+2]; - int blue = data[offset+3]; - color = [UIColor colorWithRed:(red/255.0f) green:(green/255.0f) blue:(blue/255.0f) alpha:(alpha/255.0f)]; - } - CGContextRelease(contexRef); - if (data) { free(data); } - - return color; -} - -- (CGContextRef)ARGBBitmapContextFromImage:(CGImageRef) inImage { - - CGContextRef context = NULL; - CGColorSpaceRef colorSpace; - void * bitmapData; - size_t bitmapByteCount; - size_t bitmapBytesPerRow; - size_t pixelsWide = CGImageGetWidth(inImage); - size_t pixelsHigh = CGImageGetHeight(inImage); - - bitmapBytesPerRow = (pixelsWide * 4); - bitmapByteCount = (bitmapBytesPerRow * pixelsHigh); - - colorSpace = CGColorSpaceCreateDeviceRGB(); - if (colorSpace == NULL) { - fprintf(stderr, "Error allocating color space\n"); - return NULL; - } - - bitmapData = malloc( bitmapByteCount ); - if (bitmapData == NULL) { - fprintf (stderr, "Memory not allocated!"); - CGColorSpaceRelease( colorSpace ); - return NULL; - } - - context = CGBitmapContextCreate (bitmapData, - pixelsWide, - pixelsHigh, - 8, - bitmapBytesPerRow, - colorSpace, - (CGBitmapInfo)kCGImageAlphaPremultipliedFirst); - if (context == NULL) { - free (bitmapData); - fprintf (stderr, "Context not created!"); - } - CGColorSpaceRelease(colorSpace); - - return context; -} - -@end diff --git a/SQManagement/SQManagement/SQExtension/UIView+SQExtension.h b/SQManagement/SQManagement/SQExtension/UIView+SQExtension.h deleted file mode 100644 index 0ee98a24..00000000 --- a/SQManagement/SQManagement/SQExtension/UIView+SQExtension.h +++ /dev/null @@ -1,45 +0,0 @@ -// -// UIView+SQExtension.h -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -typedef void (^SQWhenTappedBlock)(void); - -@interface UIView (SQExtension) - -- (CGFloat)xMax; - -- (CGFloat)xMiddle; - -- (CGFloat)x; - -- (CGFloat)yMax; - -- (CGFloat)yMiddle; - -- (CGFloat)y; - -- (CGFloat)width; - -- (CGFloat)height; - -- (void)removeAllSubviews; - -- (void)whenTapped:(SQWhenTappedBlock)block; - -- (void)whenDoubleTapped:(SQWhenTappedBlock)block; - -- (void)whenTwoFingerTapped:(SQWhenTappedBlock)block; - -- (void)whenTouchedDown:(SQWhenTappedBlock)block; - -- (void)whenTouchedUp:(SQWhenTappedBlock)block; - -- (void)loomingAnimationWithDuration:(CGFloat)duration; - -@end diff --git a/SQManagement/SQManagement/SQExtension/UIView+SQExtension.m b/SQManagement/SQManagement/SQExtension/UIView+SQExtension.m deleted file mode 100644 index 93befc73..00000000 --- a/SQManagement/SQManagement/SQExtension/UIView+SQExtension.m +++ /dev/null @@ -1,156 +0,0 @@ -// -// UIView+SQExtension.m -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "UIView+SQExtension.h" -#import - -@implementation UIView (SQExtension) - -- (CGFloat)xMax { - return self.frame.origin.x + self.frame.size.width; -} - -- (CGFloat)xMiddle { - return self.frame.origin.x + (self.frame.size.width * 0.5f); -} - -- (CGFloat)x { - return self.frame.origin.x; -} - -- (CGFloat)yMax { - return self.frame.origin.y + self.frame.size.height; -} - -- (CGFloat)yMiddle { - return self.frame.origin.y + (self.frame.size.height * 0.5f); -} - -- (CGFloat)y { - return self.frame.origin.y; -} - -- (CGFloat)width { - return self.frame.size.width; -} - -- (CGFloat)height { - return self.frame.size.height; -} - -- (void)removeAllSubviews { - for (UIView * subview in self.subviews) { - [subview removeFromSuperview]; - } -} - -static char kWhenTappedBlockKey; -static char kWhenDoubleTappedBlockKey; -static char kWhenTwoFingerTappedBlockKey; -static char kWhenTouchedDownBlockKey; -static char kWhenTouchedUpBlockKey; - -- (void)whenTapped:(SQWhenTappedBlock)block { - UITapGestureRecognizer * gesture = [self addTapGestureRecognizerWithTaps:1 touches:1 selector:@selector(viewWasTapped)]; - [self addRequiredToDoubleTapsRecognizer:gesture]; - [self setBlock:block forKey:&kWhenTappedBlockKey]; -} - -- (void)whenDoubleTapped:(SQWhenTappedBlock)block { - UITapGestureRecognizer * gesture = [self addTapGestureRecognizerWithTaps:2 touches:1 selector:@selector(viewWasDoubleTapped)]; - [self addRequirementToSingleTapsRecognizer:gesture]; - [self setBlock:block forKey:&kWhenDoubleTappedBlockKey]; -} - -- (void)whenTwoFingerTapped:(SQWhenTappedBlock)block { - [self addTapGestureRecognizerWithTaps:1 touches:2 selector:@selector(viewWasTwoFingerTapped)]; - [self setBlock:block forKey:&kWhenTwoFingerTappedBlockKey]; -} - -- (void)whenTouchedDown:(SQWhenTappedBlock)block { - [self setBlock:block forKey:&kWhenTouchedDownBlockKey]; -} - -- (void)whenTouchedUp:(SQWhenTappedBlock)block { - [self setBlock:block forKey:&kWhenTouchedUpBlockKey]; -} -/** SEL method */ -- (void)viewWasTapped { - [self runBlockForKey:&kWhenTappedBlockKey]; -} -/** SEL method */ -- (void)viewWasDoubleTapped { - [self runBlockForKey:&kWhenDoubleTappedBlockKey]; -} -/** SEL method */ -- (void)viewWasTwoFingerTapped { - [self runBlockForKey:&kWhenTwoFingerTappedBlockKey]; -} -/** respond method */ -- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { - [super touchesBegan:touches withEvent:event]; - [self runBlockForKey:&kWhenTouchedDownBlockKey]; -} -/** respond method */ -- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { - [super touchesEnded:touches withEvent:event]; - [self runBlockForKey:&kWhenTouchedUpBlockKey]; -} -/** private method */ -- (void)runBlockForKey:(void *)blockKey { - SQWhenTappedBlock block = objc_getAssociatedObject(self, blockKey); - if (block) block(); -} -/** private method */ -- (void)setBlock:(SQWhenTappedBlock)block forKey:(void *)blockKey { - self.userInteractionEnabled = YES; - objc_setAssociatedObject(self, blockKey, block, OBJC_ASSOCIATION_COPY_NONATOMIC); -} -/** gesture method */ -- (UITapGestureRecognizer *)addTapGestureRecognizerWithTaps:(NSUInteger)taps touches:(NSUInteger)touches selector:(SEL)selector { - UITapGestureRecognizer * tapGesture = [[UITapGestureRecognizer alloc] initWithTarget:self action:selector]; - tapGesture.delegate = (id)self; - tapGesture.numberOfTapsRequired = taps; - tapGesture.numberOfTouchesRequired = touches; - [self addGestureRecognizer:tapGesture]; - - return tapGesture; -} -/** gesture method */ -- (void) addRequirementToSingleTapsRecognizer:(UIGestureRecognizer*) recognizer { - for (UIGestureRecognizer * gesture in [self gestureRecognizers]) { - if ([gesture isKindOfClass:[UITapGestureRecognizer class]]) { - UITapGestureRecognizer* tapGesture = (UITapGestureRecognizer*) gesture; - if (tapGesture.numberOfTouchesRequired == 1 && tapGesture.numberOfTapsRequired == 1) { - [tapGesture requireGestureRecognizerToFail:recognizer]; - } - } - } -} -/** gesture method */ -- (void) addRequiredToDoubleTapsRecognizer:(UIGestureRecognizer*) recognizer { - for (UIGestureRecognizer * gesture in [self gestureRecognizers]) { - if ([gesture isKindOfClass:[UITapGestureRecognizer class]]) { - UITapGestureRecognizer* tapGesture = (UITapGestureRecognizer*) gesture; - if (tapGesture.numberOfTouchesRequired == 2 && tapGesture.numberOfTapsRequired == 1) { - [recognizer requireGestureRecognizerToFail:tapGesture]; - } - } - } -} - -- (void)loomingAnimationWithDuration:(CGFloat)duration { - - self.alpha = 0.0; - [UIView animateWithDuration:duration animations:^{ - self.alpha = 1.0; - }]; -} - - -@end diff --git a/SQManagement/SQManagement/SQExtension/UIViewController+SQExtension.h b/SQManagement/SQManagement/SQExtension/UIViewController+SQExtension.h deleted file mode 100644 index e0623e54..00000000 --- a/SQManagement/SQManagement/SQExtension/UIViewController+SQExtension.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// UIViewController+SQExtension.h -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -@interface UIViewController (SQExtension) - -- (UILabel *)findNavigationBarContentViewTitleLabel; - -- (void)navigationBarGradualChangeWithScrollView:(UIScrollView *)scrollView titleView:(UIView *)titleView movableView:(UIView *)movableView offset:(CGFloat)offset color:(UIColor *)color; - -- (void)setNavigationBarColor:(UIColor *)color alpha:(CGFloat)alpha; - -@end diff --git a/SQManagement/SQManagement/SQExtension/UIViewController+SQExtension.m b/SQManagement/SQManagement/SQExtension/UIViewController+SQExtension.m deleted file mode 100644 index 527de15b..00000000 --- a/SQManagement/SQManagement/SQExtension/UIViewController+SQExtension.m +++ /dev/null @@ -1,47 +0,0 @@ -// -// UIViewController+SQExtension.m -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "UIViewController+SQExtension.h" -#import "UIImage+SQExtension.h" -#import "UIView+SQExtension.h" - -@implementation UIViewController (SQExtension) - -- (UILabel *)findNavigationBarContentViewTitleLabel { - for (UIView * _UINavigationBarContentView in self.navigationController.navigationBar.subviews) { - if ([_UINavigationBarContentView isKindOfClass:NSClassFromString(@"_UINavigationBarContentView")]) { - for (UILabel *titleLabel in _UINavigationBarContentView.subviews) { - if ([titleLabel isKindOfClass:UILabel.class] && [titleLabel.text isEqualToString:self.title]) { - return titleLabel; - } - } - } - } - return nil; -} - -- (void)navigationBarGradualChangeWithScrollView:(UIScrollView *)scrollView titleView:(UIView *)titleView movableView:(UIView *)movableView offset:(CGFloat)offset color:(UIColor *)color { - - [self viewWillLayoutSubviews]; - [self.navigationController.navigationBar setUserInteractionEnabled:scrollView.contentOffset.y > offset ? YES : NO]; - - float alpha = 1 - ((offset - scrollView.contentOffset.y) / offset); - [self setNavigationBarColor:color alpha:alpha]; - titleView .hidden = scrollView.contentOffset.y > offset ? NO : YES; - movableView.hidden = !titleView.hidden; -} - -- (void)setNavigationBarColor:(UIColor *)color alpha:(CGFloat)alpha { - [self.navigationController.navigationBar setBackgroundImage:[UIImage imageWithColor:[color colorWithAlphaComponent:alpha > 0.95f ? 0.95f : alpha]] forBarMetrics:UIBarMetricsDefault]; - if (self.navigationController.viewControllers.count > 1) { - UIView * view = [[UIView alloc]initWithFrame:CGRectMake(0, 0, self.view.width, 64)]; - view.backgroundColor = color; [self.view addSubview:view]; - } -} - -@end diff --git a/SQManagement/SQManagement/SQManagement.xcdatamodeld/.xccurrentversion b/SQManagement/SQManagement/SQManagement.xcdatamodeld/.xccurrentversion deleted file mode 100644 index 4be0f31a..00000000 --- a/SQManagement/SQManagement/SQManagement.xcdatamodeld/.xccurrentversion +++ /dev/null @@ -1,8 +0,0 @@ - - - - - _XCCurrentVersionName - SQManagement.xcdatamodel - - diff --git a/SQManagement/SQManagement/SQManagement.xcdatamodeld/SQManagement.xcdatamodel/contents b/SQManagement/SQManagement/SQManagement.xcdatamodeld/SQManagement.xcdatamodel/contents deleted file mode 100644 index 5d6f17b7..00000000 --- a/SQManagement/SQManagement/SQManagement.xcdatamodeld/SQManagement.xcdatamodel/contents +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/SQManagement/SQManagement/Time/SQTimeEventsViewController.h b/SQManagement/SQManagement/Time/SQTimeEventsViewController.h deleted file mode 100644 index 84883701..00000000 --- a/SQManagement/SQManagement/Time/SQTimeEventsViewController.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// SQProjectTimeViewController.h -// SQManagement -// -// Created by 朱双泉 on 2019/9/29. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface SQTimeEventsViewController : UIViewController - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/Time/SQTimeEventsViewController.m b/SQManagement/SQManagement/Time/SQTimeEventsViewController.m deleted file mode 100644 index 1ec54c09..00000000 --- a/SQManagement/SQManagement/Time/SQTimeEventsViewController.m +++ /dev/null @@ -1,32 +0,0 @@ -// -// SQProjectTimeViewController.m -// SQManagement -// -// Created by 朱双泉 on 2019/9/29. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQTimeEventsViewController.h" - -@interface SQTimeEventsViewController () - -@end - -@implementation SQTimeEventsViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - self.title = @"新增项目"; -} - -/* -#pragma mark - Navigation - -// In a storyboard-based application, you will often want to do a little preparation before navigation -- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender { - // Get the new view controller using [segue destinationViewController]. - // Pass the selected object to the new view controller. -} -*/ - -@end diff --git a/SQManagement/SQManagement/Time/SQTimeViewController.h b/SQManagement/SQManagement/Time/SQTimeViewController.h deleted file mode 100644 index 28ae3140..00000000 --- a/SQManagement/SQManagement/Time/SQTimeViewController.h +++ /dev/null @@ -1,17 +0,0 @@ -// -// SQTimeViewController.h -// SQManagement -// -// Created by 朱双泉 on 2019/9/26. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQH1TitleViewController.h" - -NS_ASSUME_NONNULL_BEGIN - -@interface SQTimeViewController : SQH1TitleViewController - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/Time/SQTimeViewController.m b/SQManagement/SQManagement/Time/SQTimeViewController.m deleted file mode 100644 index 749fd589..00000000 --- a/SQManagement/SQManagement/Time/SQTimeViewController.m +++ /dev/null @@ -1,61 +0,0 @@ -// -// SQTimeViewController.m -// SQManagement -// -// Created by 朱双泉 on 2019/9/26. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQTimeViewController.h" -#import "SQH1TitleView.h" -#import "SQSearchInputView.h" -#import "SQTimeEventsViewController.h" - -@interface SQTimeViewController () -@end - -@implementation SQTimeViewController - -- (void)viewDidLoad { - [super viewDidLoad]; - self.title = @"时间"; -} - -- (BOOL)isShowNavigationShadowImage { - return NO; -} - -- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView { - return 2; -} - -- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { - if (section == 0) return 0; - else return 20; -} - -- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { - UITableViewCell *cell= [tableView dequeueReusableCellWithIdentifier:@"cell"]; - if (!cell) { - cell = [[UITableViewCell alloc] initWithStyle:(UITableViewCellStyleDefault) reuseIdentifier:@"cell"]; - } - cell.textLabel.text = [NSString stringWithFormat:@"%li", indexPath.row]; - return cell; -} - -- (UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section { - if (section == 0) return [SQH1TitleView viewWithTitle:self.title]; - else return [SQSearchInputView inputView]; -} - -- (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section { - if (section == 0) return 64; - return 44; -} - -- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { - [tableView deselectRowAtIndexPath:indexPath animated:YES]; - [self.navigationController pushViewController:[SQTimeEventsViewController new] animated:YES]; -} - -@end diff --git a/SQManagement/SQManagement/UI/Main~.storyboard b/SQManagement/SQManagement/UI/Main~.storyboard deleted file mode 100644 index 62eb51e7..00000000 --- a/SQManagement/SQManagement/UI/Main~.storyboard +++ /dev/null @@ -1,242 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SQManagement/SQManagement/UI/SQH1TitleView.h b/SQManagement/SQManagement/UI/SQH1TitleView.h deleted file mode 100644 index ff43a11d..00000000 --- a/SQManagement/SQManagement/UI/SQH1TitleView.h +++ /dev/null @@ -1,19 +0,0 @@ -// -// SQH1TitleView.h -// SQMagnet -// -// Created by 朱双泉 on 2019/7/11. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface SQH1TitleView : UIView - -+ (instancetype)viewWithTitle:(NSString *)title; - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/UI/SQH1TitleView.m b/SQManagement/SQManagement/UI/SQH1TitleView.m deleted file mode 100644 index 668c6274..00000000 --- a/SQManagement/SQManagement/UI/SQH1TitleView.m +++ /dev/null @@ -1,23 +0,0 @@ -// -// SQH1TitleView.m -// SQMagnet -// -// Created by 朱双泉 on 2019/7/11. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQH1TitleView.h" - -@interface SQH1TitleView () -@property (weak, nonatomic) IBOutlet UILabel *titleLabel; -@end - -@implementation SQH1TitleView - -+ (instancetype)viewWithTitle:(NSString *)title { - SQH1TitleView *titleView = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self.class) owner:nil options:nil].firstObject; - titleView.titleLabel.text = title; - return titleView; -} - -@end diff --git a/SQManagement/SQManagement/UI/SQH1TitleView.xib b/SQManagement/SQManagement/UI/SQH1TitleView.xib deleted file mode 100644 index aedd5cb2..00000000 --- a/SQManagement/SQManagement/UI/SQH1TitleView.xib +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SQManagement/SQManagement/UI/SQProfileHeaderView.h b/SQManagement/SQManagement/UI/SQProfileHeaderView.h deleted file mode 100644 index 4142d6c9..00000000 --- a/SQManagement/SQManagement/UI/SQProfileHeaderView.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// SQProfileHeaderView.h -// SQManagement -// -// Created by 朱双泉 on 2019/9/24. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface SQProfileHeaderView : UIView - -@property (weak, nonatomic) IBOutlet UIImageView *profileImageView; - -+ (instancetype)headerView; - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/UI/SQProfileHeaderView.m b/SQManagement/SQManagement/UI/SQProfileHeaderView.m deleted file mode 100644 index abb31d91..00000000 --- a/SQManagement/SQManagement/UI/SQProfileHeaderView.m +++ /dev/null @@ -1,24 +0,0 @@ -// -// SQProfileHeaderView.m -// SQManagement -// -// Created by 朱双泉 on 2019/9/24. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQProfileHeaderView.h" - -@implementation SQProfileHeaderView - -+ (instancetype)headerView { - SQProfileHeaderView *headerView = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self.class) owner:nil options:nil].firstObject; - headerView.profileImageView.layer.cornerRadius = 10; - headerView.profileImageView.layer.masksToBounds = YES; - headerView.profileImageView.layer.shadowColor = [UIColor lightGrayColor].CGColor; - headerView.profileImageView.layer.shadowOffset = CGSizeMake(5, 5); - headerView.profileImageView.layer.shadowOpacity = 0.8; - headerView.profileImageView.layer.shadowRadius = 4; - return headerView; -} - -@end diff --git a/SQManagement/SQManagement/UI/SQProfileHeaderView.xib b/SQManagement/SQManagement/UI/SQProfileHeaderView.xib deleted file mode 100644 index 0ffdbca2..00000000 --- a/SQManagement/SQManagement/UI/SQProfileHeaderView.xib +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SQManagement/SQManagement/UI/SQSearchInputView.h b/SQManagement/SQManagement/UI/SQSearchInputView.h deleted file mode 100644 index 7942d64d..00000000 --- a/SQManagement/SQManagement/UI/SQSearchInputView.h +++ /dev/null @@ -1,21 +0,0 @@ -// -// SQSearchInputView.h -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import - -NS_ASSUME_NONNULL_BEGIN - -@interface SQSearchInputView : UIView - -+ (instancetype)inputView; - -- (void)hookApplicationWillEnterForeground; - -@end - -NS_ASSUME_NONNULL_END diff --git a/SQManagement/SQManagement/UI/SQSearchInputView.m b/SQManagement/SQManagement/UI/SQSearchInputView.m deleted file mode 100644 index 7c59a07c..00000000 --- a/SQManagement/SQManagement/UI/SQSearchInputView.m +++ /dev/null @@ -1,59 +0,0 @@ -// -// SQSearchInputView.m -// SQMagnet -// -// Created by 朱双泉 on 2019/7/12. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import "SQSearchInputView.h" -#import "UIColor+SQExtension.h" -#import "NSObject+SQExtension.h" -#import "UIView+SQExtension.h" - -@interface SQSearchInputView () - -@property (weak, nonatomic) IBOutlet UITextField *textField; -@property (nonatomic, strong) NSMutableDictionary *dict; - -@end - -@implementation SQSearchInputView - -+ (instancetype)inputView { - SQSearchInputView *inputView = [[NSBundle mainBundle] loadNibNamed:NSStringFromClass(self.class) owner:nil options:nil].firstObject; - [inputView hookApplicationWillEnterForeground]; - return inputView; -} - -- (void)awakeFromNib { - [super awakeFromNib]; - UIImageView *imageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"search_icon"]]; - UIView *leftView = [UIView new]; - leftView.frame = CGRectMake(5, 0, imageView.width + 10, self.textField.height); - imageView.center = leftView.center; - [leftView addSubview:imageView]; - self.textField.leftView = leftView; - self.textField.leftViewMode = UITextFieldViewModeAlways; -} - -- (void)hookApplicationWillEnterForeground { - if (@available(iOS 13.0, *)) { - self.textField.backgroundColor = [UIColor colorWithDynamicProvider:^UIColor * _Nonnull(UITraitCollection * _Nonnull trait) { - if (trait.userInterfaceStyle == UIUserInterfaceStyleDark) { - return [[UIColor colorWithHexString:@"#1c1c1e"] colorWithAlphaComponent:0.7f]; - } else { - return [[UIColor colorWithHexString:@"#eeeeef"] colorWithAlphaComponent:0.7f]; - } - }]; - self.textField.textColor = [UIColor colorWithDynamicProvider:^UIColor * _Nonnull(UITraitCollection * _Nonnull trait) { - if (trait.userInterfaceStyle == UIUserInterfaceStyleDark) { - return [UIColor whiteColor]; - } else { - return [UIColor blackColor]; - } - }]; - } -} - -@end diff --git a/SQManagement/SQManagement/UI/SQSearchInputView.xib b/SQManagement/SQManagement/UI/SQSearchInputView.xib deleted file mode 100644 index c31cd57f..00000000 --- a/SQManagement/SQManagement/UI/SQSearchInputView.xib +++ /dev/null @@ -1,50 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/SQManagement/SQManagement/main.m b/SQManagement/SQManagement/main.m deleted file mode 100644 index 693bcc4e..00000000 --- a/SQManagement/SQManagement/main.m +++ /dev/null @@ -1,19 +0,0 @@ -// -// main.m -// SQManagement -// -// Created by 朱双泉 on 2019/9/20. -// Copyright © 2019 Castie!. All rights reserved. -// - -#import -#import "AppDelegate.h" - -int main(int argc, char * argv[]) { - NSString * appDelegateClassName; - @autoreleasepool { - // Setup code that might create autoreleased objects goes here. - appDelegateClassName = NSStringFromClass([AppDelegate class]); - } - return UIApplicationMain(argc, argv, nil, appDelegateClassName); -} diff --git "a/SQManagement/\344\272\272\350\204\211\345\275\222\346\241\243\350\241\250.png" "b/SQManagement/\344\272\272\350\204\211\345\275\222\346\241\243\350\241\250.png" deleted file mode 100644 index 862461d7..00000000 Binary files "a/SQManagement/\344\272\272\350\204\211\345\275\222\346\241\243\350\241\250.png" and /dev/null differ diff --git "a/SQManagement/\350\201\224\347\263\273\344\272\272\345\205\250\346\201\257\350\203\214\346\231\257\345\215\241.png" "b/SQManagement/\350\201\224\347\263\273\344\272\272\345\205\250\346\201\257\350\203\214\346\231\257\345\215\241.png" deleted file mode 100644 index 24c422e9..00000000 Binary files "a/SQManagement/\350\201\224\347\263\273\344\272\272\345\205\250\346\201\257\350\203\214\346\231\257\345\215\241.png" and /dev/null differ