From ef0a6448cfb421789d2d0c48b43ff8d4de1b34f5 Mon Sep 17 00:00:00 2001 From: Nguyen Ngo Date: Sat, 2 May 2026 09:37:20 -0400 Subject: [PATCH] Initial Commit --- JanitorialQC.xcodeproj/project.pbxproj | 583 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcschemes/xcschememanagement.plist | 14 + .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 35 ++ JanitorialQC/Assets.xcassets/Contents.json | 6 + JanitorialQC/ContentView.swift | 61 ++ JanitorialQC/Item.swift | 18 + JanitorialQC/JanitorialQCApp.swift | 32 + JanitorialQCTests/JanitorialQCTests.swift | 19 + JanitorialQCUITests/JanitorialQCUITests.swift | 43 ++ .../JanitorialQCUITestsLaunchTests.swift | 35 ++ 12 files changed, 864 insertions(+) create mode 100644 JanitorialQC.xcodeproj/project.pbxproj create mode 100644 JanitorialQC.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 JanitorialQC.xcodeproj/xcuserdata/nngo.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 JanitorialQC/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 JanitorialQC/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 JanitorialQC/Assets.xcassets/Contents.json create mode 100644 JanitorialQC/ContentView.swift create mode 100644 JanitorialQC/Item.swift create mode 100644 JanitorialQC/JanitorialQCApp.swift create mode 100644 JanitorialQCTests/JanitorialQCTests.swift create mode 100644 JanitorialQCUITests/JanitorialQCUITests.swift create mode 100644 JanitorialQCUITests/JanitorialQCUITestsLaunchTests.swift diff --git a/JanitorialQC.xcodeproj/project.pbxproj b/JanitorialQC.xcodeproj/project.pbxproj new file mode 100644 index 0000000..5fb7e7f --- /dev/null +++ b/JanitorialQC.xcodeproj/project.pbxproj @@ -0,0 +1,583 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 77; + objects = { + +/* Begin PBXContainerItemProxy section */ + B378758C2FA6358F0088F40B /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = B37875742FA6358E0088F40B /* Project object */; + proxyType = 1; + remoteGlobalIDString = B378757B2FA6358E0088F40B; + remoteInfo = JanitorialQC; + }; + B37875962FA6358F0088F40B /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = B37875742FA6358E0088F40B /* Project object */; + proxyType = 1; + remoteGlobalIDString = B378757B2FA6358E0088F40B; + remoteInfo = JanitorialQC; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + B378757C2FA6358E0088F40B /* JanitorialQC.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = JanitorialQC.app; sourceTree = BUILT_PRODUCTS_DIR; }; + B378758B2FA6358F0088F40B /* JanitorialQCTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = JanitorialQCTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + B37875952FA6358F0088F40B /* JanitorialQCUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = JanitorialQCUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFileSystemSynchronizedRootGroup section */ + B378757E2FA6358E0088F40B /* JanitorialQC */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = JanitorialQC; + sourceTree = ""; + }; + B378758E2FA6358F0088F40B /* JanitorialQCTests */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = JanitorialQCTests; + sourceTree = ""; + }; + B37875982FA6358F0088F40B /* JanitorialQCUITests */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = JanitorialQCUITests; + sourceTree = ""; + }; +/* End PBXFileSystemSynchronizedRootGroup section */ + +/* Begin PBXFrameworksBuildPhase section */ + B37875792FA6358E0088F40B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B37875882FA6358F0088F40B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B37875922FA6358F0088F40B /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + B37875732FA6358E0088F40B = { + isa = PBXGroup; + children = ( + B378757E2FA6358E0088F40B /* JanitorialQC */, + B378758E2FA6358F0088F40B /* JanitorialQCTests */, + B37875982FA6358F0088F40B /* JanitorialQCUITests */, + B378757D2FA6358E0088F40B /* Products */, + ); + sourceTree = ""; + }; + B378757D2FA6358E0088F40B /* Products */ = { + isa = PBXGroup; + children = ( + B378757C2FA6358E0088F40B /* JanitorialQC.app */, + B378758B2FA6358F0088F40B /* JanitorialQCTests.xctest */, + B37875952FA6358F0088F40B /* JanitorialQCUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + B378757B2FA6358E0088F40B /* JanitorialQC */ = { + isa = PBXNativeTarget; + buildConfigurationList = B378759F2FA6358F0088F40B /* Build configuration list for PBXNativeTarget "JanitorialQC" */; + buildPhases = ( + B37875782FA6358E0088F40B /* Sources */, + B37875792FA6358E0088F40B /* Frameworks */, + B378757A2FA6358E0088F40B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + fileSystemSynchronizedGroups = ( + B378757E2FA6358E0088F40B /* JanitorialQC */, + ); + name = JanitorialQC; + packageProductDependencies = ( + ); + productName = JanitorialQC; + productReference = B378757C2FA6358E0088F40B /* JanitorialQC.app */; + productType = "com.apple.product-type.application"; + }; + B378758A2FA6358F0088F40B /* JanitorialQCTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = B37875A22FA6358F0088F40B /* Build configuration list for PBXNativeTarget "JanitorialQCTests" */; + buildPhases = ( + B37875872FA6358F0088F40B /* Sources */, + B37875882FA6358F0088F40B /* Frameworks */, + B37875892FA6358F0088F40B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + B378758D2FA6358F0088F40B /* PBXTargetDependency */, + ); + fileSystemSynchronizedGroups = ( + B378758E2FA6358F0088F40B /* JanitorialQCTests */, + ); + name = JanitorialQCTests; + packageProductDependencies = ( + ); + productName = JanitorialQCTests; + productReference = B378758B2FA6358F0088F40B /* JanitorialQCTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + B37875942FA6358F0088F40B /* JanitorialQCUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = B37875A52FA6358F0088F40B /* Build configuration list for PBXNativeTarget "JanitorialQCUITests" */; + buildPhases = ( + B37875912FA6358F0088F40B /* Sources */, + B37875922FA6358F0088F40B /* Frameworks */, + B37875932FA6358F0088F40B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + B37875972FA6358F0088F40B /* PBXTargetDependency */, + ); + fileSystemSynchronizedGroups = ( + B37875982FA6358F0088F40B /* JanitorialQCUITests */, + ); + name = JanitorialQCUITests; + packageProductDependencies = ( + ); + productName = JanitorialQCUITests; + productReference = B37875952FA6358F0088F40B /* JanitorialQCUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + B37875742FA6358E0088F40B /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 2640; + LastUpgradeCheck = 2640; + TargetAttributes = { + B378757B2FA6358E0088F40B = { + CreatedOnToolsVersion = 26.4.1; + }; + B378758A2FA6358F0088F40B = { + CreatedOnToolsVersion = 26.4.1; + TestTargetID = B378757B2FA6358E0088F40B; + }; + B37875942FA6358F0088F40B = { + CreatedOnToolsVersion = 26.4.1; + TestTargetID = B378757B2FA6358E0088F40B; + }; + }; + }; + buildConfigurationList = B37875772FA6358E0088F40B /* Build configuration list for PBXProject "JanitorialQC" */; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = B37875732FA6358E0088F40B; + minimizedProjectReferenceProxies = 1; + preferredProjectObjectVersion = 77; + productRefGroup = B378757D2FA6358E0088F40B /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + B378757B2FA6358E0088F40B /* JanitorialQC */, + B378758A2FA6358F0088F40B /* JanitorialQCTests */, + B37875942FA6358F0088F40B /* JanitorialQCUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + B378757A2FA6358E0088F40B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B37875892FA6358F0088F40B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B37875932FA6358F0088F40B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + B37875782FA6358E0088F40B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B37875872FA6358F0088F40B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + B37875912FA6358F0088F40B /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + B378758D2FA6358F0088F40B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = B378757B2FA6358E0088F40B /* JanitorialQC */; + targetProxy = B378758C2FA6358F0088F40B /* PBXContainerItemProxy */; + }; + B37875972FA6358F0088F40B /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = B378757B2FA6358E0088F40B /* JanitorialQC */; + targetProxy = B37875962FA6358F0088F40B /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + B378759D2FA6358F0088F40B /* 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; + DEVELOPMENT_TEAM = SB7DNYC9TY; + 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; + IPHONEOS_DEPLOYMENT_TARGET = 26.4; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + B378759E2FA6358F0088F40B /* 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"; + DEVELOPMENT_TEAM = SB7DNYC9TY; + 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; + IPHONEOS_DEPLOYMENT_TARGET = 26.4; + LOCALIZATION_PREFERS_STRING_CATALOGS = YES; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + B37875A02FA6358F0088F40B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = SB7DNYC9TY; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.ltservicesinc.JanitorialQC; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRING_CATALOG_GENERATE_SYMBOLS = YES; + SWIFT_APPROACHABLE_CONCURRENCY = YES; + SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + B37875A12FA6358F0088F40B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = SB7DNYC9TY; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.ltservicesinc.JanitorialQC; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRING_CATALOG_GENERATE_SYMBOLS = YES; + SWIFT_APPROACHABLE_CONCURRENCY = YES; + SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + B37875A32FA6358F0088F40B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = SB7DNYC9TY; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 26.4; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.ltservicesinc.JanitorialQCTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRING_CATALOG_GENERATE_SYMBOLS = NO; + SWIFT_APPROACHABLE_CONCURRENCY = YES; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JanitorialQC.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/JanitorialQC"; + }; + name = Debug; + }; + B37875A42FA6358F0088F40B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = SB7DNYC9TY; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 26.4; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.ltservicesinc.JanitorialQCTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRING_CATALOG_GENERATE_SYMBOLS = NO; + SWIFT_APPROACHABLE_CONCURRENCY = YES; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/JanitorialQC.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/JanitorialQC"; + }; + name = Release; + }; + B37875A62FA6358F0088F40B /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = SB7DNYC9TY; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.ltservicesinc.JanitorialQCUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRING_CATALOG_GENERATE_SYMBOLS = NO; + SWIFT_APPROACHABLE_CONCURRENCY = YES; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = JanitorialQC; + }; + name = Debug; + }; + B37875A72FA6358F0088F40B /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = SB7DNYC9TY; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.ltservicesinc.JanitorialQCUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + STRING_CATALOG_GENERATE_SYMBOLS = NO; + SWIFT_APPROACHABLE_CONCURRENCY = YES; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = JanitorialQC; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + B37875772FA6358E0088F40B /* Build configuration list for PBXProject "JanitorialQC" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B378759D2FA6358F0088F40B /* Debug */, + B378759E2FA6358F0088F40B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B378759F2FA6358F0088F40B /* Build configuration list for PBXNativeTarget "JanitorialQC" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B37875A02FA6358F0088F40B /* Debug */, + B37875A12FA6358F0088F40B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B37875A22FA6358F0088F40B /* Build configuration list for PBXNativeTarget "JanitorialQCTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B37875A32FA6358F0088F40B /* Debug */, + B37875A42FA6358F0088F40B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + B37875A52FA6358F0088F40B /* Build configuration list for PBXNativeTarget "JanitorialQCUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + B37875A62FA6358F0088F40B /* Debug */, + B37875A72FA6358F0088F40B /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = B37875742FA6358E0088F40B /* Project object */; +} diff --git a/JanitorialQC.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/JanitorialQC.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/JanitorialQC.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/JanitorialQC.xcodeproj/xcuserdata/nngo.xcuserdatad/xcschemes/xcschememanagement.plist b/JanitorialQC.xcodeproj/xcuserdata/nngo.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..1dc7545 --- /dev/null +++ b/JanitorialQC.xcodeproj/xcuserdata/nngo.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + JanitorialQC.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/JanitorialQC/Assets.xcassets/AccentColor.colorset/Contents.json b/JanitorialQC/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/JanitorialQC/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/JanitorialQC/Assets.xcassets/AppIcon.appiconset/Contents.json b/JanitorialQC/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..2305880 --- /dev/null +++ b/JanitorialQC/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,35 @@ +{ + "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" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/JanitorialQC/Assets.xcassets/Contents.json b/JanitorialQC/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/JanitorialQC/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/JanitorialQC/ContentView.swift b/JanitorialQC/ContentView.swift new file mode 100644 index 0000000..0fd4c1b --- /dev/null +++ b/JanitorialQC/ContentView.swift @@ -0,0 +1,61 @@ +// +// ContentView.swift +// JanitorialQC +// +// Created by Nguyen Ngo on 5/2/26. +// + +import SwiftUI +import SwiftData + +struct ContentView: View { + @Environment(\.modelContext) private var modelContext + @Query private var items: [Item] + + var body: some View { + NavigationSplitView { + List { + ForEach(items) { item in + NavigationLink { + Text("Item at \(item.timestamp, format: Date.FormatStyle(date: .numeric, time: .standard))") + } label: { + Text(item.timestamp, format: Date.FormatStyle(date: .numeric, time: .standard)) + } + } + .onDelete(perform: deleteItems) + } + .toolbar { + ToolbarItem(placement: .navigationBarTrailing) { + EditButton() + } + ToolbarItem { + Button(action: addItem) { + Label("Add Item", systemImage: "plus") + } + } + } + } detail: { + Text("Select an item") + } + } + + private func addItem() { + withAnimation { + let newItem = Item(timestamp: Date()) + modelContext.insert(newItem) + } + } + + private func deleteItems(offsets: IndexSet) { + withAnimation { + for index in offsets { + modelContext.delete(items[index]) + } + } + } +} + +#Preview { + ContentView() + .modelContainer(for: Item.self, inMemory: true) +} diff --git a/JanitorialQC/Item.swift b/JanitorialQC/Item.swift new file mode 100644 index 0000000..6621b23 --- /dev/null +++ b/JanitorialQC/Item.swift @@ -0,0 +1,18 @@ +// +// Item.swift +// JanitorialQC +// +// Created by Nguyen Ngo on 5/2/26. +// + +import Foundation +import SwiftData + +@Model +final class Item { + var timestamp: Date + + init(timestamp: Date) { + self.timestamp = timestamp + } +} diff --git a/JanitorialQC/JanitorialQCApp.swift b/JanitorialQC/JanitorialQCApp.swift new file mode 100644 index 0000000..7e5cb27 --- /dev/null +++ b/JanitorialQC/JanitorialQCApp.swift @@ -0,0 +1,32 @@ +// +// JanitorialQCApp.swift +// JanitorialQC +// +// Created by Nguyen Ngo on 5/2/26. +// + +import SwiftUI +import SwiftData + +@main +struct JanitorialQCApp: App { + var sharedModelContainer: ModelContainer = { + let schema = Schema([ + Item.self, + ]) + let modelConfiguration = ModelConfiguration(schema: schema, isStoredInMemoryOnly: false) + + do { + return try ModelContainer(for: schema, configurations: [modelConfiguration]) + } catch { + fatalError("Could not create ModelContainer: \(error)") + } + }() + + var body: some Scene { + WindowGroup { + ContentView() + } + .modelContainer(sharedModelContainer) + } +} diff --git a/JanitorialQCTests/JanitorialQCTests.swift b/JanitorialQCTests/JanitorialQCTests.swift new file mode 100644 index 0000000..4c602ad --- /dev/null +++ b/JanitorialQCTests/JanitorialQCTests.swift @@ -0,0 +1,19 @@ +// +// JanitorialQCTests.swift +// JanitorialQCTests +// +// Created by Nguyen Ngo on 5/2/26. +// + +import Testing +@testable import JanitorialQC + +struct JanitorialQCTests { + + @Test func example() async throws { + // Write your test here and use APIs like `#expect(...)` to check expected conditions. + // Swift Testing Documentation + // https://developer.apple.com/documentation/testing + } + +} diff --git a/JanitorialQCUITests/JanitorialQCUITests.swift b/JanitorialQCUITests/JanitorialQCUITests.swift new file mode 100644 index 0000000..4ff1f32 --- /dev/null +++ b/JanitorialQCUITests/JanitorialQCUITests.swift @@ -0,0 +1,43 @@ +// +// JanitorialQCUITests.swift +// JanitorialQCUITests +// +// Created by Nguyen Ngo on 5/2/26. +// + +import XCTest + +final class JanitorialQCUITests: 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. + // XCUIAutomation Documentation + // https://developer.apple.com/documentation/xcuiautomation + } + + @MainActor + func testLaunchPerformance() throws { + // This measures how long it takes to launch your application. + measure(metrics: [XCTApplicationLaunchMetric()]) { + XCUIApplication().launch() + } + } +} diff --git a/JanitorialQCUITests/JanitorialQCUITestsLaunchTests.swift b/JanitorialQCUITests/JanitorialQCUITestsLaunchTests.swift new file mode 100644 index 0000000..734dd09 --- /dev/null +++ b/JanitorialQCUITests/JanitorialQCUITestsLaunchTests.swift @@ -0,0 +1,35 @@ +// +// JanitorialQCUITestsLaunchTests.swift +// JanitorialQCUITests +// +// Created by Nguyen Ngo on 5/2/26. +// + +import XCTest + +final class JanitorialQCUITestsLaunchTests: 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 + // XCUIAutomation Documentation + // https://developer.apple.com/documentation/xcuiautomation + + let attachment = XCTAttachment(screenshot: app.screenshot()) + attachment.name = "Launch Screen" + attachment.lifetime = .keepAlways + add(attachment) + } +}