diff --git a/.gitignore b/.gitignore index 1599b8d..bb68930 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,6 @@ **.egg-info* **/dist/* build -__pycache__ \ No newline at end of file +__pycache__ + +Pods \ No newline at end of file diff --git a/CarControlleriOS/CarController/CarController.xcodeproj/project.pbxproj b/CarControlleriOS/CarController/CarController.xcodeproj/project.pbxproj new file mode 100644 index 0000000..412dde7 --- /dev/null +++ b/CarControlleriOS/CarController/CarController.xcodeproj/project.pbxproj @@ -0,0 +1,425 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 51; + objects = { + +/* Begin PBXBuildFile section */ + 5A9C27132443F52500DBDF12 /* SimpleControllerView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A9C27122443F52500DBDF12 /* SimpleControllerView.swift */; }; + 5A9C27152443F5B500DBDF12 /* ServerData.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A9C27142443F5B500DBDF12 /* ServerData.swift */; }; + 5A9EB27A240100960053D3CF /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A9EB279240100960053D3CF /* AppDelegate.swift */; }; + 5A9EB27C240100960053D3CF /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A9EB27B240100960053D3CF /* SceneDelegate.swift */; }; + 5A9EB27E240100960053D3CF /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5A9EB27D240100960053D3CF /* ContentView.swift */; }; + 5A9EB280240100970053D3CF /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5A9EB27F240100970053D3CF /* Assets.xcassets */; }; + 5A9EB283240100970053D3CF /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5A9EB282240100970053D3CF /* Preview Assets.xcassets */; }; + 5A9EB286240100970053D3CF /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5A9EB284240100970053D3CF /* LaunchScreen.storyboard */; }; + 5BEA7A8C24AF155FC02A6C58 /* Pods_CarController.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03FB25F696A1B33332234B4F /* Pods_CarController.framework */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 03FB25F696A1B33332234B4F /* Pods_CarController.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_CarController.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + 460C6595E5C32777EF7F2A4E /* Pods-CarController.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CarController.release.xcconfig"; path = "Target Support Files/Pods-CarController/Pods-CarController.release.xcconfig"; sourceTree = ""; }; + 4C5C85A33DD98E3CA9FCEF6B /* Pods-CarController.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-CarController.debug.xcconfig"; path = "Target Support Files/Pods-CarController/Pods-CarController.debug.xcconfig"; sourceTree = ""; }; + 5A9C27122443F52500DBDF12 /* SimpleControllerView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimpleControllerView.swift; sourceTree = ""; }; + 5A9C27142443F5B500DBDF12 /* ServerData.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ServerData.swift; sourceTree = ""; }; + 5A9EB276240100960053D3CF /* CarController.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CarController.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 5A9EB279240100960053D3CF /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; + 5A9EB27B240100960053D3CF /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; + 5A9EB27D240100960053D3CF /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 5A9EB27F240100970053D3CF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 5A9EB282240100970053D3CF /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 5A9EB285240100970053D3CF /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; + 5A9EB287240100970053D3CF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 5A9EB273240100960053D3CF /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 5BEA7A8C24AF155FC02A6C58 /* Pods_CarController.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 49C2CFB75CF1768D7363A9DB /* Frameworks */ = { + isa = PBXGroup; + children = ( + 03FB25F696A1B33332234B4F /* Pods_CarController.framework */, + ); + name = Frameworks; + sourceTree = ""; + }; + 5A9EB26D240100950053D3CF = { + isa = PBXGroup; + children = ( + 5A9EB278240100960053D3CF /* CarController */, + 5A9EB277240100960053D3CF /* Products */, + A595BD070E838AFD9A774908 /* Pods */, + 49C2CFB75CF1768D7363A9DB /* Frameworks */, + ); + sourceTree = ""; + }; + 5A9EB277240100960053D3CF /* Products */ = { + isa = PBXGroup; + children = ( + 5A9EB276240100960053D3CF /* CarController.app */, + ); + name = Products; + sourceTree = ""; + }; + 5A9EB278240100960053D3CF /* CarController */ = { + isa = PBXGroup; + children = ( + 5A9EB279240100960053D3CF /* AppDelegate.swift */, + 5A9EB27B240100960053D3CF /* SceneDelegate.swift */, + 5A9EB27D240100960053D3CF /* ContentView.swift */, + 5A9EB27F240100970053D3CF /* Assets.xcassets */, + 5A9EB284240100970053D3CF /* LaunchScreen.storyboard */, + 5A9EB287240100970053D3CF /* Info.plist */, + 5A9EB281240100970053D3CF /* Preview Content */, + 5A9C27122443F52500DBDF12 /* SimpleControllerView.swift */, + 5A9C27142443F5B500DBDF12 /* ServerData.swift */, + ); + path = CarController; + sourceTree = ""; + }; + 5A9EB281240100970053D3CF /* Preview Content */ = { + isa = PBXGroup; + children = ( + 5A9EB282240100970053D3CF /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + A595BD070E838AFD9A774908 /* Pods */ = { + isa = PBXGroup; + children = ( + 4C5C85A33DD98E3CA9FCEF6B /* Pods-CarController.debug.xcconfig */, + 460C6595E5C32777EF7F2A4E /* Pods-CarController.release.xcconfig */, + ); + path = Pods; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 5A9EB275240100960053D3CF /* CarController */ = { + isa = PBXNativeTarget; + buildConfigurationList = 5A9EB28A240100970053D3CF /* Build configuration list for PBXNativeTarget "CarController" */; + buildPhases = ( + DF3C92ECA29980008D9A0ED0 /* [CP] Check Pods Manifest.lock */, + 5A9EB272240100960053D3CF /* Sources */, + 5A9EB273240100960053D3CF /* Frameworks */, + 5A9EB274240100960053D3CF /* Resources */, + E0B3D65287999242E7AD3ABB /* [CP] Embed Pods Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = CarController; + productName = CarController; + productReference = 5A9EB276240100960053D3CF /* CarController.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 5A9EB26E240100950053D3CF /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1130; + LastUpgradeCheck = 1130; + ORGANIZATIONNAME = "Michael Pivato"; + TargetAttributes = { + 5A9EB275240100960053D3CF = { + CreatedOnToolsVersion = 11.3.1; + }; + }; + }; + buildConfigurationList = 5A9EB271240100950053D3CF /* Build configuration list for PBXProject "CarController" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 5A9EB26D240100950053D3CF; + productRefGroup = 5A9EB277240100960053D3CF /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 5A9EB275240100960053D3CF /* CarController */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 5A9EB274240100960053D3CF /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5A9EB286240100970053D3CF /* LaunchScreen.storyboard in Resources */, + 5A9EB283240100970053D3CF /* Preview Assets.xcassets in Resources */, + 5A9EB280240100970053D3CF /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + DF3C92ECA29980008D9A0ED0 /* [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-CarController-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; + }; + E0B3D65287999242E7AD3ABB /* [CP] Embed Pods Frameworks */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-CarController/Pods-CarController-frameworks-${CONFIGURATION}-input-files.xcfilelist", + ); + name = "[CP] Embed Pods Frameworks"; + outputFileListPaths = ( + "${PODS_ROOT}/Target Support Files/Pods-CarController/Pods-CarController-frameworks-${CONFIGURATION}-output-files.xcfilelist", + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-CarController/Pods-CarController-frameworks.sh\"\n"; + showEnvVarsInLog = 0; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 5A9EB272240100960053D3CF /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5A9C27152443F5B500DBDF12 /* ServerData.swift in Sources */, + 5A9EB27A240100960053D3CF /* AppDelegate.swift in Sources */, + 5A9EB27C240100960053D3CF /* SceneDelegate.swift in Sources */, + 5A9C27132443F52500DBDF12 /* SimpleControllerView.swift in Sources */, + 5A9EB27E240100960053D3CF /* ContentView.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXVariantGroup section */ + 5A9EB284240100970053D3CF /* LaunchScreen.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 5A9EB285240100970053D3CF /* Base */, + ); + name = LaunchScreen.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 5A9EB288240100970053D3CF /* 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.2; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 5A9EB289240100970053D3CF /* 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.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 5A9EB28B240100970053D3CF /* Debug */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 4C5C85A33DD98E3CA9FCEF6B /* Pods-CarController.debug.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"CarController/Preview Content\""; + DEVELOPMENT_TEAM = KZ66DBVG63; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = CarController/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.Vato.CarController; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 5A9EB28C240100970053D3CF /* Release */ = { + isa = XCBuildConfiguration; + baseConfigurationReference = 460C6595E5C32777EF7F2A4E /* Pods-CarController.release.xcconfig */; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"CarController/Preview Content\""; + DEVELOPMENT_TEAM = KZ66DBVG63; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = CarController/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.Vato.CarController; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 5A9EB271240100950053D3CF /* Build configuration list for PBXProject "CarController" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 5A9EB288240100970053D3CF /* Debug */, + 5A9EB289240100970053D3CF /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 5A9EB28A240100970053D3CF /* Build configuration list for PBXNativeTarget "CarController" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 5A9EB28B240100970053D3CF /* Debug */, + 5A9EB28C240100970053D3CF /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 5A9EB26E240100950053D3CF /* Project object */; +} diff --git a/CarControlleriOS/CarController/CarController.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/CarControlleriOS/CarController/CarController.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..4a8720b --- /dev/null +++ b/CarControlleriOS/CarController/CarController.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/CarControlleriOS/CarController/CarController.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/CarControlleriOS/CarController/CarController.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/CarControlleriOS/CarController/CarController.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/CarControlleriOS/CarController/CarController.xcodeproj/project.xcworkspace/xcuserdata/piv.xcuserdatad/UserInterfaceState.xcuserstate b/CarControlleriOS/CarController/CarController.xcodeproj/project.xcworkspace/xcuserdata/piv.xcuserdatad/UserInterfaceState.xcuserstate new file mode 100644 index 0000000..48d4abe Binary files /dev/null and b/CarControlleriOS/CarController/CarController.xcodeproj/project.xcworkspace/xcuserdata/piv.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/CarControlleriOS/CarController/CarController.xcworkspace/contents.xcworkspacedata b/CarControlleriOS/CarController/CarController.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..4ffc8d6 --- /dev/null +++ b/CarControlleriOS/CarController/CarController.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/CarControlleriOS/CarController/CarController.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/CarControlleriOS/CarController/CarController.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/CarControlleriOS/CarController/CarController.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/CarControlleriOS/CarController/CarController/AppDelegate.swift b/CarControlleriOS/CarController/CarController/AppDelegate.swift new file mode 100644 index 0000000..fd47dc0 --- /dev/null +++ b/CarControlleriOS/CarController/CarController/AppDelegate.swift @@ -0,0 +1,37 @@ +// +// AppDelegate.swift +// CarController +// +// Created by Michael Pivato on 22/2/20. +// Copyright © 2020 Michael Pivato. All rights reserved. +// + +import UIKit + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // 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. + } + + +} + diff --git a/CarControlleriOS/CarController/CarController/Assets.xcassets/AppIcon.appiconset/Contents.json b/CarControlleriOS/CarController/CarController/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..d8db8d6 --- /dev/null +++ b/CarControlleriOS/CarController/CarController/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "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/CarControlleriOS/CarController/CarController/Assets.xcassets/Contents.json b/CarControlleriOS/CarController/CarController/Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/CarControlleriOS/CarController/CarController/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/CarControlleriOS/CarController/CarController/Base.lproj/LaunchScreen.storyboard b/CarControlleriOS/CarController/CarController/Base.lproj/LaunchScreen.storyboard new file mode 100644 index 0000000..865e932 --- /dev/null +++ b/CarControlleriOS/CarController/CarController/Base.lproj/LaunchScreen.storyboard @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/CarControlleriOS/CarController/CarController/ContentView.swift b/CarControlleriOS/CarController/CarController/ContentView.swift new file mode 100644 index 0000000..5f8de90 --- /dev/null +++ b/CarControlleriOS/CarController/CarController/ContentView.swift @@ -0,0 +1,35 @@ +// +// ContentView.swift +// CarController +// +// Created by Michael Pivato on 22/2/20. +// Copyright © 2020 Michael Pivato. All rights reserved. +// + +import SwiftUI + +struct ContentView: View { + var body: some View { + NavigationView{ + List{ + NavigationLink(destination: SimpleControllerView()){ + Text("Simple Controller") + } + + // TODO: Change these when other functionality is implemented + NavigationLink(destination: SimpleControllerView()){ + Text("SLAM Controller") + } + NavigationLink(destination: SimpleControllerView()){ + Text("Tracking Controller") + } + } + } + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/CarControlleriOS/CarController/CarController/Info.plist b/CarControlleriOS/CarController/CarController/Info.plist new file mode 100644 index 0000000..9742bf0 --- /dev/null +++ b/CarControlleriOS/CarController/CarController/Info.plist @@ -0,0 +1,60 @@ + + + + + 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 + $(PRODUCT_MODULE_NAME).SceneDelegate + + + + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/CarControlleriOS/CarController/CarController/Preview Content/Preview Assets.xcassets/Contents.json b/CarControlleriOS/CarController/CarController/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..da4a164 --- /dev/null +++ b/CarControlleriOS/CarController/CarController/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/CarControlleriOS/CarController/CarController/SceneDelegate.swift b/CarControlleriOS/CarController/CarController/SceneDelegate.swift new file mode 100644 index 0000000..33efa61 --- /dev/null +++ b/CarControlleriOS/CarController/CarController/SceneDelegate.swift @@ -0,0 +1,64 @@ +// +// SceneDelegate.swift +// CarController +// +// Created by Michael Pivato on 22/2/20. +// Copyright © 2020 Michael Pivato. All rights reserved. +// + +import UIKit +import SwiftUI + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.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). + + // Create the SwiftUI view that provides the window contents. + let contentView = ContentView() + + // Use a UIHostingController as window root view controller. + if let windowScene = scene as? UIWindowScene { + let window = UIWindow(windowScene: windowScene) + window.rootViewController = UIHostingController(rootView: contentView.environmentObject(ServerData())) + self.window = window + window.makeKeyAndVisible() + } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // 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). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // 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. + } + + func sceneWillResignActive(_ scene: UIScene) { + // 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). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // 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. + } + + +} + diff --git a/CarControlleriOS/CarController/CarController/ServerData.swift b/CarControlleriOS/CarController/CarController/ServerData.swift new file mode 100644 index 0000000..816144a --- /dev/null +++ b/CarControlleriOS/CarController/CarController/ServerData.swift @@ -0,0 +1,29 @@ +// +// ServerData.swift +// CarController +// +// Created by Michael Pivato on 13/4/20. +// Copyright © 2020 Michael Pivato. All rights reserved. +// + +import Foundation + +final class ServerData: ObservableObject{ + + // TODO: Find a way to save/represent this stuff in iOS settings (user can access via settings app). + // Then load the below values ar runtime, from settings. + + + @Published var port: Int = 50051 + @Published var grpcPort: Int = 50050 + @Published var host: String = "10.0.0.53" + + func load(){ + // Load the server values from settings, if they had been + // previously saved. + } + + func save(){ + // Save the current state to be remembered for next time. + } +} diff --git a/CarControlleriOS/CarController/CarController/SimpleControllerView.swift b/CarControlleriOS/CarController/CarController/SimpleControllerView.swift new file mode 100644 index 0000000..ddddf3c --- /dev/null +++ b/CarControlleriOS/CarController/CarController/SimpleControllerView.swift @@ -0,0 +1,28 @@ +// +// SimpleControllerView.swift +// CarController +// +// Created by Michael Pivato on 13/4/20. +// Copyright © 2020 Michael Pivato. All rights reserved. +// + +import SwiftUI + +struct SimpleControllerView: View { + @EnvironmentObject var server: ServerData + @State var throttle: Float = 0 + + var body: some View { + HStack{ + Text("Opened Simple Controller!") + Slider(value: $throttle) + } + } +} + +struct SimpleControllerView_Previews: PreviewProvider { + static var previews: some View { + SimpleControllerView() + .environmentObject(ServerData()) + } +} diff --git a/CarControlleriOS/CarController/Podfile b/CarControlleriOS/CarController/Podfile new file mode 100644 index 0000000..a14c476 --- /dev/null +++ b/CarControlleriOS/CarController/Podfile @@ -0,0 +1,12 @@ +# Uncomment the next line to define a global platform for your project +# platform :ios, '9.0' + +target 'CarController' do + # Comment the next line if you don't want to use dynamic frameworks + use_frameworks! + + # Pods for CarController + pod 'SwiftGRPC' + pod 'SwiftyZeroMQ5' + pod 'SwiftProtobuf', '~> 1.0' +end