From ad32aee26b99fd05496672e350fe99fe48cd9381 Mon Sep 17 00:00:00 2001 From: Jonas Salling Date: Fri, 9 Oct 2020 11:49:33 +0200 Subject: [PATCH] fixing pod --- Package.swift | 2 +- Yoga.podspec | 3 ++- yoga/{apple-public => swiftpm-support}/umbrella.h | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) rename yoga/{apple-public => swiftpm-support}/umbrella.h (99%) diff --git a/Package.swift b/Package.swift index 29e20190..fd64ee7e 100644 --- a/Package.swift +++ b/Package.swift @@ -19,7 +19,7 @@ let package = Package( name: "yoga", dependencies: [], path: "./yoga", - publicHeadersPath: "./apple-public", + publicHeadersPath: "./swiftpm-support", cxxSettings: [ .headerSearchPath("../"), ], diff --git a/Yoga.podspec b/Yoga.podspec index 39cf1af7..c692c448 100644 --- a/Yoga.podspec +++ b/Yoga.podspec @@ -33,6 +33,7 @@ Pod::Spec.new do |spec| '-fPIC' ] spec.source_files = 'yoga/**/*.{c,h,cpp}' - spec.public_header_files = 'yoga/apple-public/umbrella.h' + spec.exclude_files = 'yoga/swiftpm-support/*.h' + spec.public_header_files = 'yoga/{Yoga,YGEnums,YGMacros,YGNode,YGStyle,YGValue}.h' end diff --git a/yoga/apple-public/umbrella.h b/yoga/swiftpm-support/umbrella.h similarity index 99% rename from yoga/apple-public/umbrella.h rename to yoga/swiftpm-support/umbrella.h index eb8ab61a..c674ceb8 100644 --- a/yoga/apple-public/umbrella.h +++ b/yoga/swiftpm-support/umbrella.h @@ -8,6 +8,7 @@ #pragma once #ifdef __OBJC__ + #import #include "../YGEnums.h" @@ -16,4 +17,5 @@ #include "../YGStyle.h" #include "../YGValue.h" #include "../Yoga.h" + #endif