Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lift to Spezi 1.0 #9

Merged
merged 2 commits into from
Feb 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,13 @@ let package = Package(
.library(name: "SpeziMedication", targets: ["SpeziMedication"])
],
dependencies: [
.package(url: "https://github.com/StanfordSpezi/Spezi", .upToNextMinor(from: "0.8.0")),
.package(url: "https://github.com/StanfordSpezi/SpeziStorage", .upToNextMinor(from: "0.5.0")),
.package(url: "https://github.com/StanfordSpezi/SpeziViews", .upToNextMinor(from: "0.6.2"))
.package(url: "https://github.com/StanfordSpezi/SpeziViews", from: "1.2.0")
],
targets: [
.target(
name: "SpeziMedication",
dependencies: [
.product(name: "Spezi", package: "Spezi"),
.product(name: "SpeziViews", package: "SpeziViews"),
.product(name: "SpeziLocalStorage", package: "SpeziStorage")
.product(name: "SpeziViews", package: "SpeziViews")
],
resources: [
.process("Resources")
Expand Down
2 changes: 1 addition & 1 deletion Sources/SpeziMedication/MedicationSettings.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import SpeziViews
import SwiftUI


/// Present medication settings includings mechanisms to add, edit, and delete medications.
/// Present medication settings including mechanisms to add, edit, and delete medications.
public struct MedicationSettings<MI: MedicationInstance>: View {
private let isPresented: Binding<Bool>?
private let allowEmtpySave: Bool
Expand Down
22 changes: 22 additions & 0 deletions Tests/UITests/UITests.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
2FADBE9C2AF8761B0003EC4E /* XCUIApplication+ButtonTap.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FADBE9B2AF8761B0003EC4E /* XCUIApplication+ButtonTap.swift */; };
2FE5BC612AF86C5E0089B6C0 /* ExampleMedicationSettingsViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FE5BC602AF86C5E0089B6C0 /* ExampleMedicationSettingsViewModel.swift */; };
2FE5BC632AF86CA20089B6C0 /* ExampleMedicationInstance.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FE5BC622AF86CA20089B6C0 /* ExampleMedicationInstance.swift */; };
97B786BA2B717396004066DB /* Spezi in Frameworks */ = {isa = PBXBuildFile; productRef = 97B786B92B717396004066DB /* Spezi */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand Down Expand Up @@ -63,6 +64,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
97B786BA2B717396004066DB /* Spezi in Frameworks */,
2F68C3C8292EA52000B3E12C /* SpeziMedication in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -148,6 +150,7 @@
name = TestApp;
packageProductDependencies = (
2F68C3C7292EA52000B3E12C /* SpeziMedication */,
97B786B92B717396004066DB /* Spezi */,
);
productName = Example;
productReference = 2F6D139228F5F384007C25D6 /* TestApp.app */;
Expand Down Expand Up @@ -199,6 +202,9 @@
Base,
);
mainGroup = 2F6D138928F5F384007C25D6;
packageReferences = (
97B786B82B717396004066DB /* XCRemoteSwiftPackageReference "Spezi" */,
);
productRefGroup = 2F6D139328F5F384007C25D6 /* Products */;
projectDirPath = "";
projectRoot = "";
Expand Down Expand Up @@ -683,11 +689,27 @@
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
97B786B82B717396004066DB /* XCRemoteSwiftPackageReference "Spezi" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/StanfordSpezi/Spezi";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.1.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
2F68C3C7292EA52000B3E12C /* SpeziMedication */ = {
isa = XCSwiftPackageProductDependency;
productName = SpeziMedication;
};
97B786B92B717396004066DB /* Spezi */ = {
isa = XCSwiftPackageProductDependency;
package = 97B786B82B717396004066DB /* XCRemoteSwiftPackageReference "Spezi" */;
productName = Spezi;
};
/* End XCSwiftPackageProductDependency section */
};
rootObject = 2F6D138A28F5F384007C25D6 /* Project object */;
Expand Down
Loading