Skip to content

Commit

Permalink
add swift package
Browse files Browse the repository at this point in the history
  • Loading branch information
NianJi committed Aug 15, 2019
1 parent 770e73d commit b3635ba
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
31 changes: 31 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
// swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "coswift",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "coswift",
targets: ["coswift"]),
],
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 which this package depends on.
.target(
name: "cocore",
dependencies: []),
.target(
name: "coswift",
dependencies: ["cocore"]),
.testTarget(
name: "coswiftTests",
dependencies: ["coswift"]),
]
)
2 changes: 2 additions & 0 deletions coobjc.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
18E16473224CBF1600B277FC /* CODispatch.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = CODispatch.m; sourceTree = "<group>"; };
539E1B31B66ADA95F4988159 /* libPods-coobjc.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-coobjc.a"; sourceTree = BUILT_PRODUCTS_DIR; };
572F70044B408B04A91BE7F2 /* libPods-cocore.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-cocore.a"; sourceTree = BUILT_PRODUCTS_DIR; };
6AE2932723053E4D0034D1EC /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
A302BD5B2248D11700411E67 /* COLock.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = COLock.h; sourceTree = "<group>"; };
A34A05AF223922EC00F4E9A3 /* cofishhook.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = cofishhook.h; sourceTree = "<group>"; };
A34A05B0223922EC00F4E9A3 /* cofishhook.c */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.c; path = cofishhook.c; sourceTree = "<group>"; };
Expand Down Expand Up @@ -272,6 +273,7 @@
D85037C41B9C6D8400864DF0 = {
isa = PBXGroup;
children = (
6AE2932723053E4D0034D1EC /* Package.swift */,
D85037D41B9C6D8400864DF0 /* coobjc */,
A35C049921EC366A00AC7D6E /* coswift */,
A372DA772236597700EF87AA /* cocore */,
Expand Down

0 comments on commit b3635ba

Please sign in to comment.