├── .swift-version ├── JSONFeed.xcodeproj ├── project.xcworkspace │ └── contents.xcworkspacedata ├── xcshareddata │ └── xcschemes │ │ └── JSONFeed.xcscheme └── project.pbxproj ├── .travis.yml ├── Classes ├── URL+Json.swift ├── JSONFeedHub.swift ├── JSONFeedAuthor.swift ├── JSONFeed+Equatable.swift ├── JSONFeedAttachment.swift ├── JSONFeedSpecV1Keys.swift ├── JSONFeedItem.swift └── JSONFeed.swift ├── JSONFeed ├── JSONFeed.h └── Info.plist ├── JSONFeedTests ├── jsonfeed_org.json ├── Info.plist ├── jsonfeed_org_microblog.json ├── jsonfeed_org_podcast.json └── JSONFeedTests.swift ├── CHANGELOG.md ├── LICENSE ├── .gitignore ├── README.md └── JSONFeed.podspec /.swift-version: -------------------------------------------------------------------------------- 1 | 3.0 2 | -------------------------------------------------------------------------------- /JSONFeed.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | osx_image: xcode8.3 3 | xcode_project: JSONFeed.xcodeproj 4 | xcode_scheme: JSONFeed 5 | xcode_sdk: iphonesimulator10.0 6 | script: xcodebuild clean && xcodebuild build -project JSONFeed.xcodeproj -scheme JSONFeed -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone SE,OS=10.0' test | xcpretty --test --color 7 | -------------------------------------------------------------------------------- /Classes/URL+Json.swift: -------------------------------------------------------------------------------- 1 | // 2 | // URL+Json.swift 3 | // JSONFeed 4 | // 5 | // Created by Toto Tvalavadze on 2017/05/18. 6 | // Copyright © 2017 Toto Tvalavadze. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | // I'm not super happy with this, more elegant solution would be nicer. 12 | extension URL { 13 | init?(for key: String, inJson json: JsonDictionary) { 14 | guard let urlString = json[key] as? String else { return nil } 15 | self.init(string: urlString) 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /JSONFeed/JSONFeed.h: -------------------------------------------------------------------------------- 1 | // 2 | // JSONFeed.h 3 | // JSONFeed 4 | // 5 | // Created by Toto Tvalavadze on 2017/05/18. 6 | // Copyright © 2017 Toto Tvalavadze. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | //! Project version number for JSONFeed. 12 | FOUNDATION_EXPORT double JSONFeedVersionNumber; 13 | 14 | //! Project version string for JSONFeed. 15 | FOUNDATION_EXPORT const unsigned char JSONFeedVersionString[]; 16 | 17 | // In this header, you should import all the public headers of your framework using statements like #import 18 | 19 | 20 | -------------------------------------------------------------------------------- /JSONFeedTests/jsonfeed_org.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "https://jsonfeed.org/version/1", 3 | "title": "My Example Feed", 4 | "home_page_url": "https://example.org/", 5 | "feed_url": "https://example.org/feed.json", 6 | "items": 7 | [ 8 | { 9 | "id": "2", 10 | "content_text": "This is a second item.", 11 | "url": "https://example.org/second-item" 12 | }, 13 | { 14 | "id": "1", 15 | "content_html": "

Hello, world!

", 16 | "url": "https://example.org/initial-post" 17 | } 18 | ] 19 | } 20 | -------------------------------------------------------------------------------- /Classes/JSONFeedHub.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JSONFeedHub.swift 3 | // JSONFeed 4 | // 5 | // Created by Toto Tvalavadze on 2017/05/18. 6 | // Copyright © 2017 Toto Tvalavadze. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public struct JSONFeedHub { 12 | public let type: String 13 | public let url: URL 14 | 15 | // MARK: - Parsing 16 | 17 | internal init?(json: JsonDictionary) { 18 | let keys = JSONFeedSpecV1Keys.Hub.self 19 | 20 | guard 21 | let url = URL(for: keys.url, inJson: json), 22 | let type = json[keys.type] as? String 23 | else { return nil } 24 | 25 | self.url = url 26 | self.type = type 27 | } 28 | 29 | } 30 | -------------------------------------------------------------------------------- /JSONFeedTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /JSONFeedTests/jsonfeed_org_microblog.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "https://jsonfeed.org/version/1", 3 | "user_comment": "This is a microblog feed. You can add this to your feed reader using the following URL: https://example.org/feed.json", 4 | "title": "Brent Simmons’s Microblog", 5 | "home_page_url": "https://example.org/", 6 | "feed_url": "https://example.org/feed.json", 7 | "author": 8 | { 9 | "name": "Brent Simmons", 10 | "url": "http://example.org/", 11 | "avatar": "https://example.org/avatar.png" 12 | }, 13 | "items": 14 | [ 15 | { 16 | "id": "2347259", 17 | "url": "https://example.org/2347259", 18 | "content_text": "Cats are neat. \n\nhttps://example.org/cats", 19 | "date_published": "2016-02-09T14:22:00-07:00" 20 | } 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /JSONFeed/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 0.8.4 19 | CFBundleVersion 20 | $(CURRENT_PROJECT_VERSION) 21 | NSPrincipalClass 22 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # Change Log 2 | 3 | ## [0.8.3](https://github.com/totocaster/JSONFeed/tree/0.8.3) (2017-05-21) 4 | [Full Changelog](https://github.com/totocaster/JSONFeed/compare/0.8.2...0.8.3) 5 | 6 | **Merged pull requests:** 7 | 8 | - fix spelling, grammar, and formatting [\#1](https://github.com/totocaster/JSONFeed/pull/1) ([joshuatbrown](https://github.com/joshuatbrown)) 9 | 10 | ## [0.8.2](https://github.com/totocaster/JSONFeed/tree/0.8.2) (2017-05-20) 11 | [Full Changelog](https://github.com/totocaster/JSONFeed/compare/0.8.1...0.8.2) 12 | 13 | ## [0.8.1](https://github.com/totocaster/JSONFeed/tree/0.8.1) (2017-05-18) 14 | [Full Changelog](https://github.com/totocaster/JSONFeed/compare/0.8.0...0.8.1) 15 | 16 | ## [0.8.0](https://github.com/totocaster/JSONFeed/tree/0.8.0) (2017-05-18) 17 | 18 | 19 | \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)* -------------------------------------------------------------------------------- /Classes/JSONFeedAuthor.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JSONFeedAuthor.swift 3 | // JSONFeed 4 | // 5 | // Created by Toto Tvalavadze on 2017/05/18. 6 | // Copyright © 2017 Toto Tvalavadze. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public struct JSONFeedAuthor { 12 | 13 | /// The author’s name 14 | public let name: String? 15 | 16 | /// URL of a site owned by the author. It could be a blog, micro-blog, Twitter account, and so on. 17 | public let url: URL? 18 | 19 | /// URL for an image for the author. As with `icon`, it should be square and relatively large. 20 | public let avatar: URL? 21 | 22 | 23 | // MARK: - Parsing 24 | 25 | internal init(json: JsonDictionary) { 26 | let keys = JSONFeedSpecV1Keys.Author.self 27 | 28 | self.name = json[keys.name] as? String 29 | self.url = URL(for: keys.url, inJson: json) 30 | self.avatar = URL(for: keys.avatar, inJson: json) 31 | 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2017 Toto Tvalavadze 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /Classes/JSONFeed+Equatable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JSONFeed+Equatable.swift 3 | // JSONFeed 4 | // 5 | // Created by Toto Tvalavadze on 2017/05/21. 6 | // Copyright © 2017 Toto Tvalavadze. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | extension JSONFeedItem: Equatable { 12 | public static func ==(_ lhs: JSONFeedItem, _ rhs: JSONFeedItem) -> Bool { 13 | return lhs.id == rhs.id 14 | && lhs.attachments == rhs.attachments 15 | && lhs.author == rhs.author 16 | && lhs.bannerImage == rhs.bannerImage 17 | && lhs.contentHtml == rhs.contentHtml 18 | && lhs.contentText == rhs.contentText 19 | && lhs.date == rhs.date 20 | && lhs.dateModified == rhs.dateModified 21 | && lhs.externalUrl == rhs.externalUrl 22 | && lhs.image == rhs.image 23 | && lhs.summary == rhs.summary 24 | && lhs.tags == rhs.tags 25 | && lhs.title == rhs.title 26 | && lhs.url == rhs.url 27 | } 28 | } 29 | 30 | extension JSONFeedAttachment: Equatable { 31 | public static func ==(_ lhs: JSONFeedAttachment, _ rhs: JSONFeedAttachment) -> Bool { 32 | return lhs.url == rhs.url 33 | && lhs.mimeType == rhs.mimeType 34 | && lhs.duration == rhs.duration 35 | && lhs.size == rhs.size 36 | && lhs.title == rhs.title 37 | } 38 | } 39 | 40 | extension JSONFeedAuthor: Equatable { 41 | public static func ==(_ lhs: JSONFeedAuthor, _ rhs: JSONFeedAuthor) -> Bool { 42 | return lhs.name == rhs.name 43 | && lhs.avatar == rhs.avatar 44 | && lhs.url == rhs.url 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | # gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore 4 | 5 | ## Build generated 6 | build/ 7 | DerivedData/ 8 | 9 | ## Various settings 10 | *.pbxuser 11 | !default.pbxuser 12 | *.mode1v3 13 | !default.mode1v3 14 | *.mode2v3 15 | !default.mode2v3 16 | *.perspectivev3 17 | !default.perspectivev3 18 | xcuserdata/ 19 | 20 | ## Other 21 | *.moved-aside 22 | *.xccheckout 23 | *.xcscmblueprint 24 | .DS_Store 25 | 26 | ## Obj-C/Swift specific 27 | *.hmap 28 | *.ipa 29 | *.dSYM.zip 30 | *.dSYM 31 | 32 | ## Playgrounds 33 | timeline.xctimeline 34 | playground.xcworkspace 35 | 36 | # Swift Package Manager 37 | # 38 | # Add this line if you want to avoid checking in source code from Swift Package Manager dependencies. 39 | # Packages/ 40 | # Package.pins 41 | .build/ 42 | 43 | # CocoaPods 44 | # 45 | # We recommend against adding the Pods directory to your .gitignore. However 46 | # you should judge for yourself, the pros and cons are mentioned at: 47 | # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control 48 | # 49 | # Pods/ 50 | 51 | # Carthage 52 | # 53 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 54 | # Carthage/Checkouts 55 | 56 | Carthage/Build 57 | 58 | # fastlane 59 | # 60 | # It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the 61 | # screenshots whenever they are needed. 62 | # For more information about the recommended setup visit: 63 | # https://docs.fastlane.tools/best-practices/source-control/#source-control 64 | 65 | fastlane/report.xml 66 | fastlane/Preview.html 67 | fastlane/screenshots 68 | fastlane/test_output 69 | -------------------------------------------------------------------------------- /Classes/JSONFeedAttachment.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JSONFeedAttachment.swift 3 | // JSONFeed 4 | // 5 | // Created by Toto Tvalavadze on 2017/05/18. 6 | // Copyright © 2017 Toto Tvalavadze. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public struct JSONFeedAttachment { 12 | 13 | /// Specifies the location of the attachment. 14 | public let url: URL 15 | 16 | /// Specifies the type of the attachment, such as `audio/mpeg`. 17 | public let mimeType: String 18 | 19 | /// name for the attachment. 20 | /// - important: if there are multiple attachments, and two or more have the exact same title (when title is present), then they are considered as alternate representations of the same thing. In this way a podcaster, for instance, might provide an audio recording in different formats. 21 | public let title: String? 22 | 23 | /// Specifies how large the file is in *bytes*. 24 | public let size: UInt64? 25 | 26 | /// Specifies how long the attachment takes to listen to or watch in *seconds*. 27 | public let duration: UInt? 28 | 29 | 30 | // MARK: - Parsing 31 | 32 | internal init?(json: JsonDictionary) { 33 | let keys = JSONFeedSpecV1Keys.Attachment.self 34 | 35 | guard 36 | let url = URL(for: keys.url, inJson: json), 37 | let mimeType = json[keys.mimeType] as? String 38 | else { return nil } // items without id will be discarded, per spec 39 | 40 | self.url = url 41 | self.mimeType = mimeType 42 | 43 | self.title = json[keys.title] as? String 44 | self.duration = json[keys.durationSeconds] as? UInt 45 | self.size = json[keys.sizeBytes] as? UInt64 46 | 47 | } 48 | 49 | } 50 | -------------------------------------------------------------------------------- /JSONFeedTests/jsonfeed_org_podcast.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "https://jsonfeed.org/version/1", 3 | "user_comment": "This is a podcast feed. You can add this feed to your podcast client using the following URL: http://therecord.co/feed.json", 4 | "title": "The Record", 5 | "home_page_url": "http://therecord.co/", 6 | "feed_url": "http://therecord.co/feed.json", 7 | "items": 8 | [ 9 | { 10 | "id": "http://therecord.co/chris-parrish", 11 | "title": "Special #1 - Chris Parrish", 12 | "url": "http://therecord.co/chris-parrish", 13 | "content_text": "Chris has worked at Adobe and as a founder of Rogue Sheep, which won an Apple Design Award for Postage. Chris’s new company is Aged & Distilled with Guy English — which shipped Napkin, a Mac app for visual collaboration. Chris is also the co-host of The Record. He lives on Bainbridge Island, a quick ferry ride from Seattle.", 14 | "content_html": "Chris has worked at Adobe and as a founder of Rogue Sheep, which won an Apple Design Award for Postage. Chris’s new company is Aged & Distilled with Guy English — which shipped Napkin, a Mac app for visual collaboration. Chris is also the co-host of The Record. He lives on Bainbridge Island, a quick ferry ride from Seattle.", 15 | "summary": "Brent interviews Chris Parrish, co-host of The Record and one-half of Aged & Distilled.", 16 | "date_published": "2014-05-09T14:04:00-07:00", 17 | "attachments": 18 | [ 19 | { 20 | "url": "http://therecord.co/downloads/The-Record-sp1e1-ChrisParrish.m4a", 21 | "mime_type": "audio/x-m4a", 22 | "size_in_bytes": 89970236, 23 | "duration_in_seconds": 6629 24 | } 25 | ] 26 | } 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /Classes/JSONFeedSpecV1Keys.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JSONFeedSpecV1Keys.swift 3 | // JSONFeed 4 | // 5 | // Created by Toto Tvalavadze on 2017/05/18. 6 | // Copyright © 2017 Toto Tvalavadze. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | internal enum JSONFeedSpecV1Keys { 12 | enum Top { 13 | static let version = "version" 14 | static let title = "title" 15 | static let homePageUrl = "home_page_url" 16 | static let feedUrl = "feed_url" 17 | static let description = "description" 18 | static let userComment = "user_comment" 19 | static let nextUrl = "next_url" 20 | static let icon = "icon" 21 | static let favicon = "favicon" 22 | static let author = "author" 23 | static let expired = "expired" 24 | static let hubs = "hubs" 25 | static let items = "items" 26 | } 27 | 28 | enum Author { 29 | static let name = "name" 30 | static let url = "url" 31 | static let avatar = "avatar" 32 | } 33 | 34 | enum Item { 35 | static let id = "id" 36 | static let url = "url" 37 | static let externalUrl = "external_url" 38 | static let title = "title" 39 | static let contentHtml = "content_html" 40 | static let contentText = "content_text" 41 | static let summary = "summary" 42 | static let image = "image" 43 | static let bannerImage = "banner_image" 44 | static let datePublished = "date_published" 45 | static let dateModified = "date_modified" 46 | static let author = "author" 47 | static let tags = "tags" 48 | static let attachments = "attachments" 49 | } 50 | 51 | enum Attachment { 52 | static let url = "url" 53 | static let mimeType = "mime_type" 54 | static let title = "title" 55 | static let sizeBytes = "size_in_bytes" 56 | static let durationSeconds = "duration_in_seconds" 57 | } 58 | 59 | enum Hub { 60 | static let type = "type" 61 | static let url = "url" 62 | } 63 | } 64 | -------------------------------------------------------------------------------- /JSONFeedTests/JSONFeedTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JSONFeedTests.swift 3 | // JSONFeedTests 4 | // 5 | // Created by Toto Tvalavadze on 2017/05/18. 6 | // Copyright © 2017 Toto Tvalavadze. All rights reserved. 7 | // 8 | 9 | import XCTest 10 | @testable import JSONFeed 11 | 12 | class JSONFeedTests: XCTestCase { 13 | 14 | var jsonfeedOrg: Data! = nil 15 | var jsonfeedOrgPodcast: Data! = nil 16 | var jsonfeedOrgMicroblog: Data! = nil 17 | 18 | override func setUp() { 19 | super.setUp() 20 | 21 | let bundle = Bundle(for: type(of: self)) 22 | 23 | jsonfeedOrg = NSData(contentsOfFile: bundle.path(forResource: "jsonfeed_org", ofType: "json")!)! as Data 24 | jsonfeedOrgPodcast = NSData(contentsOfFile: bundle.path(forResource: "jsonfeed_org_podcast", ofType: "json")!)! as Data 25 | jsonfeedOrgMicroblog = NSData(contentsOfFile: bundle.path(forResource: "jsonfeed_org_microblog", ofType: "json")!)! as Data 26 | 27 | } 28 | 29 | override func tearDown() { 30 | // Put teardown code here. This method is called after the invocation of each test method in the class. 31 | super.tearDown() 32 | } 33 | 34 | func testParseJsonFeedOrg() { 35 | let feed = try! JSONFeed(data: jsonfeedOrg) 36 | 37 | XCTAssert(feed.title == "My Example Feed") 38 | XCTAssert(feed.homePage == URL(string: "https://example.org/")) 39 | XCTAssert(feed.items.count == 2) 40 | 41 | let first = feed.items.first! 42 | XCTAssert(first.contentText == "This is a second item.") 43 | XCTAssert(first.url == URL(string: "https://example.org/second-item")) 44 | XCTAssert(first.id == "2") 45 | 46 | } 47 | 48 | func testParseJsonFeedOrgPodcast() { 49 | let feed = try! JSONFeed(data: jsonfeedOrgPodcast) 50 | 51 | XCTAssert(feed.items.count == 1) 52 | 53 | let first = feed.items.first! 54 | XCTAssert(first.contentHtml == "Chris has worked at Adobe and as a founder of Rogue Sheep, which won an Apple Design Award for Postage. Chris’s new company is Aged & Distilled with Guy English — which shipped Napkin, a Mac app for visual collaboration. Chris is also the co-host of The Record. He lives on Bainbridge Island, a quick ferry ride from Seattle.") 55 | XCTAssert(first.url == URL(string: "http://therecord.co/chris-parrish")) 56 | XCTAssert(first.id == "http://therecord.co/chris-parrish") 57 | XCTAssert(first.attachments.count == 1) 58 | 59 | let attach = first.attachments.first! 60 | XCTAssert(attach.mimeType == "audio/x-m4a") 61 | XCTAssert(attach.url == URL(string: "http://therecord.co/downloads/The-Record-sp1e1-ChrisParrish.m4a")) 62 | XCTAssert(attach.size == 89970236) 63 | XCTAssert(attach.duration == 6629) 64 | 65 | } 66 | 67 | func testParseJsonFeedOrgMicroblog() { 68 | let feed = try! JSONFeed(data: jsonfeedOrgMicroblog) 69 | 70 | XCTAssertNotNil(feed.author, "Microblog sample has author") 71 | 72 | let author = feed.author! 73 | XCTAssert(author.name == "Brent Simmons") 74 | XCTAssert(author.url == URL(string: "http://example.org/")) 75 | XCTAssert(author.avatar == URL(string: "https://example.org/avatar.png")) 76 | 77 | 78 | } 79 | } 80 | -------------------------------------------------------------------------------- /JSONFeed.xcodeproj/xcshareddata/xcschemes/JSONFeed.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 33 | 39 | 40 | 41 | 42 | 43 | 49 | 50 | 51 | 52 | 53 | 54 | 64 | 65 | 71 | 72 | 73 | 74 | 75 | 76 | 82 | 83 | 89 | 90 | 91 | 92 | 94 | 95 | 98 | 99 | 100 | -------------------------------------------------------------------------------- /Classes/JSONFeedItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JSONFeedItem.swift 3 | // JSONFeed 4 | // 5 | // Created by Toto Tvalavadze on 2017/05/18. 6 | // Copyright © 2017 Toto Tvalavadze. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public struct JSONFeedItem { 12 | 13 | /// Unique for that item for that feed over time. If an item is ever updated, the id should be unchanged. 14 | public let id: String 15 | 16 | /// URL of the resource described by the item. It’s the permalink. This may be the same as the `id`. 17 | public let url: URL? 18 | 19 | /// URL of a page elsewhere. This is especially useful for linkblogs. If `url` links to where you’re talking about a thing, then `externalUrl` links to the thing you’re talking about. 20 | public let externalUrl: URL? 21 | 22 | /// Plain text title of item. Microblog items in particular may omit titles. 23 | public let title: String? 24 | 25 | /// This is the plain text of the item. A Twitter-like service might use it. 26 | public let contentText: String? 27 | 28 | /// A Twitter-like service might use `contentText`, while a blog might use `contentHtml`. Use whichever makes sense for your resource. 29 | public let contentHtml: String? 30 | 31 | /// lain text sentence or two describing the item. This might be presented in a timeline, for instance, where a detail view would display all of `contentHtml` or `contentText`. 32 | public let summary: String? 33 | 34 | /// URL of the main image for the item. 35 | public let image: URL? 36 | 37 | /// URL of an image to use as a banner. Some blogging systems (such as Medium) display a different banner image chosen to go with each post, but that image wouldn’t otherwise appear in the `contentHtml`. 38 | public let bannerImage: URL? 39 | 40 | /// Date item was published.`contentHtml` 41 | /// - warning: If formating was wrong from publisher's side, date of parsing is set. 42 | public let date: Date 43 | 44 | /// Specifies the modification date.Date 45 | /// - warning: If formating was wrong from publisher's side, date of parsing is set. 46 | public let dateModified: Date? 47 | 48 | /// Specifies the feed author. The author object has several members, see `JSONFeedAuthor`. 49 | public let author: JSONFeedAuthor? 50 | 51 | /// Tags tend to be just one word, but they may be anything. 52 | /// - note: they are not the equivalent of Twitter hashtags. Some blogging systems and other feed formats call these categories. 53 | public let tags: [String] = [] 54 | 55 | // Lists related resources. Podcasts, for instance, would include an attachment that’s an audio or video file. See `JSONFeedAttachment`. 56 | public let attachments: [JSONFeedAttachment] 57 | 58 | 59 | // MARK: - Parsing 60 | 61 | internal init?(json: JsonDictionary) { 62 | let keys = JSONFeedSpecV1Keys.Item.self 63 | 64 | guard let id = json[keys.id] as? String else { return nil } // items without id will be discarded, per spec 65 | self.id = id 66 | 67 | let contentText = json[keys.contentText] as? String 68 | let contentHtml = json[keys.contentHtml] as? String 69 | 70 | if contentHtml == nil && contentText == nil { 71 | return nil 72 | } else { 73 | self.contentHtml = contentHtml 74 | self.contentText = contentText 75 | } 76 | 77 | self.url = URL(for: keys.url, inJson: json) 78 | self.externalUrl = URL(for: keys.externalUrl, inJson: json) 79 | self.title = json[keys.title] as? String 80 | self.summary = json[keys.summary] as? String 81 | self.image = URL(for: keys.image, inJson: json) 82 | self.bannerImage = URL(for: keys.bannerImage, inJson: json) 83 | 84 | if let dateString = json[keys.datePublished] as? String, let date = ISO8601DateFormatter().date(from: dateString) { 85 | self.date = date 86 | } else { 87 | self.date = Date() // per spec 88 | } 89 | 90 | if let dateModifiedString = json[keys.dateModified] as? String, let dateModified = ISO8601DateFormatter().date(from: dateModifiedString) { 91 | self.dateModified = dateModified 92 | } else { 93 | self.dateModified = nil 94 | } 95 | 96 | if let authorJson = json[keys.author] as? JsonDictionary { 97 | self.author = JSONFeedAuthor(json: authorJson) 98 | } else { 99 | self.author = nil 100 | } 101 | 102 | if let attachmentsJson = json[keys.attachments] as? [JsonDictionary] { 103 | self.attachments = attachmentsJson.flatMap(JSONFeedAttachment.init) 104 | } else { 105 | self.attachments = [] 106 | } 107 | 108 | } 109 | 110 | } 111 | -------------------------------------------------------------------------------- /Classes/JSONFeed.swift: -------------------------------------------------------------------------------- 1 | // 2 | // JSONFeed.swift 3 | // JSONFeed 4 | // 5 | // Created by Toto Tvalavadze on 2017/05/18. 6 | // Copyright © 2017 Toto Tvalavadze. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /// Same as `[String: Any]` 12 | public typealias JsonDictionary = [String: Any] 13 | 14 | 15 | public enum JSONFeedError: Error { 16 | 17 | /// Data is not recognized as valid feed. 18 | case invalidFeed 19 | 20 | /// Data is not recognized as valid JSON. 21 | case invalidJson 22 | } 23 | 24 | 25 | /// Feed represenration and parsing object. 26 | public class JSONFeed { 27 | 28 | /// URL of the version of the format the feed uses. 29 | public let version: URL 30 | 31 | /// Name of the feed, which will often correspond to the name of the website (blog, for instance), though not necessarily. 32 | public let title: String 33 | 34 | /// URL of the resource that the feed describes. This resource may or may not actually be a “home” page, but it should be an HTML page. 35 | public let homePage: URL? 36 | 37 | // URL of the feed, and serves as the unique identifier for the feed. As with `homePage`, this should be considered required for feeds on the public web. 38 | public let url: URL? 39 | 40 | /// Provides more detail, beyond the `title`, on what the feed is about. A feed reader may display this text. 41 | public let feedDescription: String? 42 | 43 | /// Description of the purpose of the feed. This is for the use of people looking at the raw parsed JSON, and should be ignored by feed readers. 44 | public let comment: String? 45 | 46 | /// URL of a feed that provides the next n items, where n is determined by the publisher. This allows for pagination, but with the expectation that reader software is not required to use it and probably won’t use it very often. 47 | public let nextFeed: URL? 48 | 49 | /// URL of an image for the feed suitable to be used in a timeline, much the way an avatar might be used. It should be square and relatively large — such as 512 x 512 — so that it can be scaled-down and so that it can look good on retina displays. 50 | public let icon: URL? 51 | 52 | /// URL of an image for the feed suitable to be used in a source list. It should be square and relatively small, but not smaller than 64 x 64 (so that it can look good on retina displays). 53 | public let favicon: URL? 54 | 55 | /// Specifies the feed author. The author object has several members, see `JSONFeedAuthor`. 56 | public let author: JSONFeedAuthor? 57 | 58 | /// says whether or not the feed is finished — that is, whether or not it will ever update again. 59 | public let isExpired: Bool 60 | 61 | /// Describes endpoints that can be used to subscribe to real-time notifications from the publisher of this feed. 62 | public let hubs: [JSONFeedHub] 63 | 64 | /// Items of this feed. 65 | public let items: [JSONFeedItem] 66 | 67 | 68 | // MARK: - Parsing 69 | 70 | public init(json: JsonDictionary) throws { 71 | let keys = JSONFeedSpecV1Keys.Top.self // easier on eyes 72 | 73 | guard 74 | let version = URL(for: keys.version, inJson: json), 75 | let title = json[keys.title] as? String 76 | else { 77 | throw JSONFeedError.invalidFeed 78 | } 79 | 80 | self.version = version 81 | self.title = title 82 | 83 | self.homePage = URL(for: keys.homePageUrl, inJson: json) 84 | self.url = URL(for: keys.feedUrl, inJson: json) 85 | self.feedDescription = json[keys.description] as? String 86 | self.comment = json[keys.userComment] as? String 87 | self.nextFeed = URL(for: keys.nextUrl, inJson: json) 88 | self.icon = URL(for: keys.icon, inJson: json) 89 | self.favicon = URL(for: keys.favicon, inJson: json) 90 | self.isExpired = json[keys.expired] as? Bool ?? false // nil = false, as per spec 91 | 92 | if let authorJson = json[keys.author] as? JsonDictionary { 93 | self.author = JSONFeedAuthor(json: authorJson) 94 | } else { 95 | self.author = nil 96 | } 97 | 98 | if let hubsJson = json[keys.hubs] as? [JsonDictionary] { 99 | self.hubs = hubsJson.flatMap(JSONFeedHub.init) 100 | } else { 101 | self.hubs = [] 102 | } 103 | 104 | if let itemsJson = json[keys.items] as? [JsonDictionary] { 105 | self.items = itemsJson.flatMap(JSONFeedItem.init) 106 | } else { 107 | self.items = [] 108 | } 109 | 110 | } 111 | 112 | public convenience init(data: Data) throws { 113 | guard let jsonDict = try JSONSerialization.jsonObject(with: data, options: []) as? JsonDictionary else { throw JSONFeedError.invalidJson } 114 | try self.init(json: jsonDict) 115 | } 116 | 117 | public convenience init(jsonString: String) throws { 118 | let data = jsonString.data(using: .utf8)! 119 | try self.init(data: data) 120 | } 121 | } 122 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # JSONFeed 2 | 3 | ![Swift Version](https://img.shields.io/badge/swift-3.0-orange.svg?style=flat) 4 | ![TravisCI](https://api.travis-ci.org/totocaster/JSONFeed.svg?branch=master) 5 | [![Platform](https://img.shields.io/cocoapods/p/JSONFeed.svg?style=flat)](http://cocoapods.org/pods/JSONFeed) 6 | [![Twitter](https://img.shields.io/badge/twitter-@totocaster-blue.svg)](http://twitter.com/totocaster) 7 | 8 | Swift parser for JSON Feed — a new format similar to RSS and Atom but in JSON. For more information about this new feed format visit: https://jsonfeed.org 9 | 10 | --- 11 | 12 | ⚠️ **Contributions are more than welcome!** Here is how my todo list looks like now: 13 | 14 | - [x] Implement framework so its usable 15 | - [x] Proper in-line documentation 16 | - [x] Clear documentation in README (you are looking at it now) 17 | - [x] Add CococaPods support 18 | - [x] Add Carthage support 19 | - [ ] Add SPM support 20 | - [x] Add CHANGELOG to repository 21 | - [ ] Add much more elaborate tests 22 | - [x] Add `Equtable` for objects it makes sense 23 | - [ ] Consider adding byte and date formatter for `JSONFeedAttachment` 24 | 25 | Thanks for checking-out JSONFeed! 26 | 27 | --- 28 | 29 | ## Usage 30 | 31 | Parsing a feed is super easy; just pass data from a response when creating a feed object and that's it! Parsing happens upon initialization using `JSONSerialization` and if all goes well you'll be able to access `feed` properties. In case initialization parameters are invalid, `JSONFeed` will throw `JSONFeedError`. 32 | 33 | ```swift 34 | let feed = try? JSONFeed(data: responseData) 35 | ``` 36 | 37 | Alternatively you can create objects from a JSON string or JSON dictionary: 38 | 39 | ```swift 40 | let dictionary: [String: Any] = ["title": "..."] 41 | let feed = try? JSONFeed(json: dictionary) 42 | ``` 43 | 44 | ```swift 45 | let utf8String: String = "{'title':'..." 46 | let feed = try? JSONFeed(jsonString: utf8String) 47 | ``` 48 | --- 49 | 50 | ## Documentation 51 | 52 | Best way to learn about this library is to browse source files and inline documentation. 53 | 54 | Below is quick description of objects and their responsibilities: 55 | 56 | ### Feed and Properties in General 57 | 58 | JSONFeed mirrors [JSON Feed v1 spec][v1] defined keys almost one-to-one. Key names are "Swiftyfied" and strongly typed: all dates will be `Date` type, URLs — `URL` and so on. All fields defined by optional in [spec][v1] are also Swift optionals in all objects. 59 | 60 | ### Items 61 | 62 | `feed.items` is an array of `JSONFeedItem` objects that wrap your items (posts, episodes for podcasts, etc.). It can not be nil, but can contain 0 elements. 63 | 64 | ##### `contextText` vs `contentHTML` 65 | 66 | According to specs both are optional and both can be present in item at the same time. However if none of them is set by publisher, post will be discarded and not included in `items` array. 67 | 68 | ##### Items with no `id` 69 | 70 | If `id` for the item is not set by publisher, item will be discarded and not included in `items`. This happens silently and no error will be thrown. Any other posts with set `id` will be peresent in array (unless both, `contextText` and `contentHTML` are missing). Reason for that in clearly elaborated in _Suggestions for Feed Readers_ of [JSON Feed v1 spec][v1]: 71 | 72 | > [...] there is one thing we insist on: any item without an id must be discarded. We come to this from years of experience dealing with feeds in other formats where unique identifiers are optional. Without unique identifiers, it’s impossible to reliably refer to a given item and its changes over time, and this is terrible for user experience and becomes a source of bug reports to you. 73 | 74 | 75 | ### Attachments 76 | 77 | Items can have `attachments`, they are wrapped in `JSONFeedAttachment` object. Attachment can be podcast episode, additional images, or any other media. 78 | 79 | You can lear about attachment type using `mimeType` property. All attachments have `url` pointing to attached media. Those two are always present in all attachments. 80 | 81 | Additionally `JSONFeedAttachment` have optional `size` (in bytes) and `duration` (in seconds) for relevant media files. 82 | 83 | ### Author 84 | 85 | Inert `JSONFeedAuthor` struct with name, avatar URL and web URL. Can be present both in `JSONFeedItem` and/or in `JSONFeed`. 86 | 87 | --- 88 | 89 | ## Installation 90 | 91 | #### CocoaPods 92 | You can use [CocoaPods](http://cocoapods.org/) to install `JSONFeed` by adding it to your `Podfile`: 93 | 94 | ```ruby 95 | platform :ios, '10.0' 96 | use_frameworks! 97 | pod 'JSONFeed' 98 | ``` 99 | 100 | Import `JSONFeed` wherever you plan to parse feed and follow instructions from above. 101 | 102 | 103 | #### Carthage 104 | Create a `Cartfile` that lists the framework and run `carthage update`. Follow the [instructions](https://github.com/Carthage/Carthage#if-youre-building-for-ios) to add `$(SRCROOT)/Carthage/Build/iOS/JSONFeed.framework` to an iOS project. 105 | 106 | ``` 107 | github "totocaster/JSONFeed" 108 | ``` 109 | 110 | #### Manually 111 | Download and drop all files from ```Classes``` folder into in your project. 112 | 113 | --- 114 | 115 | ## License 116 | 117 | JSONFeed is released under the MIT license. See ``LICENSE`` for details. 118 | 119 | [v1]: https://jsonfeed.org/version/1 120 | -------------------------------------------------------------------------------- /JSONFeed.podspec: -------------------------------------------------------------------------------- 1 | # 2 | # Be sure to run `pod spec lint JSONFeed.podspec' to ensure this is a 3 | # valid spec and to remove all comments including this before submitting the spec. 4 | # 5 | # To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html 6 | # To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ 7 | # 8 | 9 | Pod::Spec.new do |s| 10 | 11 | # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 12 | # 13 | # These will help people to find your library, and whilst it 14 | # can feel like a chore to fill in it's definitely to your advantage. The 15 | # summary should be tweet-length, and the description more in depth. 16 | # 17 | 18 | s.name = "JSONFeed" 19 | s.version = "0.8.4" 20 | s.summary = "Simple JSONFeed parser written in Swift." 21 | 22 | # This description is used to generate tags and improve search results. 23 | # * Think: What does it do? Why did you write it? What is the focus? 24 | # * Try to keep it short, snappy and to the point. 25 | # * Write the description between the DESC delimiters below. 26 | # * Finally, don't worry about the indent, CocoaPods strips it! 27 | s.description = <<-DESC 28 | JSONFeed is Swift parser for JSON Feed - a new format similar to RSS and Atom 29 | but in JSON. https://jsonfeed.org 30 | DESC 31 | 32 | s.homepage = "https://github.com/totocaster/JSONFeed" 33 | 34 | 35 | # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 36 | # 37 | # Licensing your code is important. See http://choosealicense.com for more info. 38 | # CocoaPods will detect a license file if there is a named LICENSE* 39 | # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'. 40 | # 41 | 42 | s.license = { :type => "MIT", :file => "LICENSE" } 43 | 44 | 45 | # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 46 | # 47 | # Specify the authors of the library, with email addresses. Email addresses 48 | # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also 49 | # accepts just a name if you'd rather not provide an email address. 50 | # 51 | # Specify a social_media_url where others can refer to, for example a twitter 52 | # profile URL. 53 | # 54 | 55 | s.author = { "Toto Tvalavadze" => "totocaster@me.com" } 56 | s.social_media_url = "http://twitter.com/totocaster" 57 | 58 | # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 59 | # 60 | # If this Pod runs only on iOS or OS X, then specify the platform and 61 | # the deployment target. You can optionally include the target after the platform. 62 | # 63 | 64 | s.platform = :ios, "10.0" 65 | 66 | # When using multiple platforms 67 | # s.ios.deployment_target = "5.0" 68 | # s.osx.deployment_target = "10.7" 69 | # s.watchos.deployment_target = "2.0" 70 | # s.tvos.deployment_target = "9.0" 71 | 72 | 73 | # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 74 | # 75 | # Specify the location from where the source should be retrieved. 76 | # Supports git, hg, bzr, svn and HTTP. 77 | # 78 | 79 | s.source = { :git => "https://github.com/totocaster/JSONFeed.git", :tag => "#{s.version}" } 80 | 81 | 82 | # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 83 | # 84 | # CocoaPods is smart about how it includes source code. For source files 85 | # giving a folder will include any swift, h, m, mm, c & cpp files. 86 | # For header files it will include any header in the folder. 87 | # Not including the public_header_files will make all headers public. 88 | # 89 | 90 | s.source_files = "Classes", "Classes/**/*.{h,m,swift}" 91 | s.exclude_files = "Classes/Exclude" 92 | 93 | # s.public_header_files = "Classes/**/*.h" 94 | 95 | 96 | # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 97 | # 98 | # A list of resources included with the Pod. These are copied into the 99 | # target bundle with a build phase script. Anything else will be cleaned. 100 | # You can preserve files from being cleaned, please don't preserve 101 | # non-essential files like tests, examples and documentation. 102 | # 103 | 104 | # s.resource = "icon.png" 105 | # s.resources = "Resources/*.png" 106 | 107 | # s.preserve_paths = "FilesToSave", "MoreFilesToSave" 108 | 109 | 110 | # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 111 | # 112 | # Link your library with frameworks, or libraries. Libraries do not include 113 | # the lib prefix of their name. 114 | # 115 | 116 | # s.framework = "SomeFramework" 117 | # s.frameworks = "SomeFramework", "AnotherFramework" 118 | 119 | # s.library = "iconv" 120 | # s.libraries = "iconv", "xml2" 121 | 122 | 123 | # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # 124 | # 125 | # If your library depends on compiler flags you can set them in the xcconfig hash 126 | # where they will only apply to your library. If you depend on other Podspecs 127 | # you can include multiple dependencies to ensure it works. 128 | 129 | # s.requires_arc = true 130 | 131 | # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" } 132 | # s.dependency "JSONKit", "~> 1.4" 133 | 134 | end 135 | -------------------------------------------------------------------------------- /JSONFeed.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 992AD6111ECD17D600EEBB0B /* JSONFeed.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 992AD6071ECD17D500EEBB0B /* JSONFeed.framework */; }; 11 | 992AD6161ECD17D600EEBB0B /* JSONFeedTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 992AD6151ECD17D600EEBB0B /* JSONFeedTests.swift */; }; 12 | 992AD6181ECD17D600EEBB0B /* JSONFeed.h in Headers */ = {isa = PBXBuildFile; fileRef = 992AD60A1ECD17D500EEBB0B /* JSONFeed.h */; settings = {ATTRIBUTES = (Public, ); }; }; 13 | 992AD6241ECD1D1000EEBB0B /* jsonfeed_org.json in Resources */ = {isa = PBXBuildFile; fileRef = 992AD6231ECD1D1000EEBB0B /* jsonfeed_org.json */; }; 14 | 992AD6281ECD262A00EEBB0B /* JSONFeedItem.swift in Sources */ = {isa = PBXBuildFile; fileRef = 992AD6271ECD262A00EEBB0B /* JSONFeedItem.swift */; }; 15 | 992AD62E1ECD269A00EEBB0B /* JSONFeed.swift in Sources */ = {isa = PBXBuildFile; fileRef = 992AD62B1ECD269A00EEBB0B /* JSONFeed.swift */; }; 16 | 992AD62F1ECD269A00EEBB0B /* JSONFeedAttachment.swift in Sources */ = {isa = PBXBuildFile; fileRef = 992AD62C1ECD269A00EEBB0B /* JSONFeedAttachment.swift */; }; 17 | 992AD6301ECD269A00EEBB0B /* JSONFeedSpecV1Keys.swift in Sources */ = {isa = PBXBuildFile; fileRef = 992AD62D1ECD269A00EEBB0B /* JSONFeedSpecV1Keys.swift */; }; 18 | 992AD6321ECD26BD00EEBB0B /* JSONFeedAuthor.swift in Sources */ = {isa = PBXBuildFile; fileRef = 992AD6311ECD26BD00EEBB0B /* JSONFeedAuthor.swift */; }; 19 | 992AD6341ECD26DA00EEBB0B /* JSONFeedHub.swift in Sources */ = {isa = PBXBuildFile; fileRef = 992AD6331ECD26DA00EEBB0B /* JSONFeedHub.swift */; }; 20 | 992AD6381ECD315300EEBB0B /* URL+Json.swift in Sources */ = {isa = PBXBuildFile; fileRef = 992AD6371ECD315300EEBB0B /* URL+Json.swift */; }; 21 | 992AD63B1ECD35B000EEBB0B /* jsonfeed_org_podcast.json in Resources */ = {isa = PBXBuildFile; fileRef = 992AD63A1ECD35B000EEBB0B /* jsonfeed_org_podcast.json */; }; 22 | 992AD63D1ECD35F500EEBB0B /* jsonfeed_org_microblog.json in Resources */ = {isa = PBXBuildFile; fileRef = 992AD63C1ECD35F500EEBB0B /* jsonfeed_org_microblog.json */; }; 23 | 9988872D1ED158EB00E65AAE /* JSONFeed+Equatable.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9988872C1ED158EB00E65AAE /* JSONFeed+Equatable.swift */; }; 24 | /* End PBXBuildFile section */ 25 | 26 | /* Begin PBXContainerItemProxy section */ 27 | 992AD6121ECD17D600EEBB0B /* PBXContainerItemProxy */ = { 28 | isa = PBXContainerItemProxy; 29 | containerPortal = 992AD5FE1ECD17D500EEBB0B /* Project object */; 30 | proxyType = 1; 31 | remoteGlobalIDString = 992AD6061ECD17D500EEBB0B; 32 | remoteInfo = JSONFeed; 33 | }; 34 | /* End PBXContainerItemProxy section */ 35 | 36 | /* Begin PBXFileReference section */ 37 | 992AD6071ECD17D500EEBB0B /* JSONFeed.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = JSONFeed.framework; sourceTree = BUILT_PRODUCTS_DIR; }; 38 | 992AD60A1ECD17D500EEBB0B /* JSONFeed.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = JSONFeed.h; sourceTree = ""; }; 39 | 992AD60B1ECD17D500EEBB0B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 40 | 992AD6101ECD17D600EEBB0B /* JSONFeedTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = JSONFeedTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; 41 | 992AD6151ECD17D600EEBB0B /* JSONFeedTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = JSONFeedTests.swift; sourceTree = ""; }; 42 | 992AD6171ECD17D600EEBB0B /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 43 | 992AD6231ECD1D1000EEBB0B /* jsonfeed_org.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = jsonfeed_org.json; sourceTree = ""; }; 44 | 992AD6271ECD262A00EEBB0B /* JSONFeedItem.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JSONFeedItem.swift; path = ../Classes/JSONFeedItem.swift; sourceTree = ""; }; 45 | 992AD62B1ECD269A00EEBB0B /* JSONFeed.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JSONFeed.swift; path = ../Classes/JSONFeed.swift; sourceTree = ""; }; 46 | 992AD62C1ECD269A00EEBB0B /* JSONFeedAttachment.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JSONFeedAttachment.swift; path = ../Classes/JSONFeedAttachment.swift; sourceTree = ""; }; 47 | 992AD62D1ECD269A00EEBB0B /* JSONFeedSpecV1Keys.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JSONFeedSpecV1Keys.swift; path = ../Classes/JSONFeedSpecV1Keys.swift; sourceTree = ""; }; 48 | 992AD6311ECD26BD00EEBB0B /* JSONFeedAuthor.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JSONFeedAuthor.swift; path = ../Classes/JSONFeedAuthor.swift; sourceTree = ""; }; 49 | 992AD6331ECD26DA00EEBB0B /* JSONFeedHub.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = JSONFeedHub.swift; path = ../Classes/JSONFeedHub.swift; sourceTree = ""; }; 50 | 992AD6371ECD315300EEBB0B /* URL+Json.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "URL+Json.swift"; path = "../Classes/URL+Json.swift"; sourceTree = ""; }; 51 | 992AD63A1ECD35B000EEBB0B /* jsonfeed_org_podcast.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = jsonfeed_org_podcast.json; sourceTree = ""; }; 52 | 992AD63C1ECD35F500EEBB0B /* jsonfeed_org_microblog.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = jsonfeed_org_microblog.json; sourceTree = ""; }; 53 | 9988872C1ED158EB00E65AAE /* JSONFeed+Equatable.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = "JSONFeed+Equatable.swift"; path = "Classes/JSONFeed+Equatable.swift"; sourceTree = SOURCE_ROOT; }; 54 | /* End PBXFileReference section */ 55 | 56 | /* Begin PBXFrameworksBuildPhase section */ 57 | 992AD6031ECD17D500EEBB0B /* Frameworks */ = { 58 | isa = PBXFrameworksBuildPhase; 59 | buildActionMask = 2147483647; 60 | files = ( 61 | ); 62 | runOnlyForDeploymentPostprocessing = 0; 63 | }; 64 | 992AD60D1ECD17D600EEBB0B /* Frameworks */ = { 65 | isa = PBXFrameworksBuildPhase; 66 | buildActionMask = 2147483647; 67 | files = ( 68 | 992AD6111ECD17D600EEBB0B /* JSONFeed.framework in Frameworks */, 69 | ); 70 | runOnlyForDeploymentPostprocessing = 0; 71 | }; 72 | /* End PBXFrameworksBuildPhase section */ 73 | 74 | /* Begin PBXGroup section */ 75 | 992AD5FD1ECD17D500EEBB0B = { 76 | isa = PBXGroup; 77 | children = ( 78 | 992AD6091ECD17D500EEBB0B /* JSONFeed */, 79 | 992AD6141ECD17D600EEBB0B /* JSONFeedTests */, 80 | 992AD6081ECD17D500EEBB0B /* Products */, 81 | ); 82 | sourceTree = ""; 83 | }; 84 | 992AD6081ECD17D500EEBB0B /* Products */ = { 85 | isa = PBXGroup; 86 | children = ( 87 | 992AD6071ECD17D500EEBB0B /* JSONFeed.framework */, 88 | 992AD6101ECD17D600EEBB0B /* JSONFeedTests.xctest */, 89 | ); 90 | name = Products; 91 | sourceTree = ""; 92 | }; 93 | 992AD6091ECD17D500EEBB0B /* JSONFeed */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 992AD60A1ECD17D500EEBB0B /* JSONFeed.h */, 97 | 992AD60B1ECD17D500EEBB0B /* Info.plist */, 98 | 992AD62B1ECD269A00EEBB0B /* JSONFeed.swift */, 99 | 992AD6271ECD262A00EEBB0B /* JSONFeedItem.swift */, 100 | 992AD62C1ECD269A00EEBB0B /* JSONFeedAttachment.swift */, 101 | 992AD6311ECD26BD00EEBB0B /* JSONFeedAuthor.swift */, 102 | 992AD6331ECD26DA00EEBB0B /* JSONFeedHub.swift */, 103 | 9988872B1ED158B900E65AAE /* Protocol Conformance */, 104 | 992AD6351ECD26E400EEBB0B /* Specs */, 105 | 992AD6361ECD313700EEBB0B /* Foundation+Extensions */, 106 | ); 107 | path = JSONFeed; 108 | sourceTree = ""; 109 | }; 110 | 992AD6141ECD17D600EEBB0B /* JSONFeedTests */ = { 111 | isa = PBXGroup; 112 | children = ( 113 | 992AD6151ECD17D600EEBB0B /* JSONFeedTests.swift */, 114 | 992AD6171ECD17D600EEBB0B /* Info.plist */, 115 | 992AD6391ECD357B00EEBB0B /* Test JSONs */, 116 | ); 117 | path = JSONFeedTests; 118 | sourceTree = ""; 119 | }; 120 | 992AD6351ECD26E400EEBB0B /* Specs */ = { 121 | isa = PBXGroup; 122 | children = ( 123 | 992AD62D1ECD269A00EEBB0B /* JSONFeedSpecV1Keys.swift */, 124 | ); 125 | name = Specs; 126 | sourceTree = ""; 127 | }; 128 | 992AD6361ECD313700EEBB0B /* Foundation+Extensions */ = { 129 | isa = PBXGroup; 130 | children = ( 131 | 992AD6371ECD315300EEBB0B /* URL+Json.swift */, 132 | ); 133 | name = "Foundation+Extensions"; 134 | sourceTree = ""; 135 | }; 136 | 992AD6391ECD357B00EEBB0B /* Test JSONs */ = { 137 | isa = PBXGroup; 138 | children = ( 139 | 992AD6231ECD1D1000EEBB0B /* jsonfeed_org.json */, 140 | 992AD63A1ECD35B000EEBB0B /* jsonfeed_org_podcast.json */, 141 | 992AD63C1ECD35F500EEBB0B /* jsonfeed_org_microblog.json */, 142 | ); 143 | name = "Test JSONs"; 144 | sourceTree = ""; 145 | }; 146 | 9988872B1ED158B900E65AAE /* Protocol Conformance */ = { 147 | isa = PBXGroup; 148 | children = ( 149 | 9988872C1ED158EB00E65AAE /* JSONFeed+Equatable.swift */, 150 | ); 151 | name = "Protocol Conformance"; 152 | sourceTree = ""; 153 | }; 154 | /* End PBXGroup section */ 155 | 156 | /* Begin PBXHeadersBuildPhase section */ 157 | 992AD6041ECD17D500EEBB0B /* Headers */ = { 158 | isa = PBXHeadersBuildPhase; 159 | buildActionMask = 2147483647; 160 | files = ( 161 | 992AD6181ECD17D600EEBB0B /* JSONFeed.h in Headers */, 162 | ); 163 | runOnlyForDeploymentPostprocessing = 0; 164 | }; 165 | /* End PBXHeadersBuildPhase section */ 166 | 167 | /* Begin PBXNativeTarget section */ 168 | 992AD6061ECD17D500EEBB0B /* JSONFeed */ = { 169 | isa = PBXNativeTarget; 170 | buildConfigurationList = 992AD61B1ECD17D600EEBB0B /* Build configuration list for PBXNativeTarget "JSONFeed" */; 171 | buildPhases = ( 172 | 992AD6021ECD17D500EEBB0B /* Sources */, 173 | 992AD6031ECD17D500EEBB0B /* Frameworks */, 174 | 992AD6041ECD17D500EEBB0B /* Headers */, 175 | 992AD6051ECD17D500EEBB0B /* Resources */, 176 | ); 177 | buildRules = ( 178 | ); 179 | dependencies = ( 180 | ); 181 | name = JSONFeed; 182 | productName = JSONFeed; 183 | productReference = 992AD6071ECD17D500EEBB0B /* JSONFeed.framework */; 184 | productType = "com.apple.product-type.framework"; 185 | }; 186 | 992AD60F1ECD17D600EEBB0B /* JSONFeedTests */ = { 187 | isa = PBXNativeTarget; 188 | buildConfigurationList = 992AD61E1ECD17D600EEBB0B /* Build configuration list for PBXNativeTarget "JSONFeedTests" */; 189 | buildPhases = ( 190 | 992AD60C1ECD17D600EEBB0B /* Sources */, 191 | 992AD60D1ECD17D600EEBB0B /* Frameworks */, 192 | 992AD60E1ECD17D600EEBB0B /* Resources */, 193 | ); 194 | buildRules = ( 195 | ); 196 | dependencies = ( 197 | 992AD6131ECD17D600EEBB0B /* PBXTargetDependency */, 198 | ); 199 | name = JSONFeedTests; 200 | productName = JSONFeedTests; 201 | productReference = 992AD6101ECD17D600EEBB0B /* JSONFeedTests.xctest */; 202 | productType = "com.apple.product-type.bundle.unit-test"; 203 | }; 204 | /* End PBXNativeTarget section */ 205 | 206 | /* Begin PBXProject section */ 207 | 992AD5FE1ECD17D500EEBB0B /* Project object */ = { 208 | isa = PBXProject; 209 | attributes = { 210 | LastSwiftUpdateCheck = 0830; 211 | LastUpgradeCheck = 0830; 212 | ORGANIZATIONNAME = "Toto Tvalavadze"; 213 | TargetAttributes = { 214 | 992AD6061ECD17D500EEBB0B = { 215 | CreatedOnToolsVersion = 8.3.2; 216 | DevelopmentTeam = HCKE9T3AHJ; 217 | LastSwiftMigration = 0830; 218 | ProvisioningStyle = Automatic; 219 | }; 220 | 992AD60F1ECD17D600EEBB0B = { 221 | CreatedOnToolsVersion = 8.3.2; 222 | DevelopmentTeam = HCKE9T3AHJ; 223 | ProvisioningStyle = Automatic; 224 | }; 225 | }; 226 | }; 227 | buildConfigurationList = 992AD6011ECD17D500EEBB0B /* Build configuration list for PBXProject "JSONFeed" */; 228 | compatibilityVersion = "Xcode 3.2"; 229 | developmentRegion = English; 230 | hasScannedForEncodings = 0; 231 | knownRegions = ( 232 | en, 233 | ); 234 | mainGroup = 992AD5FD1ECD17D500EEBB0B; 235 | productRefGroup = 992AD6081ECD17D500EEBB0B /* Products */; 236 | projectDirPath = ""; 237 | projectRoot = ""; 238 | targets = ( 239 | 992AD6061ECD17D500EEBB0B /* JSONFeed */, 240 | 992AD60F1ECD17D600EEBB0B /* JSONFeedTests */, 241 | ); 242 | }; 243 | /* End PBXProject section */ 244 | 245 | /* Begin PBXResourcesBuildPhase section */ 246 | 992AD6051ECD17D500EEBB0B /* Resources */ = { 247 | isa = PBXResourcesBuildPhase; 248 | buildActionMask = 2147483647; 249 | files = ( 250 | ); 251 | runOnlyForDeploymentPostprocessing = 0; 252 | }; 253 | 992AD60E1ECD17D600EEBB0B /* Resources */ = { 254 | isa = PBXResourcesBuildPhase; 255 | buildActionMask = 2147483647; 256 | files = ( 257 | 992AD63D1ECD35F500EEBB0B /* jsonfeed_org_microblog.json in Resources */, 258 | 992AD6241ECD1D1000EEBB0B /* jsonfeed_org.json in Resources */, 259 | 992AD63B1ECD35B000EEBB0B /* jsonfeed_org_podcast.json in Resources */, 260 | ); 261 | runOnlyForDeploymentPostprocessing = 0; 262 | }; 263 | /* End PBXResourcesBuildPhase section */ 264 | 265 | /* Begin PBXSourcesBuildPhase section */ 266 | 992AD6021ECD17D500EEBB0B /* Sources */ = { 267 | isa = PBXSourcesBuildPhase; 268 | buildActionMask = 2147483647; 269 | files = ( 270 | 9988872D1ED158EB00E65AAE /* JSONFeed+Equatable.swift in Sources */, 271 | 992AD6281ECD262A00EEBB0B /* JSONFeedItem.swift in Sources */, 272 | 992AD6341ECD26DA00EEBB0B /* JSONFeedHub.swift in Sources */, 273 | 992AD62E1ECD269A00EEBB0B /* JSONFeed.swift in Sources */, 274 | 992AD6321ECD26BD00EEBB0B /* JSONFeedAuthor.swift in Sources */, 275 | 992AD62F1ECD269A00EEBB0B /* JSONFeedAttachment.swift in Sources */, 276 | 992AD6381ECD315300EEBB0B /* URL+Json.swift in Sources */, 277 | 992AD6301ECD269A00EEBB0B /* JSONFeedSpecV1Keys.swift in Sources */, 278 | ); 279 | runOnlyForDeploymentPostprocessing = 0; 280 | }; 281 | 992AD60C1ECD17D600EEBB0B /* Sources */ = { 282 | isa = PBXSourcesBuildPhase; 283 | buildActionMask = 2147483647; 284 | files = ( 285 | 992AD6161ECD17D600EEBB0B /* JSONFeedTests.swift in Sources */, 286 | ); 287 | runOnlyForDeploymentPostprocessing = 0; 288 | }; 289 | /* End PBXSourcesBuildPhase section */ 290 | 291 | /* Begin PBXTargetDependency section */ 292 | 992AD6131ECD17D600EEBB0B /* PBXTargetDependency */ = { 293 | isa = PBXTargetDependency; 294 | target = 992AD6061ECD17D500EEBB0B /* JSONFeed */; 295 | targetProxy = 992AD6121ECD17D600EEBB0B /* PBXContainerItemProxy */; 296 | }; 297 | /* End PBXTargetDependency section */ 298 | 299 | /* Begin XCBuildConfiguration section */ 300 | 992AD6191ECD17D600EEBB0B /* Debug */ = { 301 | isa = XCBuildConfiguration; 302 | buildSettings = { 303 | ALWAYS_SEARCH_USER_PATHS = NO; 304 | CLANG_ANALYZER_NONNULL = YES; 305 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 306 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 307 | CLANG_CXX_LIBRARY = "libc++"; 308 | CLANG_ENABLE_MODULES = YES; 309 | CLANG_ENABLE_OBJC_ARC = YES; 310 | CLANG_WARN_BOOL_CONVERSION = YES; 311 | CLANG_WARN_CONSTANT_CONVERSION = YES; 312 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 313 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 314 | CLANG_WARN_EMPTY_BODY = YES; 315 | CLANG_WARN_ENUM_CONVERSION = YES; 316 | CLANG_WARN_INFINITE_RECURSION = YES; 317 | CLANG_WARN_INT_CONVERSION = YES; 318 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 319 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 320 | CLANG_WARN_UNREACHABLE_CODE = YES; 321 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 322 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 323 | COPY_PHASE_STRIP = NO; 324 | CURRENT_PROJECT_VERSION = 1; 325 | DEBUG_INFORMATION_FORMAT = dwarf; 326 | ENABLE_STRICT_OBJC_MSGSEND = YES; 327 | ENABLE_TESTABILITY = YES; 328 | GCC_C_LANGUAGE_STANDARD = gnu99; 329 | GCC_DYNAMIC_NO_PIC = NO; 330 | GCC_NO_COMMON_BLOCKS = YES; 331 | GCC_OPTIMIZATION_LEVEL = 0; 332 | GCC_PREPROCESSOR_DEFINITIONS = ( 333 | "DEBUG=1", 334 | "$(inherited)", 335 | ); 336 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 337 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 338 | GCC_WARN_UNDECLARED_SELECTOR = YES; 339 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 340 | GCC_WARN_UNUSED_FUNCTION = YES; 341 | GCC_WARN_UNUSED_VARIABLE = YES; 342 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 343 | MTL_ENABLE_DEBUG_INFO = YES; 344 | ONLY_ACTIVE_ARCH = YES; 345 | SDKROOT = iphoneos; 346 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 347 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 348 | TARGETED_DEVICE_FAMILY = "1,2"; 349 | VERSIONING_SYSTEM = "apple-generic"; 350 | VERSION_INFO_PREFIX = ""; 351 | }; 352 | name = Debug; 353 | }; 354 | 992AD61A1ECD17D600EEBB0B /* Release */ = { 355 | isa = XCBuildConfiguration; 356 | buildSettings = { 357 | ALWAYS_SEARCH_USER_PATHS = NO; 358 | CLANG_ANALYZER_NONNULL = YES; 359 | CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; 360 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 361 | CLANG_CXX_LIBRARY = "libc++"; 362 | CLANG_ENABLE_MODULES = YES; 363 | CLANG_ENABLE_OBJC_ARC = YES; 364 | CLANG_WARN_BOOL_CONVERSION = YES; 365 | CLANG_WARN_CONSTANT_CONVERSION = YES; 366 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 367 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 368 | CLANG_WARN_EMPTY_BODY = YES; 369 | CLANG_WARN_ENUM_CONVERSION = YES; 370 | CLANG_WARN_INFINITE_RECURSION = YES; 371 | CLANG_WARN_INT_CONVERSION = YES; 372 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 373 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 374 | CLANG_WARN_UNREACHABLE_CODE = YES; 375 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 376 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 377 | COPY_PHASE_STRIP = NO; 378 | CURRENT_PROJECT_VERSION = 1; 379 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 380 | ENABLE_NS_ASSERTIONS = NO; 381 | ENABLE_STRICT_OBJC_MSGSEND = YES; 382 | GCC_C_LANGUAGE_STANDARD = gnu99; 383 | GCC_NO_COMMON_BLOCKS = YES; 384 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 385 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 386 | GCC_WARN_UNDECLARED_SELECTOR = YES; 387 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 388 | GCC_WARN_UNUSED_FUNCTION = YES; 389 | GCC_WARN_UNUSED_VARIABLE = YES; 390 | IPHONEOS_DEPLOYMENT_TARGET = 10.3; 391 | MTL_ENABLE_DEBUG_INFO = NO; 392 | SDKROOT = iphoneos; 393 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 394 | TARGETED_DEVICE_FAMILY = "1,2"; 395 | VALIDATE_PRODUCT = YES; 396 | VERSIONING_SYSTEM = "apple-generic"; 397 | VERSION_INFO_PREFIX = ""; 398 | }; 399 | name = Release; 400 | }; 401 | 992AD61C1ECD17D600EEBB0B /* Debug */ = { 402 | isa = XCBuildConfiguration; 403 | buildSettings = { 404 | CLANG_ENABLE_MODULES = YES; 405 | CODE_SIGN_IDENTITY = ""; 406 | DEFINES_MODULE = YES; 407 | DEVELOPMENT_TEAM = HCKE9T3AHJ; 408 | DYLIB_COMPATIBILITY_VERSION = 1; 409 | DYLIB_CURRENT_VERSION = 1; 410 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 411 | INFOPLIST_FILE = JSONFeed/Info.plist; 412 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 413 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 414 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 415 | PRODUCT_BUNDLE_IDENTIFIER = tototvalavadze.JSONFeed; 416 | PRODUCT_NAME = "$(TARGET_NAME)"; 417 | SKIP_INSTALL = YES; 418 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 419 | SWIFT_VERSION = 3.0; 420 | }; 421 | name = Debug; 422 | }; 423 | 992AD61D1ECD17D600EEBB0B /* Release */ = { 424 | isa = XCBuildConfiguration; 425 | buildSettings = { 426 | CLANG_ENABLE_MODULES = YES; 427 | CODE_SIGN_IDENTITY = ""; 428 | DEFINES_MODULE = YES; 429 | DEVELOPMENT_TEAM = HCKE9T3AHJ; 430 | DYLIB_COMPATIBILITY_VERSION = 1; 431 | DYLIB_CURRENT_VERSION = 1; 432 | DYLIB_INSTALL_NAME_BASE = "@rpath"; 433 | INFOPLIST_FILE = JSONFeed/Info.plist; 434 | INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks"; 435 | IPHONEOS_DEPLOYMENT_TARGET = 10.0; 436 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 437 | PRODUCT_BUNDLE_IDENTIFIER = tototvalavadze.JSONFeed; 438 | PRODUCT_NAME = "$(TARGET_NAME)"; 439 | SKIP_INSTALL = YES; 440 | SWIFT_VERSION = 3.0; 441 | }; 442 | name = Release; 443 | }; 444 | 992AD61F1ECD17D600EEBB0B /* Debug */ = { 445 | isa = XCBuildConfiguration; 446 | buildSettings = { 447 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 448 | DEVELOPMENT_TEAM = HCKE9T3AHJ; 449 | INFOPLIST_FILE = JSONFeedTests/Info.plist; 450 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 451 | PRODUCT_BUNDLE_IDENTIFIER = tototvalavadze.JSONFeedTests; 452 | PRODUCT_NAME = "$(TARGET_NAME)"; 453 | SWIFT_VERSION = 3.0; 454 | }; 455 | name = Debug; 456 | }; 457 | 992AD6201ECD17D600EEBB0B /* Release */ = { 458 | isa = XCBuildConfiguration; 459 | buildSettings = { 460 | ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; 461 | DEVELOPMENT_TEAM = HCKE9T3AHJ; 462 | INFOPLIST_FILE = JSONFeedTests/Info.plist; 463 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; 464 | PRODUCT_BUNDLE_IDENTIFIER = tototvalavadze.JSONFeedTests; 465 | PRODUCT_NAME = "$(TARGET_NAME)"; 466 | SWIFT_VERSION = 3.0; 467 | }; 468 | name = Release; 469 | }; 470 | /* End XCBuildConfiguration section */ 471 | 472 | /* Begin XCConfigurationList section */ 473 | 992AD6011ECD17D500EEBB0B /* Build configuration list for PBXProject "JSONFeed" */ = { 474 | isa = XCConfigurationList; 475 | buildConfigurations = ( 476 | 992AD6191ECD17D600EEBB0B /* Debug */, 477 | 992AD61A1ECD17D600EEBB0B /* Release */, 478 | ); 479 | defaultConfigurationIsVisible = 0; 480 | defaultConfigurationName = Release; 481 | }; 482 | 992AD61B1ECD17D600EEBB0B /* Build configuration list for PBXNativeTarget "JSONFeed" */ = { 483 | isa = XCConfigurationList; 484 | buildConfigurations = ( 485 | 992AD61C1ECD17D600EEBB0B /* Debug */, 486 | 992AD61D1ECD17D600EEBB0B /* Release */, 487 | ); 488 | defaultConfigurationIsVisible = 0; 489 | defaultConfigurationName = Release; 490 | }; 491 | 992AD61E1ECD17D600EEBB0B /* Build configuration list for PBXNativeTarget "JSONFeedTests" */ = { 492 | isa = XCConfigurationList; 493 | buildConfigurations = ( 494 | 992AD61F1ECD17D600EEBB0B /* Debug */, 495 | 992AD6201ECD17D600EEBB0B /* Release */, 496 | ); 497 | defaultConfigurationIsVisible = 0; 498 | defaultConfigurationName = Release; 499 | }; 500 | /* End XCConfigurationList section */ 501 | }; 502 | rootObject = 992AD5FE1ECD17D500EEBB0B /* Project object */; 503 | } 504 | --------------------------------------------------------------------------------