Skip to content

Commit cc8896b

Browse files
author
Fabio Tacke
committed
Add SPM support
1 parent 911957e commit cc8896b

File tree

9 files changed

+42
-7
lines changed

9 files changed

+42
-7
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ playground.xcworkspace
3939
# Packages/
4040
.build/
4141

42+
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
43+
# hence it is not needed unless you have added a package configuration file to your project
44+
.swiftpm
45+
4246
# CocoaPods
4347
#
4448
# We recommend against adding the Pods directory to your .gitignore. However

Package.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// swift-tools-version:5.0
2+
import PackageDescription
3+
4+
let package = Package(
5+
name: "Shouter",
6+
platforms: [
7+
.iOS(.v8),
8+
.macOS(.v10_10)
9+
],
10+
products: [
11+
.library(name: "Shouter", targets: ["Shouter"]),
12+
],
13+
targets: [
14+
.target(name: "Shouter"),
15+
.testTarget(name: "ShouterTests", dependencies: ["Shouter"]),
16+
]
17+
)

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,12 @@ CocoaPods:
5959
pod 'Shouter'
6060
~~~
6161

62+
Swift Package Manager:
63+
64+
```swift
65+
.package(url: "https://github.com/ChaosCoder/Shouter.git", from: "0.5.0")
66+
```
67+
6268
## Acknowledgments
6369

6470
*Shouter* was inspired and partially based on the library [100mango/SwiftNotificationCenter](https://github.com/100mango/SwiftNotificationCenter). <br>

Shouter.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Pod::Spec.new do |s|
88
s.ios.deployment_target = "8.0"
99
s.osx.deployment_target = "10.9"
1010
s.source = { :git => "https://github.com/ChaosCoder/Shouter.git", :tag => s.version }
11-
s.source_files = "Shouter/*.swift"
11+
s.source_files = "Sources/Shouter/*.swift"
1212
s.swift_version = "5.0"
1313
s.requires_arc = true
1414
end

Shouter.xcodeproj/project.pbxproj

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@
5353
DB7989811CDB2C8A00419114 = {
5454
isa = PBXGroup;
5555
children = (
56-
DB79898D1CDB2C8A00419114 /* Shouter */,
57-
DB7989991CDB2C8A00419114 /* ShouterTests */,
56+
E53EAE8525A8B177002D3CB6 /* Sources */,
5857
DB79898C1CDB2C8A00419114 /* Products */,
5958
);
6059
sourceTree = "<group>";
@@ -86,6 +85,15 @@
8685
path = ShouterTests;
8786
sourceTree = "<group>";
8887
};
88+
E53EAE8525A8B177002D3CB6 /* Sources */ = {
89+
isa = PBXGroup;
90+
children = (
91+
DB79898D1CDB2C8A00419114 /* Shouter */,
92+
DB7989991CDB2C8A00419114 /* ShouterTests */,
93+
);
94+
path = Sources;
95+
sourceTree = "<group>";
96+
};
8997
/* End PBXGroup section */
9098

9199
/* Begin PBXHeadersBuildPhase section */
@@ -341,7 +349,7 @@
341349
DYLIB_COMPATIBILITY_VERSION = 1;
342350
DYLIB_CURRENT_VERSION = 1;
343351
DYLIB_INSTALL_NAME_BASE = "@rpath";
344-
INFOPLIST_FILE = Shouter/Info.plist;
352+
INFOPLIST_FILE = Sources/Shouter/Info.plist;
345353
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
346354
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
347355
MARKETING_VERSION = 0.4.0;
@@ -363,7 +371,7 @@
363371
DYLIB_COMPATIBILITY_VERSION = 1;
364372
DYLIB_CURRENT_VERSION = 1;
365373
DYLIB_INSTALL_NAME_BASE = "@rpath";
366-
INFOPLIST_FILE = Shouter/Info.plist;
374+
INFOPLIST_FILE = Sources/Shouter/Info.plist;
367375
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
368376
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
369377
MARKETING_VERSION = 0.4.0;
@@ -381,7 +389,7 @@
381389
CODE_SIGN_IDENTITY = "iPhone Developer";
382390
CODE_SIGN_STYLE = Manual;
383391
DEVELOPMENT_TEAM = "";
384-
INFOPLIST_FILE = ShouterTests/Info.plist;
392+
INFOPLIST_FILE = Sources/ShouterTests/Info.plist;
385393
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
386394
PRODUCT_BUNDLE_IDENTIFIER = de.chaosspace.ShouterTests;
387395
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -397,7 +405,7 @@
397405
CODE_SIGN_IDENTITY = "iPhone Developer";
398406
CODE_SIGN_STYLE = Manual;
399407
DEVELOPMENT_TEAM = "";
400-
INFOPLIST_FILE = ShouterTests/Info.plist;
408+
INFOPLIST_FILE = Sources/ShouterTests/Info.plist;
401409
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
402410
PRODUCT_BUNDLE_IDENTIFIER = de.chaosspace.ShouterTests;
403411
PRODUCT_NAME = "$(TARGET_NAME)";
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)