Skip to content

Commit

Permalink
feat: create a new swift package (#1)
Browse files Browse the repository at this point in the history
I did `File > New Package...` and that's pretty much it.
  • Loading branch information
beekhc authored Aug 2, 2024
1 parent 0c374a5 commit 34fb34d
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.DS_Store
/.build
/Packages
xcuserdata/
DerivedData/
.swiftpm/configuration/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
Original file line number Diff line number Diff line change
@@ -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>
23 changes: 23 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// swift-tools-version: 5.10
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "honeycomb-opentelemetry-swift",
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "honeycomb-opentelemetry-swift",
targets: ["honeycomb-opentelemetry-swift"]),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "honeycomb-opentelemetry-swift"),
.testTarget(
name: "honeycomb-opentelemetry-swiftTests",
dependencies: ["honeycomb-opentelemetry-swift"]),
]
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
// The Swift Programming Language
// https://docs.swift.org/swift-book
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import XCTest
@testable import honeycomb_opentelemetry_swift

final class honeycomb_opentelemetry_swiftTests: XCTestCase {
func testExample() throws {
// XCTest Documentation
// https://developer.apple.com/documentation/xctest

// Defining Test Cases and Test Methods
// https://developer.apple.com/documentation/xctest/defining_test_cases_and_test_methods
}
}

0 comments on commit 34fb34d

Please sign in to comment.