commit ff017aab5ef27d2d501506d53a2428ddb3988dbe Author: Garth Vander Houwen Date: Wed Aug 18 22:33:05 2021 -0700 Initial Commit diff --git a/MeshtasticClient.xcodeproj/project.pbxproj b/MeshtasticClient.xcodeproj/project.pbxproj new file mode 100644 index 00000000..bfddabbb --- /dev/null +++ b/MeshtasticClient.xcodeproj/project.pbxproj @@ -0,0 +1,606 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 50; + objects = { + +/* Begin PBXBuildFile section */ + DDC2E15826CE248E0042C5E4 /* MeshtasticClientApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC2E15726CE248E0042C5E4 /* MeshtasticClientApp.swift */; }; + DDC2E15A26CE248E0042C5E4 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC2E15926CE248E0042C5E4 /* ContentView.swift */; }; + DDC2E15C26CE248F0042C5E4 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DDC2E15B26CE248F0042C5E4 /* Assets.xcassets */; }; + DDC2E15F26CE248F0042C5E4 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = DDC2E15E26CE248F0042C5E4 /* Preview Assets.xcassets */; }; + DDC2E16126CE248F0042C5E4 /* Persistence.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC2E16026CE248F0042C5E4 /* Persistence.swift */; }; + DDC2E16426CE248F0042C5E4 /* MeshtasticClient.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = DDC2E16226CE248F0042C5E4 /* MeshtasticClient.xcdatamodeld */; }; + DDC2E16F26CE248F0042C5E4 /* MeshtasticClientTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC2E16E26CE248F0042C5E4 /* MeshtasticClientTests.swift */; }; + DDC2E17A26CE248F0042C5E4 /* MeshtasticClientUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = DDC2E17926CE248F0042C5E4 /* MeshtasticClientUITests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + DDC2E16B26CE248F0042C5E4 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = DDC2E14C26CE248E0042C5E4 /* Project object */; + proxyType = 1; + remoteGlobalIDString = DDC2E15326CE248E0042C5E4; + remoteInfo = MeshtasticClient; + }; + DDC2E17626CE248F0042C5E4 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = DDC2E14C26CE248E0042C5E4 /* Project object */; + proxyType = 1; + remoteGlobalIDString = DDC2E15326CE248E0042C5E4; + remoteInfo = MeshtasticClient; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + DDC2E15426CE248E0042C5E4 /* MeshtasticClient.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MeshtasticClient.app; sourceTree = BUILT_PRODUCTS_DIR; }; + DDC2E15726CE248E0042C5E4 /* MeshtasticClientApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MeshtasticClientApp.swift; sourceTree = ""; }; + DDC2E15926CE248E0042C5E4 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + DDC2E15B26CE248F0042C5E4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + DDC2E15E26CE248F0042C5E4 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + DDC2E16026CE248F0042C5E4 /* Persistence.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Persistence.swift; sourceTree = ""; }; + DDC2E16326CE248F0042C5E4 /* MeshtasticClient.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = MeshtasticClient.xcdatamodel; sourceTree = ""; }; + DDC2E16526CE248F0042C5E4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + DDC2E16A26CE248F0042C5E4 /* MeshtasticClientTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MeshtasticClientTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + DDC2E16E26CE248F0042C5E4 /* MeshtasticClientTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MeshtasticClientTests.swift; sourceTree = ""; }; + DDC2E17026CE248F0042C5E4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; + DDC2E17526CE248F0042C5E4 /* MeshtasticClientUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MeshtasticClientUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + DDC2E17926CE248F0042C5E4 /* MeshtasticClientUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MeshtasticClientUITests.swift; sourceTree = ""; }; + DDC2E17B26CE248F0042C5E4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + DDC2E15126CE248E0042C5E4 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DDC2E16726CE248F0042C5E4 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DDC2E17226CE248F0042C5E4 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + DDC2E14B26CE248E0042C5E4 = { + isa = PBXGroup; + children = ( + DDC2E15626CE248E0042C5E4 /* MeshtasticClient */, + DDC2E16D26CE248F0042C5E4 /* MeshtasticClientTests */, + DDC2E17826CE248F0042C5E4 /* MeshtasticClientUITests */, + DDC2E15526CE248E0042C5E4 /* Products */, + ); + sourceTree = ""; + }; + DDC2E15526CE248E0042C5E4 /* Products */ = { + isa = PBXGroup; + children = ( + DDC2E15426CE248E0042C5E4 /* MeshtasticClient.app */, + DDC2E16A26CE248F0042C5E4 /* MeshtasticClientTests.xctest */, + DDC2E17526CE248F0042C5E4 /* MeshtasticClientUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + DDC2E15626CE248E0042C5E4 /* MeshtasticClient */ = { + isa = PBXGroup; + children = ( + DDC2E15726CE248E0042C5E4 /* MeshtasticClientApp.swift */, + DDC2E15926CE248E0042C5E4 /* ContentView.swift */, + DDC2E15B26CE248F0042C5E4 /* Assets.xcassets */, + DDC2E16026CE248F0042C5E4 /* Persistence.swift */, + DDC2E16526CE248F0042C5E4 /* Info.plist */, + DDC2E16226CE248F0042C5E4 /* MeshtasticClient.xcdatamodeld */, + DDC2E15D26CE248F0042C5E4 /* Preview Content */, + ); + path = MeshtasticClient; + sourceTree = ""; + }; + DDC2E15D26CE248F0042C5E4 /* Preview Content */ = { + isa = PBXGroup; + children = ( + DDC2E15E26CE248F0042C5E4 /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + DDC2E16D26CE248F0042C5E4 /* MeshtasticClientTests */ = { + isa = PBXGroup; + children = ( + DDC2E16E26CE248F0042C5E4 /* MeshtasticClientTests.swift */, + DDC2E17026CE248F0042C5E4 /* Info.plist */, + ); + path = MeshtasticClientTests; + sourceTree = ""; + }; + DDC2E17826CE248F0042C5E4 /* MeshtasticClientUITests */ = { + isa = PBXGroup; + children = ( + DDC2E17926CE248F0042C5E4 /* MeshtasticClientUITests.swift */, + DDC2E17B26CE248F0042C5E4 /* Info.plist */, + ); + path = MeshtasticClientUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + DDC2E15326CE248E0042C5E4 /* MeshtasticClient */ = { + isa = PBXNativeTarget; + buildConfigurationList = DDC2E17E26CE248F0042C5E4 /* Build configuration list for PBXNativeTarget "MeshtasticClient" */; + buildPhases = ( + DDC2E15026CE248E0042C5E4 /* Sources */, + DDC2E15126CE248E0042C5E4 /* Frameworks */, + DDC2E15226CE248E0042C5E4 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = MeshtasticClient; + productName = MeshtasticClient; + productReference = DDC2E15426CE248E0042C5E4 /* MeshtasticClient.app */; + productType = "com.apple.product-type.application"; + }; + DDC2E16926CE248F0042C5E4 /* MeshtasticClientTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = DDC2E18126CE248F0042C5E4 /* Build configuration list for PBXNativeTarget "MeshtasticClientTests" */; + buildPhases = ( + DDC2E16626CE248F0042C5E4 /* Sources */, + DDC2E16726CE248F0042C5E4 /* Frameworks */, + DDC2E16826CE248F0042C5E4 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + DDC2E16C26CE248F0042C5E4 /* PBXTargetDependency */, + ); + name = MeshtasticClientTests; + productName = MeshtasticClientTests; + productReference = DDC2E16A26CE248F0042C5E4 /* MeshtasticClientTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + DDC2E17426CE248F0042C5E4 /* MeshtasticClientUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = DDC2E18426CE248F0042C5E4 /* Build configuration list for PBXNativeTarget "MeshtasticClientUITests" */; + buildPhases = ( + DDC2E17126CE248F0042C5E4 /* Sources */, + DDC2E17226CE248F0042C5E4 /* Frameworks */, + DDC2E17326CE248F0042C5E4 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + DDC2E17726CE248F0042C5E4 /* PBXTargetDependency */, + ); + name = MeshtasticClientUITests; + productName = MeshtasticClientUITests; + productReference = DDC2E17526CE248F0042C5E4 /* MeshtasticClientUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + DDC2E14C26CE248E0042C5E4 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 1250; + LastUpgradeCheck = 1250; + TargetAttributes = { + DDC2E15326CE248E0042C5E4 = { + CreatedOnToolsVersion = 12.5.1; + }; + DDC2E16926CE248F0042C5E4 = { + CreatedOnToolsVersion = 12.5.1; + TestTargetID = DDC2E15326CE248E0042C5E4; + }; + DDC2E17426CE248F0042C5E4 = { + CreatedOnToolsVersion = 12.5.1; + TestTargetID = DDC2E15326CE248E0042C5E4; + }; + }; + }; + buildConfigurationList = DDC2E14F26CE248E0042C5E4 /* Build configuration list for PBXProject "MeshtasticClient" */; + compatibilityVersion = "Xcode 9.3"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = DDC2E14B26CE248E0042C5E4; + productRefGroup = DDC2E15526CE248E0042C5E4 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + DDC2E15326CE248E0042C5E4 /* MeshtasticClient */, + DDC2E16926CE248F0042C5E4 /* MeshtasticClientTests */, + DDC2E17426CE248F0042C5E4 /* MeshtasticClientUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + DDC2E15226CE248E0042C5E4 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DDC2E15F26CE248F0042C5E4 /* Preview Assets.xcassets in Resources */, + DDC2E15C26CE248F0042C5E4 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DDC2E16826CE248F0042C5E4 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DDC2E17326CE248F0042C5E4 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + DDC2E15026CE248E0042C5E4 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DDC2E16126CE248F0042C5E4 /* Persistence.swift in Sources */, + DDC2E16426CE248F0042C5E4 /* MeshtasticClient.xcdatamodeld in Sources */, + DDC2E15A26CE248E0042C5E4 /* ContentView.swift in Sources */, + DDC2E15826CE248E0042C5E4 /* MeshtasticClientApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DDC2E16626CE248F0042C5E4 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DDC2E16F26CE248F0042C5E4 /* MeshtasticClientTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + DDC2E17126CE248F0042C5E4 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + DDC2E17A26CE248F0042C5E4 /* MeshtasticClientUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + DDC2E16C26CE248F0042C5E4 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = DDC2E15326CE248E0042C5E4 /* MeshtasticClient */; + targetProxy = DDC2E16B26CE248F0042C5E4 /* PBXContainerItemProxy */; + }; + DDC2E17726CE248F0042C5E4 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = DDC2E15326CE248E0042C5E4 /* MeshtasticClient */; + targetProxy = DDC2E17626CE248F0042C5E4 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + DDC2E17C26CE248F0042C5E4 /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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 = 14.5; + 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; + }; + DDC2E17D26CE248F0042C5E4 /* 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + 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 = 14.5; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + DDC2E17F26CE248F0042C5E4 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"MeshtasticClient/Preview Content\""; + DEVELOPMENT_TEAM = GCH7VS5Y9R; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = MeshtasticClient/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = gvh.MeshtasticClient; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + DDC2E18026CE248F0042C5E4 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_ASSET_PATHS = "\"MeshtasticClient/Preview Content\""; + DEVELOPMENT_TEAM = GCH7VS5Y9R; + ENABLE_PREVIEWS = YES; + INFOPLIST_FILE = MeshtasticClient/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = gvh.MeshtasticClient; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + DDC2E18226CE248F0042C5E4 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = GCH7VS5Y9R; + INFOPLIST_FILE = MeshtasticClientTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = gvh.MeshtasticClientTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MeshtasticClient.app/MeshtasticClient"; + }; + name = Debug; + }; + DDC2E18326CE248F0042C5E4 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = GCH7VS5Y9R; + INFOPLIST_FILE = MeshtasticClientTests/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 14.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = gvh.MeshtasticClientTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MeshtasticClient.app/MeshtasticClient"; + }; + name = Release; + }; + DDC2E18526CE248F0042C5E4 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = GCH7VS5Y9R; + INFOPLIST_FILE = MeshtasticClientUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = gvh.MeshtasticClientUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = MeshtasticClient; + }; + name = Debug; + }; + DDC2E18626CE248F0042C5E4 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + DEVELOPMENT_TEAM = GCH7VS5Y9R; + INFOPLIST_FILE = MeshtasticClientUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@loader_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = gvh.MeshtasticClientUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = MeshtasticClient; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + DDC2E14F26CE248E0042C5E4 /* Build configuration list for PBXProject "MeshtasticClient" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DDC2E17C26CE248F0042C5E4 /* Debug */, + DDC2E17D26CE248F0042C5E4 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + DDC2E17E26CE248F0042C5E4 /* Build configuration list for PBXNativeTarget "MeshtasticClient" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DDC2E17F26CE248F0042C5E4 /* Debug */, + DDC2E18026CE248F0042C5E4 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + DDC2E18126CE248F0042C5E4 /* Build configuration list for PBXNativeTarget "MeshtasticClientTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DDC2E18226CE248F0042C5E4 /* Debug */, + DDC2E18326CE248F0042C5E4 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + DDC2E18426CE248F0042C5E4 /* Build configuration list for PBXNativeTarget "MeshtasticClientUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + DDC2E18526CE248F0042C5E4 /* Debug */, + DDC2E18626CE248F0042C5E4 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCVersionGroup section */ + DDC2E16226CE248F0042C5E4 /* MeshtasticClient.xcdatamodeld */ = { + isa = XCVersionGroup; + children = ( + DDC2E16326CE248F0042C5E4 /* MeshtasticClient.xcdatamodel */, + ); + currentVersion = DDC2E16326CE248F0042C5E4 /* MeshtasticClient.xcdatamodel */; + path = MeshtasticClient.xcdatamodeld; + sourceTree = ""; + versionGroupType = wrapper.xcdatamodel; + }; +/* End XCVersionGroup section */ + }; + rootObject = DDC2E14C26CE248E0042C5E4 /* Project object */; +} diff --git a/MeshtasticClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/MeshtasticClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 00000000..919434a6 --- /dev/null +++ b/MeshtasticClient.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/MeshtasticClient.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/MeshtasticClient.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 00000000..18d98100 --- /dev/null +++ b/MeshtasticClient.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/MeshtasticClient.xcodeproj/xcuserdata/garthvanderhouwen.xcuserdatad/xcschemes/xcschememanagement.plist b/MeshtasticClient.xcodeproj/xcuserdata/garthvanderhouwen.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 00000000..f0e83da9 --- /dev/null +++ b/MeshtasticClient.xcodeproj/xcuserdata/garthvanderhouwen.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + MeshtasticClient.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/MeshtasticClient/Assets.xcassets/AccentColor.colorset/Contents.json b/MeshtasticClient/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 00000000..eb878970 --- /dev/null +++ b/MeshtasticClient/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/MeshtasticClient/Assets.xcassets/AppIcon.appiconset/Contents.json b/MeshtasticClient/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 00000000..9221b9bb --- /dev/null +++ b/MeshtasticClient/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,98 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/MeshtasticClient/Assets.xcassets/Contents.json b/MeshtasticClient/Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/MeshtasticClient/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/MeshtasticClient/ContentView.swift b/MeshtasticClient/ContentView.swift new file mode 100644 index 00000000..93727c16 --- /dev/null +++ b/MeshtasticClient/ContentView.swift @@ -0,0 +1,80 @@ +// +// ContentView.swift +// MeshtasticClient +// +// Created by Garth Vander Houwen on 8/18/21. +// + +import SwiftUI +import CoreData + +struct ContentView: View { + @Environment(\.managedObjectContext) private var viewContext + + @FetchRequest( + sortDescriptors: [NSSortDescriptor(keyPath: \Item.timestamp, ascending: true)], + animation: .default) + private var items: FetchedResults + + var body: some View { + List { + ForEach(items) { item in + Text("Item at \(item.timestamp!, formatter: itemFormatter)") + } + .onDelete(perform: deleteItems) + } + .toolbar { + #if os(iOS) + EditButton() + #endif + + Button(action: addItem) { + Label("Add Item", systemImage: "plus") + } + } + } + + private func addItem() { + withAnimation { + let newItem = Item(context: viewContext) + newItem.timestamp = Date() + + do { + try viewContext.save() + } catch { + // Replace this implementation with code to handle the error appropriately. + // fatalError() 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. + let nsError = error as NSError + fatalError("Unresolved error \(nsError), \(nsError.userInfo)") + } + } + } + + private func deleteItems(offsets: IndexSet) { + withAnimation { + offsets.map { items[$0] }.forEach(viewContext.delete) + + do { + try viewContext.save() + } catch { + // Replace this implementation with code to handle the error appropriately. + // fatalError() 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. + let nsError = error as NSError + fatalError("Unresolved error \(nsError), \(nsError.userInfo)") + } + } + } +} + +private let itemFormatter: DateFormatter = { + let formatter = DateFormatter() + formatter.dateStyle = .short + formatter.timeStyle = .medium + return formatter +}() + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView().environment(\.managedObjectContext, PersistenceController.preview.container.viewContext) + } +} diff --git a/MeshtasticClient/Info.plist b/MeshtasticClient/Info.plist new file mode 100644 index 00000000..efc211a0 --- /dev/null +++ b/MeshtasticClient/Info.plist @@ -0,0 +1,50 @@ + + + + + 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 + + + UIApplicationSupportsIndirectInputEvents + + UILaunchScreen + + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/MeshtasticClient/MeshtasticClient.xcdatamodeld/.xccurrentversion b/MeshtasticClient/MeshtasticClient.xcdatamodeld/.xccurrentversion new file mode 100644 index 00000000..0e918e50 --- /dev/null +++ b/MeshtasticClient/MeshtasticClient.xcdatamodeld/.xccurrentversion @@ -0,0 +1,8 @@ + + + + + _XCCurrentVersionName + MeshtasticClient.xcdatamodel + + diff --git a/MeshtasticClient/MeshtasticClient.xcdatamodeld/MeshtasticClient.xcdatamodel/contents b/MeshtasticClient/MeshtasticClient.xcdatamodeld/MeshtasticClient.xcdatamodel/contents new file mode 100644 index 00000000..e8d6ec87 --- /dev/null +++ b/MeshtasticClient/MeshtasticClient.xcdatamodeld/MeshtasticClient.xcdatamodel/contents @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/MeshtasticClient/MeshtasticClientApp.swift b/MeshtasticClient/MeshtasticClientApp.swift new file mode 100644 index 00000000..b1bd1267 --- /dev/null +++ b/MeshtasticClient/MeshtasticClientApp.swift @@ -0,0 +1,20 @@ +// +// MeshtasticClientApp.swift +// MeshtasticClient +// +// Created by Garth Vander Houwen on 8/18/21. +// + +import SwiftUI + +@main +struct MeshtasticClientApp: App { + let persistenceController = PersistenceController.shared + + var body: some Scene { + WindowGroup { + ContentView() + .environment(\.managedObjectContext, persistenceController.container.viewContext) + } + } +} diff --git a/MeshtasticClient/Persistence.swift b/MeshtasticClient/Persistence.swift new file mode 100644 index 00000000..cf42e817 --- /dev/null +++ b/MeshtasticClient/Persistence.swift @@ -0,0 +1,55 @@ +// +// Persistence.swift +// MeshtasticClient +// +// Created by Garth Vander Houwen on 8/18/21. +// + +import CoreData + +struct PersistenceController { + static let shared = PersistenceController() + + static var preview: PersistenceController = { + let result = PersistenceController(inMemory: true) + let viewContext = result.container.viewContext + for _ in 0..<10 { + let newItem = Item(context: viewContext) + newItem.timestamp = Date() + } + do { + try viewContext.save() + } catch { + // Replace this implementation with code to handle the error appropriately. + // fatalError() 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. + let nsError = error as NSError + fatalError("Unresolved error \(nsError), \(nsError.userInfo)") + } + return result + }() + + let container: NSPersistentCloudKitContainer + + init(inMemory: Bool = false) { + container = NSPersistentCloudKitContainer(name: "MeshtasticClient") + if inMemory { + container.persistentStoreDescriptions.first!.url = URL(fileURLWithPath: "/dev/null") + } + container.loadPersistentStores(completionHandler: { (storeDescription, error) in + if let error = error as NSError? { + // Replace this implementation with code to handle the error appropriately. + // fatalError() 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. + */ + fatalError("Unresolved error \(error), \(error.userInfo)") + } + }) + } +} diff --git a/MeshtasticClient/Preview Content/Preview Assets.xcassets/Contents.json b/MeshtasticClient/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 00000000..73c00596 --- /dev/null +++ b/MeshtasticClient/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/MeshtasticClientTests/Info.plist b/MeshtasticClientTests/Info.plist new file mode 100644 index 00000000..64d65ca4 --- /dev/null +++ b/MeshtasticClientTests/Info.plist @@ -0,0 +1,22 @@ + + + + + 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 + + diff --git a/MeshtasticClientTests/MeshtasticClientTests.swift b/MeshtasticClientTests/MeshtasticClientTests.swift new file mode 100644 index 00000000..3042dba2 --- /dev/null +++ b/MeshtasticClientTests/MeshtasticClientTests.swift @@ -0,0 +1,33 @@ +// +// MeshtasticClientTests.swift +// MeshtasticClientTests +// +// Created by Garth Vander Houwen on 8/18/21. +// + +import XCTest +@testable import MeshtasticClient + +class MeshtasticClientTests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() throws { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/MeshtasticClientUITests/Info.plist b/MeshtasticClientUITests/Info.plist new file mode 100644 index 00000000..64d65ca4 --- /dev/null +++ b/MeshtasticClientUITests/Info.plist @@ -0,0 +1,22 @@ + + + + + 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 + + diff --git a/MeshtasticClientUITests/MeshtasticClientUITests.swift b/MeshtasticClientUITests/MeshtasticClientUITests.swift new file mode 100644 index 00000000..67eeeef7 --- /dev/null +++ b/MeshtasticClientUITests/MeshtasticClientUITests.swift @@ -0,0 +1,42 @@ +// +// MeshtasticClientUITests.swift +// MeshtasticClientUITests +// +// Created by Garth Vander Houwen on 8/18/21. +// + +import XCTest + +class MeshtasticClientUITests: XCTestCase { + + override func setUpWithError() throws { + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDownWithError() throws { + // Put teardown code here. This method is called after the invocation of each test method in the class. + } + + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testLaunchPerformance() throws { + if #available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 7.0, *) { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } + } +}