main
Ismail TAHA JANAN 2 years ago
parent 5f8e5ffd26
commit e25ebaaecc

BIN
.DS_Store vendored

Binary file not shown.

BIN
CalculMoy/.DS_Store vendored

Binary file not shown.

@ -10,10 +10,6 @@
EC14918A2A20D64500B2D47A /* Block.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC1491892A20D64500B2D47A /* Block.swift */; };
EC14918D2A20DF2900B2D47A /* MySlider.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC14918C2A20DF2900B2D47A /* MySlider.swift */; };
EC14918F2A29F05A00B2D47A /* UsList.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC14918E2A29F05A00B2D47A /* UsList.swift */; };
EC1491942A35B7CA00B2D47A /* Module.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC1491932A35B7CA00B2D47A /* Module.swift */; };
EC1491962A35B91D00B2D47A /* UE.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC1491952A35B91D00B2D47A /* UE.swift */; };
EC1491982A35BD3400B2D47A /* Stub.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC1491972A35BD3400B2D47A /* Stub.swift */; };
EC14919A2A35D15000B2D47A /* Manager.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC1491992A35D15000B2D47A /* Manager.swift */; };
EC14919D2A35F60000B2D47A /* ModuleVM.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC14919C2A35F60000B2D47A /* ModuleVM.swift */; };
EC14919F2A36022C00B2D47A /* UeVM.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC14919E2A36022C00B2D47A /* UeVM.swift */; };
EC1491A22A361B7600B2D47A /* ManagerVM.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC1491A12A361B7600B2D47A /* ManagerVM.swift */; };
@ -24,6 +20,8 @@
EC243AB52A1FA0460017C10A /* CalculMoyTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC243AB42A1FA0460017C10A /* CalculMoyTests.swift */; };
EC243ABF2A1FA0460017C10A /* CalculMoyUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC243ABE2A1FA0460017C10A /* CalculMoyUITests.swift */; };
EC243AC12A1FA0460017C10A /* CalculMoyUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC243AC02A1FA0460017C10A /* CalculMoyUITestsLaunchTests.swift */; };
EC794BA32A39BF7100EEFA3B /* MyModel in Frameworks */ = {isa = PBXBuildFile; productRef = EC794BA22A39BF7100EEFA3B /* MyModel */; };
EC794BA82A42F1BA00EEFA3B /* MyStub in Frameworks */ = {isa = PBXBuildFile; productRef = EC794BA72A42F1BA00EEFA3B /* MyStub */; };
EC97FE492A378E59007AEC0A /* UEView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FE482A378E59007AEC0A /* UEView.swift */; };
EC97FE4B2A3798B7007AEC0A /* ModuleView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FE4A2A3798B7007AEC0A /* ModuleView.swift */; };
EC97FE4D2A37A9F6007AEC0A /* UISliderView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FE4C2A37A9F6007AEC0A /* UISliderView.swift */; };
@ -52,10 +50,6 @@
EC1491892A20D64500B2D47A /* Block.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Block.swift; sourceTree = "<group>"; };
EC14918C2A20DF2900B2D47A /* MySlider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MySlider.swift; sourceTree = "<group>"; };
EC14918E2A29F05A00B2D47A /* UsList.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UsList.swift; sourceTree = "<group>"; };
EC1491932A35B7CA00B2D47A /* Module.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Module.swift; sourceTree = "<group>"; };
EC1491952A35B91D00B2D47A /* UE.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UE.swift; sourceTree = "<group>"; };
EC1491972A35BD3400B2D47A /* Stub.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Stub.swift; sourceTree = "<group>"; };
EC1491992A35D15000B2D47A /* Manager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Manager.swift; sourceTree = "<group>"; };
EC14919C2A35F60000B2D47A /* ModuleVM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ModuleVM.swift; sourceTree = "<group>"; };
EC14919E2A36022C00B2D47A /* UeVM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UeVM.swift; sourceTree = "<group>"; };
EC1491A12A361B7600B2D47A /* ManagerVM.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ManagerVM.swift; sourceTree = "<group>"; };
@ -81,6 +75,8 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
EC794BA82A42F1BA00EEFA3B /* MyStub in Frameworks */,
EC794BA32A39BF7100EEFA3B /* MyModel in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -109,17 +105,6 @@
path = Utile;
sourceTree = "<group>";
};
EC1491902A35B70500B2D47A /* Model */ = {
isa = PBXGroup;
children = (
EC1491932A35B7CA00B2D47A /* Module.swift */,
EC1491952A35B91D00B2D47A /* UE.swift */,
EC1491972A35BD3400B2D47A /* Stub.swift */,
EC1491992A35D15000B2D47A /* Manager.swift */,
);
path = Model;
sourceTree = "<group>";
};
EC14919B2A35E97F00B2D47A /* ViewModel */ = {
isa = PBXGroup;
children = (
@ -135,12 +120,12 @@
children = (
EC97FE462A378D9C007AEC0A /* Views */,
EC14919B2A35E97F00B2D47A /* ViewModel */,
EC1491902A35B70500B2D47A /* Model */,
EC14918B2A20DEEB00B2D47A /* Utile */,
EC243AA22A1FA0440017C10A /* CalculMoy */,
EC243AB32A1FA0460017C10A /* CalculMoyTests */,
EC243ABD2A1FA0460017C10A /* CalculMoyUITests */,
EC243AA12A1FA0440017C10A /* Products */,
EC794BA12A39BF7100EEFA3B /* Frameworks */,
);
sourceTree = "<group>";
};
@ -192,6 +177,13 @@
path = CalculMoyUITests;
sourceTree = "<group>";
};
EC794BA12A39BF7100EEFA3B /* Frameworks */ = {
isa = PBXGroup;
children = (
);
name = Frameworks;
sourceTree = "<group>";
};
EC97FE462A378D9C007AEC0A /* Views */ = {
isa = PBXGroup;
children = (
@ -228,6 +220,10 @@
dependencies = (
);
name = CalculMoy;
packageProductDependencies = (
EC794BA22A39BF7100EEFA3B /* MyModel */,
EC794BA72A42F1BA00EEFA3B /* MyStub */,
);
productName = CalculMoy;
productReference = EC243AA02A1FA0440017C10A /* CalculMoy.app */;
productType = "com.apple.product-type.application";
@ -344,21 +340,17 @@
files = (
EC97FE4B2A3798B7007AEC0A /* ModuleView.swift in Sources */,
EC97FE4F2A38F028007AEC0A /* UesList.swift in Sources */,
EC1491962A35B91D00B2D47A /* UE.swift in Sources */,
EC14918F2A29F05A00B2D47A /* UsList.swift in Sources */,
EC14918A2A20D64500B2D47A /* Block.swift in Sources */,
EC14919F2A36022C00B2D47A /* UeVM.swift in Sources */,
EC97FE492A378E59007AEC0A /* UEView.swift in Sources */,
EC1491A22A361B7600B2D47A /* ManagerVM.swift in Sources */,
EC1491982A35BD3400B2D47A /* Stub.swift in Sources */,
EC97FE512A38FDC9007AEC0A /* UeDetails.swift in Sources */,
EC243AA62A1FA0440017C10A /* ContentView.swift in Sources */,
EC14918D2A20DF2900B2D47A /* MySlider.swift in Sources */,
EC243AA42A1FA0440017C10A /* CalculMoyApp.swift in Sources */,
EC14919A2A35D15000B2D47A /* Manager.swift in Sources */,
EC97FE4D2A37A9F6007AEC0A /* UISliderView.swift in Sources */,
EC14919D2A35F60000B2D47A /* ModuleVM.swift in Sources */,
EC1491942A35B7CA00B2D47A /* Module.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
@ -677,6 +669,17 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
/* Begin XCSwiftPackageProductDependency section */
EC794BA22A39BF7100EEFA3B /* MyModel */ = {
isa = XCSwiftPackageProductDependency;
productName = MyModel;
};
EC794BA72A42F1BA00EEFA3B /* MyStub */ = {
isa = XCSwiftPackageProductDependency;
productName = MyStub;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = EC243A982A1FA0440017C10A /* Project object */;
}

@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1430"
version = "1.7">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EC243A9F2A1FA0440017C10A"
BuildableName = "CalculMoy.app"
BlueprintName = "CalculMoy"
ReferencedContainer = "container:CalculMoy.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
shouldAutocreateTestPlan = "YES">
<Testables>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EC243AAF2A1FA0460017C10A"
BuildableName = "CalculMoyTests.xctest"
BlueprintName = "CalculMoyTests"
ReferencedContainer = "container:CalculMoy.xcodeproj">
</BuildableReference>
</TestableReference>
<TestableReference
skipped = "NO"
parallelizable = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EC243AB92A1FA0460017C10A"
BuildableName = "CalculMoyUITests.xctest"
BlueprintName = "CalculMoyUITests"
ReferencedContainer = "container:CalculMoy.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EC243A9F2A1FA0440017C10A"
BuildableName = "CalculMoy.app"
BlueprintName = "CalculMoy"
ReferencedContainer = "container:CalculMoy.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<BuildableProductRunnable
runnableDebuggingMode = "0">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "EC243A9F2A1FA0440017C10A"
BuildableName = "CalculMoy.app"
BlueprintName = "CalculMoy"
ReferencedContainer = "container:CalculMoy.xcodeproj">
</BuildableReference>
</BuildableProductRunnable>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

@ -7,7 +7,25 @@
<key>CalculMoy.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>2</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
<dict>
<key>EC243A9F2A1FA0440017C10A</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>EC243AAF2A1FA0460017C10A</key>
<dict>
<key>primary</key>
<true/>
</dict>
<key>EC243AB92A1FA0460017C10A</key>
<dict>
<key>primary</key>
<true/>
</dict>
</dict>
</dict>

Binary file not shown.

@ -6,12 +6,14 @@
//
import SwiftUI
import MyModel
import MyStub
@main
struct CalculMoyApp: App {
var managerVM:ManagerVM=ManagerVM(manager: Manager(ues: Stub.uesData) )
var managerVM:ManagerVM=ManagerVM(manager: Manager(ues: MyStub.uesData) )
var body: some Scene {
WindowGroup {

@ -1,23 +0,0 @@
//
// Manager.swift
// CalculMoy
//
// Created by etudiant on 11/06/2023.
//
import Foundation
struct Manager {
public var ues:[UE]
public init(ues: [UE]) {
self.ues = ues
}
mutating func getData(){
self.ues = Stub.uesData
}
}

@ -1,15 +0,0 @@
//
// Module.swift
// CalculMoy
//
// Created by etudiant on 11/06/2023.
//
import Foundation
struct Module{
let id: UUID
var moduleName: String
var coef: Int
var note: Double?
}

@ -1,18 +0,0 @@
//
// UE.swift
// CalculMoy
//
// Created by etudiant on 11/06/2023.
//
import Foundation
struct UE {
let id: UUID
var ueName: String
var coef: Int
var note: Double?
var modules: [Module]
}

@ -6,6 +6,8 @@
//
import Foundation
import MyStub
import MyModel
class ManagerVM:ObservableObject{
@Published var ueList: [UeVM]
@ -14,6 +16,7 @@ class ManagerVM:ObservableObject{
init(ueList: [UeVM]) {
self.ueList = ueList
self.moyGeneral = getMoyGeneral()
}
init(manager:Manager){
@ -26,7 +29,7 @@ class ManagerVM:ObservableObject{
init(){
ueList=[]
addUEs(ues: Stub.uesData)
addUEs(ues: MyStub.uesData)
self.moyGeneral = getMoyGeneral()
}

@ -6,6 +6,7 @@
//
import Foundation
import MyModel

@ -6,6 +6,7 @@
//
import Foundation
import MyModel
class UeVM:ObservableObject{

@ -6,6 +6,8 @@
//
import SwiftUI
import MyModel
import MyStub
final class Slider: UISlider {
@ -110,11 +112,11 @@ struct ModuleView: View {
struct ModuleView_Previews: PreviewProvider {
static var managerData:ManagerVM=ManagerVM(
manager: Manager(ues: Stub.uesData)
manager: Manager(ues: MyStub.uesData)
)
static var previews: some View {
ModuleView(
moduleVM: ModuleVM(module: Stub.uesData[0].modules[0]), ueVm: UeVM(ue: Stub.uesData[0]), managerVm: managerData
moduleVM: ModuleVM(module: MyStub.uesData[0].modules[0]), ueVm: UeVM(ue: MyStub.uesData[0]), managerVm: managerData
)
}
}

@ -6,6 +6,8 @@
//
import SwiftUI
import MyModel
import MyStub
struct UEView: View {
@ -43,12 +45,12 @@ struct UEView: View {
struct UEView_Previews: PreviewProvider {
static var managerData:ManagerVM=ManagerVM(
manager: Manager(ues: Stub.uesData)
manager: Manager(ues: MyStub.uesData)
)
static var previews: some View {
UEView(
ueVm: UeVM(ue: Stub.uesData[0]) , managerVm: managerData
ueVm: UeVM(ue: MyStub.uesData[0]) , managerVm: managerData
)
}
}

@ -6,6 +6,8 @@
//
import SwiftUI
import MyModel
import MyStub
struct UeDetails: View {
@ -42,7 +44,7 @@ struct UeDetails: View {
struct UeDetails_Previews: PreviewProvider {
static var managerData:ManagerVM=ManagerVM(
manager: Manager(ues: Stub.uesData)
manager: Manager(ues: MyStub.uesData)
)
static var previews: some View {
UeDetails(managerVM: managerData,ue: managerData.ueList[0])

@ -6,6 +6,8 @@
//
import SwiftUI
import MyModel
import MyStub
struct UesList: View {
@ -70,7 +72,7 @@ struct UesList: View {
struct UesList_Previews: PreviewProvider {
static var managerData:ManagerVM=ManagerVM(
manager: Manager(ues: Stub.uesData)
manager: Manager(ues: MyStub.uesData)
)
static var previews: some View {
UesList(managerVM: managerData)

BIN
CalculMoy2/.DS_Store vendored

Binary file not shown.

@ -0,0 +1,582 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objects = {
/* Begin PBXBuildFile section */
EC97FECE2A39BEBD007AEC0A /* CalculMoyApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FECD2A39BEBD007AEC0A /* CalculMoyApp.swift */; };
EC97FED02A39BEBD007AEC0A /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FECF2A39BEBD007AEC0A /* ContentView.swift */; };
EC97FED22A39BEBE007AEC0A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EC97FED12A39BEBE007AEC0A /* Assets.xcassets */; };
EC97FED52A39BEBE007AEC0A /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EC97FED42A39BEBE007AEC0A /* Preview Assets.xcassets */; };
EC97FEDF2A39BEBE007AEC0A /* CalculMoyTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FEDE2A39BEBE007AEC0A /* CalculMoyTests.swift */; };
EC97FEE92A39BEBE007AEC0A /* CalculMoyUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FEE82A39BEBE007AEC0A /* CalculMoyUITests.swift */; };
EC97FEEB2A39BEBE007AEC0A /* CalculMoyUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FEEA2A39BEBE007AEC0A /* CalculMoyUITestsLaunchTests.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
EC97FEDB2A39BEBE007AEC0A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = EC97FEC22A39BEBD007AEC0A /* Project object */;
proxyType = 1;
remoteGlobalIDString = EC97FEC92A39BEBD007AEC0A;
remoteInfo = CalculMoy;
};
EC97FEE52A39BEBE007AEC0A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = EC97FEC22A39BEBD007AEC0A /* Project object */;
proxyType = 1;
remoteGlobalIDString = EC97FEC92A39BEBD007AEC0A;
remoteInfo = CalculMoy;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
EC97FECA2A39BEBD007AEC0A /* CalculMoy.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = CalculMoy.app; sourceTree = BUILT_PRODUCTS_DIR; };
EC97FECD2A39BEBD007AEC0A /* CalculMoyApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalculMoyApp.swift; sourceTree = "<group>"; };
EC97FECF2A39BEBD007AEC0A /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
EC97FED12A39BEBE007AEC0A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
EC97FED42A39BEBE007AEC0A /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
EC97FEDA2A39BEBE007AEC0A /* CalculMoyTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CalculMoyTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
EC97FEDE2A39BEBE007AEC0A /* CalculMoyTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalculMoyTests.swift; sourceTree = "<group>"; };
EC97FEE42A39BEBE007AEC0A /* CalculMoyUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CalculMoyUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
EC97FEE82A39BEBE007AEC0A /* CalculMoyUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalculMoyUITests.swift; sourceTree = "<group>"; };
EC97FEEA2A39BEBE007AEC0A /* CalculMoyUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CalculMoyUITestsLaunchTests.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
EC97FEC72A39BEBD007AEC0A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
EC97FED72A39BEBE007AEC0A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
EC97FEE12A39BEBE007AEC0A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
EC97FEC12A39BEBD007AEC0A = {
isa = PBXGroup;
children = (
EC97FECC2A39BEBD007AEC0A /* CalculMoy */,
EC97FEDD2A39BEBE007AEC0A /* CalculMoyTests */,
EC97FEE72A39BEBE007AEC0A /* CalculMoyUITests */,
EC97FECB2A39BEBD007AEC0A /* Products */,
);
sourceTree = "<group>";
};
EC97FECB2A39BEBD007AEC0A /* Products */ = {
isa = PBXGroup;
children = (
EC97FECA2A39BEBD007AEC0A /* CalculMoy.app */,
EC97FEDA2A39BEBE007AEC0A /* CalculMoyTests.xctest */,
EC97FEE42A39BEBE007AEC0A /* CalculMoyUITests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
EC97FECC2A39BEBD007AEC0A /* CalculMoy */ = {
isa = PBXGroup;
children = (
EC97FECD2A39BEBD007AEC0A /* CalculMoyApp.swift */,
EC97FECF2A39BEBD007AEC0A /* ContentView.swift */,
EC97FED12A39BEBE007AEC0A /* Assets.xcassets */,
EC97FED32A39BEBE007AEC0A /* Preview Content */,
);
path = CalculMoy;
sourceTree = "<group>";
};
EC97FED32A39BEBE007AEC0A /* Preview Content */ = {
isa = PBXGroup;
children = (
EC97FED42A39BEBE007AEC0A /* Preview Assets.xcassets */,
);
path = "Preview Content";
sourceTree = "<group>";
};
EC97FEDD2A39BEBE007AEC0A /* CalculMoyTests */ = {
isa = PBXGroup;
children = (
EC97FEDE2A39BEBE007AEC0A /* CalculMoyTests.swift */,
);
path = CalculMoyTests;
sourceTree = "<group>";
};
EC97FEE72A39BEBE007AEC0A /* CalculMoyUITests */ = {
isa = PBXGroup;
children = (
EC97FEE82A39BEBE007AEC0A /* CalculMoyUITests.swift */,
EC97FEEA2A39BEBE007AEC0A /* CalculMoyUITestsLaunchTests.swift */,
);
path = CalculMoyUITests;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
EC97FEC92A39BEBD007AEC0A /* CalculMoy */ = {
isa = PBXNativeTarget;
buildConfigurationList = EC97FEEE2A39BEBE007AEC0A /* Build configuration list for PBXNativeTarget "CalculMoy" */;
buildPhases = (
EC97FEC62A39BEBD007AEC0A /* Sources */,
EC97FEC72A39BEBD007AEC0A /* Frameworks */,
EC97FEC82A39BEBD007AEC0A /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = CalculMoy;
productName = CalculMoy;
productReference = EC97FECA2A39BEBD007AEC0A /* CalculMoy.app */;
productType = "com.apple.product-type.application";
};
EC97FED92A39BEBE007AEC0A /* CalculMoyTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = EC97FEF12A39BEBE007AEC0A /* Build configuration list for PBXNativeTarget "CalculMoyTests" */;
buildPhases = (
EC97FED62A39BEBE007AEC0A /* Sources */,
EC97FED72A39BEBE007AEC0A /* Frameworks */,
EC97FED82A39BEBE007AEC0A /* Resources */,
);
buildRules = (
);
dependencies = (
EC97FEDC2A39BEBE007AEC0A /* PBXTargetDependency */,
);
name = CalculMoyTests;
productName = CalculMoyTests;
productReference = EC97FEDA2A39BEBE007AEC0A /* CalculMoyTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
EC97FEE32A39BEBE007AEC0A /* CalculMoyUITests */ = {
isa = PBXNativeTarget;
buildConfigurationList = EC97FEF42A39BEBE007AEC0A /* Build configuration list for PBXNativeTarget "CalculMoyUITests" */;
buildPhases = (
EC97FEE02A39BEBE007AEC0A /* Sources */,
EC97FEE12A39BEBE007AEC0A /* Frameworks */,
EC97FEE22A39BEBE007AEC0A /* Resources */,
);
buildRules = (
);
dependencies = (
EC97FEE62A39BEBE007AEC0A /* PBXTargetDependency */,
);
name = CalculMoyUITests;
productName = CalculMoyUITests;
productReference = EC97FEE42A39BEBE007AEC0A /* CalculMoyUITests.xctest */;
productType = "com.apple.product-type.bundle.ui-testing";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
EC97FEC22A39BEBD007AEC0A /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1430;
LastUpgradeCheck = 1430;
TargetAttributes = {
EC97FEC92A39BEBD007AEC0A = {
CreatedOnToolsVersion = 14.3;
};
EC97FED92A39BEBE007AEC0A = {
CreatedOnToolsVersion = 14.3;
TestTargetID = EC97FEC92A39BEBD007AEC0A;
};
EC97FEE32A39BEBE007AEC0A = {
CreatedOnToolsVersion = 14.3;
TestTargetID = EC97FEC92A39BEBD007AEC0A;
};
};
};
buildConfigurationList = EC97FEC52A39BEBD007AEC0A /* Build configuration list for PBXProject "CalculMoy" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = EC97FEC12A39BEBD007AEC0A;
productRefGroup = EC97FECB2A39BEBD007AEC0A /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
EC97FEC92A39BEBD007AEC0A /* CalculMoy */,
EC97FED92A39BEBE007AEC0A /* CalculMoyTests */,
EC97FEE32A39BEBE007AEC0A /* CalculMoyUITests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
EC97FEC82A39BEBD007AEC0A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
EC97FED52A39BEBE007AEC0A /* Preview Assets.xcassets in Resources */,
EC97FED22A39BEBE007AEC0A /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
EC97FED82A39BEBE007AEC0A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
EC97FEE22A39BEBE007AEC0A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
EC97FEC62A39BEBD007AEC0A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
EC97FED02A39BEBD007AEC0A /* ContentView.swift in Sources */,
EC97FECE2A39BEBD007AEC0A /* CalculMoyApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
EC97FED62A39BEBE007AEC0A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
EC97FEDF2A39BEBE007AEC0A /* CalculMoyTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
EC97FEE02A39BEBE007AEC0A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
EC97FEEB2A39BEBE007AEC0A /* CalculMoyUITestsLaunchTests.swift in Sources */,
EC97FEE92A39BEBE007AEC0A /* CalculMoyUITests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
EC97FEDC2A39BEBE007AEC0A /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = EC97FEC92A39BEBD007AEC0A /* CalculMoy */;
targetProxy = EC97FEDB2A39BEBE007AEC0A /* PBXContainerItemProxy */;
};
EC97FEE62A39BEBE007AEC0A /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = EC97FEC92A39BEBD007AEC0A /* CalculMoy */;
targetProxy = EC97FEE52A39BEBE007AEC0A /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
EC97FEEC2A39BEBE007AEC0A /* 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;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
EC97FEED2A39BEBE007AEC0A /* 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;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
EC97FEEF2A39BEBE007AEC0A /* 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_ASSET_PATHS = "\"CalculMoy/Preview Content\"";
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";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = fr.uca.iut.CalculMoy;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
EC97FEF02A39BEBE007AEC0A /* 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_ASSET_PATHS = "\"CalculMoy/Preview Content\"";
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";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = fr.uca.iut.CalculMoy;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
EC97FEF22A39BEBE007AEC0A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = fr.uca.iut.CalculMoyTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CalculMoy.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/CalculMoy";
};
name = Debug;
};
EC97FEF32A39BEBE007AEC0A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = fr.uca.iut.CalculMoyTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/CalculMoy.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/CalculMoy";
};
name = Release;
};
EC97FEF52A39BEBE007AEC0A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = fr.uca.iut.CalculMoyUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = CalculMoy;
};
name = Debug;
};
EC97FEF62A39BEBE007AEC0A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = fr.uca.iut.CalculMoyUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = CalculMoy;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
EC97FEC52A39BEBD007AEC0A /* Build configuration list for PBXProject "CalculMoy" */ = {
isa = XCConfigurationList;
buildConfigurations = (
EC97FEEC2A39BEBE007AEC0A /* Debug */,
EC97FEED2A39BEBE007AEC0A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
EC97FEEE2A39BEBE007AEC0A /* Build configuration list for PBXNativeTarget "CalculMoy" */ = {
isa = XCConfigurationList;
buildConfigurations = (
EC97FEEF2A39BEBE007AEC0A /* Debug */,
EC97FEF02A39BEBE007AEC0A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
EC97FEF12A39BEBE007AEC0A /* Build configuration list for PBXNativeTarget "CalculMoyTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
EC97FEF22A39BEBE007AEC0A /* Debug */,
EC97FEF32A39BEBE007AEC0A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
EC97FEF42A39BEBE007AEC0A /* Build configuration list for PBXNativeTarget "CalculMoyUITests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
EC97FEF52A39BEBE007AEC0A /* Debug */,
EC97FEF62A39BEBE007AEC0A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = EC97FEC22A39BEBD007AEC0A /* Project object */;
}

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>CalculMoy.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
</dict>
</dict>
</dict>
</plist>

@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -0,0 +1,13 @@
{
"images" : [
{
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -0,0 +1,17 @@
//
// CalculMoyApp.swift
// CalculMoy
//
// Created by etudiant on 14/06/2023.
//
import SwiftUI
@main
struct CalculMoyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}

@ -0,0 +1,26 @@
//
// ContentView.swift
// CalculMoy
//
// Created by etudiant on 14/06/2023.
//
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
}
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -0,0 +1,36 @@
//
// CalculMoyTests.swift
// CalculMoyTests
//
// Created by etudiant on 14/06/2023.
//
import XCTest
@testable import CalculMoy
final class CalculMoyTests: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
// Any test you write for XCTest can be annotated as throws and async.
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
}
func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}

@ -0,0 +1,41 @@
//
// CalculMoyUITests.swift
// CalculMoyUITests
//
// Created by etudiant on 14/06/2023.
//
import XCTest
final class CalculMoyUITests: 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 its 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()
}
}
}
}

@ -0,0 +1,32 @@
//
// CalculMoyUITestsLaunchTests.swift
// CalculMoyUITests
//
// Created by etudiant on 14/06/2023.
//
import XCTest
final class CalculMoyUITestsLaunchTests: 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)
}
}

@ -0,0 +1,9 @@
.DS_Store
/.build
/Packages
/*.xcodeproj
xcuserdata/
DerivedData/
.swiftpm/config/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc

@ -0,0 +1,28 @@
// swift-tools-version: 5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "MyModel",
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "MyModel",
targets: ["MyModel"]),
],
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: "MyModel",
dependencies: []),
.testTarget(
name: "MyModelTests",
dependencies: ["MyModel"]),
]
)

@ -0,0 +1,3 @@
# MyModel
A description of this package.

@ -0,0 +1,22 @@
//
// File.swift
//
//
// Created by etudiant on 14/06/2023.
//
import Foundation
public struct Manager {
public var ues:[UE]
public var moyGeneral: Double?
public init(ues: [UE]) {
self.ues = ues
}
}

@ -0,0 +1,23 @@
//
// Module.swift
// CalculMoy
//
// Created by etudiant on 11/06/2023.
//
import Foundation
public struct Module{
public let id: UUID
public var moduleName: String
public var coef: Int
public var note: Double?
public init(id: UUID, moduleName: String, coef: Int, note: Double? = nil) {
self.id = id
self.moduleName = moduleName
self.coef = coef
self.note = note
}
}

@ -0,0 +1,24 @@
//
// File.swift
//
//
// Created by etudiant on 14/06/2023.
//
import Foundation
public struct UE {
public let id: UUID
public var ueName: String
public var coef: Int
public var note: Double?
public var modules: [Module]
public init(id: UUID, ueName: String, coef: Int, modules: [Module]) {
self.id = id
self.ueName = ueName
self.coef = coef
self.modules = modules
}
}

@ -0,0 +1,11 @@
import XCTest
@testable import MyModel
final class MyModelTests: 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(MyModel().text, "Hello, World!")
}
}

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>MyPlayground (Playground).xcscheme</key>
<dict>
<key>isShown</key>
<false/>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>

9
MyStub/.gitignore vendored

@ -0,0 +1,9 @@
.DS_Store
/.build
/Packages
/*.xcodeproj
xcuserdata/
DerivedData/
.swiftpm/config/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc

@ -0,0 +1,29 @@
// swift-tools-version: 5.8
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "MyStub",
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
.library(
name: "MyStub",
targets: ["MyStub"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(path: "../MyModel")
],
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: "MyStub",
dependencies: ["MyModel"]),
.testTarget(
name: "MyStubTests",
dependencies: ["MyStub", "MyModel"]),
]
)

@ -0,0 +1,3 @@
# MyStub
A description of this package.

@ -1,14 +1,20 @@
//
// Stub.swift
// CalculMoy
//
// Created by etudiant on 11/06/2023.
//
import MyModel
import Foundation
struct Stub{
static let uesData:[UE] = [
public struct MyStub {
public static let uesData:[UE] = [
UE(
id: UUID(),
ueName: "UE - 1",
coef: 9,
modules: [
Module(id: UUID(), moduleName: "Module - 1", coef: 2, note: 4),
Module(id: UUID(), moduleName: "Module - 2", coef: 3, note: 14),
Module(id: UUID(), moduleName: "Module - 3", coef: 5, note: 10),
Module(id: UUID(), moduleName: "Module - 4", coef: 2, note: 9),
]
),
UE(
id: UUID(),
ueName: "UE - 1",
@ -66,4 +72,7 @@ struct Stub{
),
]
public init() {
}
}

@ -0,0 +1,11 @@
import XCTest
@testable import MyStub
final class MyStubTests: 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(MyStub().text, "Hello, World!")
}
}

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<Workspace
version = "1.0">
<FileRef
location = "group:MyStub">
</FileRef>
<FileRef
location = "group:CalculMoy/CalculMoy.xcodeproj">
</FileRef>
<FileRef
location = "group:MyModel">
</FileRef>
</Workspace>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>

BIN
test/.DS_Store vendored

Binary file not shown.

@ -0,0 +1,582 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 56;
objects = {
/* Begin PBXBuildFile section */
EC97FE982A39BDFA007AEC0A /* testApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FE972A39BDFA007AEC0A /* testApp.swift */; };
EC97FE9A2A39BDFA007AEC0A /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FE992A39BDFA007AEC0A /* ContentView.swift */; };
EC97FE9C2A39BDFB007AEC0A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EC97FE9B2A39BDFB007AEC0A /* Assets.xcassets */; };
EC97FE9F2A39BDFB007AEC0A /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = EC97FE9E2A39BDFB007AEC0A /* Preview Assets.xcassets */; };
EC97FEA92A39BDFB007AEC0A /* testTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FEA82A39BDFB007AEC0A /* testTests.swift */; };
EC97FEB32A39BDFB007AEC0A /* testUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FEB22A39BDFB007AEC0A /* testUITests.swift */; };
EC97FEB52A39BDFB007AEC0A /* testUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = EC97FEB42A39BDFB007AEC0A /* testUITestsLaunchTests.swift */; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
EC97FEA52A39BDFB007AEC0A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = EC97FE8C2A39BDFA007AEC0A /* Project object */;
proxyType = 1;
remoteGlobalIDString = EC97FE932A39BDFA007AEC0A;
remoteInfo = test;
};
EC97FEAF2A39BDFB007AEC0A /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = EC97FE8C2A39BDFA007AEC0A /* Project object */;
proxyType = 1;
remoteGlobalIDString = EC97FE932A39BDFA007AEC0A;
remoteInfo = test;
};
/* End PBXContainerItemProxy section */
/* Begin PBXFileReference section */
EC97FE942A39BDFA007AEC0A /* test.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = test.app; sourceTree = BUILT_PRODUCTS_DIR; };
EC97FE972A39BDFA007AEC0A /* testApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = testApp.swift; sourceTree = "<group>"; };
EC97FE992A39BDFA007AEC0A /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
EC97FE9B2A39BDFB007AEC0A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
EC97FE9E2A39BDFB007AEC0A /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
EC97FEA42A39BDFB007AEC0A /* testTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = testTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
EC97FEA82A39BDFB007AEC0A /* testTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = testTests.swift; sourceTree = "<group>"; };
EC97FEAE2A39BDFB007AEC0A /* testUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = testUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
EC97FEB22A39BDFB007AEC0A /* testUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = testUITests.swift; sourceTree = "<group>"; };
EC97FEB42A39BDFB007AEC0A /* testUITestsLaunchTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = testUITestsLaunchTests.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
/* Begin PBXFrameworksBuildPhase section */
EC97FE912A39BDFA007AEC0A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
EC97FEA12A39BDFB007AEC0A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
EC97FEAB2A39BDFB007AEC0A /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
EC97FE8B2A39BDFA007AEC0A = {
isa = PBXGroup;
children = (
EC97FE962A39BDFA007AEC0A /* test */,
EC97FEA72A39BDFB007AEC0A /* testTests */,
EC97FEB12A39BDFB007AEC0A /* testUITests */,
EC97FE952A39BDFA007AEC0A /* Products */,
);
sourceTree = "<group>";
};
EC97FE952A39BDFA007AEC0A /* Products */ = {
isa = PBXGroup;
children = (
EC97FE942A39BDFA007AEC0A /* test.app */,
EC97FEA42A39BDFB007AEC0A /* testTests.xctest */,
EC97FEAE2A39BDFB007AEC0A /* testUITests.xctest */,
);
name = Products;
sourceTree = "<group>";
};
EC97FE962A39BDFA007AEC0A /* test */ = {
isa = PBXGroup;
children = (
EC97FE972A39BDFA007AEC0A /* testApp.swift */,
EC97FE992A39BDFA007AEC0A /* ContentView.swift */,
EC97FE9B2A39BDFB007AEC0A /* Assets.xcassets */,
EC97FE9D2A39BDFB007AEC0A /* Preview Content */,
);
path = test;
sourceTree = "<group>";
};
EC97FE9D2A39BDFB007AEC0A /* Preview Content */ = {
isa = PBXGroup;
children = (
EC97FE9E2A39BDFB007AEC0A /* Preview Assets.xcassets */,
);
path = "Preview Content";
sourceTree = "<group>";
};
EC97FEA72A39BDFB007AEC0A /* testTests */ = {
isa = PBXGroup;
children = (
EC97FEA82A39BDFB007AEC0A /* testTests.swift */,
);
path = testTests;
sourceTree = "<group>";
};
EC97FEB12A39BDFB007AEC0A /* testUITests */ = {
isa = PBXGroup;
children = (
EC97FEB22A39BDFB007AEC0A /* testUITests.swift */,
EC97FEB42A39BDFB007AEC0A /* testUITestsLaunchTests.swift */,
);
path = testUITests;
sourceTree = "<group>";
};
/* End PBXGroup section */
/* Begin PBXNativeTarget section */
EC97FE932A39BDFA007AEC0A /* test */ = {
isa = PBXNativeTarget;
buildConfigurationList = EC97FEB82A39BDFB007AEC0A /* Build configuration list for PBXNativeTarget "test" */;
buildPhases = (
EC97FE902A39BDFA007AEC0A /* Sources */,
EC97FE912A39BDFA007AEC0A /* Frameworks */,
EC97FE922A39BDFA007AEC0A /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = test;
productName = test;
productReference = EC97FE942A39BDFA007AEC0A /* test.app */;
productType = "com.apple.product-type.application";
};
EC97FEA32A39BDFB007AEC0A /* testTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = EC97FEBB2A39BDFB007AEC0A /* Build configuration list for PBXNativeTarget "testTests" */;
buildPhases = (
EC97FEA02A39BDFB007AEC0A /* Sources */,
EC97FEA12A39BDFB007AEC0A /* Frameworks */,
EC97FEA22A39BDFB007AEC0A /* Resources */,
);
buildRules = (
);
dependencies = (
EC97FEA62A39BDFB007AEC0A /* PBXTargetDependency */,
);
name = testTests;
productName = testTests;
productReference = EC97FEA42A39BDFB007AEC0A /* testTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
EC97FEAD2A39BDFB007AEC0A /* testUITests */ = {
isa = PBXNativeTarget;
buildConfigurationList = EC97FEBE2A39BDFB007AEC0A /* Build configuration list for PBXNativeTarget "testUITests" */;
buildPhases = (
EC97FEAA2A39BDFB007AEC0A /* Sources */,
EC97FEAB2A39BDFB007AEC0A /* Frameworks */,
EC97FEAC2A39BDFB007AEC0A /* Resources */,
);
buildRules = (
);
dependencies = (
EC97FEB02A39BDFB007AEC0A /* PBXTargetDependency */,
);
name = testUITests;
productName = testUITests;
productReference = EC97FEAE2A39BDFB007AEC0A /* testUITests.xctest */;
productType = "com.apple.product-type.bundle.ui-testing";
};
/* End PBXNativeTarget section */
/* Begin PBXProject section */
EC97FE8C2A39BDFA007AEC0A /* Project object */ = {
isa = PBXProject;
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1430;
LastUpgradeCheck = 1430;
TargetAttributes = {
EC97FE932A39BDFA007AEC0A = {
CreatedOnToolsVersion = 14.3;
};
EC97FEA32A39BDFB007AEC0A = {
CreatedOnToolsVersion = 14.3;
TestTargetID = EC97FE932A39BDFA007AEC0A;
};
EC97FEAD2A39BDFB007AEC0A = {
CreatedOnToolsVersion = 14.3;
TestTargetID = EC97FE932A39BDFA007AEC0A;
};
};
};
buildConfigurationList = EC97FE8F2A39BDFA007AEC0A /* Build configuration list for PBXProject "test" */;
compatibilityVersion = "Xcode 14.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = EC97FE8B2A39BDFA007AEC0A;
productRefGroup = EC97FE952A39BDFA007AEC0A /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
EC97FE932A39BDFA007AEC0A /* test */,
EC97FEA32A39BDFB007AEC0A /* testTests */,
EC97FEAD2A39BDFB007AEC0A /* testUITests */,
);
};
/* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */
EC97FE922A39BDFA007AEC0A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
EC97FE9F2A39BDFB007AEC0A /* Preview Assets.xcassets in Resources */,
EC97FE9C2A39BDFB007AEC0A /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
EC97FEA22A39BDFB007AEC0A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
EC97FEAC2A39BDFB007AEC0A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
EC97FE902A39BDFA007AEC0A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
EC97FE9A2A39BDFA007AEC0A /* ContentView.swift in Sources */,
EC97FE982A39BDFA007AEC0A /* testApp.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
EC97FEA02A39BDFB007AEC0A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
EC97FEA92A39BDFB007AEC0A /* testTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
EC97FEAA2A39BDFB007AEC0A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
EC97FEB52A39BDFB007AEC0A /* testUITestsLaunchTests.swift in Sources */,
EC97FEB32A39BDFB007AEC0A /* testUITests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
EC97FEA62A39BDFB007AEC0A /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = EC97FE932A39BDFA007AEC0A /* test */;
targetProxy = EC97FEA52A39BDFB007AEC0A /* PBXContainerItemProxy */;
};
EC97FEB02A39BDFB007AEC0A /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = EC97FE932A39BDFA007AEC0A /* test */;
targetProxy = EC97FEAF2A39BDFB007AEC0A /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
EC97FEB62A39BDFB007AEC0A /* 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;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
EC97FEB72A39BDFB007AEC0A /* 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;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
EC97FEB92A39BDFB007AEC0A /* 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_ASSET_PATHS = "\"test/Preview Content\"";
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";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = fr.uca.iut.test;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
EC97FEBA2A39BDFB007AEC0A /* 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_ASSET_PATHS = "\"test/Preview Content\"";
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";
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = fr.uca.iut.test;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
EC97FEBC2A39BDFB007AEC0A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = fr.uca.iut.testTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/test.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/test";
};
name = Debug;
};
EC97FEBD2A39BDFB007AEC0A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
BUNDLE_LOADER = "$(TEST_HOST)";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.4;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = fr.uca.iut.testTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_HOST = "$(BUILT_PRODUCTS_DIR)/test.app/$(BUNDLE_EXECUTABLE_FOLDER_PATH)/test";
};
name = Release;
};
EC97FEBF2A39BDFB007AEC0A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = fr.uca.iut.testUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = test;
};
name = Debug;
};
EC97FEC02A39BDFB007AEC0A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = fr.uca.iut.testUITests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = NO;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
TEST_TARGET_NAME = test;
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
EC97FE8F2A39BDFA007AEC0A /* Build configuration list for PBXProject "test" */ = {
isa = XCConfigurationList;
buildConfigurations = (
EC97FEB62A39BDFB007AEC0A /* Debug */,
EC97FEB72A39BDFB007AEC0A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
EC97FEB82A39BDFB007AEC0A /* Build configuration list for PBXNativeTarget "test" */ = {
isa = XCConfigurationList;
buildConfigurations = (
EC97FEB92A39BDFB007AEC0A /* Debug */,
EC97FEBA2A39BDFB007AEC0A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
EC97FEBB2A39BDFB007AEC0A /* Build configuration list for PBXNativeTarget "testTests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
EC97FEBC2A39BDFB007AEC0A /* Debug */,
EC97FEBD2A39BDFB007AEC0A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
EC97FEBE2A39BDFB007AEC0A /* Build configuration list for PBXNativeTarget "testUITests" */ = {
isa = XCConfigurationList;
buildConfigurations = (
EC97FEBF2A39BDFB007AEC0A /* Debug */,
EC97FEC02A39BDFB007AEC0A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = EC97FE8C2A39BDFA007AEC0A /* Project object */;
}

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>test.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
</dict>
</dict>
</dict>
</plist>

@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -0,0 +1,13 @@
{
"images" : [
{
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -0,0 +1,26 @@
//
// ContentView.swift
// test
//
// Created by etudiant on 14/06/2023.
//
import SwiftUI
struct ContentView: View {
var body: some View {
VStack {
Image(systemName: "globe")
.imageScale(.large)
.foregroundColor(.accentColor)
Text("Hello, world!")
}
.padding()
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}

@ -0,0 +1,6 @@
{
"info" : {
"author" : "xcode",
"version" : 1
}
}

@ -0,0 +1,17 @@
//
// testApp.swift
// test
//
// Created by etudiant on 14/06/2023.
//
import SwiftUI
@main
struct testApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
}
}

@ -0,0 +1,36 @@
//
// testTests.swift
// testTests
//
// Created by etudiant on 14/06/2023.
//
import XCTest
@testable import test
final class testTests: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
// Any test you write for XCTest can be annotated as throws and async.
// Mark your test throws to produce an unexpected failure when your test encounters an uncaught error.
// Mark your test async to allow awaiting for asynchronous code to complete. Check the results with assertions afterwards.
}
func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}

@ -0,0 +1,41 @@
//
// testUITests.swift
// testUITests
//
// Created by etudiant on 14/06/2023.
//
import XCTest
final class testUITests: 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 its 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()
}
}
}
}

@ -0,0 +1,32 @@
//
// testUITestsLaunchTests.swift
// testUITests
//
// Created by etudiant on 14/06/2023.
//
import XCTest
final class testUITestsLaunchTests: 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)
}
}
Loading…
Cancel
Save