Skip to content

Commit 54776be

Browse files
authored
Merge pull request #7 from nimblehq/feature/6-add-cocoapods-support
2 parents 7be29ab + 5d6830e commit 54776be

19 files changed

+40
-12
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: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Pod::Spec.new do |spec|
2+
spec.name = 'JSONAPIMapper'
3+
spec.summary = 'A Swift library for 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 = '9.0'
11+
spec.osx.deployment_target = '10.9'
12+
spec.swift_versions = '5.3'
13+
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
)

README.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# JSONMapper
1+
# JSONAPIMapper
22

33
An iOS library supports mapping json data
44

@@ -12,10 +12,18 @@ Once you have your Swift package set up, adding Alamofire as a dependency is as
1212

1313
```swift
1414
dependencies: [
15-
.package(url: "https://github.com/nimblehq/JSONMapper.git", .upToNextMajor(from: "1.0.2"))
15+
.package(url: "https://github.com/nimblehq/JSONMapper.git", .upToNextMajor(from: "1.1.0"))
1616
]
1717
```
1818

19+
### Cocoapods
20+
21+
JSONAPIMapper can be added to your project using CocoaPods 0.36 or later by adding the following line to your Podfile:
22+
23+
```ruby
24+
pod 'JSONAPIMapper', '~> 1.1' (check releases to make sure this is the latest version)
25+
```
26+
1927
## License
2028

2129
This project is Copyright (c) 2014 and onwards. It is free software,
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import XCTest
2+
@testable import JSONAPIMapper
3+
4+
final class JSONAPIMapperTests: XCTestCase {}

Tests/JSONMapperTests/JSONMapperTests.swift

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)