From 8f37dce0e4a46090b16602f24acf7ad2392b3de8 Mon Sep 17 00:00:00 2001 From: Wojtek Mach Date: Thu, 15 Jun 2023 14:09:18 +0200 Subject: [PATCH] wip --- elixirkit/demo/rel/swiftui/.gitignore | 3 + .../swiftui/Demo.xcodeproj/project.pbxproj | 472 ++++++++++++++++++ .../contents.xcworkspacedata | 7 + .../xcshareddata/IDEWorkspaceChecks.plist | 8 + .../AccentColor.colorset/Contents.json | 11 + .../AppIcon.appiconset/Contents.json | 148 ++++++ .../Shared/Assets.xcassets/Contents.json | 6 + .../demo/rel/swiftui/Shared/ContentView.swift | 16 + .../demo/rel/swiftui/Shared/DemoApp.swift | 10 + elixirkit/demo/rel/swiftui/build_release.sh | 4 + .../demo/rel/swiftui/macOS/macOS.entitlements | 10 + elixirkit/demo/rel/swiftui/run_macos.sh | 12 + 12 files changed, 707 insertions(+) create mode 100644 elixirkit/demo/rel/swiftui/.gitignore create mode 100644 elixirkit/demo/rel/swiftui/Demo.xcodeproj/project.pbxproj create mode 100644 elixirkit/demo/rel/swiftui/Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata create mode 100644 elixirkit/demo/rel/swiftui/Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist create mode 100644 elixirkit/demo/rel/swiftui/Shared/Assets.xcassets/AccentColor.colorset/Contents.json create mode 100644 elixirkit/demo/rel/swiftui/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 elixirkit/demo/rel/swiftui/Shared/Assets.xcassets/Contents.json create mode 100644 elixirkit/demo/rel/swiftui/Shared/ContentView.swift create mode 100644 elixirkit/demo/rel/swiftui/Shared/DemoApp.swift create mode 100755 elixirkit/demo/rel/swiftui/build_release.sh create mode 100644 elixirkit/demo/rel/swiftui/macOS/macOS.entitlements create mode 100755 elixirkit/demo/rel/swiftui/run_macos.sh diff --git a/elixirkit/demo/rel/swiftui/.gitignore b/elixirkit/demo/rel/swiftui/.gitignore new file mode 100644 index 000000000..87422c9c2 --- /dev/null +++ b/elixirkit/demo/rel/swiftui/.gitignore @@ -0,0 +1,3 @@ +build +xcuserdata +tmp diff --git a/elixirkit/demo/rel/swiftui/Demo.xcodeproj/project.pbxproj b/elixirkit/demo/rel/swiftui/Demo.xcodeproj/project.pbxproj new file mode 100644 index 000000000..a07fa4989 --- /dev/null +++ b/elixirkit/demo/rel/swiftui/Demo.xcodeproj/project.pbxproj @@ -0,0 +1,472 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 55; + objects = { + +/* Begin PBXBuildFile section */ + 2E7CBC1B2A3B3343001253E3 /* DemoApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E7CBC0B2A3B3340001253E3 /* DemoApp.swift */; }; + 2E7CBC1C2A3B3343001253E3 /* DemoApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E7CBC0B2A3B3340001253E3 /* DemoApp.swift */; }; + 2E7CBC1D2A3B3343001253E3 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E7CBC0C2A3B3340001253E3 /* ContentView.swift */; }; + 2E7CBC1E2A3B3343001253E3 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2E7CBC0C2A3B3340001253E3 /* ContentView.swift */; }; + 2E7CBC1F2A3B3343001253E3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2E7CBC0D2A3B3343001253E3 /* Assets.xcassets */; }; + 2E7CBC202A3B3343001253E3 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2E7CBC0D2A3B3343001253E3 /* Assets.xcassets */; }; +/* End PBXBuildFile section */ + +/* Begin PBXFileReference section */ + 2E7CBC0B2A3B3340001253E3 /* DemoApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DemoApp.swift; sourceTree = ""; }; + 2E7CBC0C2A3B3340001253E3 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; + 2E7CBC0D2A3B3343001253E3 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + 2E7CBC122A3B3343001253E3 /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 2E7CBC182A3B3343001253E3 /* Demo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Demo.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 2E7CBC1A2A3B3343001253E3 /* macOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = macOS.entitlements; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 2E7CBC0F2A3B3343001253E3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2E7CBC152A3B3343001253E3 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 2E7CBC052A3B3340001253E3 = { + isa = PBXGroup; + children = ( + 2E7CBC0A2A3B3340001253E3 /* Shared */, + 2E7CBC192A3B3343001253E3 /* macOS */, + 2E7CBC132A3B3343001253E3 /* Products */, + ); + sourceTree = ""; + }; + 2E7CBC0A2A3B3340001253E3 /* Shared */ = { + isa = PBXGroup; + children = ( + 2E7CBC0B2A3B3340001253E3 /* DemoApp.swift */, + 2E7CBC0C2A3B3340001253E3 /* ContentView.swift */, + 2E7CBC0D2A3B3343001253E3 /* Assets.xcassets */, + ); + path = Shared; + sourceTree = ""; + }; + 2E7CBC132A3B3343001253E3 /* Products */ = { + isa = PBXGroup; + children = ( + 2E7CBC122A3B3343001253E3 /* Demo.app */, + 2E7CBC182A3B3343001253E3 /* Demo.app */, + ); + name = Products; + sourceTree = ""; + }; + 2E7CBC192A3B3343001253E3 /* macOS */ = { + isa = PBXGroup; + children = ( + 2E7CBC1A2A3B3343001253E3 /* macOS.entitlements */, + ); + path = macOS; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 2E7CBC112A3B3343001253E3 /* Demo (iOS) */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2E7CBC232A3B3343001253E3 /* Build configuration list for PBXNativeTarget "Demo (iOS)" */; + buildPhases = ( + 2E7CBC0E2A3B3343001253E3 /* Sources */, + 2E7CBC0F2A3B3343001253E3 /* Frameworks */, + 2E7CBC102A3B3343001253E3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Demo (iOS)"; + productName = "Demo (iOS)"; + productReference = 2E7CBC122A3B3343001253E3 /* Demo.app */; + productType = "com.apple.product-type.application"; + }; + 2E7CBC172A3B3343001253E3 /* Demo (macOS) */ = { + isa = PBXNativeTarget; + buildConfigurationList = 2E7CBC262A3B3343001253E3 /* Build configuration list for PBXNativeTarget "Demo (macOS)" */; + buildPhases = ( + 2E24F3522A3B3CFD0056A207 /* ShellScript */, + 2E7CBC142A3B3343001253E3 /* Sources */, + 2E7CBC152A3B3343001253E3 /* Frameworks */, + 2E7CBC162A3B3343001253E3 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "Demo (macOS)"; + productName = "Demo (macOS)"; + productReference = 2E7CBC182A3B3343001253E3 /* Demo.app */; + productType = "com.apple.product-type.application"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 2E7CBC062A3B3340001253E3 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1320; + LastUpgradeCheck = 1320; + TargetAttributes = { + 2E7CBC112A3B3343001253E3 = { + CreatedOnToolsVersion = 13.2.1; + }; + 2E7CBC172A3B3343001253E3 = { + CreatedOnToolsVersion = 13.2.1; + }; + }; + }; + buildConfigurationList = 2E7CBC092A3B3340001253E3 /* Build configuration list for PBXProject "Demo" */; + compatibilityVersion = "Xcode 13.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 2E7CBC052A3B3340001253E3; + productRefGroup = 2E7CBC132A3B3343001253E3 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 2E7CBC112A3B3343001253E3 /* Demo (iOS) */, + 2E7CBC172A3B3343001253E3 /* Demo (macOS) */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 2E7CBC102A3B3343001253E3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2E7CBC1F2A3B3343001253E3 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2E7CBC162A3B3343001253E3 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2E7CBC202A3B3343001253E3 /* Assets.xcassets in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXShellScriptBuildPhase section */ + 2E24F3522A3B3CFD0056A207 /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "(cd $PROJECT_DIR && ./build_release.sh)\n"; + }; +/* End PBXShellScriptBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 2E7CBC0E2A3B3343001253E3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2E7CBC1D2A3B3343001253E3 /* ContentView.swift in Sources */, + 2E7CBC1B2A3B3343001253E3 /* DemoApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 2E7CBC142A3B3343001253E3 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2E7CBC1E2A3B3343001253E3 /* ContentView.swift in Sources */, + 2E7CBC1C2A3B3343001253E3 /* DemoApp.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 2E7CBC212A3B3343001253E3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CLANG_CXX_LIBRARY = "libc++"; + 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; + GCC_C_LANGUAGE_STANDARD = gnu11; + 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; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 2E7CBC222A3B3343001253E3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CLANG_CXX_LIBRARY = "libc++"; + 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; + GCC_C_LANGUAGE_STANDARD = gnu11; + 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; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 2E7CBC242A3B3343001253E3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 15.2; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = localhost.Demo; + PRODUCT_NAME = Demo; + SDKROOT = iphoneos; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 2E7CBC252A3B3343001253E3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_UIApplicationSceneManifest_Generation = YES; + INFOPLIST_KEY_UIApplicationSupportsIndirectInputEvents = YES; + INFOPLIST_KEY_UILaunchScreen_Generation = YES; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight"; + IPHONEOS_DEPLOYMENT_TARGET = 15.2; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = localhost.Demo; + PRODUCT_NAME = Demo; + SDKROOT = iphoneos; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 2E7CBC272A3B3343001253E3 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = macOS/macOS.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MACOSX_DEPLOYMENT_TARGET = 11.7; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = localhost.Demo; + PRODUCT_NAME = Demo; + SDKROOT = macosx; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 2E7CBC282A3B3343001253E3 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; + CODE_SIGN_ENTITLEMENTS = macOS/macOS.entitlements; + CODE_SIGN_STYLE = Automatic; + COMBINE_HIDPI_IMAGES = YES; + CURRENT_PROJECT_VERSION = 1; + ENABLE_PREVIEWS = YES; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/../Frameworks", + ); + MACOSX_DEPLOYMENT_TARGET = 11.7; + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = localhost.Demo; + PRODUCT_NAME = Demo; + SDKROOT = macosx; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 2E7CBC092A3B3340001253E3 /* Build configuration list for PBXProject "Demo" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2E7CBC212A3B3343001253E3 /* Debug */, + 2E7CBC222A3B3343001253E3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2E7CBC232A3B3343001253E3 /* Build configuration list for PBXNativeTarget "Demo (iOS)" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2E7CBC242A3B3343001253E3 /* Debug */, + 2E7CBC252A3B3343001253E3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 2E7CBC262A3B3343001253E3 /* Build configuration list for PBXNativeTarget "Demo (macOS)" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 2E7CBC272A3B3343001253E3 /* Debug */, + 2E7CBC282A3B3343001253E3 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + }; + rootObject = 2E7CBC062A3B3340001253E3 /* Project object */; +} diff --git a/elixirkit/demo/rel/swiftui/Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/elixirkit/demo/rel/swiftui/Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 000000000..919434a62 --- /dev/null +++ b/elixirkit/demo/rel/swiftui/Demo.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/elixirkit/demo/rel/swiftui/Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/elixirkit/demo/rel/swiftui/Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 000000000..18d981003 --- /dev/null +++ b/elixirkit/demo/rel/swiftui/Demo.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/elixirkit/demo/rel/swiftui/Shared/Assets.xcassets/AccentColor.colorset/Contents.json b/elixirkit/demo/rel/swiftui/Shared/Assets.xcassets/AccentColor.colorset/Contents.json new file mode 100644 index 000000000..eb8789700 --- /dev/null +++ b/elixirkit/demo/rel/swiftui/Shared/Assets.xcassets/AccentColor.colorset/Contents.json @@ -0,0 +1,11 @@ +{ + "colors" : [ + { + "idiom" : "universal" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/elixirkit/demo/rel/swiftui/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json b/elixirkit/demo/rel/swiftui/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000..c136eaff7 --- /dev/null +++ b/elixirkit/demo/rel/swiftui/Shared/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,148 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "20x20" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "29x29" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "40x40" + }, + { + "idiom" : "iphone", + "scale" : "2x", + "size" : "60x60" + }, + { + "idiom" : "iphone", + "scale" : "3x", + "size" : "60x60" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "20x20" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "29x29" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "40x40" + }, + { + "idiom" : "ipad", + "scale" : "1x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "76x76" + }, + { + "idiom" : "ipad", + "scale" : "2x", + "size" : "83.5x83.5" + }, + { + "idiom" : "ios-marketing", + "scale" : "1x", + "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/elixirkit/demo/rel/swiftui/Shared/Assets.xcassets/Contents.json b/elixirkit/demo/rel/swiftui/Shared/Assets.xcassets/Contents.json new file mode 100644 index 000000000..73c00596a --- /dev/null +++ b/elixirkit/demo/rel/swiftui/Shared/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/elixirkit/demo/rel/swiftui/Shared/ContentView.swift b/elixirkit/demo/rel/swiftui/Shared/ContentView.swift new file mode 100644 index 000000000..870f34eb8 --- /dev/null +++ b/elixirkit/demo/rel/swiftui/Shared/ContentView.swift @@ -0,0 +1,16 @@ +import SwiftUI + +struct ContentView: View { + var body: some View { + VStack { + Text("Hello, world!") + .padding() + }.frame(minWidth: 400, minHeight: 400) + } +} + +struct ContentView_Previews: PreviewProvider { + static var previews: some View { + ContentView() + } +} diff --git a/elixirkit/demo/rel/swiftui/Shared/DemoApp.swift b/elixirkit/demo/rel/swiftui/Shared/DemoApp.swift new file mode 100644 index 000000000..470184c6a --- /dev/null +++ b/elixirkit/demo/rel/swiftui/Shared/DemoApp.swift @@ -0,0 +1,10 @@ +import SwiftUI + +@main +struct DemoApp: App { + var body: some Scene { + WindowGroup { + ContentView() + } + } +} diff --git a/elixirkit/demo/rel/swiftui/build_release.sh b/elixirkit/demo/rel/swiftui/build_release.sh new file mode 100755 index 000000000..49f7a986e --- /dev/null +++ b/elixirkit/demo/rel/swiftui/build_release.sh @@ -0,0 +1,4 @@ +#!/bin/sh +set -euo pipefail + +(cd ../.. && mix release --overwrite) diff --git a/elixirkit/demo/rel/swiftui/macOS/macOS.entitlements b/elixirkit/demo/rel/swiftui/macOS/macOS.entitlements new file mode 100644 index 000000000..f2ef3ae02 --- /dev/null +++ b/elixirkit/demo/rel/swiftui/macOS/macOS.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + + diff --git a/elixirkit/demo/rel/swiftui/run_macos.sh b/elixirkit/demo/rel/swiftui/run_macos.sh new file mode 100755 index 000000000..a7facf817 --- /dev/null +++ b/elixirkit/demo/rel/swiftui/run_macos.sh @@ -0,0 +1,12 @@ +#!/bin/sh +set -euo pipefail + +configuration="Debug" +scheme="Demo (macOS)" +destination="generic/platform=macOS" + +mkdir -p tmp +xcodebuild -configuration "$configuration" -scheme "$scheme" -destination "$destination" -showBuildSettings -json > tmp/build.json +app_dir=`cat tmp/build.json | jq --raw-output '.[0].buildSettings.CODESIGNING_FOLDER_PATH'` + +open -W --stdout=`tty` --stderr=`tty` $app_dir