Skip to content

Commit

Permalink
Merge branch 'release/1.2.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
KWANG HYOUN KIM committed Jan 23, 2019
2 parents 0bcb603 + 940f866 commit a423110
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,24 +100,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
### Implement your payload model
```swift
import APNSUtil
import ObjectMapper

extension RemoteNotificationElement {
typealias T = APNSPayload
}

struct APNSPayload: Mappable {
struct APNSPayload: Decodable {
var msg: String?
var id: String?

init?(map: Map) {
mapping(map: map)
}

mutating func mapping(map: Map) {
msg <- map["msg"]
id <- map["id"]
}
}
```

Expand All @@ -141,12 +131,12 @@ platform :ios, '9.0'

# Default
target '<Your Target Name>' do
pod 'APNSUtil', '~> 1.1.5'
pod 'APNSUtil', '~> 1.2.0'
end

# for AppExtension
target '<Your Target Name>' do
pod 'APNSUtil/AppExtension', '~> 1.1.5'
pod 'APNSUtil/AppExtension', '~> 1.2.0'
end
```

Expand All @@ -170,7 +160,7 @@ $ brew install carthage
To integrate Alamofire into your Xcode project using Carthage, specify it in your `Cartfile`:

```ogdl
github "pisces/APNSUtil" ~> 1.1.5
github "pisces/APNSUtil" ~> 1.2.0
```

Run `carthage update` to build the framework and drag the built `APNSUtil.framework` into your Xcode project.
Expand Down

0 comments on commit a423110

Please sign in to comment.