Skip to content

Commit

Permalink
Move WhiskyKit to package (#567)
Browse files Browse the repository at this point in the history
  • Loading branch information
cuba authored Oct 28, 2023
1 parent 1cd2dc8 commit 17cae78
Show file tree
Hide file tree
Showing 20 changed files with 135 additions and 380 deletions.
349 changes: 35 additions & 314 deletions Whisky.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

66 changes: 0 additions & 66 deletions Whisky.xcodeproj/xcshareddata/xcschemes/WhiskyKit.xcscheme

This file was deleted.

8 changes: 8 additions & 0 deletions WhiskyKit/.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>
14 changes: 14 additions & 0 deletions WhiskyKit/Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"pins" : [
{
"identity" : "semanticversion",
"kind" : "remoteSourceControl",
"location" : "[email protected]:SwiftPackageIndex/SemanticVersion.git",
"state" : {
"revision" : "45e2ec89fee3b76cd6dde3f9a507e4348f194b79",
"version" : "0.3.7"
}
}
],
"version" : 2
}
46 changes: 46 additions & 0 deletions WhiskyKit/Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
// swift-tools-version: 5.9
//
// PortableExecutable.swift
// WhiskyKit
//
// This file is part of Whisky.
//
// Whisky is free software: you can redistribute it and/or modify it under the terms
// of the GNU General Public License as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// Whisky is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with Whisky.
// If not, see https://www.gnu.org/licenses/.
//

import PackageDescription

let package = Package(
name: "WhiskyKit",
platforms: [
.macOS(.v14)
],
products: [
.library(
name: "WhiskyKit",
targets: ["WhiskyKit"]
)
],
dependencies: [
.package(url: "[email protected]:SwiftPackageIndex/SemanticVersion.git", from: "0.3.0")
],
targets: [
.target(
name: "WhiskyKit",
dependencies: ["SemanticVersion"]
),
.testTarget(
name: "WhiskyKitTests",
dependencies: ["WhiskyKit"]
)
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 24 additions & 0 deletions WhiskyKit/Tests/WhiskyKitTests/WhiskyKitTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
//
// WhiskyKitTests.swift
// WhiskyKit
//
// This file is part of Whisky.
//
// Whisky is free software: you can redistribute it and/or modify it under the terms
// of the GNU General Public License as published by the Free Software Foundation,
// either version 3 of the License, or (at your option) any later version.
//
// Whisky is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
// without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
// See the GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along with Whisky.
// If not, see https://www.gnu.org/licenses/.
//

import XCTest
@testable import WhiskyKit

final class WhiskyKitTests: XCTestCase {
// TODO: Add some tests here

Check failure on line 23 in WhiskyKit/Tests/WhiskyKitTests/WhiskyKitTests.swift

View workflow job for this annotation

GitHub Actions / SwiftLint

Todo Violation: TODOs should be resolved (Add some tests here) (todo)
}

0 comments on commit 17cae78

Please sign in to comment.