From 3d9f1ab6bc91727584785bfdb6f3a65417406981 Mon Sep 17 00:00:00 2001 From: Dennis Nemec Date: Wed, 19 Aug 2026 16:14:26 +0200 Subject: [PATCH] Initial Commit --- GasTankAR.xcodeproj/project.pbxproj | 602 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcschemes/xcschememanagement.plist | 14 + GasTankAR/AppDelegate.swift | 36 ++ .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 35 + GasTankAR/Assets.xcassets/Contents.json | 6 + GasTankAR/ContentView.swift | 40 ++ GasTankAR/Info.plist | 23 + GasTankAR/SceneDelegate.swift | 63 ++ GasTankARTests/GasTankARTests.swift | 19 + GasTankARUITests/GasTankARUITests.swift | 43 ++ .../GasTankARUITestsLaunchTests.swift | 35 + 13 files changed, 934 insertions(+) create mode 100644 GasTankAR.xcodeproj/project.pbxproj create mode 100644 GasTankAR.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 GasTankAR.xcodeproj/xcuserdata/dennis.xcuserdatad/xcschemes/xcschememanagement.plist create mode 100644 GasTankAR/AppDelegate.swift create mode 100644 GasTankAR/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 GasTankAR/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 GasTankAR/Assets.xcassets/Contents.json create mode 100644 GasTankAR/ContentView.swift create mode 100644 GasTankAR/Info.plist create mode 100644 GasTankAR/SceneDelegate.swift create mode 100644 GasTankARTests/GasTankARTests.swift create mode 100644 GasTankARUITests/GasTankARUITests.swift create mode 100644 GasTankARUITests/GasTankARUITestsLaunchTests.swift diff --git a/GasTankAR.xcodeproj/project.pbxproj b/GasTankAR.xcodeproj/project.pbxproj new file mode 100644 index 0000000..4a934a2 --- /dev/null +++ b/GasTankAR.xcodeproj/project.pbxproj @@ -0,0 +1,602 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 77; + objects = { + +/* Begin PBXContainerItemProxy section */ + 95BEEDDE3035F1C100D17653 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 95BEEDC53035F1C000D17653 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 95BEEDCC3035F1C100D17653; + remoteInfo = GasTankAR; + }; + 95BEEDE83035F1C100D17653 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 95BEEDC53035F1C000D17653 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 95BEEDCC3035F1C100D17653; + remoteInfo = GasTankAR; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 95BEEDCD3035F1C100D17653 /* GasTankAR.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = GasTankAR.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 95BEEDDD3035F1C100D17653 /* GasTankARTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GasTankARTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 95BEEDE73035F1C100D17653 /* GasTankARUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = GasTankARUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; +/* End PBXFileReference section */ + +/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */ + 95BEEDEF3035F1C100D17653 /* Exceptions for "GasTankAR" folder in "GasTankAR" target */ = { + isa = PBXFileSystemSynchronizedBuildFileExceptionSet; + membershipExceptions = ( + Info.plist, + ); + target = 95BEEDCC3035F1C100D17653 /* GasTankAR */; + }; +/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */ + +/* Begin PBXFileSystemSynchronizedRootGroup section */ + 95BEEDCF3035F1C100D17653 /* GasTankAR */ = { + isa = PBXFileSystemSynchronizedRootGroup; + exceptions = ( + 95BEEDEF3035F1C100D17653 /* Exceptions for "GasTankAR" folder in "GasTankAR" target */, + ); + path = GasTankAR; + sourceTree = ""; + }; + 95BEEDE03035F1C100D17653 /* GasTankARTests */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = GasTankARTests; + sourceTree = ""; + }; + 95BEEDEA3035F1C100D17653 /* GasTankARUITests */ = { + isa = PBXFileSystemSynchronizedRootGroup; + path = GasTankARUITests; + sourceTree = ""; + }; +/* End PBXFileSystemSynchronizedRootGroup section */ + +/* Begin PBXFrameworksBuildPhase section */ + 95BEEDCA3035F1C100D17653 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 95BEEDDA3035F1C100D17653 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 95BEEDE43035F1C100D17653 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 95BEEDC43035F1C000D17653 = { + isa = PBXGroup; + children = ( + 95BEEDCF3035F1C100D17653 /* GasTankAR */, + 95BEEDE03035F1C100D17653 /* GasTankARTests */, + 95BEEDEA3035F1C100D17653 /* GasTankARUITests */, + 95BEEDCE3035F1C100D17653 /* Products */, + ); + sourceTree = ""; + }; + 95BEEDCE3035F1C100D17653 /* Products */ = { + isa = PBXGroup; + children = ( + 95BEEDCD3035F1C100D17653 /* GasTankAR.app */, + 95BEEDDD3035F1C100D17653 /* GasTankARTests.xctest */, + 95BEEDE73035F1C100D17653 /* GasTankARUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 95BEEDCC3035F1C100D17653 /* GasTankAR */ = { + isa = PBXNativeTarget; + buildConfigurationList = 95BEEDF03035F1C100D17653 /* Build configuration list for PBXNativeTarget "GasTankAR" */; + buildPhases = ( + 95BEEDC93035F1C100D17653 /* Sources */, + 95BEEDCA3035F1C100D17653 /* Frameworks */, + 95BEEDCB3035F1C100D17653 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + fileSystemSynchronizedGroups = ( + 95BEEDCF3035F1C100D17653 /* GasTankAR */, + ); + name = GasTankAR; + packageProductDependencies = ( + ); + productName = GasTankAR; + productReference = 95BEEDCD3035F1C100D17653 /* GasTankAR.app */; + productType = "com.apple.product-type.application"; + }; + 95BEEDDC3035F1C100D17653 /* GasTankARTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 95BEEDF53035F1C100D17653 /* Build configuration list for PBXNativeTarget "GasTankARTests" */; + buildPhases = ( + 95BEEDD93035F1C100D17653 /* Sources */, + 95BEEDDA3035F1C100D17653 /* Frameworks */, + 95BEEDDB3035F1C100D17653 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 95BEEDDF3035F1C100D17653 /* PBXTargetDependency */, + ); + fileSystemSynchronizedGroups = ( + 95BEEDE03035F1C100D17653 /* GasTankARTests */, + ); + name = GasTankARTests; + packageProductDependencies = ( + ); + productName = GasTankARTests; + productReference = 95BEEDDD3035F1C100D17653 /* GasTankARTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 95BEEDE63035F1C100D17653 /* GasTankARUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 95BEEDF83035F1C100D17653 /* Build configuration list for PBXNativeTarget "GasTankARUITests" */; + buildPhases = ( + 95BEEDE33035F1C100D17653 /* Sources */, + 95BEEDE43035F1C100D17653 /* Frameworks */, + 95BEEDE53035F1C100D17653 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 95BEEDE93035F1C100D17653 /* PBXTargetDependency */, + ); + fileSystemSynchronizedGroups = ( + 95BEEDEA3035F1C100D17653 /* GasTankARUITests */, + ); + name = GasTankARUITests; + packageProductDependencies = ( + ); + productName = GasTankARUITests; + productReference = 95BEEDE73035F1C100D17653 /* GasTankARUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 95BEEDC53035F1C000D17653 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 2660; + LastUpgradeCheck = 2660; + TargetAttributes = { + 95BEEDCC3035F1C100D17653 = { + CreatedOnToolsVersion = 26.6; + }; + 95BEEDDC3035F1C100D17653 = { + CreatedOnToolsVersion = 26.6; + TestTargetID = 95BEEDCC3035F1C100D17653; + }; + 95BEEDE63035F1C100D17653 = { + CreatedOnToolsVersion = 26.6; + TestTargetID = 95BEEDCC3035F1C100D17653; + }; + }; + }; + buildConfigurationList = 95BEEDC83035F1C000D17653 /* Build configuration list for PBXProject "GasTankAR" */; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 95BEEDC43035F1C000D17653; + minimizedProjectReferenceProxies = 1; + preferredProjectObjectVersion = 77; + productRefGroup = 95BEEDCE3035F1C100D17653 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 95BEEDCC3035F1C100D17653 /* GasTankAR */, + 95BEEDDC3035F1C100D17653 /* GasTankARTests */, + 95BEEDE63035F1C100D17653 /* GasTankARUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 95BEEDCB3035F1C100D17653 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 95BEEDDB3035F1C100D17653 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 95BEEDE53035F1C100D17653 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 95BEEDC93035F1C100D17653 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 95BEEDD93035F1C100D17653 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 95BEEDE33035F1C100D17653 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 95BEEDDF3035F1C100D17653 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 95BEEDCC3035F1C100D17653 /* GasTankAR */; + targetProxy = 95BEEDDE3035F1C100D17653 /* PBXContainerItemProxy */; + }; + 95BEEDE93035F1C100D17653 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 95BEEDCC3035F1C100D17653 /* GasTankAR */; + targetProxy = 95BEEDE83035F1C100D17653 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 95BEEDF13035F1C100D17653 /* 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 = 37Z4ZA4QU2; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = GasTankAR/Info.plist; + INFOPLIST_KEY_NSCameraUsageDescription = CAMERA_USAGE_DESCRIPTION; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UIRequiredDeviceCapabilities = arkit; + INFOPLIST_KEY_UIStatusBarHidden = 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 = dev.dennisnemec.GasTankAR; + 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; + }; + 95BEEDF23035F1C100D17653 /* 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 = 37Z4ZA4QU2; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = GasTankAR/Info.plist; + INFOPLIST_KEY_NSCameraUsageDescription = CAMERA_USAGE_DESCRIPTION; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UIRequiredDeviceCapabilities = arkit; + INFOPLIST_KEY_UIStatusBarHidden = 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 = dev.dennisnemec.GasTankAR; + 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; + }; + 95BEEDF33035F1C100D17653 /* 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 = 37Z4ZA4QU2; + 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.5; + 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; + }; + 95BEEDF43035F1C100D17653 /* 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 = 37Z4ZA4QU2; + 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.5; + 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; + }; + 95BEEDF63035F1C100D17653 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 37Z4ZA4QU2; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 26.5; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = dev.dennisnemec.GasTankARTests; + 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)/GasTankAR.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/GasTankAR"; + }; + name = Debug; + }; + 95BEEDF73035F1C100D17653 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + BUNDLE_LOADER = "$(TEST_HOST)"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 37Z4ZA4QU2; + GENERATE_INFOPLIST_FILE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 26.5; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = dev.dennisnemec.GasTankARTests; + 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)/GasTankAR.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/GasTankAR"; + }; + name = Release; + }; + 95BEEDF93035F1C100D17653 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 37Z4ZA4QU2; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = dev.dennisnemec.GasTankARUITests; + 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 = GasTankAR; + }; + name = Debug; + }; + 95BEEDFA3035F1C100D17653 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = 37Z4ZA4QU2; + GENERATE_INFOPLIST_FILE = YES; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = dev.dennisnemec.GasTankARUITests; + 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 = GasTankAR; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 95BEEDC83035F1C000D17653 /* Build configuration list for PBXProject "GasTankAR" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 95BEEDF33035F1C100D17653 /* Debug */, + 95BEEDF43035F1C100D17653 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 95BEEDF03035F1C100D17653 /* Build configuration list for PBXNativeTarget "GasTankAR" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 95BEEDF13035F1C100D17653 /* Debug */, + 95BEEDF23035F1C100D17653 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 95BEEDF53035F1C100D17653 /* Build configuration list for PBXNativeTarget "GasTankARTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 95BEEDF63035F1C100D17653 /* Debug */, + 95BEEDF73035F1C100D17653 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 95BEEDF83035F1C100D17653 /* Build configuration list for PBXNativeTarget "GasTankARUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 95BEEDF93035F1C100D17653 /* Debug */, + 95BEEDFA3035F1C100D17653 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 95BEEDC53035F1C000D17653 /* Project object */; +} diff --git a/GasTankAR.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/GasTankAR.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/GasTankAR.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/GasTankAR.xcodeproj/xcuserdata/dennis.xcuserdatad/xcschemes/xcschememanagement.plist b/GasTankAR.xcodeproj/xcuserdata/dennis.xcuserdatad/xcschemes/xcschememanagement.plist new file mode 100644 index 0000000..db1407e --- /dev/null +++ b/GasTankAR.xcodeproj/xcuserdata/dennis.xcuserdatad/xcschemes/xcschememanagement.plist @@ -0,0 +1,14 @@ + + + + + SchemeUserState + + GasTankAR.xcscheme_^#shared#^_ + + orderHint + 0 + + + + diff --git a/GasTankAR/AppDelegate.swift b/GasTankAR/AppDelegate.swift new file mode 100644 index 0000000..3f95a51 --- /dev/null +++ b/GasTankAR/AppDelegate.swift @@ -0,0 +1,36 @@ +// +// AppDelegate.swift +// GasTankAR +// +// Created by Dennis Nemec on 19.08.26. +// + +import UIKit + +@main +class AppDelegate: UIResponder, UIApplicationDelegate { + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { + // Override point for customization after application launch. + return true + } + + // MARK: UISceneSession Lifecycle + + func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { + // Called when a new scene session is being created. + // Use this method to select a configuration to create the new scene with. + return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) + } + + func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { + // Called when the user discards a scene session. + // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. + // Use this method to release any resources that were specific to the discarded scenes, as they will not return. + } + + +} + diff --git a/GasTankAR/Assets.xcassets/AccentColor.colorset/Contents.json b/GasTankAR/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 0000000..eb87897 --- /dev/null +++ b/GasTankAR/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/GasTankAR/Assets.xcassets/AppIcon.appiconset/Contents.json b/GasTankAR/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..2305880 --- /dev/null +++ b/GasTankAR/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/GasTankAR/Assets.xcassets/Contents.json b/GasTankAR/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/GasTankAR/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/GasTankAR/ContentView.swift b/GasTankAR/ContentView.swift new file mode 100644 index 0000000..b3b5019 --- /dev/null +++ b/GasTankAR/ContentView.swift @@ -0,0 +1,40 @@ +// +// ContentView.swift +// GasTankAR +// +// Created by Dennis Nemec on 19.08.26. +// + +import SwiftUI +import RealityKit + +struct ContentView : View { + + var body: some View { + RealityView { content in + + // Create a cube model + let model = Entity() + let mesh = MeshResource.generateBox(size: 0.1, cornerRadius: 0.005) + let material = SimpleMaterial(color: .gray, roughness: 0.15, isMetallic: true) + model.components.set(ModelComponent(mesh: mesh, materials: [material])) + model.position = [0, 0.05, 0] + + // Create horizontal plane anchor for the content + let anchor = AnchorEntity(.plane(.horizontal, classification: .any, minimumBounds: SIMD2(0.2, 0.2))) + anchor.addChild(model) + + // Add the horizontal plane anchor to the scene + content.add(anchor) + + content.camera = .spatialTracking + + } + .edgesIgnoringSafeArea(.all) + } + +} + +#Preview { + ContentView() +} diff --git a/GasTankAR/Info.plist b/GasTankAR/Info.plist new file mode 100644 index 0000000..0eb786d --- /dev/null +++ b/GasTankAR/Info.plist @@ -0,0 +1,23 @@ + + + + + UIApplicationSceneManifest + + UIApplicationSupportsMultipleScenes + + UISceneConfigurations + + UIWindowSceneSessionRoleApplication + + + UISceneConfigurationName + Default Configuration + UISceneDelegateClassName + $(PRODUCT_MODULE_NAME).SceneDelegate + + + + + + diff --git a/GasTankAR/SceneDelegate.swift b/GasTankAR/SceneDelegate.swift new file mode 100644 index 0000000..9f34891 --- /dev/null +++ b/GasTankAR/SceneDelegate.swift @@ -0,0 +1,63 @@ +// +// SceneDelegate.swift +// GasTankAR +// +// Created by Dennis Nemec on 19.08.26. +// + +import UIKit +import SwiftUI + +class SceneDelegate: UIResponder, UIWindowSceneDelegate { + + var window: UIWindow? + + + func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { + // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. + // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. + // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). + + // Create the SwiftUI view that provides the window contents. + let contentView = ContentView() + + // Use a UIHostingController as window root view controller. + if let windowScene = scene as? UIWindowScene { + let window = UIWindow(windowScene: windowScene) + window.rootViewController = UIHostingController(rootView: contentView) + self.window = window + window.makeKeyAndVisible() + } + } + + func sceneDidDisconnect(_ scene: UIScene) { + // Called as the scene is being released by the system. + // This occurs shortly after the scene enters the background, or when its session is discarded. + // Release any resources associated with this scene that can be re-created the next time the scene connects. + // The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead). + } + + func sceneDidBecomeActive(_ scene: UIScene) { + // Called when the scene has moved from an inactive state to an active state. + // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. + } + + func sceneWillResignActive(_ scene: UIScene) { + // Called when the scene will move from an active state to an inactive state. + // This may occur due to temporary interruptions (ex. an incoming phone call). + } + + func sceneWillEnterForeground(_ scene: UIScene) { + // Called as the scene transitions from the background to the foreground. + // Use this method to undo the changes made on entering the background. + } + + func sceneDidEnterBackground(_ scene: UIScene) { + // Called as the scene transitions from the foreground to the background. + // Use this method to save data, release shared resources, and store enough scene-specific state information + // to restore the scene back to its current state. + } + + +} + diff --git a/GasTankARTests/GasTankARTests.swift b/GasTankARTests/GasTankARTests.swift new file mode 100644 index 0000000..060600c --- /dev/null +++ b/GasTankARTests/GasTankARTests.swift @@ -0,0 +1,19 @@ +// +// GasTankARTests.swift +// GasTankARTests +// +// Created by Dennis Nemec on 19.08.26. +// + +import Testing +@testable import GasTankAR + +struct GasTankARTests { + + @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/GasTankARUITests/GasTankARUITests.swift b/GasTankARUITests/GasTankARUITests.swift new file mode 100644 index 0000000..c315cf5 --- /dev/null +++ b/GasTankARUITests/GasTankARUITests.swift @@ -0,0 +1,43 @@ +// +// GasTankARUITests.swift +// GasTankARUITests +// +// Created by Dennis Nemec on 19.08.26. +// + +import XCTest + +final class GasTankARUITests: 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/GasTankARUITests/GasTankARUITestsLaunchTests.swift b/GasTankARUITests/GasTankARUITestsLaunchTests.swift new file mode 100644 index 0000000..7cbb4bf --- /dev/null +++ b/GasTankARUITests/GasTankARUITestsLaunchTests.swift @@ -0,0 +1,35 @@ +// +// GasTankARUITestsLaunchTests.swift +// GasTankARUITests +// +// Created by Dennis Nemec on 19.08.26. +// + +import XCTest + +final class GasTankARUITestsLaunchTests: 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) + } +}