From 762eaa0bf9203111d5a991a02aec4c9b697a238f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCller?= Date: Thu, 18 Jan 2024 14:55:06 +0100 Subject: [PATCH] Adds SPM support --- PDTSimpleCalendar.podspec | 1 + PDTSimpleCalendar/include/PDTSimpleCalendar.h | 10 +++++++ Package.swift | 29 +++++++++++++++++++ 3 files changed, 40 insertions(+) create mode 100644 PDTSimpleCalendar/include/PDTSimpleCalendar.h create mode 100644 Package.swift diff --git a/PDTSimpleCalendar.podspec b/PDTSimpleCalendar.podspec index 0388e58..28ae9a8 100644 --- a/PDTSimpleCalendar.podspec +++ b/PDTSimpleCalendar.podspec @@ -16,6 +16,7 @@ Pod::Spec.new do |s| s.platform = :ios, '6.0' s.source = { :git => "https://github.com/jivesoftware/PDTSimpleCalendar.git", :tag => s.version.to_s } s.source_files = 'PDTSimpleCalendar/**/*.{h,m}' + s.exclude_files = ['PDTSimpleCalendar/include/**'] s.requires_arc = true end diff --git a/PDTSimpleCalendar/include/PDTSimpleCalendar.h b/PDTSimpleCalendar/include/PDTSimpleCalendar.h new file mode 100644 index 0000000..9350deb --- /dev/null +++ b/PDTSimpleCalendar/include/PDTSimpleCalendar.h @@ -0,0 +1,10 @@ +#ifndef PDTSimpleCalendar_H +#define PDTSimpleCalendar_H + +#import "../PDTSimpleCalendarViewController.h" +#import "../PDTSimpleCalendarViewHeader.h" +#import "../PDTSimpleCalendarViewCell.h" +#import "../PDTSimpleCalendarViewFlowLayout.h" +#import "../PDTSimpleCalendarViewWeekdayHeader.h" + +#endif /* PDTSimpleCalendar_H */ diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..a499d5a --- /dev/null +++ b/Package.swift @@ -0,0 +1,29 @@ +// swift-tools-version: 5.4 + +import PackageDescription + +let package = Package( + name: "PDTSimpleCalendar", + platforms: [.iOS(.v12)], + products: [ + .library( + name: "PDTSimpleCalendar", + targets: ["PDTSimpleCalendar"] + ), + ], + targets: [ + .target( + name: "PDTSimpleCalendar", + path: "PDTSimpleCalendar", + exclude: ["Info.plist", "PDTSimpleCalendar.h"], + sources: [ + "PDTSimpleCalendarViewCell.m", + "PDTSimpleCalendarViewController.m", + "PDTSimpleCalendarViewFlowLayout.m", + "PDTSimpleCalendarViewHeader.m", + "PDTSimpleCalendarViewWeekdayHeader.m" + ], + publicHeadersPath: "include" + ), + ] +)