From 659518f3dbb4876fae3cb7fd60039d6be2102ba5 Mon Sep 17 00:00:00 2001 From: N3v1 Date: Sun, 18 Feb 2024 20:32:58 +0100 Subject: [PATCH] [Chore]: Add swift example --- .../project.pbxproj | 622 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../xcschemes/xcschememanagement.plist | 14 + .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 63 ++ .../Assets.xcassets/Contents.json | 6 + .../avatar-explorer_swift/ContentView.swift | 24 + .../Preview Assets.xcassets/Contents.json | 6 + .../avatar_explorer_swift.entitlements | 10 + .../avatar_explorer_swiftApp.swift | 17 + .../avatar_explorer_swiftTests.swift | 35 + .../avatar_explorer_swiftUITests.swift | 41 ++ ...tar_explorer_swiftUITestsLaunchTests.swift | 32 + SLAvatarKit.xcodeproj/project.pbxproj | 24 + 15 files changed, 920 insertions(+) create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/project.pbxproj create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/xcuserdata/neviohirani.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Assets.xcassets/Contents.json create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/ContentView.swift create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Preview Content/Preview Assets.xcassets/Contents.json create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/avatar_explorer_swift.entitlements create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/avatar_explorer_swiftApp.swift create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swiftTests/avatar_explorer_swiftTests.swift create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swiftUITests/avatar_explorer_swiftUITests.swift create mode 100644 Example/swift-sample/avatar-explorer_swift/avatar-explorer_swiftUITests/avatar_explorer_swiftUITestsLaunchTests.swift diff --git a/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/project.pbxproj b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/project.pbxproj new file mode 100644 index 0000000..3690f7f --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/project.pbxproj @@ -0,0 +1,622 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 388472E62B8292B200D61AEE /* avatar_explorer_swiftApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388472E52B8292B200D61AEE /* avatar_explorer_swiftApp.swift */; }; + 388472E82B8292B200D61AEE /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388472E72B8292B200D61AEE /* ContentView.swift */; }; + 388472EA2B8292B400D61AEE /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 388472E92B8292B400D61AEE /* Assets.xcassets */; }; + 388472EE2B8292B400D61AEE /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 388472ED2B8292B400D61AEE /* Preview Assets.xcassets */; }; + 388472F82B8292B400D61AEE /* avatar_explorer_swiftTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388472F72B8292B400D61AEE /* avatar_explorer_swiftTests.swift */; }; + 388473022B8292B400D61AEE /* avatar_explorer_swiftUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388473012B8292B400D61AEE /* avatar_explorer_swiftUITests.swift */; }; + 388473042B8292B400D61AEE /* avatar_explorer_swiftUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 388473032B8292B400D61AEE /* avatar_explorer_swiftUITestsLaunchTests.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 388472F42B8292B400D61AEE /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 388472DA2B8292B200D61AEE /* Project object */; + proxyType = 1; + remoteGlobalIDString = 388472E12B8292B200D61AEE; + remoteInfo = "avatar-explorer_swift"; + }; + 388472FE2B8292B400D61AEE /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 388472DA2B8292B200D61AEE /* Project object */; + proxyType = 1; + remoteGlobalIDString = 388472E12B8292B200D61AEE; + remoteInfo = "avatar-explorer_swift"; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 388472E22B8292B200D61AEE /* avatar-explorer_swift.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "avatar-explorer_swift.app"; sourceTree = BUILT_PRODUCTS_DIR; }; + 388472E52B8292B200D61AEE /* avatar_explorer_swiftApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = avatar_explorer_swiftApp.swift; sourceTree = ""; }; + 388472E72B8292B200D61AEE /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 388472E92B8292B400D61AEE /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 388472EB2B8292B400D61AEE /* avatar_explorer_swift.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = avatar_explorer_swift.entitlements; sourceTree = ""; }; + 388472ED2B8292B400D61AEE /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; + 388472F32B8292B400D61AEE /* avatar-explorer_swiftTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "avatar-explorer_swiftTests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 388472F72B8292B400D61AEE /* avatar_explorer_swiftTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = avatar_explorer_swiftTests.swift; sourceTree = ""; }; + 388472FD2B8292B400D61AEE /* avatar-explorer_swiftUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = "avatar-explorer_swiftUITests.xctest"; sourceTree = BUILT_PRODUCTS_DIR; }; + 388473012B8292B400D61AEE /* avatar_explorer_swiftUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = avatar_explorer_swiftUITests.swift; sourceTree = ""; }; + 388473032B8292B400D61AEE /* avatar_explorer_swiftUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = avatar_explorer_swiftUITestsLaunchTests.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 388472DF2B8292B200D61AEE /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 388472F02B8292B400D61AEE /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 388472FA2B8292B400D61AEE /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 388472D92B8292B200D61AEE = { + isa = PBXGroup; + children = ( + 388472E42B8292B200D61AEE /* avatar-explorer_swift */, + 388472F62B8292B400D61AEE /* avatar-explorer_swiftTests */, + 388473002B8292B400D61AEE /* avatar-explorer_swiftUITests */, + 388472E32B8292B200D61AEE /* Products */, + ); + sourceTree = ""; + }; + 388472E32B8292B200D61AEE /* Products */ = { + isa = PBXGroup; + children = ( + 388472E22B8292B200D61AEE /* avatar-explorer_swift.app */, + 388472F32B8292B400D61AEE /* avatar-explorer_swiftTests.xctest */, + 388472FD2B8292B400D61AEE /* avatar-explorer_swiftUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 388472E42B8292B200D61AEE /* avatar-explorer_swift */ = { + isa = PBXGroup; + children = ( + 388472E52B8292B200D61AEE /* avatar_explorer_swiftApp.swift */, + 388472E72B8292B200D61AEE /* ContentView.swift */, + 388472E92B8292B400D61AEE /* Assets.xcassets */, + 388472EB2B8292B400D61AEE /* avatar_explorer_swift.entitlements */, + 388472EC2B8292B400D61AEE /* Preview Content */, + ); + path = "avatar-explorer_swift"; + sourceTree = ""; + }; + 388472EC2B8292B400D61AEE /* Preview Content */ = { + isa = PBXGroup; + children = ( + 388472ED2B8292B400D61AEE /* Preview Assets.xcassets */, + ); + path = "Preview Content"; + sourceTree = ""; + }; + 388472F62B8292B400D61AEE /* avatar-explorer_swiftTests */ = { + isa = PBXGroup; + children = ( + 388472F72B8292B400D61AEE /* avatar_explorer_swiftTests.swift */, + ); + path = "avatar-explorer_swiftTests"; + sourceTree = ""; + }; + 388473002B8292B400D61AEE /* avatar-explorer_swiftUITests */ = { + isa = PBXGroup; + children = ( + 388473012B8292B400D61AEE /* avatar_explorer_swiftUITests.swift */, + 388473032B8292B400D61AEE /* avatar_explorer_swiftUITestsLaunchTests.swift */, + ); + path = "avatar-explorer_swiftUITests"; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 388472E12B8292B200D61AEE /* avatar-explorer_swift */ = { + isa = PBXNativeTarget; + buildConfigurationList = 388473072B8292B400D61AEE /* Build configuration list for PBXNativeTarget "avatar-explorer_swift" */; + buildPhases = ( + 388472DE2B8292B200D61AEE /* Sources */, + 388472DF2B8292B200D61AEE /* Frameworks */, + 388472E02B8292B200D61AEE /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "avatar-explorer_swift"; + productName = "avatar-explorer_swift"; + productReference = 388472E22B8292B200D61AEE /* avatar-explorer_swift.app */; + productType = "com.apple.product-type.application"; + }; + 388472F22B8292B400D61AEE /* avatar-explorer_swiftTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3884730A2B8292B400D61AEE /* Build configuration list for PBXNativeTarget "avatar-explorer_swiftTests" */; + buildPhases = ( + 388472EF2B8292B400D61AEE /* Sources */, + 388472F02B8292B400D61AEE /* Frameworks */, + 388472F12B8292B400D61AEE /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 388472F52B8292B400D61AEE /* PBXTargetDependency */, + ); + name = "avatar-explorer_swiftTests"; + productName = "avatar-explorer_swiftTests"; + productReference = 388472F32B8292B400D61AEE /* avatar-explorer_swiftTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 388472FC2B8292B400D61AEE /* avatar-explorer_swiftUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3884730D2B8292B400D61AEE /* Build configuration list for PBXNativeTarget "avatar-explorer_swiftUITests" */; + buildPhases = ( + 388472F92B8292B400D61AEE /* Sources */, + 388472FA2B8292B400D61AEE /* Frameworks */, + 388472FB2B8292B400D61AEE /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 388472FF2B8292B400D61AEE /* PBXTargetDependency */, + ); + name = "avatar-explorer_swiftUITests"; + productName = "avatar-explorer_swiftUITests"; + productReference = 388472FD2B8292B400D61AEE /* avatar-explorer_swiftUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 388472DA2B8292B200D61AEE /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1520; + LastUpgradeCheck = 1520; + TargetAttributes = { + 388472E12B8292B200D61AEE = { + CreatedOnToolsVersion = 15.2; + }; + 388472F22B8292B400D61AEE = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 388472E12B8292B200D61AEE; + }; + 388472FC2B8292B400D61AEE = { + CreatedOnToolsVersion = 15.2; + TestTargetID = 388472E12B8292B200D61AEE; + }; + }; + }; + buildConfigurationList = 388472DD2B8292B200D61AEE /* Build configuration list for PBXProject "avatar-explorer_swift" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 388472D92B8292B200D61AEE; + productRefGroup = 388472E32B8292B200D61AEE /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 388472E12B8292B200D61AEE /* avatar-explorer_swift */, + 388472F22B8292B400D61AEE /* avatar-explorer_swiftTests */, + 388472FC2B8292B400D61AEE /* avatar-explorer_swiftUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 388472E02B8292B200D61AEE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 388472EE2B8292B400D61AEE /* Preview Assets.xcassets in Resources */, + 388472EA2B8292B400D61AEE /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 388472F12B8292B400D61AEE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 388472FB2B8292B400D61AEE /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 388472DE2B8292B200D61AEE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 388472E82B8292B200D61AEE /* ContentView.swift in Sources */, + 388472E62B8292B200D61AEE /* avatar_explorer_swiftApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 388472EF2B8292B400D61AEE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 388472F82B8292B400D61AEE /* avatar_explorer_swiftTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 388472F92B8292B400D61AEE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 388473042B8292B400D61AEE /* avatar_explorer_swiftUITestsLaunchTests.swift in Sources */, + 388473022B8292B400D61AEE /* avatar_explorer_swiftUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 388472F52B8292B400D61AEE /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 388472E12B8292B200D61AEE /* avatar-explorer_swift */; + targetProxy = 388472F42B8292B400D61AEE /* PBXContainerItemProxy */; + }; + 388472FF2B8292B400D61AEE /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 388472E12B8292B200D61AEE /* avatar-explorer_swift */; + targetProxy = 388472FE2B8292B400D61AEE /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 388473052B8292B400D61AEE /* 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; + }; + 388473062B8292B400D61AEE /* 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; + }; + 388473082B8292B400D61AEE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = "avatar-explorer_swift/avatar_explorer_swift.entitlements"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"avatar-explorer_swift/Preview Content\""; + DEVELOPMENT_TEAM = W93RMB5CDG; + 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 = 17.2; + LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; + "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 14.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.nhstudios.avatar-explorer-swift"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 388473092B8292B400D61AEE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = "avatar-explorer_swift/avatar_explorer_swift.entitlements"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_ASSET_PATHS = "\"avatar-explorer_swift/Preview Content\""; + DEVELOPMENT_TEAM = W93RMB5CDG; + 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 = 17.2; + LD_RUNPATH_SEARCH_PATHS = "@executable_path/Frameworks"; + "LD_RUNPATH_SEARCH_PATHS[sdk=macosx*]" = "@executable_path/../Frameworks"; + MACOSX_DEPLOYMENT_TARGET = 14.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.nhstudios.avatar-explorer-swift"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 3884730B2B8292B400D61AEE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = W93RMB5CDG; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MACOSX_DEPLOYMENT_TARGET = 14.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.nhstudios.avatar-explorer-swiftTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/avatar-explorer_swift.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/avatar-explorer_swift"; + }; + name = Debug; + }; + 3884730C2B8292B400D61AEE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = W93RMB5CDG; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MACOSX_DEPLOYMENT_TARGET = 14.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.nhstudios.avatar-explorer-swiftTests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/avatar-explorer_swift.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/avatar-explorer_swift"; + }; + name = Release; + }; + 3884730E2B8292B400D61AEE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = W93RMB5CDG; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MACOSX_DEPLOYMENT_TARGET = 14.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.nhstudios.avatar-explorer-swiftUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = "avatar-explorer_swift"; + }; + name = Debug; + }; + 3884730F2B8292B400D61AEE /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = W93RMB5CDG; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.2; + MACOSX_DEPLOYMENT_TARGET = 14.0; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.nhstudios.avatar-explorer-swiftUITests"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = auto; + SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; + SWIFT_EMIT_LOC_STRINGS = NO; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + TEST_TARGET_NAME = "avatar-explorer_swift"; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 388472DD2B8292B200D61AEE /* Build configuration list for PBXProject "avatar-explorer_swift" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 388473052B8292B400D61AEE /* Debug */, + 388473062B8292B400D61AEE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 388473072B8292B400D61AEE /* Build configuration list for PBXNativeTarget "avatar-explorer_swift" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 388473082B8292B400D61AEE /* Debug */, + 388473092B8292B400D61AEE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3884730A2B8292B400D61AEE /* Build configuration list for PBXNativeTarget "avatar-explorer_swiftTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3884730B2B8292B400D61AEE /* Debug */, + 3884730C2B8292B400D61AEE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 3884730D2B8292B400D61AEE /* Build configuration list for PBXNativeTarget "avatar-explorer_swiftUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3884730E2B8292B400D61AEE /* Debug */, + 3884730F2B8292B400D61AEE /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 388472DA2B8292B200D61AEE /* Project object */; +} diff --git a/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/xcuserdata/neviohirani.xcuserdatad/xcschemes/xcschememanagement.plist b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/xcuserdata/neviohirani.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..8fc9118 --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift.xcodeproj/xcuserdata/neviohirani.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + avatar-explorer_swift.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Assets.xcassets/AccentColor.colorset/Contents.json b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Assets.xcassets/AppIcon.appiconset/Contents.json b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..532cd72 --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,63 @@ +{ + "images" : [ + { + "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/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Assets.xcassets/Contents.json b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/ContentView.swift b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/ContentView.swift new file mode 100644 index 0000000..5975ca1 --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/ContentView.swift @@ -0,0 +1,24 @@ +// +// ContentView.swift +// avatar-explorer_swift +// +// Created by Nevio Hirani on 18.02.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/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Preview Content/Preview Assets.xcassets/Contents.json b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Preview Content/Preview Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/Preview Content/Preview Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/avatar_explorer_swift.entitlements b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/avatar_explorer_swift.entitlements new file mode 100644 index 0000000..f2ef3ae --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/avatar_explorer_swift.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + + diff --git a/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/avatar_explorer_swiftApp.swift b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/avatar_explorer_swiftApp.swift new file mode 100644 index 0000000..eaf1387 --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swift/avatar_explorer_swiftApp.swift @@ -0,0 +1,17 @@ +// +// avatar_explorer_swiftApp.swift +// avatar-explorer_swift +// +// Created by Nevio Hirani on 18.02.24. +// + +import SwiftUI + +@main +struct avatar_explorer_swiftApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swiftTests/avatar_explorer_swiftTests.swift b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swiftTests/avatar_explorer_swiftTests.swift new file mode 100644 index 0000000..665ac20 --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swiftTests/avatar_explorer_swiftTests.swift @@ -0,0 +1,35 @@ +// +// avatar_explorer_swiftTests.swift +// avatar-explorer_swiftTests +// +// Created by Nevio Hirani on 18.02.24. +// + +import XCTest + +final class avatar_explorer_swiftTests: 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. + measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swiftUITests/avatar_explorer_swiftUITests.swift b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swiftUITests/avatar_explorer_swiftUITests.swift new file mode 100644 index 0000000..43e51cf --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swiftUITests/avatar_explorer_swiftUITests.swift @@ -0,0 +1,41 @@ +// +// avatar_explorer_swiftUITests.swift +// avatar-explorer_swiftUITests +// +// Created by Nevio Hirani on 18.02.24. +// + +import XCTest + +final class avatar_explorer_swiftUITests: 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/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swiftUITests/avatar_explorer_swiftUITestsLaunchTests.swift b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swiftUITests/avatar_explorer_swiftUITestsLaunchTests.swift new file mode 100644 index 0000000..83b8e12 --- /dev/null +++ b/Example/swift-sample/avatar-explorer_swift/avatar-explorer_swiftUITests/avatar_explorer_swiftUITestsLaunchTests.swift @@ -0,0 +1,32 @@ +// +// avatar_explorer_swiftUITestsLaunchTests.swift +// avatar-explorer_swiftUITests +// +// Created by Nevio Hirani on 18.02.24. +// + +import XCTest + +final class avatar_explorer_swiftUITestsLaunchTests: 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) + } +} diff --git a/SLAvatarKit.xcodeproj/project.pbxproj b/SLAvatarKit.xcodeproj/project.pbxproj index 23f5e5e..fd5f5c7 100644 --- a/SLAvatarKit.xcodeproj/project.pbxproj +++ b/SLAvatarKit.xcodeproj/project.pbxproj @@ -149,6 +149,9 @@ 388472BE2B82456500D61AEE /* Memojis */ = { isa = PBXGroup; children = ( + 388472D82B8291C200D61AEE /* Views */, + 388472D72B8291BA00D61AEE /* Service */, + 388472D62B8291B200D61AEE /* Include */, ); path = Memojis; sourceTree = ""; @@ -214,6 +217,27 @@ path = Views; sourceTree = ""; }; + 388472D62B8291B200D61AEE /* Include */ = { + isa = PBXGroup; + children = ( + ); + path = Include; + sourceTree = ""; + }; + 388472D72B8291BA00D61AEE /* Service */ = { + isa = PBXGroup; + children = ( + ); + path = Service; + sourceTree = ""; + }; + 388472D82B8291C200D61AEE /* Views */ = { + isa = PBXGroup; + children = ( + ); + path = Views; + sourceTree = ""; + }; /* End PBXGroup section */ /* Begin PBXHeadersBuildPhase section */