diff --git a/.gitignore b/.gitignore index 5010c796..f02f3025 100644 --- a/.gitignore +++ b/.gitignore @@ -17,4 +17,8 @@ profile *.moved-aside DerivedData .xcconfig -ExampleProject/Pods/ \ No newline at end of file +ExampleProject/Pods/ + +# SPM +.build +.swiftpm \ No newline at end of file diff --git a/JDStatusBarNotification/JDStatusBarNotification.h b/JDStatusBarNotification/Public/JDStatusBarNotification.h similarity index 100% rename from JDStatusBarNotification/JDStatusBarNotification.h rename to JDStatusBarNotification/Public/JDStatusBarNotification.h diff --git a/JDStatusBarNotification/JDStatusBarNotificationPresenter.h b/JDStatusBarNotification/Public/JDStatusBarNotificationPresenter.h similarity index 100% rename from JDStatusBarNotification/JDStatusBarNotificationPresenter.h rename to JDStatusBarNotification/Public/JDStatusBarNotificationPresenter.h diff --git a/JDStatusBarNotification/JDStatusBarNotificationPresenter.m b/JDStatusBarNotification/Public/JDStatusBarNotificationPresenter.m similarity index 100% rename from JDStatusBarNotification/JDStatusBarNotificationPresenter.m rename to JDStatusBarNotification/Public/JDStatusBarNotificationPresenter.m diff --git a/JDStatusBarNotification/JDStatusBarPrepareStyleBlock.h b/JDStatusBarNotification/Public/JDStatusBarPrepareStyleBlock.h similarity index 100% rename from JDStatusBarNotification/JDStatusBarPrepareStyleBlock.h rename to JDStatusBarNotification/Public/JDStatusBarPrepareStyleBlock.h diff --git a/JDStatusBarNotification/JDStatusBarStyle.h b/JDStatusBarNotification/Public/JDStatusBarStyle.h similarity index 100% rename from JDStatusBarNotification/JDStatusBarStyle.h rename to JDStatusBarNotification/Public/JDStatusBarStyle.h diff --git a/JDStatusBarNotification/JDStatusBarStyle.m b/JDStatusBarNotification/Public/JDStatusBarStyle.m similarity index 100% rename from JDStatusBarNotification/JDStatusBarStyle.m rename to JDStatusBarNotification/Public/JDStatusBarStyle.m diff --git a/Package.swift b/Package.swift new file mode 100644 index 00000000..09e84be2 --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version: 5.6 +// (minimum version of Swift required to build this package) + +import PackageDescription + +let package = Package( + name: "JDStatusBarNotification", + platforms: [ + .iOS(.v13) + ], + products: [ + .library( + name: "JDStatusBarNotification", + targets: ["JDStatusBarNotification"]), + ], + targets: [ + .target( + name: "JDStatusBarNotification", + dependencies: [], + path: ".", + exclude: ["ExampleProject/"], + sources: ["JDStatusBarNotification/"], + publicHeadersPath: "JDStatusBarNotification/Public/", + cSettings: [ + .headerSearchPath("**"), + ]), + ] +)