Skip to content

Commit

Permalink
Renames template project to HealthKitOnOMH (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
vishnuravi committed Dec 8, 2022
1 parent 02b8f5a commit c59079e
Show file tree
Hide file tree
Showing 21 changed files with 76 additions and 76 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the HealthKitOnOMH open source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
Expand All @@ -20,7 +20,7 @@ jobs:
name: Build and Test Swift Package
uses: StanfordBDHG/.github/.github/workflows/build-and-test-xcodebuild-spm.yml@v1
with:
scheme: TemplatePackage
scheme: HealthKitOnOMH
build_and_test-uitests:
name: Build and Test UITest App
uses: StanfordBDHG/.github/.github/workflows/build-and-test-xcodebuild.yml@v1
Expand All @@ -32,6 +32,6 @@ jobs:
needs: [build_and_test-spm, build_and_test-uitests]
uses: StanfordBDHG/.github/.github/workflows/create-and-upload-coverage-report.yml@v1
with:
coveragereports: TemplatePackage.xcresult TemplatePackage.xcresult
coveragereports: HealthKitOnOMH.xcresult HealthKitOnOMH.xcresult
secrets:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the HealthKitOnOMH open source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the HealthKitOnOMH open source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
Expand Down
2 changes: 1 addition & 1 deletion .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the HealthKitOnOMH open source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
Expand Down
5 changes: 3 additions & 2 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
#
# This source file is part of the TemplatePackage open source project
# This source file is part of the HealthKitOnOMH open source project
#
# SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
#
Expand All @@ -10,7 +10,8 @@
-->

TemplatePackage contributors
HealthKitOnOMH contributors
====================

* [Vishnu Ravi](https://github.com/vishnuravi)
* [Paul Schmiedmayer](https://github.com/PSchmiedmayer)
12 changes: 6 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// swift-tools-version:5.7

//
// This source file is part of the TemplatePackage open source project
// This source file is part of the HealthKitOnOMH open source project
//
// SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
//
Expand All @@ -12,21 +12,21 @@ import PackageDescription


let package = Package(
name: "TemplatePackage",
name: "HealthKitOnOMH",
platforms: [
.iOS(.v16)
],
products: [
.library(name: "TemplatePackage", targets: ["TemplatePackage"])
.library(name: "HealthKitOnOMH", targets: ["HealthKitOnOMH"])
],
targets: [
.target(
name: "TemplatePackage"
name: "HealthKitOnOMH"
),
.testTarget(
name: "TemplatePackageTests",
name: "HealthKitOnOMHTests",
dependencies: [
.target(name: "TemplatePackage")
.target(name: "HealthKitOnOMH")
]
)
]
Expand Down
31 changes: 15 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,41 @@
<!--
This source file is part of the TemplatePackage open source project
This source file is part of the HealthKitOnFHIR open source project
SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
SPDX-License-Identifier: MIT
-->

# TemplatePackage
# HealthKitOnOMH

[![Build and Test](https://github.com/StanfordBDHG/SwiftPackageTemplate/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/StanfordBDHG/SwiftPackageTemplate/actions/workflows/build-and-test.yml)
[![codecov](https://codecov.io/gh/StanfordBDHG/SwiftPackageTemplate/branch/main/graph/badge.svg?token=X7BQYSUKOH)](https://codecov.io/gh/StanfordBDHG/SwiftPackageTemplate)
[![Build and Test](https://github.com/StanfordBDHG/HealthKitOnOMH/actions/workflows/build-and-test.yml/badge.svg)](https://github.com/StanfordBDHG/HealthKitOnOMH/actions/workflows/build-and-test.yml)
[![codecov](https://codecov.io/gh/StanfordBDHG/HealthKitOnOMH/branch/main/graph/badge.svg?token=17BMMYE3AC)](https://codecov.io/gh/StanfordBDHG/HealthKitOnOMH)


## How To Use This Template

The template repository contains a template Swift Package, including a continuous integration setup. Follow these steps to customize it to your needs:
1. Rename the Swift Package. Be sure that you update the name in the `build-and-test.yml` GitHub Action accordingly. If you have multiple targets in your Swift Package, you need to pass the name of the Swift Package followed by an `-Package` as the scheme to the GitHub Action, e.g., `StanfordProject-Package` if your Swift Package is named `StanfordProject`.
2. If your Swift Package does not provide any user interface or does not require an iOS application environment to function, you can remove the `UITests` application from the `Tests` folder. You need to update the `build-and-test.yml` GitHub Action accordingly by removing the GitHub Action that builds and tests the application, removing the dependency from the code coverage upload step, and removing the UI test `.xresult` input from the code coverage test.
3. Add a codecov.io token to your [GitHub Actions Secrets](https://docs.github.com/en/actions/security-guides/encrypted-secrets#creating-encrypted-secrets-for-an-environment) following the instructions of the [Codecov GitHub Action](https://github.com/marketplace/actions/codecov#usage). If you do not want to cover test coverage data, you can remove the code coverage job in the `build-and-test.yml` GitHub Action.
4. Adjust this README to describe your project and adjust the badges at the top to point to the correct GitHub Action of your repository and Codecov badge.
## Features
- ...


## Installation
TemplatePackage can be installed into your Xcode project using [Swift Package Manager](https://github.com/apple/swift-package-manager).
HealthKitOnOMH can be installed into your Xcode project using [Swift Package Manager](https://github.com/apple/swift-package-manager).

1. In Xcode 14 and newer (requires Swift 5.7), go to “File” » “Add Packages...”
2. Enter the URL to this GitHub repository, then select the `TemplatePackage` package to install.
2. Enter the URL to this GitHub repository, then select the `HealthKitOnOMH` package to install.


## License
This project is licensed under the MIT License. See [Licenses](https://github.com/StanfordBDHG/TemplatePackage/tree/main/LICENSES) for more information.
This project is licensed under the MIT License. See [Licenses](https://github.com/StanfordBDHG/HealthKitOnOMH/tree/main/LICENSES) for more information.


## Contributors
This project is developed as part of the Stanford Byers Center for Biodesign at Stanford University.
See [CONTRIBUTORS.md](https://github.com/StanfordBDHG/TemplatePackage/tree/main/CONTRIBUTORS.md) for a full list of all TemplatePackage contributors.
This project is developed as part of the Stanford Biodesign for Digital Health projects at Stanford.
See [CONTRIBUTORS.md](https://github.com/StanfordBDHG/HealthKitOnOMH/tree/main/CONTRIBUTORS.md) for a full list of all HealthKitOnFHIR contributors.


## Notices
HealthKit is a registered trademark of Apple, Inc.

![Stanford Byers Center for Biodesign Logo](https://raw.githubusercontent.com/StanfordBDHG/.github/main/assets/biodesign-footer-light.png#gh-light-mode-only)
![Stanford Byers Center for Biodesign Logo](https://raw.githubusercontent.com/StanfordBDHG/.github/main/assets/biodesign-footer-dark.png#gh-dark-mode-only)
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
//
// This source file is part of the TemplatePackage open source project
// This source file is part of the HealthKitOnOMH open source project
//
// SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//

struct TemplatePackage {
struct HealthKitOnOMH {
var stanford: String {
"Stanford University"
}
Expand Down
18 changes: 18 additions & 0 deletions Tests/HealthKitOnOMHTests/HealthKitOnOMHTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// This source file is part of the HealthKitOnOMH open source project
//
// SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//

@testable import HealthKitOnOMH
import XCTest


final class HealthKitOnOMHTests: XCTestCase {
func testHealthKitOnOMH() throws {
let healthKitOnOMH = HealthKitOnOMH()
XCTAssertEqual(healthKitOnOMH.stanford, "Stanford University")
}
}
18 changes: 0 additions & 18 deletions Tests/TemplatePackageTests/HealthKitOnFHIRTests.swift

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This source file is part of the TemplatePackage open-source project
This source file is part of the HealthKitOnOMH open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This source file is part of the TemplatePackage open-source project
This source file is part of the HealthKitOnOMH open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This source file is part of the TemplatePackage open-source project
This source file is part of the HealthKitOnOMH open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

Expand Down
6 changes: 3 additions & 3 deletions Tests/UITests/TestApp/TestApp.swift
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
//
// This source file is part of the TemplatePackage open-source project
// This source file is part of the HealthKitOnOMH open-source project
//
// SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
//
// SPDX-License-Identifier: MIT
//

@testable import TemplatePackage
@testable import HealthKitOnOMH
import SwiftUI


@main
struct UITestsApp: App {
var body: some Scene {
WindowGroup {
Text(TemplatePackage().stanford)
Text(HealthKitOnOMH().stanford)
}
}
}
4 changes: 2 additions & 2 deletions Tests/UITests/TestAppUITests/TestAppUITests.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//
// This source file is part of the TemplatePackage open-source project
// This source file is part of the HealthKitOnOMH open-source project
//
// SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)
//
Expand All @@ -17,7 +17,7 @@ class TestAppUITests: XCTestCase {
}


func testTemplatePackage() throws {
func testHealthKitOnOMH() throws {
let app = XCUIApplication()
app.launch()
XCTAssert(app.staticTexts["Stanford University"].waitForExistence(timeout: 0.1))
Expand Down
22 changes: 11 additions & 11 deletions Tests/UITests/UITests.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
2F68C3C8292EA52000B3E12C /* TemplatePackage in Frameworks */ = {isa = PBXBuildFile; productRef = 2F68C3C7292EA52000B3E12C /* TemplatePackage */; };
2F68C3C8292EA52000B3E12C /* HealthKitOnOMH in Frameworks */ = {isa = PBXBuildFile; productRef = 2F68C3C7292EA52000B3E12C /* HealthKitOnOMH */; };
2F6D139A28F5F386007C25D6 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 2F6D139928F5F386007C25D6 /* Assets.xcassets */; };
2F8A431329130A8C005D2B8F /* TestAppUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F8A431229130A8C005D2B8F /* TestAppUITests.swift */; };
2FA7382C290ADFAA007ACEB9 /* TestApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2FA7382B290ADFAA007ACEB9 /* TestApp.swift */; };
Expand All @@ -24,7 +24,7 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
2F68C3C6292E9F8F00B3E12C /* TemplatePackage */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = TemplatePackage; path = ../..; sourceTree = "<group>"; };
2F68C3C6292E9F8F00B3E12C /* HealthKitOnOMH */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = HealthKitOnOMH; path = ../..; sourceTree = "<group>"; };
2F6D139228F5F384007C25D6 /* TestApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = TestApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
2F6D139928F5F386007C25D6 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
2F6D13AC28F5F386007C25D6 /* TestAppUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = TestAppUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
Expand All @@ -37,7 +37,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
2F68C3C8292EA52000B3E12C /* TemplatePackage in Frameworks */,
2F68C3C8292EA52000B3E12C /* HealthKitOnOMH in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -54,7 +54,7 @@
2F6D138928F5F384007C25D6 = {
isa = PBXGroup;
children = (
2F68C3C6292E9F8F00B3E12C /* TemplatePackage */,
2F68C3C6292E9F8F00B3E12C /* HealthKitOnOMH */,
2F6D139428F5F384007C25D6 /* TestApp */,
2F6D13AF28F5F386007C25D6 /* TestAppUITests */,
2F6D139328F5F384007C25D6 /* Products */,
Expand Down Expand Up @@ -112,7 +112,7 @@
);
name = TestApp;
packageProductDependencies = (
2F68C3C7292EA52000B3E12C /* TemplatePackage */,
2F68C3C7292EA52000B3E12C /* HealthKitOnOMH */,
);
productName = Example;
productReference = 2F6D139228F5F384007C25D6 /* TestApp.app */;
Expand Down Expand Up @@ -356,7 +356,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.templatepackage.testapp;
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.HealthKitOnOMH.testapp;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_STRICT_CONCURRENCY = complete;
Expand Down Expand Up @@ -387,7 +387,7 @@
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.templatepackage.testapp;
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.HealthKitOnOMH.testapp;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_STRICT_CONCURRENCY = complete;
Expand All @@ -405,7 +405,7 @@
DEVELOPMENT_TEAM = 637867499T;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.TemplatePackage.testappuitests;
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.HealthKitOnOMH.testappuitests;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
SWIFT_EMIT_LOC_STRINGS = NO;
Expand All @@ -424,7 +424,7 @@
DEVELOPMENT_TEAM = 637867499T;
GENERATE_INFOPLIST_FILE = YES;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.TemplatePackage.testappuitests;
PRODUCT_BUNDLE_IDENTIFIER = edu.stanford.HealthKitOnOMH.testappuitests;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE = "";
SWIFT_EMIT_LOC_STRINGS = NO;
Expand Down Expand Up @@ -467,9 +467,9 @@
/* End XCConfigurationList section */

/* Begin XCSwiftPackageProductDependency section */
2F68C3C7292EA52000B3E12C /* TemplatePackage */ = {
2F68C3C7292EA52000B3E12C /* HealthKitOnOMH */ = {
isa = XCSwiftPackageProductDependency;
productName = TemplatePackage;
productName = HealthKitOnOMH;
};
/* End XCSwiftPackageProductDependency section */
};
Expand Down
2 changes: 1 addition & 1 deletion Tests/UITests/UITests.xcodeproj/project.pbxproj.license
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This source file is part of the TemplatePackage open-source project
This source file is part of the HealthKitOnOMH open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This source file is part of the TemplatePackage open-source project
This source file is part of the HealthKitOnOMH open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This source file is part of the TemplatePackage open-source project
This source file is part of the HealthKitOnOMH open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
<CodeCoverageTargets>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "TemplatePackage"
BuildableName = "TemplatePackage"
BlueprintName = "TemplatePackage"
BlueprintIdentifier = "HealthKitOnOMH"
BuildableName = "HealthKitOnOMH"
BlueprintName = "HealthKitOnOMH"
ReferencedContainer = "container:../..">
</BuildableReference>
</CodeCoverageTargets>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This source file is part of the TemplatePackage open-source project
This source file is part of the HealthKitOnOMH open-source project

SPDX-FileCopyrightText: 2022 Stanford University and the project authors (see CONTRIBUTORS.md)

Expand Down

0 comments on commit c59079e

Please sign in to comment.