commit 1ce808605564b5ddb64362f684f4e4cdf64166c0 Author: DJYohann Date: Wed Jan 18 00:12:38 2023 +0100 first commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..317bd82 --- /dev/null +++ b/.drone.yml @@ -0,0 +1,21 @@ +kind: pipeline +type: docker +name: default + +trigger: + event: + - push + +steps: + - name: build + image: swift:latest + commands: + - cd Src/Model + - swift build + + - name: tests_Model + image: swift:latest + commands: + - cd Src/Model + - swift test + depends_on: [build] diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4eefaea --- /dev/null +++ b/.gitignore @@ -0,0 +1,248 @@ +# Created by https://www.toptal.com/developers/gitignore/api/swift,jetbrains,xcode,macos +# Edit at https://www.toptal.com/developers/gitignore?templates=swift,jetbrains,xcode,macos + +### JetBrains ### +# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider +# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839 + +# User-specific stuff +.idea/**/workspace.xml +.idea/**/tasks.xml +.idea/**/usage.statistics.xml +.idea/**/dictionaries +.idea/**/shelf + +# AWS User-specific +.idea/**/aws.xml + +# Generated files +.idea/**/contentModel.xml + +# Sensitive or high-churn files +.idea/**/dataSources/ +.idea/**/dataSources.ids +.idea/**/dataSources.local.xml +.idea/**/sqlDataSources.xml +.idea/**/dynamic.xml +.idea/**/uiDesigner.xml +.idea/**/dbnavigator.xml + +# Gradle +.idea/**/gradle.xml +.idea/**/libraries + +# Gradle and Maven with auto-import +# When using Gradle or Maven with auto-import, you should exclude module files, +# since they will be recreated, and may cause churn. Uncomment if using +# auto-import. +# .idea/artifacts +# .idea/compiler.xml +# .idea/jarRepositories.xml +# .idea/modules.xml +# .idea/*.iml +# .idea/modules +# *.iml +# *.ipr + +# CMake +cmake-build-*/ + +# Mongo Explorer plugin +.idea/**/mongoSettings.xml + +# File-based project format +*.iws + +# IntelliJ +out/ + +# mpeltonen/sbt-idea plugin +.idea_modules/ + +# JIRA plugin +atlassian-ide-plugin.xml + +# Cursive Clojure plugin +.idea/replstate.xml + +# SonarLint plugin +.idea/sonarlint/ + +# Crashlytics plugin (for Android Studio and IntelliJ) +com_crashlytics_export_strings.xml +crashlytics.properties +crashlytics-build.properties +fabric.properties + +# Editor-based Rest Client +.idea/httpRequests + +# Android studio 3.1+ serialized cache file +.idea/caches/build_file_checksums.ser + +### JetBrains Patch ### +# Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721 + +# *.iml +# modules.xml +# .idea/misc.xml +# *.ipr + +# Sonarlint plugin +# https://plugins.jetbrains.com/plugin/7973-sonarlint +.idea/**/sonarlint/ + +# SonarQube Plugin +# https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin +.idea/**/sonarIssues.xml + +# Markdown Navigator plugin +# https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced +.idea/**/markdown-navigator.xml +.idea/**/markdown-navigator-enh.xml +.idea/**/markdown-navigator/ + +# Cache file creation bug +# See https://youtrack.jetbrains.com/issue/JBR-2257 +.idea/$CACHE_FILE$ + +# CodeStream plugin +# https://plugins.jetbrains.com/plugin/12206-codestream +.idea/codestream.xml + +# Azure Toolkit for IntelliJ plugin +# https://plugins.jetbrains.com/plugin/8053-azure-toolkit-for-intellij +.idea/**/azureSettings.xml + +### macOS ### +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +### macOS Patch ### +# iCloud generated files +*.icloud + +### Swift ### +# Xcode +# +# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore + +## User settings +xcuserdata/ + +## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9) +*.xcscmblueprint +*.xccheckout + +## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4) +build/ +DerivedData/ +*.moved-aside +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 + +## Obj-C/Swift specific +*.hmap + +## App packaging +*.ipa +*.dSYM.zip +*.dSYM + +## Playgrounds +timeline.xctimeline +playground.xcworkspace + +# Swift Package Manager +# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. +# Packages/ +# Package.pins +# Package.resolved +# *.xcodeproj +# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata +# hence it is not needed unless you have added a package configuration file to your project +# .swiftpm + +.build/ + +# CocoaPods +# We recommend against adding the Pods directory to your .gitignore. However +# you should judge for yourself, the pros and cons are mentioned at: +# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control +# Pods/ +# Add this line if you want to avoid checking in source code from the Xcode workspace +# *.xcworkspace + +# Carthage +# Add this line if you want to avoid checking in source code from Carthage dependencies. +# Carthage/Checkouts + +Carthage/Build/ + +# Accio dependency management +Dependencies/ +.accio/ + +# fastlane +# It is recommended to not store the screenshots in the git repo. +# Instead, use fastlane to re-generate the screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/#source-control + +fastlane/report.xml +fastlane/Preview.html +fastlane/screenshots/**/*.png +fastlane/test_output + +# Code Injection +# After new code Injection tools there's a generated folder /iOSInjectionProject +# https://github.com/johnno1962/injectionforxcode + +iOSInjectionProject/ + +### Xcode ### + +## Xcode 8 and earlier + +### Xcode Patch ### +*.xcodeproj/* +!*.xcodeproj/project.pbxproj +!*.xcodeproj/xcshareddata/ +!*.xcodeproj/project.xcworkspace/ +!*.xcworkspace/contents.xcworkspacedata +/*.gcno +**/xcshareddata/WorkspaceSettings.xcsettings + +# End of https://www.toptal.com/developers/gitignore/api/swift,jetbrains,xcode,macos + diff --git a/README.md b/README.md new file mode 100644 index 0000000..e69de29 diff --git a/Src/CLT/CLT.xcodeproj/project.pbxproj b/Src/CLT/CLT.xcodeproj/project.pbxproj new file mode 100644 index 0000000..a0b6127 --- /dev/null +++ b/Src/CLT/CLT.xcodeproj/project.pbxproj @@ -0,0 +1,305 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 56; + objects = { + +/* Begin PBXBuildFile section */ + 1E3E843529775FEB0087C5C2 /* main.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E3E843429775FEB0087C5C2 /* main.swift */; }; + 1E3E843D2977619C0087C5C2 /* Model in Frameworks */ = {isa = PBXBuildFile; productRef = 1E3E843C2977619C0087C5C2 /* Model */; }; +/* End PBXBuildFile section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 1E3E842F29775FEB0087C5C2 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = /usr/share/man/man1/; + dstSubfolderSpec = 0; + files = ( + ); + runOnlyForDeploymentPostprocessing = 1; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 1E3E843129775FEB0087C5C2 /* CLT */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = CLT; sourceTree = BUILT_PRODUCTS_DIR; }; + 1E3E843429775FEB0087C5C2 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 1E3E842E29775FEB0087C5C2 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 1E3E843D2977619C0087C5C2 /* Model in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 1E3E842829775FEB0087C5C2 = { + isa = PBXGroup; + children = ( + 1E3E843329775FEB0087C5C2 /* CLT */, + 1E3E843229775FEB0087C5C2 /* Products */, + 1E3E843B2977619C0087C5C2 /* Frameworks */, + ); + sourceTree = ""; + }; + 1E3E843229775FEB0087C5C2 /* Products */ = { + isa = PBXGroup; + children = ( + 1E3E843129775FEB0087C5C2 /* CLT */, + ); + name = Products; + sourceTree = ""; + }; + 1E3E843329775FEB0087C5C2 /* CLT */ = { + isa = PBXGroup; + children = ( + 1E3E843429775FEB0087C5C2 /* main.swift */, + ); + path = CLT; + sourceTree = ""; + }; + 1E3E843B2977619C0087C5C2 /* Frameworks */ = { + isa = PBXGroup; + children = ( + ); + name = Frameworks; + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 1E3E843029775FEB0087C5C2 /* CLT */ = { + isa = PBXNativeTarget; + buildConfigurationList = 1E3E843829775FEB0087C5C2 /* Build configuration list for PBXNativeTarget "CLT" */; + buildPhases = ( + 1E3E842D29775FEB0087C5C2 /* Sources */, + 1E3E842E29775FEB0087C5C2 /* Frameworks */, + 1E3E842F29775FEB0087C5C2 /* CopyFiles */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = CLT; + packageProductDependencies = ( + 1E3E843C2977619C0087C5C2 /* Model */, + ); + productName = CLT; + productReference = 1E3E843129775FEB0087C5C2 /* CLT */; + productType = "com.apple.product-type.tool"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 1E3E842929775FEB0087C5C2 /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = 1; + LastSwiftUpdateCheck = 1420; + LastUpgradeCheck = 1420; + TargetAttributes = { + 1E3E843029775FEB0087C5C2 = { + CreatedOnToolsVersion = 14.2; + }; + }; + }; + buildConfigurationList = 1E3E842C29775FEB0087C5C2 /* Build configuration list for PBXProject "CLT" */; + compatibilityVersion = "Xcode 14.0"; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + en, + Base, + ); + mainGroup = 1E3E842829775FEB0087C5C2; + productRefGroup = 1E3E843229775FEB0087C5C2 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 1E3E843029775FEB0087C5C2 /* CLT */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXSourcesBuildPhase section */ + 1E3E842D29775FEB0087C5C2 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 1E3E843529775FEB0087C5C2 /* main.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin XCBuildConfiguration section */ + 1E3E843629775FEB0087C5C2 /* 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++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; + 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; + MACOSX_DEPLOYMENT_TARGET = 13.1; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + }; + name = Debug; + }; + 1E3E843729775FEB0087C5C2 /* 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++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; + 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; + MACOSX_DEPLOYMENT_TARGET = 13.1; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + SDKROOT = macosx; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + }; + name = Release; + }; + 1E3E843929775FEB0087C5C2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + 1E3E843A29775FEB0087C5C2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CODE_SIGN_STYLE = Automatic; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 1E3E842C29775FEB0087C5C2 /* Build configuration list for PBXProject "CLT" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1E3E843629775FEB0087C5C2 /* Debug */, + 1E3E843729775FEB0087C5C2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 1E3E843829775FEB0087C5C2 /* Build configuration list for PBXNativeTarget "CLT" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 1E3E843929775FEB0087C5C2 /* Debug */, + 1E3E843A29775FEB0087C5C2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCSwiftPackageProductDependency section */ + 1E3E843C2977619C0087C5C2 /* Model */ = { + isa = XCSwiftPackageProductDependency; + productName = Model; + }; +/* End XCSwiftPackageProductDependency section */ + }; + rootObject = 1E3E842929775FEB0087C5C2 /* Project object */; +} diff --git a/Src/CLT/CLT/main.swift b/Src/CLT/CLT/main.swift new file mode 100644 index 0000000..b20411a --- /dev/null +++ b/Src/CLT/CLT/main.swift @@ -0,0 +1,12 @@ +// +// main.swift +// CLT +// +// Created by BREUIL Yohann on 17/01/2023. +// + +import Foundation +import Model + +print("Hello, World!") + diff --git a/Src/Model/.gitignore b/Src/Model/.gitignore new file mode 100644 index 0000000..3b29812 --- /dev/null +++ b/Src/Model/.gitignore @@ -0,0 +1,9 @@ +.DS_Store +/.build +/Packages +/*.xcodeproj +xcuserdata/ +DerivedData/ +.swiftpm/config/registries.json +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +.netrc diff --git a/Src/Model/Package.swift b/Src/Model/Package.swift new file mode 100644 index 0000000..cda3b64 --- /dev/null +++ b/Src/Model/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version: 5.7 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "Model", + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "Model", + targets: ["Model"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + // .package(url: /* package url */, from: "1.0.0"), + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages this package depends on. + .target( + name: "Model", + dependencies: []), + .testTarget( + name: "ModelTests", + dependencies: ["Model"]), + ] +) diff --git a/Src/Model/README.md b/Src/Model/README.md new file mode 100644 index 0000000..3d677e7 --- /dev/null +++ b/Src/Model/README.md @@ -0,0 +1,3 @@ +# Model + +A description of this package. diff --git a/Src/Model/Sources/Model/Model.swift b/Src/Model/Sources/Model/Model.swift new file mode 100644 index 0000000..c88e2a8 --- /dev/null +++ b/Src/Model/Sources/Model/Model.swift @@ -0,0 +1,6 @@ +public struct Model { + public private(set) var text = "Hello, World!" + + public init() { + } +} diff --git a/Src/Model/Tests/ModelTests/ModelTests.swift b/Src/Model/Tests/ModelTests/ModelTests.swift new file mode 100644 index 0000000..38c36bb --- /dev/null +++ b/Src/Model/Tests/ModelTests/ModelTests.swift @@ -0,0 +1,11 @@ +import XCTest +@testable import Model + +final class ModelTests: XCTestCase { + 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. + XCTAssertEqual(Model().text, "Hello, World!") + } +} diff --git a/Src/PuissanceQuatre.xcworkspace/contents.xcworkspacedata b/Src/PuissanceQuatre.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..66b74de --- /dev/null +++ b/Src/PuissanceQuatre.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,10 @@ + + + + + + + diff --git a/Src/PuissanceQuatre.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Src/PuissanceQuatre.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist new file mode 100644 index 0000000..18d9810 --- /dev/null +++ b/Src/PuissanceQuatre.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist @@ -0,0 +1,8 @@ + + + + + IDEDidComputeMac32BitWarning + + + diff --git a/Src/PuissanceQuatreLibrary/.gitignore b/Src/PuissanceQuatreLibrary/.gitignore new file mode 100644 index 0000000..3b29812 --- /dev/null +++ b/Src/PuissanceQuatreLibrary/.gitignore @@ -0,0 +1,9 @@ +.DS_Store +/.build +/Packages +/*.xcodeproj +xcuserdata/ +DerivedData/ +.swiftpm/config/registries.json +.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata +.netrc diff --git a/Src/PuissanceQuatreLibrary/Package.swift b/Src/PuissanceQuatreLibrary/Package.swift new file mode 100644 index 0000000..c08e2ab --- /dev/null +++ b/Src/PuissanceQuatreLibrary/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version: 5.7 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "PuissanceQuatreLibrary", + products: [ + // Products define the executables and libraries a package produces, and make them visible to other packages. + .library( + name: "PuissanceQuatreLibrary", + targets: ["PuissanceQuatreLibrary"]), + ], + dependencies: [ + // Dependencies declare other packages that this package depends on. + // .package(url: /* package url */, from: "1.0.0"), + ], + targets: [ + // Targets are the basic building blocks of a package. A target can define a module or a test suite. + // Targets can depend on other targets in this package, and on products in packages this package depends on. + .target( + name: "PuissanceQuatreLibrary", + dependencies: []), + .testTarget( + name: "PuissanceQuatreLibraryTests", + dependencies: ["PuissanceQuatreLibrary"]), + ] +) diff --git a/Src/PuissanceQuatreLibrary/README.md b/Src/PuissanceQuatreLibrary/README.md new file mode 100644 index 0000000..bdb1c41 --- /dev/null +++ b/Src/PuissanceQuatreLibrary/README.md @@ -0,0 +1,3 @@ +# PuissanceQuatreLibrary + +A description of this package. diff --git a/Src/PuissanceQuatreLibrary/Sources/PuissanceQuatreLibrary/PuissanceQuatreLibrary.swift b/Src/PuissanceQuatreLibrary/Sources/PuissanceQuatreLibrary/PuissanceQuatreLibrary.swift new file mode 100644 index 0000000..49e5b90 --- /dev/null +++ b/Src/PuissanceQuatreLibrary/Sources/PuissanceQuatreLibrary/PuissanceQuatreLibrary.swift @@ -0,0 +1,6 @@ +public struct PuissanceQuatreLibrary { + public private(set) var text = "Hello, World!" + + public init() { + } +} diff --git a/Src/PuissanceQuatreLibrary/Tests/PuissanceQuatreLibraryTests/PuissanceQuatreLibraryTests.swift b/Src/PuissanceQuatreLibrary/Tests/PuissanceQuatreLibraryTests/PuissanceQuatreLibraryTests.swift new file mode 100644 index 0000000..baddc72 --- /dev/null +++ b/Src/PuissanceQuatreLibrary/Tests/PuissanceQuatreLibraryTests/PuissanceQuatreLibraryTests.swift @@ -0,0 +1,11 @@ +import XCTest +@testable import PuissanceQuatreLibrary + +final class PuissanceQuatreLibraryTests: XCTestCase { + 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. + XCTAssertEqual(PuissanceQuatreLibrary().text, "Hello, World!") + } +}