diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..12e5f74 --- /dev/null +++ b/.gitignore @@ -0,0 +1,68 @@ +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## User settings +xcuserdata/ + +## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) +*.xcscmblueprint +*.xccheckout + +## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) +build/ +DerivedData/ +*.moved-aside +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 + +## Obj-C/Swift specific +*.hmap + +## App packaging +*.ipa +*.dSYM.zip +*.dSYM + +# CocoaPods +# +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control +# +Pods/ +# +# Add this line if you want to avoid checking in source code from the Xcode workspace +# *.xcworkspace + +# Carthage +# +# Add this line if you want to avoid checking in source code from Carthage dependencies. +# Carthage/Checkouts + +Carthage/Build/ + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. +# Instead, use fastlane to re-generate the screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/#source-control + +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots/**/*.png +fastlane/test_output + +# Code Injection +# +# After new code Injection tools there's a generated folder /iOSInjectionProject +# https://github.com/johnno1962/injectionforxcode + +iOSInjectionProject/ \ No newline at end of file diff --git a/Brokenithm-iOS.xcodeproj/project.pbxproj b/Brokenithm-iOS.xcodeproj/project.pbxproj index 80b4a78..d59e474 100644 --- a/Brokenithm-iOS.xcodeproj/project.pbxproj +++ b/Brokenithm-iOS.xcodeproj/project.pbxproj @@ -11,8 +11,8 @@ 1968E72924086C2200784829 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1968E72824086C2200784829 /* ViewController.m */; }; 1968E72C24086C2200784829 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1968E72A24086C2200784829 /* Main.storyboard */; }; 1968E72E24086C2B00784829 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 1968E72D24086C2B00784829 /* Assets.xcassets */; }; - 1968E73124086C2B00784829 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 1968E72F24086C2B00784829 /* LaunchScreen.storyboard */; }; 1968E73424086C2B00784829 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 1968E73324086C2B00784829 /* main.m */; }; + D023549DD3B09C46EBA2E321 /* libPods-Brokenithm-iOS.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 5A7EE02147010843456A2152 /* libPods-Brokenithm-iOS.a */; }; /* End PBXBuildFile section */ /* Begin PBXFileReference section */ @@ -23,9 +23,11 @@ 1968E72824086C2200784829 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = ""; }; 1968E72B24086C2200784829 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 1968E72D24086C2B00784829 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - 1968E73024086C2B00784829 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 1968E73224086C2B00784829 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 1968E73324086C2B00784829 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = ""; }; + 259804D4CC006A58255BC938 /* Pods-Brokenithm-iOS.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Brokenithm-iOS.release.xcconfig"; path = "Pods/Target Support Files/Pods-Brokenithm-iOS/Pods-Brokenithm-iOS.release.xcconfig"; sourceTree = ""; }; + 5A7EE02147010843456A2152 /* libPods-Brokenithm-iOS.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-Brokenithm-iOS.a"; sourceTree = BUILT_PRODUCTS_DIR; }; + B78B36B35C6A90E4F71F84B4 /* Pods-Brokenithm-iOS.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Brokenithm-iOS.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Brokenithm-iOS/Pods-Brokenithm-iOS.debug.xcconfig"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -33,6 +35,7 @@ isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( + D023549DD3B09C46EBA2E321 /* libPods-Brokenithm-iOS.a in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -44,6 +47,8 @@ children = ( 1968E72324086C2200784829 /* Brokenithm-iOS */, 1968E72224086C2200784829 /* Products */, + DE2E731564C136C0C73A56CF /* Pods */, + E73642D816ADA73C2E3B79FE /* Frameworks */, ); sourceTree = ""; }; @@ -64,13 +69,29 @@ 1968E72824086C2200784829 /* ViewController.m */, 1968E72A24086C2200784829 /* Main.storyboard */, 1968E72D24086C2B00784829 /* Assets.xcassets */, - 1968E72F24086C2B00784829 /* LaunchScreen.storyboard */, 1968E73224086C2B00784829 /* Info.plist */, 1968E73324086C2B00784829 /* main.m */, ); path = "Brokenithm-iOS"; sourceTree = ""; }; + DE2E731564C136C0C73A56CF /* Pods */ = { + isa = PBXGroup; + children = ( + B78B36B35C6A90E4F71F84B4 /* Pods-Brokenithm-iOS.debug.xcconfig */, + 259804D4CC006A58255BC938 /* Pods-Brokenithm-iOS.release.xcconfig */, + ); + name = Pods; + sourceTree = ""; + }; + E73642D816ADA73C2E3B79FE /* Frameworks */ = { + isa = PBXGroup; + children = ( + 5A7EE02147010843456A2152 /* libPods-Brokenithm-iOS.a */, + ); + name = Frameworks; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXNativeTarget section */ @@ -78,6 +99,7 @@ isa = PBXNativeTarget; buildConfigurationList = 1968E73724086C2B00784829 /* Build configuration list for PBXNativeTarget "Brokenithm-iOS" */; buildPhases = ( + 0542A5954C6F2FAC73EE7B2F /* [CP] Check Pods Manifest.lock */, 1968E71D24086C2100784829 /* Sources */, 1968E71E24086C2100784829 /* Frameworks */, 1968E71F24086C2100784829 /* Resources */, @@ -128,7 +150,6 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 1968E73124086C2B00784829 /* LaunchScreen.storyboard in Resources */, 1968E72E24086C2B00784829 /* Assets.xcassets in Resources */, 1968E72C24086C2200784829 /* Main.storyboard in Resources */, ); @@ -136,6 +157,27 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 0542A5954C6F2FAC73EE7B2F /* [CP] Check Pods Manifest.lock */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + "${PODS_PODFILE_DIR_PATH}/Podfile.lock", + "${PODS_ROOT}/Manifest.lock", + ); + name = "[CP] Check Pods Manifest.lock"; + outputPaths = ( + "$(DERIVED_FILE_DIR)/Pods-Brokenithm-iOS-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 */ 1968E71D24086C2100784829 /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -158,14 +200,6 @@ name = Main.storyboard; sourceTree = ""; }; - 1968E72F24086C2B00784829 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 1968E73024086C2B00784829 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; /* End PBXVariantGroup section */ /* Begin XCBuildConfiguration section */ @@ -283,16 +317,18 @@ }; 1968E73824086C2B00784829 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = B78B36B35C6A90E4F71F84B4 /* Pods-Brokenithm-iOS.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = K9CP5766XY; INFOPLIST_FILE = "Brokenithm-iOS/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = "com.estertion.Brokenithm-iOS"; + PRODUCT_BUNDLE_IDENTIFIER = com.estertion.brokenithm; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; }; @@ -300,16 +336,18 @@ }; 1968E73924086C2B00784829 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 259804D4CC006A58255BC938 /* Pods-Brokenithm-iOS.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_STYLE = Automatic; DEVELOPMENT_TEAM = K9CP5766XY; INFOPLIST_FILE = "Brokenithm-iOS/Info.plist"; + IPHONEOS_DEPLOYMENT_TARGET = 8.0; LD_RUNPATH_SEARCH_PATHS = ( "$(inherited)", "@executable_path/Frameworks", ); - PRODUCT_BUNDLE_IDENTIFIER = "com.estertion.Brokenithm-iOS"; + PRODUCT_BUNDLE_IDENTIFIER = com.estertion.brokenithm; PRODUCT_NAME = "$(TARGET_NAME)"; TARGETED_DEVICE_FAMILY = "1,2"; }; diff --git a/Brokenithm-iOS.xcodeproj/xcshareddata/xcschemes/Brokenithm-iOS.xcscheme b/Brokenithm-iOS.xcodeproj/xcshareddata/xcschemes/Brokenithm-iOS.xcscheme new file mode 100644 index 0000000..0bde12f --- /dev/null +++ b/Brokenithm-iOS.xcodeproj/xcshareddata/xcschemes/Brokenithm-iOS.xcscheme @@ -0,0 +1,91 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Brokenithm-iOS.xcodeproj/xcuserdata/ester.xcuserdatad/xcschemes/xcschememanagement.plist b/Brokenithm-iOS.xcodeproj/xcuserdata/ester.xcuserdatad/xcschemes/xcschememanagement.plist index e70ee7d..798ca30 100644 --- a/Brokenithm-iOS.xcodeproj/xcuserdata/ester.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/Brokenithm-iOS.xcodeproj/xcuserdata/ester.xcuserdatad/xcschemes/xcschememanagement.plist @@ -10,5 +10,13 @@ 0 + SuppressBuildableAutocreation + + 1968E72024086C2100784829 + + primary + + + diff --git a/Brokenithm-iOS.xcworkspace/contents.xcworkspacedata b/Brokenithm-iOS.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..e34e402 --- /dev/null +++ b/Brokenithm-iOS.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Brokenithm-iOS.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Brokenithm-iOS.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Brokenithm-iOS.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Brokenithm-iOS/Base.lproj/LaunchScreen.storyboard b/Brokenithm-iOS/Base.lproj/LaunchScreen.storyboard deleted file mode 100644 index bfa3612..0000000 --- a/Brokenithm-iOS/Base.lproj/LaunchScreen.storyboard +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Brokenithm-iOS/Base.lproj/Main.storyboard b/Brokenithm-iOS/Base.lproj/Main.storyboard index 942f0bc..320f42a 100644 --- a/Brokenithm-iOS/Base.lproj/Main.storyboard +++ b/Brokenithm-iOS/Base.lproj/Main.storyboard @@ -1,24 +1,32 @@ - + + - - + + - - - + + + + + + + - - + + + + + diff --git a/Brokenithm-iOS/Info.plist b/Brokenithm-iOS/Info.plist index 16be3b6..e6770f2 100644 --- a/Brokenithm-iOS/Info.plist +++ b/Brokenithm-iOS/Info.plist @@ -4,6 +4,8 @@ CFBundleDevelopmentRegion $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Brokenithm-iOS CFBundleExecutable $(EXECUTABLE_NAME) CFBundleIdentifier @@ -21,25 +23,30 @@ LSRequiresIPhoneOS UILaunchStoryboardName - LaunchScreen + Main UIMainStoryboardFile Main UIRequiredDeviceCapabilities armv7 + UIRequiresFullScreen + + UIStatusBarHidden + + UIStatusBarStyle + UIStatusBarStyleLightContent UISupportedInterfaceOrientations - UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight UISupportedInterfaceOrientations~ipad - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight + UIViewControllerBasedStatusBarAppearance + diff --git a/Brokenithm-iOS/ViewController.m b/Brokenithm-iOS/ViewController.m index b757a3a..29d3fc2 100644 --- a/Brokenithm-iOS/ViewController.m +++ b/Brokenithm-iOS/ViewController.m @@ -10,6 +10,10 @@ @interface ViewController () +@property UIView *airIOView; +@property UIView *sliderIOView; +@property CAGradientLayer *ledBackground; + @end @implementation ViewController @@ -17,7 +21,41 @@ - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. + CGRect screenSize = [UIScreen mainScreen].bounds; + float screenWidth = screenSize.size.width; + float screenHeight = screenSize.size.height; + float offsetY = 0, sliderHeight = screenHeight*0.6; + self.airIOView = [[UIView alloc] initWithFrame:CGRectMake(0, offsetY, screenWidth, screenHeight*0.4)]; + offsetY += screenHeight*0.4; + self.sliderIOView = [[UIView alloc] initWithFrame:CGRectMake(0, offsetY, screenWidth, sliderHeight)]; + [self.view addSubview:self.airIOView]; + [self.view addSubview:self.sliderIOView]; + self.airIOView.backgroundColor = [UIColor blueColor]; + self.sliderIOView.backgroundColor = [UIColor redColor]; + + struct CGColor *whiteColor = [UIColor whiteColor].CGColor; + float airOffset=0, airHeight = screenHeight*0.4/6; + for (int i=0;i<6;i++) { + UIView *airInput = [[UIView alloc] initWithFrame:CGRectMake(0, airOffset, screenWidth, airHeight)]; + airInput.layer.borderWidth = 1.0f; + airInput.layer.borderColor = whiteColor; + airOffset += airHeight; + [self.airIOView addSubview:airInput]; + } + + float sliderWidth = screenWidth / 16, sliderOffset = 0; + for (int i=0;i<16;i++) { + UIView *sliderInput = [[UIView alloc] initWithFrame:CGRectMake(sliderOffset, 0, sliderWidth, sliderHeight)]; + sliderInput.layer.borderWidth = 1.0f; + sliderInput.layer.borderColor = whiteColor; + sliderOffset += sliderWidth; + [self.sliderIOView addSubview:sliderInput]; + } } +-(BOOL)prefersStatusBarHidden { return kCFCoreFoundationVersionNumber < 1443.00; } +-(UIRectEdge)preferredScreenEdgesDeferringSystemGestures { return UIRectEdgeAll; } +-(BOOL)prefersHomeIndicatorAutoHidden { return YES; } +-(UIStatusBarStyle) preferredStatusBarStyle { return UIStatusBarStyleLightContent;} @end diff --git a/Podfile b/Podfile new file mode 100644 index 0000000..b2e7497 --- /dev/null +++ b/Podfile @@ -0,0 +1,11 @@ +# Uncomment the next line to define a global platform for your project +platform :ios, '8.0' + +target 'Brokenithm-iOS' do + # Uncomment the next line if you're using Swift or would like to use dynamic frameworks + # use_frameworks! + + # Pods for Brokenithm-iOS + pod 'CocoaAsyncSocket' + +end diff --git a/Podfile.lock b/Podfile.lock new file mode 100644 index 0000000..b8ac4a2 --- /dev/null +++ b/Podfile.lock @@ -0,0 +1,16 @@ +PODS: + - CocoaAsyncSocket (7.6.3) + +DEPENDENCIES: + - CocoaAsyncSocket + +SPEC REPOS: + https://github.com/cocoapods/specs.git: + - CocoaAsyncSocket + +SPEC CHECKSUMS: + CocoaAsyncSocket: eafaa68a7e0ec99ead0a7b35015e0bf25d2c8987 + +PODFILE CHECKSUM: 203779727e696b4a59a26ea541d7cfcfdf196b38 + +COCOAPODS: 1.5.3