From 9f95aa9eceb704234d6d244940041974f9a670e6 Mon Sep 17 00:00:00 2001 From: Jan Rajtr Date: Mon, 11 May 2020 14:27:31 +0200 Subject: [PATCH 1/3] - spm support --- Package.swift | 22 +++++++++++++++++++ {Source => Sources}/Toucan-Info.plist | 0 {Source => Sources}/Toucan.h | 0 {Source => Sources}/Toucan.swift | 0 .../tvOS/Toucan.tvOS-Info.plist | 0 {Source => Sources}/tvOS/ToucanTVOS.h | 0 Toucan.podspec | 2 +- 7 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 Package.swift rename {Source => Sources}/Toucan-Info.plist (100%) rename {Source => Sources}/Toucan.h (100%) rename {Source => Sources}/Toucan.swift (100%) rename {Source => Sources}/tvOS/Toucan.tvOS-Info.plist (100%) rename {Source => Sources}/tvOS/ToucanTVOS.h (100%) diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..c481fa9 --- /dev/null +++ b/Package.swift @@ -0,0 +1,22 @@ +// swift-tools-version:5.1 + +import PackageDescription + +let package = Package( + name: "Toucan", + platforms: [ + .iOS(.v8), + ], + products: [ + .library(name: "Toucan", targets: ["Toucan"]) + ], + targets: [ + .target( + name: "Toucan", + dependencies: []), + ], + swiftLanguageVersions: [ + .v5 + ] + +) diff --git a/Source/Toucan-Info.plist b/Sources/Toucan-Info.plist similarity index 100% rename from Source/Toucan-Info.plist rename to Sources/Toucan-Info.plist diff --git a/Source/Toucan.h b/Sources/Toucan.h similarity index 100% rename from Source/Toucan.h rename to Sources/Toucan.h diff --git a/Source/Toucan.swift b/Sources/Toucan.swift similarity index 100% rename from Source/Toucan.swift rename to Sources/Toucan.swift diff --git a/Source/tvOS/Toucan.tvOS-Info.plist b/Sources/tvOS/Toucan.tvOS-Info.plist similarity index 100% rename from Source/tvOS/Toucan.tvOS-Info.plist rename to Sources/tvOS/Toucan.tvOS-Info.plist diff --git a/Source/tvOS/ToucanTVOS.h b/Sources/tvOS/ToucanTVOS.h similarity index 100% rename from Source/tvOS/ToucanTVOS.h rename to Sources/tvOS/ToucanTVOS.h diff --git a/Toucan.podspec b/Toucan.podspec index 2932ee2..59418a8 100644 --- a/Toucan.podspec +++ b/Toucan.podspec @@ -11,7 +11,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = '8.0' s.tvos.deployment_target = '9.0' - s.source_files = 'Source/*.swift' + s.source_files = 'Sources/*.swift' s.swift_version = '4.0' s.requires_arc = true From a2c52b9ca3e38168237f06c0b601f69d8cf5430d Mon Sep 17 00:00:00 2001 From: Jan Rajtr Date: Mon, 11 May 2020 14:31:33 +0200 Subject: [PATCH 2/3] moved to Toucan folder --- Sources/{ => Toucan}/Toucan-Info.plist | 0 Sources/{ => Toucan}/Toucan.h | 0 Sources/{ => Toucan}/Toucan.swift | 0 Sources/{ => Toucan}/tvOS/Toucan.tvOS-Info.plist | 0 Sources/{ => Toucan}/tvOS/ToucanTVOS.h | 0 5 files changed, 0 insertions(+), 0 deletions(-) rename Sources/{ => Toucan}/Toucan-Info.plist (100%) rename Sources/{ => Toucan}/Toucan.h (100%) rename Sources/{ => Toucan}/Toucan.swift (100%) rename Sources/{ => Toucan}/tvOS/Toucan.tvOS-Info.plist (100%) rename Sources/{ => Toucan}/tvOS/ToucanTVOS.h (100%) diff --git a/Sources/Toucan-Info.plist b/Sources/Toucan/Toucan-Info.plist similarity index 100% rename from Sources/Toucan-Info.plist rename to Sources/Toucan/Toucan-Info.plist diff --git a/Sources/Toucan.h b/Sources/Toucan/Toucan.h similarity index 100% rename from Sources/Toucan.h rename to Sources/Toucan/Toucan.h diff --git a/Sources/Toucan.swift b/Sources/Toucan/Toucan.swift similarity index 100% rename from Sources/Toucan.swift rename to Sources/Toucan/Toucan.swift diff --git a/Sources/tvOS/Toucan.tvOS-Info.plist b/Sources/Toucan/tvOS/Toucan.tvOS-Info.plist similarity index 100% rename from Sources/tvOS/Toucan.tvOS-Info.plist rename to Sources/Toucan/tvOS/Toucan.tvOS-Info.plist diff --git a/Sources/tvOS/ToucanTVOS.h b/Sources/Toucan/tvOS/ToucanTVOS.h similarity index 100% rename from Sources/tvOS/ToucanTVOS.h rename to Sources/Toucan/tvOS/ToucanTVOS.h From ebba2ff6cc1ff20294d49624e344e7b56bba1df4 Mon Sep 17 00:00:00 2001 From: Jan Rajtr Date: Mon, 11 May 2020 14:35:31 +0200 Subject: [PATCH 3/3] - updated pod file --- Toucan.podspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Toucan.podspec b/Toucan.podspec index 59418a8..59ca14f 100644 --- a/Toucan.podspec +++ b/Toucan.podspec @@ -11,7 +11,7 @@ Pod::Spec.new do |s| s.ios.deployment_target = '8.0' s.tvos.deployment_target = '9.0' - s.source_files = 'Sources/*.swift' + s.source_files = 'Sources/Toucan/*.swift' s.swift_version = '4.0' s.requires_arc = true