From 940f86607dbdbe98735f0f814ae1772575db9a47 Mon Sep 17 00:00:00 2001 From: KWANG HYOUN KIM Date: Wed, 23 Jan 2019 19:06:05 +0900 Subject: [PATCH] Update README. --- README.md | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index ee91212..2281f30 100644 --- a/README.md +++ b/README.md @@ -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"] - } } ``` @@ -141,12 +131,12 @@ platform :ios, '9.0' # Default target '' do - pod 'APNSUtil', '~> 1.1.5' + pod 'APNSUtil', '~> 1.2.0' end # for AppExtension target '' do - pod 'APNSUtil/AppExtension', '~> 1.1.5' + pod 'APNSUtil/AppExtension', '~> 1.2.0' end ``` @@ -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.