Skip to content

Commit 3a5fd9f

Browse files
committed
[#6] Add cocoapods support
1 parent 7be29ab commit 3a5fd9f

File tree

17 files changed

+28
-7
lines changed

17 files changed

+28
-7
lines changed

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

JSONAPIMapper.podspec

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = 'JSONAPIMapper'
3+
spec.summary = 'An iOS library supports mapping json data'
4+
spec.version = '1.1.0'
5+
spec.license = { :type => 'MIT' }
6+
spec.homepage = 'https://github.com/nimblehq/JSONMapper'
7+
spec.authors = { 'Nimble' => 'dev@nimblehq.co' }
8+
spec.source = { :git => 'https://github.com/nimblehq/JSONMapper.git', :tag => spec.version.to_s }
9+
spec.source_files = 'Sources/**/*.swift'
10+
spec.ios.deployment_target = '8.0'
11+
spec.osx.deployment_target = '10.11'
12+
spec.tvos.deployment_target = '10.0'
13+
spec.swift_versions = '5.3'
14+
end

Package.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "JSONMapper",
7+
name: "JSONAPIMapper",
88
products: [
99
// Products define the executables and libraries a package produces, and make them visible to other packages.
1010
.library(
11-
name: "JSONMapper",
12-
targets: ["JSONMapper"]),
11+
name: "JSONAPIMapper",
12+
targets: ["JSONAPIMapper"]),
1313
],
1414
dependencies: [
1515
// Dependencies declare other packages that this package depends on.
@@ -19,10 +19,10 @@ let package = Package(
1919
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
2020
// Targets can depend on other targets in this package, and on products in packages this package depends on.
2121
.target(
22-
name: "JSONMapper",
22+
name: "JSONAPIMapper",
2323
dependencies: []),
2424
.testTarget(
25-
name: "JSONMapperTests",
26-
dependencies: ["JSONMapper"]),
25+
name: "JSONAPIMapperTests",
26+
dependencies: ["JSONAPIMapper"]),
2727
]
2828
)
File renamed without changes.

0 commit comments

Comments
 (0)