From e05cfa11a092f3247c5d44daa2f578bc9cf65b91 Mon Sep 17 00:00:00 2001 From: woxtu Date: Mon, 16 Nov 2020 10:15:35 +0900 Subject: [PATCH 1/2] Change the public headers directory --- Package.swift | 2 +- Source/include/PINOperation/PINOperation.h | 1 + Source/include/PINOperation/PINOperationGroup.h | 1 + Source/include/PINOperation/PINOperationMacros.h | 1 + Source/include/PINOperation/PINOperationQueue.h | 1 + Source/include/PINOperation/PINOperationTypes.h | 1 + 6 files changed, 6 insertions(+), 1 deletion(-) create mode 120000 Source/include/PINOperation/PINOperation.h create mode 120000 Source/include/PINOperation/PINOperationGroup.h create mode 120000 Source/include/PINOperation/PINOperationMacros.h create mode 120000 Source/include/PINOperation/PINOperationQueue.h create mode 120000 Source/include/PINOperation/PINOperationTypes.h diff --git a/Package.swift b/Package.swift index 1e747db..f8bccf7 100644 --- a/Package.swift +++ b/Package.swift @@ -12,7 +12,7 @@ let package = Package( 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: "PINOperation", path: "Source", publicHeadersPath: "."), + .target(name: "PINOperation", path: "Source", publicHeadersPath: "include"), .testTarget(name: "PINOperationTests", dependencies: ["PINOperation"], path: "Tests") ] ) diff --git a/Source/include/PINOperation/PINOperation.h b/Source/include/PINOperation/PINOperation.h new file mode 120000 index 0000000..0f8eb5e --- /dev/null +++ b/Source/include/PINOperation/PINOperation.h @@ -0,0 +1 @@ +../../PINOperation.h \ No newline at end of file diff --git a/Source/include/PINOperation/PINOperationGroup.h b/Source/include/PINOperation/PINOperationGroup.h new file mode 120000 index 0000000..2fd30a2 --- /dev/null +++ b/Source/include/PINOperation/PINOperationGroup.h @@ -0,0 +1 @@ +../../PINOperationGroup.h \ No newline at end of file diff --git a/Source/include/PINOperation/PINOperationMacros.h b/Source/include/PINOperation/PINOperationMacros.h new file mode 120000 index 0000000..b7be063 --- /dev/null +++ b/Source/include/PINOperation/PINOperationMacros.h @@ -0,0 +1 @@ +../../PINOperationMacros.h \ No newline at end of file diff --git a/Source/include/PINOperation/PINOperationQueue.h b/Source/include/PINOperation/PINOperationQueue.h new file mode 120000 index 0000000..db4dc22 --- /dev/null +++ b/Source/include/PINOperation/PINOperationQueue.h @@ -0,0 +1 @@ +../../PINOperationQueue.h \ No newline at end of file diff --git a/Source/include/PINOperation/PINOperationTypes.h b/Source/include/PINOperation/PINOperationTypes.h new file mode 120000 index 0000000..bf9c404 --- /dev/null +++ b/Source/include/PINOperation/PINOperationTypes.h @@ -0,0 +1 @@ +../../PINOperationTypes.h \ No newline at end of file From d9dbf4a5af079055c66babf95a686edea6e8a7a5 Mon Sep 17 00:00:00 2001 From: woxtu Date: Mon, 16 Nov 2020 10:15:57 +0900 Subject: [PATCH 2/2] Exclude public headers --- PINOperation.podspec | 1 + 1 file changed, 1 insertion(+) diff --git a/PINOperation.podspec b/PINOperation.podspec index d99ffc6..1756be2 100644 --- a/PINOperation.podspec +++ b/PINOperation.podspec @@ -19,4 +19,5 @@ Pod::Spec.new do |s| EOS s.prefix_header_contents = pch_PIN s.source_files = 'Source/**/*.{h,m,mm}' + s.exclude_files = 'Source/include/**/*' end