From a9d721d3d3219304eb1e4110b19d7f71aee3bb9c Mon Sep 17 00:00:00 2001 From: "Vinicius.Correia1" Date: Wed, 29 May 2024 23:38:06 -0300 Subject: [PATCH] Initial Commit --- MacCleaner.xcodeproj/project.pbxproj | 578 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcschemes/xcschememanagement.plist | 14 + .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 58 ++ MacCleaner/Assets.xcassets/Contents.json | 6 + MacCleaner/ContentView.swift | 24 + MacCleaner/MacCleaner.entitlements | 10 + MacCleaner/MacCleanerApp.swift | 17 + .../Preview Assets.xcassets/Contents.json | 6 + MacCleanerTests/MacCleanerTests.swift | 36 ++ MacCleanerUITests/MacCleanerUITests.swift | 41 ++ .../MacCleanerUITestsLaunchTests.swift | 32 + 14 files changed, 848 insertions(+) create mode 100644 MacCleaner.xcodeproj/project.pbxproj create mode 100644 MacCleaner.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 MacCleaner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 MacCleaner.xcodeproj/xcuserdata/viniciusmangueira.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 MacCleaner/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 MacCleaner/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 MacCleaner/Assets.xcassets/Contents.json create mode 100644 MacCleaner/ContentView.swift create mode 100644 MacCleaner/MacCleaner.entitlements create mode 100644 MacCleaner/MacCleanerApp.swift create mode 100644 MacCleaner/Preview Content/Preview Assets.xcassets/Contents.json create mode 100644 MacCleanerTests/MacCleanerTests.swift create mode 100644 MacCleanerUITests/MacCleanerUITests.swift create mode 100644 MacCleanerUITests/MacCleanerUITestsLaunchTests.swift diff --git a/MacCleaner.xcodeproj/project.pbxproj b/MacCleaner.xcodeproj/project.pbxproj new file mode 100644 index 0000000..f154bf4 --- /dev/null +++ b/MacCleaner.xcodeproj/project.pbxproj @@ -0,0 +1,578 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 79D4657D2C081E050061176E /* MacCleanerApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79D4657C2C081E050061176E /* MacCleanerApp.swift */; }; + 79D4657F2C081E050061176E /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79D4657E2C081E050061176E /* ContentView.swift */; }; + 79D465812C081E060061176E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 79D465802C081E060061176E /* Assets.xcassets */; }; + 79D465842C081E060061176E /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 79D465832C081E060061176E /* Preview Assets.xcassets */; }; + 79D4658F2C081E070061176E /* MacCleanerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79D4658E2C081E070061176E /* MacCleanerTests.swift */; }; + 79D465992C081E070061176E /* MacCleanerUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79D465982C081E070061176E /* MacCleanerUITests.swift */; }; + 79D4659B2C081E070061176E /* MacCleanerUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 79D4659A2C081E070061176E /* MacCleanerUITestsLaunchTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 79D4658B2C081E070061176E /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 79D465712C081E050061176E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 79D465782C081E050061176E; + remoteInfo = MacCleaner; + }; + 79D465952C081E070061176E /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 79D465712C081E050061176E /* Project object */; + proxyType = 1; + remoteGlobalIDString = 79D465782C081E050061176E; + remoteInfo = MacCleaner; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 79D465792C081E050061176E /* MacCleaner.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MacCleaner.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 79D4657C2C081E050061176E /* MacCleanerApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MacCleanerApp.swift; sourceTree = ""; }; + 79D4657E2C081E050061176E /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 79D465802C081E060061176E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 79D465832C081E060061176E /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 79D465852C081E060061176E /* MacCleaner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = MacCleaner.entitlements; sourceTree = ""; }; + 79D4658A2C081E070061176E /* MacCleanerTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MacCleanerTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 79D4658E2C081E070061176E /* MacCleanerTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MacCleanerTests.swift; sourceTree = ""; }; + 79D465942C081E070061176E /* MacCleanerUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MacCleanerUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 79D465982C081E070061176E /* MacCleanerUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MacCleanerUITests.swift; sourceTree = ""; }; + 79D4659A2C081E070061176E /* MacCleanerUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MacCleanerUITestsLaunchTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 79D465762C081E050061176E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 79D465872C081E070061176E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 79D465912C081E070061176E /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 79D465702C081E050061176E = { + isa = PBXGroup; + children = ( + 79D4657B2C081E050061176E /* MacCleaner */, + 79D4658D2C081E070061176E /* MacCleanerTests */, + 79D465972C081E070061176E /* MacCleanerUITests */, + 79D4657A2C081E050061176E /* Products */, + ); + sourceTree = ""; + }; + 79D4657A2C081E050061176E /* Products */ = { + isa = PBXGroup; + children = ( + 79D465792C081E050061176E /* MacCleaner.app */, + 79D4658A2C081E070061176E /* MacCleanerTests.xctest */, + 79D465942C081E070061176E /* MacCleanerUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 79D4657B2C081E050061176E /* MacCleaner */ = { + isa = PBXGroup; + children = ( + 79D4657C2C081E050061176E /* MacCleanerApp.swift */, + 79D4657E2C081E050061176E /* ContentView.swift */, + 79D465802C081E060061176E /* Assets.xcassets */, + 79D465852C081E060061176E /* MacCleaner.entitlements */, + 79D465822C081E060061176E /* Preview Content */, + ); + path = MacCleaner; + sourceTree = ""; + }; + 79D465822C081E060061176E /* Preview Content */ = { + isa = PBXGroup; + children = ( + 79D465832C081E060061176E /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 79D4658D2C081E070061176E /* MacCleanerTests */ = { + isa = PBXGroup; + children = ( + 79D4658E2C081E070061176E /* MacCleanerTests.swift */, + ); + path = MacCleanerTests; + sourceTree = ""; + }; + 79D465972C081E070061176E /* MacCleanerUITests */ = { + isa = PBXGroup; + children = ( + 79D465982C081E070061176E /* MacCleanerUITests.swift */, + 79D4659A2C081E070061176E /* MacCleanerUITestsLaunchTests.swift */, + ); + path = MacCleanerUITests; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 79D465782C081E050061176E /* MacCleaner */ = { + isa = PBXNativeTarget; + buildConfigurationList = 79D4659E2C081E070061176E /* Build configuration list for PBXNativeTarget "MacCleaner" */; + buildPhases = ( + 79D465752C081E050061176E /* Sources */, + 79D465762C081E050061176E /* Frameworks */, + 79D465772C081E050061176E /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = MacCleaner; + productName = MacCleaner; + productReference = 79D465792C081E050061176E /* MacCleaner.app */; + productType = "com.apple.product-type.application"; + }; + 79D465892C081E070061176E /* MacCleanerTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 79D465A12C081E070061176E /* Build configuration list for PBXNativeTarget "MacCleanerTests" */; + buildPhases = ( + 79D465862C081E070061176E /* Sources */, + 79D465872C081E070061176E /* Frameworks */, + 79D465882C081E070061176E /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 79D4658C2C081E070061176E /* PBXTargetDependency */, + ); + name = MacCleanerTests; + productName = MacCleanerTests; + productReference = 79D4658A2C081E070061176E /* MacCleanerTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 79D465932C081E070061176E /* MacCleanerUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 79D465A42C081E070061176E /* Build configuration list for PBXNativeTarget "MacCleanerUITests" */; + buildPhases = ( + 79D465902C081E070061176E /* Sources */, + 79D465912C081E070061176E /* Frameworks */, + 79D465922C081E070061176E /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 79D465962C081E070061176E /* PBXTargetDependency */, + ); + name = MacCleanerUITests; + productName = MacCleanerUITests; + productReference = 79D465942C081E070061176E /* MacCleanerUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 79D465712C081E050061176E /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; + TargetAttributes = { + 79D465782C081E050061176E = { + CreatedOnToolsVersion = 15.2; + }; + 79D465892C081E070061176E = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 79D465782C081E050061176E; + }; + 79D465932C081E070061176E = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 79D465782C081E050061176E; + }; + }; + }; + buildConfigurationList = 79D465742C081E050061176E /* Build configuration list for PBXProject "MacCleaner" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 79D465702C081E050061176E; + productRefGroup = 79D4657A2C081E050061176E /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 79D465782C081E050061176E /* MacCleaner */, + 79D465892C081E070061176E /* MacCleanerTests */, + 79D465932C081E070061176E /* MacCleanerUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 79D465772C081E050061176E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 79D465842C081E060061176E /* Preview Assets.xcassets in Resources */, + 79D465812C081E060061176E /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 79D465882C081E070061176E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 79D465922C081E070061176E /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 79D465752C081E050061176E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 79D4657F2C081E050061176E /* ContentView.swift in Sources */, + 79D4657D2C081E050061176E /* MacCleanerApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 79D465862C081E070061176E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 79D4658F2C081E070061176E /* MacCleanerTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 79D465902C081E070061176E /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 79D465992C081E070061176E /* MacCleanerUITests.swift in Sources */, + 79D4659B2C081E070061176E /* MacCleanerUITestsLaunchTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 79D4658C2C081E070061176E /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 79D465782C081E050061176E /* MacCleaner */; + targetProxy = 79D4658B2C081E070061176E /* PBXContainerItemProxy */; + }; + 79D465962C081E070061176E /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 79D465782C081E050061176E /* MacCleaner */; + targetProxy = 79D465952C081E070061176E /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 79D4659C2C081E070061176E /* 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; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)"; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 79D4659D2C081E070061176E /* 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; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + }; + name = Release; + }; + 79D4659F2C081E070061176E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = MacCleaner/MacCleaner.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"MacCleaner/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.MacCleaner.MacCleaner; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 79D465A02C081E070061176E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = MacCleaner/MacCleaner.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"MacCleaner/Preview Content\""; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.MacCleaner.MacCleaner; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 79D465A22C081E070061176E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.MacCleaner.MacCleanerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MacCleaner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/MacCleaner"; + }; + name = Debug; + }; + 79D465A32C081E070061176E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MACOSX_DEPLOYMENT_TARGET = 14.2; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.MacCleaner.MacCleanerTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/MacCleaner.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/MacCleaner"; + }; + name = Release; + }; + 79D465A52C081E070061176E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.MacCleaner.MacCleanerUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TEST_TARGET_NAME = MacCleaner; + }; + name = Debug; + }; + 79D465A62C081E070061176E /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = com.MacCleaner.MacCleanerUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TEST_TARGET_NAME = MacCleaner; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 79D465742C081E050061176E /* Build configuration list for PBXProject "MacCleaner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 79D4659C2C081E070061176E /* Debug */, + 79D4659D2C081E070061176E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 79D4659E2C081E070061176E /* Build configuration list for PBXNativeTarget "MacCleaner" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 79D4659F2C081E070061176E /* Debug */, + 79D465A02C081E070061176E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 79D465A12C081E070061176E /* Build configuration list for PBXNativeTarget "MacCleanerTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 79D465A22C081E070061176E /* Debug */, + 79D465A32C081E070061176E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 79D465A42C081E070061176E /* Build configuration list for PBXNativeTarget "MacCleanerUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 79D465A52C081E070061176E /* Debug */, + 79D465A62C081E070061176E /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 79D465712C081E050061176E /* Project object */; +} diff --git a/MacCleaner.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/MacCleaner.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/MacCleaner.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/MacCleaner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/MacCleaner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/MacCleaner.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/MacCleaner.xcodeproj/xcuserdata/viniciusmangueira.xcuserdatad/xcschemes/xcschememanagement.plist b/MacCleaner.xcodeproj/xcuserdata/viniciusmangueira.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..cbb8f99 --- /dev/null +++ b/MacCleaner.xcodeproj/xcuserdata/viniciusmangueira.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + MacCleaner.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/MacCleaner/Assets.xcassets/AccentColor.colorset/Contents.json b/MacCleaner/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/MacCleaner/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/MacCleaner/Assets.xcassets/AppIcon.appiconset/Contents.json b/MacCleaner/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..3f00db4 --- /dev/null +++ b/MacCleaner/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,58 @@ +{ + "images" : [ + { + "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/MacCleaner/Assets.xcassets/Contents.json b/MacCleaner/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/MacCleaner/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/MacCleaner/ContentView.swift b/MacCleaner/ContentView.swift new file mode 100644 index 0000000..a859af5 --- /dev/null +++ b/MacCleaner/ContentView.swift @@ -0,0 +1,24 @@ +// +// ContentView.swift +// MacCleaner +// +// Created by Vinicius Mangueira on 29/05/24. +// + +import SwiftUI + +struct ContentView: View { + var body: some View { + VStack { + Image(systemName: "globe") + .imageScale(.large) + .foregroundStyle(.tint) + Text("Hello, world!") + } + .padding() + } +} + +#Preview { + ContentView() +} diff --git a/MacCleaner/MacCleaner.entitlements b/MacCleaner/MacCleaner.entitlements new file mode 100644 index 0000000..18aff0c --- /dev/null +++ b/MacCleaner/MacCleaner.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + + diff --git a/MacCleaner/MacCleanerApp.swift b/MacCleaner/MacCleanerApp.swift new file mode 100644 index 0000000..2c4615a --- /dev/null +++ b/MacCleaner/MacCleanerApp.swift @@ -0,0 +1,17 @@ +// +// MacCleanerApp.swift +// MacCleaner +// +// Created by Vinicius Mangueira on 29/05/24. +// + +import SwiftUI + +@main +struct MacCleanerApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/MacCleaner/Preview Content/Preview Assets.xcassets/Contents.json b/MacCleaner/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/MacCleaner/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/MacCleanerTests/MacCleanerTests.swift b/MacCleanerTests/MacCleanerTests.swift new file mode 100644 index 0000000..5d882a1 --- /dev/null +++ b/MacCleanerTests/MacCleanerTests.swift @@ -0,0 +1,36 @@ +// +// MacCleanerTests.swift +// MacCleanerTests +// +// Created by Vinicius Mangueira on 29/05/24. +// + +import XCTest +@testable import MacCleaner + +final class MacCleanerTests: 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. + // Any test you write for XCTest can be annotated as throws and async. + // Mark your test throws to produce an unexpected failure when your test encounters an uncaught error. + // Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards. + } + + 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/MacCleanerUITests/MacCleanerUITests.swift b/MacCleanerUITests/MacCleanerUITests.swift new file mode 100644 index 0000000..a6679c3 --- /dev/null +++ b/MacCleanerUITests/MacCleanerUITests.swift @@ -0,0 +1,41 @@ +// +// MacCleanerUITests.swift +// MacCleanerUITests +// +// Created by Vinicius Mangueira on 29/05/24. +// + +import XCTest + +final class MacCleanerUITests: 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 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() + } + } + } +} diff --git a/MacCleanerUITests/MacCleanerUITestsLaunchTests.swift b/MacCleanerUITests/MacCleanerUITestsLaunchTests.swift new file mode 100644 index 0000000..ebdb0ab --- /dev/null +++ b/MacCleanerUITests/MacCleanerUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// MacCleanerUITestsLaunchTests.swift +// MacCleanerUITests +// +// Created by Vinicius Mangueira on 29/05/24. +// + +import XCTest + +final class MacCleanerUITestsLaunchTests: XCTestCase { + + override class var runsForEachTargetApplicationUIConfiguration: Bool { + true + } + + override func setUpWithError() throws { + continueAfterFailure = false + } + + 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) + } +}