Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

Commit

Permalink
Bump version to 2.0.0-alpha.2
Browse files Browse the repository at this point in the history
Fix Xcode 11 build
  • Loading branch information
mickael-menu committed Oct 27, 2020
1 parent 81b2d00 commit 4ee1ebc
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ language: swift
osx_image: xcode11
xcode_project: r2-shared-swift.xcodeproj
xcode_scheme: r2-shared-swift
xcode_destination: platform=iOS Simulator,OS=11.3,name=iPhone X
xcode_sdk: iphonesimulator13.0
xcode_destination: platform=iOS Simulator,OS=13.7,name=iPhone X
xcode_sdk: iphonesimulator13.7

branches:
only:
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [2.0.0-alpha.2]

### Added

* The [Publication Services API](https://readium.org/architecture/proposals/004-publication-helpers-services) allows to extend a `Publication` with custom implementations of known services. This version ships with a few predefined services:
Expand Down Expand Up @@ -51,3 +53,4 @@ All notable changes to this project will be documented in this file.

[unreleased]: https://github.com/readium/r2-shared-swift/compare/master...HEAD
[2.0.0-alpha.1]: https://github.com/readium/r2-shared-swift/compare/1.4.3...2.0.0-alpha.1
[2.0.0-alpha.2]: https://github.com/readium/r2-shared-swift/compare/2.0.0-alpha.1...2.0.0-alpha.2
4 changes: 2 additions & 2 deletions R2Shared.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|

s.name = 'R2Shared'
s.version = '2.0.0-alpha.1'
s.version = '2.0.0-alpha.2'
s.license = 'BSD 3-Clause License'
s.summary = 'R2 Shared'
s.homepage = 'http://readium.github.io'
s.author = { "Aferdita Muriqi" => "aferdita.muriqi@gmail.com" }
s.source = { :git => 'https://github.com/readium/r2-shared-swift.git', :tag => '2.0.0-alpha.1' }
s.source = { :git => 'https://github.com/readium/r2-shared-swift.git', :tag => '2.0.0-alpha.2' }
s.exclude_files = ["**/Info*.plist", "r2-shared-swift/Toolkit/Archive/ZIPFoundation.swift"]
s.requires_arc = true
s.resources = ['r2-shared-swift/Resources/**']
Expand Down
2 changes: 1 addition & 1 deletion r2-shared-swift/Publication/Publication+Deprecated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ extension Link {
public var typeLink: String? { type }

@available(*, deprecated, renamed: "rels")
public var rel: [String] { rels.map(\.string) }
public var rel: [String] { rels.map { $0.string } }

@available(*, deprecated, renamed: "href")
public var absoluteHref: String? { href }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public extension Publication {
return positions
}

let positionsByResource = Dictionary(grouping: positionsFromManifest(), by: \.href)
let positionsByResource = Dictionary(grouping: positionsFromManifest(), by: { $0.href })
return readingOrder.map { positionsByResource[$0.href] ?? [] }
}

Expand Down
2 changes: 1 addition & 1 deletion r2-shared-swift/Toolkit/Deferred.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public final class Deferred<Success, Failure: Error> {
/// Shortcut to build a Deferred from a cancellation.
///
/// Can be useful to return early a value in a `.flatMap` or `deferred { ... }` construct.
public class var cancelled: Self { Self { $0(.cancelled) } }
public class var cancelled: Deferred<Success, Failure> { Deferred { $0(.cancelled) } }

/// Fires the deferred closure to resolve its value and forward it to the given traditional
/// completion closure.
Expand Down

0 comments on commit 4ee1ebc

Please sign in to comment.