diff --git a/EstimatedPressures.xcworkspace/contents.xcworkspacedata b/EstimatedPressures.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..605d981 --- /dev/null +++ b/EstimatedPressures.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/EstimatedPressures.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/EstimatedPressures.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/EstimatedPressures.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/EstimatedPressures/EstimatedPressures.xcodeproj/project.pbxproj b/EstimatedPressures/EstimatedPressures.xcodeproj/project.pbxproj new file mode 100644 index 0000000..8ebe4b6 --- /dev/null +++ b/EstimatedPressures/EstimatedPressures.xcodeproj/project.pbxproj @@ -0,0 +1,644 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 60; + objects = { + +/* Begin PBXBuildFile section */ + 4C01DD1E2C21B475006E541C /* EstimatedPressuresApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C01DD1D2C21B475006E541C /* EstimatedPressuresApp.swift */; }; + 4C01DD202C21B475006E541C /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C01DD1F2C21B475006E541C /* ContentView.swift */; }; + 4C01DD222C21B476006E541C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4C01DD212C21B476006E541C /* Assets.xcassets */; }; + 4C01DD262C21B476006E541C /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4C01DD252C21B476006E541C /* Preview Assets.xcassets */; }; + 4C01DD302C21B476006E541C /* EstimatedPressuresTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C01DD2F2C21B476006E541C /* EstimatedPressuresTests.swift */; }; + 4C01DD3A2C21B476006E541C /* EstimatedPressuresUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C01DD392C21B476006E541C /* EstimatedPressuresUITests.swift */; }; + 4C01DD3C2C21B476006E541C /* EstimatedPressuresUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4C01DD3B2C21B476006E541C /* EstimatedPressuresUITestsLaunchTests.swift */; }; + 4C01DD4A2C21B6A4006E541C /* PressureEstimationsFeature in Frameworks */ = {isa = PBXBuildFile; productRef = 4C01DD492C21B6A4006E541C /* PressureEstimationsFeature */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 4C01DD2C2C21B476006E541C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 4C01DD122C21B475006E541C /* Project object */; + proxyType = 1; + remoteGlobalIDString = 4C01DD192C21B475006E541C; + remoteInfo = EstimatedPressures; + }; + 4C01DD362C21B476006E541C /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 4C01DD122C21B475006E541C /* Project object */; + proxyType = 1; + remoteGlobalIDString = 4C01DD192C21B475006E541C; + remoteInfo = EstimatedPressures; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 4C01DD1A2C21B475006E541C /* EstimatedPressures.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = EstimatedPressures.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 4C01DD1D2C21B475006E541C /* EstimatedPressuresApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EstimatedPressuresApp.swift; sourceTree = ""; }; + 4C01DD1F2C21B475006E541C /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 4C01DD212C21B476006E541C /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 4C01DD232C21B476006E541C /* EstimatedPressures.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = EstimatedPressures.entitlements; sourceTree = ""; }; + 4C01DD252C21B476006E541C /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 4C01DD2B2C21B476006E541C /* EstimatedPressuresTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = EstimatedPressuresTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 4C01DD2F2C21B476006E541C /* EstimatedPressuresTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EstimatedPressuresTests.swift; sourceTree = ""; }; + 4C01DD352C21B476006E541C /* EstimatedPressuresUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = EstimatedPressuresUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 4C01DD392C21B476006E541C /* EstimatedPressuresUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EstimatedPressuresUITests.swift; sourceTree = ""; }; + 4C01DD3B2C21B476006E541C /* EstimatedPressuresUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EstimatedPressuresUITestsLaunchTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 4C01DD172C21B475006E541C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 4C01DD4A2C21B6A4006E541C /* PressureEstimationsFeature in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4C01DD282C21B476006E541C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4C01DD322C21B476006E541C /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 4C01DD112C21B475006E541C = { + isa = PBXGroup; + children = ( + 4C01DD1C2C21B475006E541C /* EstimatedPressures */, + 4C01DD2E2C21B476006E541C /* EstimatedPressuresTests */, + 4C01DD382C21B476006E541C /* EstimatedPressuresUITests */, + 4C01DD1B2C21B475006E541C /* Products */, + 4C01DD482C21B6A4006E541C /* Frameworks */, + ); + sourceTree = ""; + }; + 4C01DD1B2C21B475006E541C /* Products */ = { + isa = PBXGroup; + children = ( + 4C01DD1A2C21B475006E541C /* EstimatedPressures.app */, + 4C01DD2B2C21B476006E541C /* EstimatedPressuresTests.xctest */, + 4C01DD352C21B476006E541C /* EstimatedPressuresUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 4C01DD1C2C21B475006E541C /* EstimatedPressures */ = { + isa = PBXGroup; + children = ( + 4C01DD1D2C21B475006E541C /* EstimatedPressuresApp.swift */, + 4C01DD1F2C21B475006E541C /* ContentView.swift */, + 4C01DD212C21B476006E541C /* Assets.xcassets */, + 4C01DD232C21B476006E541C /* EstimatedPressures.entitlements */, + 4C01DD242C21B476006E541C /* Preview Content */, + ); + path = EstimatedPressures; + sourceTree = ""; + }; + 4C01DD242C21B476006E541C /* Preview Content */ = { + isa = PBXGroup; + children = ( + 4C01DD252C21B476006E541C /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 4C01DD2E2C21B476006E541C /* EstimatedPressuresTests */ = { + isa = PBXGroup; + children = ( + 4C01DD2F2C21B476006E541C /* EstimatedPressuresTests.swift */, + ); + path = EstimatedPressuresTests; + sourceTree = ""; + }; + 4C01DD382C21B476006E541C /* EstimatedPressuresUITests */ = { + isa = PBXGroup; + children = ( + 4C01DD392C21B476006E541C /* EstimatedPressuresUITests.swift */, + 4C01DD3B2C21B476006E541C /* EstimatedPressuresUITestsLaunchTests.swift */, + ); + path = EstimatedPressuresUITests; + sourceTree = ""; + }; + 4C01DD482C21B6A4006E541C /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 4C01DD192C21B475006E541C /* EstimatedPressures */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4C01DD3F2C21B476006E541C /* Build configuration list for PBXNativeTarget "EstimatedPressures" */; + buildPhases = ( + 4C01DD162C21B475006E541C /* Sources */, + 4C01DD172C21B475006E541C /* Frameworks */, + 4C01DD182C21B475006E541C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = EstimatedPressures; + packageProductDependencies = ( + 4C01DD492C21B6A4006E541C /* PressureEstimationsFeature */, + ); + productName = EstimatedPressures; + productReference = 4C01DD1A2C21B475006E541C /* EstimatedPressures.app */; + productType = "com.apple.product-type.application"; + }; + 4C01DD2A2C21B476006E541C /* EstimatedPressuresTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4C01DD422C21B476006E541C /* Build configuration list for PBXNativeTarget "EstimatedPressuresTests" */; + buildPhases = ( + 4C01DD272C21B476006E541C /* Sources */, + 4C01DD282C21B476006E541C /* Frameworks */, + 4C01DD292C21B476006E541C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 4C01DD2D2C21B476006E541C /* PBXTargetDependency */, + ); + name = EstimatedPressuresTests; + productName = EstimatedPressuresTests; + productReference = 4C01DD2B2C21B476006E541C /* EstimatedPressuresTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 4C01DD342C21B476006E541C /* EstimatedPressuresUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 4C01DD452C21B476006E541C /* Build configuration list for PBXNativeTarget "EstimatedPressuresUITests" */; + buildPhases = ( + 4C01DD312C21B476006E541C /* Sources */, + 4C01DD322C21B476006E541C /* Frameworks */, + 4C01DD332C21B476006E541C /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 4C01DD372C21B476006E541C /* PBXTargetDependency */, + ); + name = EstimatedPressuresUITests; + productName = EstimatedPressuresUITests; + productReference = 4C01DD352C21B476006E541C /* EstimatedPressuresUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 4C01DD122C21B475006E541C /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1600; + LastUpgradeCheck = 1600; + TargetAttributes = { + 4C01DD192C21B475006E541C = { + CreatedOnToolsVersion = 16.0; + }; + 4C01DD2A2C21B476006E541C = { + CreatedOnToolsVersion = 16.0; + TestTargetID = 4C01DD192C21B475006E541C; + }; + 4C01DD342C21B476006E541C = { + CreatedOnToolsVersion = 16.0; + TestTargetID = 4C01DD192C21B475006E541C; + }; + }; + }; + buildConfigurationList = 4C01DD152C21B475006E541C /* Build configuration list for PBXProject "EstimatedPressures" */; + compatibilityVersion = "Xcode 15.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 4C01DD112C21B475006E541C; + productRefGroup = 4C01DD1B2C21B475006E541C /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 4C01DD192C21B475006E541C /* EstimatedPressures */, + 4C01DD2A2C21B476006E541C /* EstimatedPressuresTests */, + 4C01DD342C21B476006E541C /* EstimatedPressuresUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 4C01DD182C21B475006E541C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4C01DD262C21B476006E541C /* Preview Assets.xcassets in Resources */, + 4C01DD222C21B476006E541C /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4C01DD292C21B476006E541C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4C01DD332C21B476006E541C /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 4C01DD162C21B475006E541C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4C01DD202C21B475006E541C /* ContentView.swift in Sources */, + 4C01DD1E2C21B475006E541C /* EstimatedPressuresApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4C01DD272C21B476006E541C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4C01DD302C21B476006E541C /* EstimatedPressuresTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 4C01DD312C21B476006E541C /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 4C01DD3C2C21B476006E541C /* EstimatedPressuresUITestsLaunchTests.swift in Sources */, + 4C01DD3A2C21B476006E541C /* EstimatedPressuresUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 4C01DD2D2C21B476006E541C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 4C01DD192C21B475006E541C /* EstimatedPressures */; + targetProxy = 4C01DD2C2C21B476006E541C /* PBXContainerItemProxy */; + }; + 4C01DD372C21B476006E541C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 4C01DD192C21B475006E541C /* EstimatedPressures */; + targetProxy = 4C01DD362C21B476006E541C /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 4C01DD3D2C21B476006E541C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + 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; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + 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; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 4C01DD3E2C21B476006E541C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++20"; + 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; + ENABLE_USER_SCRIPT_SANDBOXING = YES; + GCC_C_LANGUAGE_STANDARD = gnu17; + 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; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SWIFT_COMPILATION_MODE = wholemodule; + }; + name = Release; + }; + 4C01DD402C21B476006E541C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = EstimatedPressures/EstimatedPressures.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"EstimatedPressures/Preview Content\""; + DEVELOPMENT_TEAM = QWY654725W; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault; + "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 18.0; + LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; + "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 15.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.hhe.EstimatedPressures; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,7"; + XROS_DEPLOYMENT_TARGET = 2.0; + }; + name = Debug; + }; + 4C01DD412C21B476006E541C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = EstimatedPressures/EstimatedPressures.entitlements; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"EstimatedPressures/Preview Content\""; + DEVELOPMENT_TEAM = QWY654725W; + ENABLE_HARDENED_RUNTIME = YES; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UIApplicationSceneManifest_Generation[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphoneos*]" = YES; + "INFOPLIST_KEY_UILaunchScreen_Generation[sdk=iphonesimulator*]" = YES; + "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphoneos*]" = UIStatusBarStyleDefault; + "INFOPLIST_KEY_UIStatusBarStyle[sdk=iphonesimulator*]" = UIStatusBarStyleDefault; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 18.0; + LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; + "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 15.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.hhe.EstimatedPressures; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,7"; + XROS_DEPLOYMENT_TARGET = 2.0; + }; + name = Release; + }; + 4C01DD432C21B476006E541C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = QWY654725W; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 18.0; + MACOSX_DEPLOYMENT_TARGET = 15.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.hhe.EstimatedPressuresTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,7"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/EstimatedPressures.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/EstimatedPressures"; + XROS_DEPLOYMENT_TARGET = 2.0; + }; + name = Debug; + }; + 4C01DD442C21B476006E541C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = QWY654725W; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 18.0; + MACOSX_DEPLOYMENT_TARGET = 15.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.hhe.EstimatedPressuresTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,7"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/EstimatedPressures.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/EstimatedPressures"; + XROS_DEPLOYMENT_TARGET = 2.0; + }; + name = Release; + }; + 4C01DD462C21B476006E541C /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = QWY654725W; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 18.0; + MACOSX_DEPLOYMENT_TARGET = 15.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.hhe.EstimatedPressuresUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,7"; + TEST_TARGET_NAME = EstimatedPressures; + XROS_DEPLOYMENT_TARGET = 2.0; + }; + name = Debug; + }; + 4C01DD472C21B476006E541C /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = QWY654725W; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 18.0; + MACOSX_DEPLOYMENT_TARGET = 15.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.hhe.EstimatedPressuresUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx xros xrsimulator"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2,7"; + TEST_TARGET_NAME = EstimatedPressures; + XROS_DEPLOYMENT_TARGET = 2.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 4C01DD152C21B475006E541C /* Build configuration list for PBXProject "EstimatedPressures" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4C01DD3D2C21B476006E541C /* Debug */, + 4C01DD3E2C21B476006E541C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4C01DD3F2C21B476006E541C /* Build configuration list for PBXNativeTarget "EstimatedPressures" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4C01DD402C21B476006E541C /* Debug */, + 4C01DD412C21B476006E541C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4C01DD422C21B476006E541C /* Build configuration list for PBXNativeTarget "EstimatedPressuresTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4C01DD432C21B476006E541C /* Debug */, + 4C01DD442C21B476006E541C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 4C01DD452C21B476006E541C /* Build configuration list for PBXNativeTarget "EstimatedPressuresUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 4C01DD462C21B476006E541C /* Debug */, + 4C01DD472C21B476006E541C /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCSwiftPackageProductDependency section */ + 4C01DD492C21B6A4006E541C /* PressureEstimationsFeature */ = { + isa = XCSwiftPackageProductDependency; + productName = PressureEstimationsFeature; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = 4C01DD122C21B475006E541C /* Project object */; +} diff --git a/EstimatedPressures/EstimatedPressures.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/EstimatedPressures/EstimatedPressures.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/EstimatedPressures/EstimatedPressures.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/EstimatedPressures/EstimatedPressures.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/EstimatedPressures/EstimatedPressures.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/EstimatedPressures/EstimatedPressures.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/EstimatedPressures/EstimatedPressures/Assets.xcassets/AccentColor.colorset/Contents.json b/EstimatedPressures/EstimatedPressures/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/EstimatedPressures/EstimatedPressures/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/EstimatedPressures/EstimatedPressures/Assets.xcassets/AppIcon.appiconset/Contents.json b/EstimatedPressures/EstimatedPressures/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..ffdfe15 --- /dev/null +++ b/EstimatedPressures/EstimatedPressures/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,85 @@ +{ + "images" : [ + { + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "dark" + } + ], + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "appearances" : [ + { + "appearance" : "luminosity", + "value" : "tinted" + } + ], + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "16x16" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "32x32" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "128x128" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "256x256" + }, + { + "idiom" : "mac", + "scale" : "1x", + "size" : "512x512" + }, + { + "idiom" : "mac", + "scale" : "2x", + "size" : "512x512" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/EstimatedPressures/EstimatedPressures/Assets.xcassets/Contents.json b/EstimatedPressures/EstimatedPressures/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/EstimatedPressures/EstimatedPressures/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/EstimatedPressures/EstimatedPressures/ContentView.swift b/EstimatedPressures/EstimatedPressures/ContentView.swift new file mode 100644 index 0000000..42aa3f2 --- /dev/null +++ b/EstimatedPressures/EstimatedPressures/ContentView.swift @@ -0,0 +1,19 @@ +import ComposableArchitecture +import PressureEstimationsFeature +import SwiftUI + +struct ContentView: View { + var body: some View { + NavigationStack { + PressureEstimationsView( + store: Store(initialState: PressureEstimationsFeature.State()) { + PressureEstimationsFeature()._printChanges() + } + ) + } + } +} + +#Preview { + ContentView() +} diff --git a/EstimatedPressures/EstimatedPressures/EstimatedPressures.entitlements b/EstimatedPressures/EstimatedPressures/EstimatedPressures.entitlements new file mode 100644 index 0000000..f2ef3ae --- /dev/null +++ b/EstimatedPressures/EstimatedPressures/EstimatedPressures.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + + diff --git a/EstimatedPressures/EstimatedPressures/EstimatedPressuresApp.swift b/EstimatedPressures/EstimatedPressures/EstimatedPressuresApp.swift new file mode 100644 index 0000000..2b2d254 --- /dev/null +++ b/EstimatedPressures/EstimatedPressures/EstimatedPressuresApp.swift @@ -0,0 +1,17 @@ +// +// EstimatedPressuresApp.swift +// EstimatedPressures +// +// Created by michael on 6/18/24. +// + +import SwiftUI + +@main +struct EstimatedPressuresApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/EstimatedPressures/EstimatedPressures/Preview Content/Preview Assets.xcassets/Contents.json b/EstimatedPressures/EstimatedPressures/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/EstimatedPressures/EstimatedPressures/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/EstimatedPressures/EstimatedPressuresTests/EstimatedPressuresTests.swift b/EstimatedPressures/EstimatedPressuresTests/EstimatedPressuresTests.swift new file mode 100644 index 0000000..14177cd --- /dev/null +++ b/EstimatedPressures/EstimatedPressuresTests/EstimatedPressuresTests.swift @@ -0,0 +1,16 @@ +// +// EstimatedPressuresTests.swift +// EstimatedPressuresTests +// +// Created by michael on 6/18/24. +// + +import Testing + +struct EstimatedPressuresTests { + + @Test func testExample() async throws { + // Write your test here and use APIs like `#expect(...)` to check expected conditions. + } + +} diff --git a/EstimatedPressures/EstimatedPressuresUITests/EstimatedPressuresUITests.swift b/EstimatedPressures/EstimatedPressuresUITests/EstimatedPressuresUITests.swift new file mode 100644 index 0000000..6263778 --- /dev/null +++ b/EstimatedPressures/EstimatedPressuresUITests/EstimatedPressuresUITests.swift @@ -0,0 +1,43 @@ +// +// EstimatedPressuresUITests.swift +// EstimatedPressuresUITests +// +// Created by michael on 6/18/24. +// + +import XCTest + +final class EstimatedPressuresUITests: 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. + } + + @MainActor + func testExample() throws { + // UI tests must launch the application that they test. + let app = XCUIApplication() + app.launch() + + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + @MainActor + 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() + } + } + } +} diff --git a/EstimatedPressures/EstimatedPressuresUITests/EstimatedPressuresUITestsLaunchTests.swift b/EstimatedPressures/EstimatedPressuresUITests/EstimatedPressuresUITestsLaunchTests.swift new file mode 100644 index 0000000..d3d3b8f --- /dev/null +++ b/EstimatedPressures/EstimatedPressuresUITests/EstimatedPressuresUITestsLaunchTests.swift @@ -0,0 +1,33 @@ +// +// EstimatedPressuresUITestsLaunchTests.swift +// EstimatedPressuresUITests +// +// Created by michael on 6/18/24. +// + +import XCTest + +final class EstimatedPressuresUITestsLaunchTests: XCTestCase { + + override class var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + @MainActor + func testLaunch() throws { + let app = XCUIApplication() + app.launch() + + // Insert steps here to perform after app launch but before taking a screenshot, + // such as logging into a test account or navigating somewhere in the app + + let attachment = XCTAttachment(screenshot: app.screenshot()) + attachment.name = "Launch Screen" + attachment.lifetime = .keepAlways + add(attachment) + } +} diff --git a/Sources/PressureEstimationsFeature/RatedStaticPressuresSection.swift b/Sources/PressureEstimationsFeature/RatedStaticPressuresSection.swift index d16cd36..97f7660 100644 --- a/Sources/PressureEstimationsFeature/RatedStaticPressuresSection.swift +++ b/Sources/PressureEstimationsFeature/RatedStaticPressuresSection.swift @@ -8,6 +8,8 @@ import SwiftUI @Reducer public struct RatedStaticPressuresSection { + public init() { } + @ObservableState public struct State: Equatable { diff --git a/Tests/PressureEstimationsFeatureTests/RatedStaticPressures.swift b/Tests/PressureEstimationsFeatureTests/RatedStaticPressures.swift index cb07f42..8420e7a 100644 --- a/Tests/PressureEstimationsFeatureTests/RatedStaticPressures.swift +++ b/Tests/PressureEstimationsFeatureTests/RatedStaticPressures.swift @@ -2,6 +2,7 @@ import ComposableArchitecture import PressureEstimationsFeature import SharedModels import Testing +import XCTest struct RatedStaticPressureStateTests { @@ -50,6 +51,34 @@ struct RatedStaticPressureStateTests { } +final class RatedStaticPressureReducerTests: XCTestCase { + + @MainActor + func testBindingsSetSharedState() async { + let store = TestStore( + initialState: RatedStaticPressuresSection.State( + staticPressures: Shared(RatedStaticPressures()) + ) + ) { + RatedStaticPressuresSection() + } + + await store.send(.binding(.set(\.maxPressure, nil))) { + $0.maxPressure = nil + $0.staticPressures.maximum = 0 + } + await store.send(.binding(.set(\.minPressure, nil))) { + $0.minPressure = nil + $0.staticPressures.minimum = 0 + } + await store.send(.binding(.set(\.ratedPressure, nil))) { + $0.ratedPressure = nil + $0.staticPressures.rated = 0 + } + + } +} + extension Tag { @Tag static var ratedStaticPressuresSection: Self