Skip to content

Commit f4cfa76

Browse files
committed
Merge branch 'develop' into master
2 parents e40c5de + 1b5ed08 commit f4cfa76

File tree

14 files changed

+168
-114
lines changed

14 files changed

+168
-114
lines changed

opds/.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.pbxproj merge=union

opds/.github/CODEOWNERS

Lines changed: 0 additions & 1 deletion
This file was deleted.

opds/.travis.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
language: swift
2-
osx_image: xcode11
2+
osx_image: xcode12.5
33
xcode_project: readium-opds.xcodeproj
44
xcode_scheme: readium-opds
5-
xcode_destination: platform=iOS Simulator,OS=11.3,name=iPhone X
6-
xcode_sdk: iphonesimulator13.0
5+
xcode_destination: platform=iOS Simulator,OS=14.5.1,name=iPhone X
6+
xcode_sdk: iphonesimulator14.5.1
77

88
branches:
99
only:
@@ -17,7 +17,12 @@ cache:
1717
before_install:
1818
- brew update
1919
- brew outdated carthage || brew upgrade carthage
20-
- carthage bootstrap --verbose --no-use-binaries --platform iOS --cache-builds
20+
- carthage bootstrap --verbose --no-use-binaries --use-xcframeworks --platform iOS --cache-builds
21+
# The project expects .framework but we can only build XCFrameworks with Carthage on Xcode 12+.
22+
# As a workaround, this will extract the .framework generated from the .xcframework files.
23+
# See https://github.com/readium/r2-testapp-swift/issues/351#issuecomment-829250100
24+
- mkdir -p Carthage/Build/iOS
25+
- cp -r Carthage/Build/*.xcframework/ios-arm64_armv7/*.framework Carthage/Build/iOS
2126

2227
script:
2328
- xcodebuild clean build -quiet

opds/CHANGELOG.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
**Warning:** Features marked as *experimental* may change or be removed in a future release without notice. Use with caution.
6+
7+
<!--## [Unreleased]-->
8+
9+
## [2.0.0]
10+
11+
### Changed
12+
13+
* Upgraded shared dependencies.
14+
15+
## [2.0.0-beta.2]
16+
17+
### Changed
18+
19+
* Upgraded shared dependencies.
20+
21+
22+
## [2.0.0-beta.1]
23+
24+
### Changed
25+
26+
* Upgraded shared dependencies.
27+
28+
29+
## [2.0.0-alpha.2]
30+
31+
### Changed
32+
33+
* Update internal usage of the `Publication` shared models.
34+
35+
36+
## [2.0.0-alpha.1]
37+
38+
### Changed
39+
40+
* Update internal usage of the `Publication` shared models.
41+
42+
[unreleased]: https://github.com/readium/r2-opds-swift/compare/master...HEAD
43+
[2.0.0-alpha.1]: https://github.com/readium/r2-opds-swift/compare/1.2.3...2.0.0-alpha.1
44+
[2.0.0-alpha.2]: https://github.com/readium/r2-opds-swift/compare/2.0.0-alpha.1...2.0.0-alpha.2
45+
[2.0.0-beta.1]: https://github.com/readium/r2-opds-swift/compare/2.0.0-alpha.2...2.0.0-beta.1
46+
[2.0.0-beta.2]: https://github.com/readium/r2-opds-swift/compare/2.0.0-beta.1...2.0.0-beta.2
47+
[2.0.0]: https://github.com/readium/r2-opds-swift/compare/2.0.0-beta.2...2.0.0

opds/Cartfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github "readium/r2-shared-swift" == 1.4.3
2-
github "cezheng/Fuzi" == 3.1.1
1+
github "readium/r2-shared-swift" "develop"
2+
github "cezheng/Fuzi" == 3.1.3

opds/Cartfile.resolved

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1-
github "cezheng/Fuzi" "3.1.1"
2-
github "readium/r2-shared-swift" "1.4.3"
1+
github "cezheng/Fuzi" "3.1.3"
2+
github "dexman/Minizip" "1.4.0"
3+
github "readium/r2-shared-swift" "4d1735bcf2302570817b1ab239ade24289ff7c7f"

opds/README.md

Lines changed: 9 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
# OPDS Parser (Swift)
2+
23
[![License](https://img.shields.io/badge/License-BSD%203--Clause-blue.svg)](/LICENSE)
34

45
A parser for OPDS 1.x and 2.0 written in Swift using the [Readium-2 shared model](https://github.com/readium/r2-shared-swift)
56
and [Readium Web Publication Manifest](https://github.com/readium/webpub-manifest).
67

8+
[Changes and releases are documented in the Changelog](CHANGELOG.md)
9+
710
## Features
811

912
- [x] Abstract model
@@ -32,48 +35,21 @@ install ReadiumOPDS with Carthage:
3235
2. Update your Cartfile to include the following:
3336

3437
```ruby
35-
github "readium/r2-opds-swift" ~> 1.0.4
38+
github "readium/r2-opds-swift" "develop"
3639
```
40+
41+
3. Run:
42+
* [`mkdir -p Carthage/Build/iOS`](https://github.com/Carthage/Carthage/issues/3122#issuecomment-784865551)
43+
* `carthage update --use-xcframeworks`
3744

38-
3. Run `carthage update` and
39-
[add the appropriate framework][Carthage Usage].
45+
4. [Add the appropriate framework][Carthage Usage].
4046

4147

4248
[Carthage]: https://github.com/Carthage/Carthage
4349
[Carthage Installation]: https://github.com/Carthage/Carthage#installing-carthage
4450
[Carthage Usage]: https://github.com/Carthage/Carthage#adding-frameworks-to-an-application
4551

4652

47-
### CocoaPods
48-
49-
[CocoaPods][] is a dependency manager for Cocoa projects. To install
50-
ReadiumOPDS with CocoaPods:
51-
52-
1. Make sure CocoaPods is [installed][CocoaPods Installation]. (ReadiumOPDS
53-
requires version 1.0.0 or greater.)
54-
55-
```sh
56-
# Using the default Ruby install will require you to use sudo when
57-
# installing and updating gems.
58-
[sudo] gem install cocoapods
59-
```
60-
61-
2. Update your Podfile to include the following:
62-
63-
```ruby
64-
use_frameworks!
65-
66-
target 'YourAppTargetName' do
67-
pod 'ReadiumOPDS', :git => 'https://github.com/readium/r2-opds-swift.git'
68-
end
69-
```
70-
71-
3. Run `pod install --repo-update`.
72-
73-
[CocoaPods]: https://cocoapods.org
74-
[CocoaPods Installation]: https://guides.cocoapods.org/using/getting-started.html#getting-started
75-
76-
7753
#### Import
7854

7955
In your Swift files:

opds/ReadiumOPDS.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
Pod::Spec.new do |s|
22

33
s.name = "ReadiumOPDS"
4-
s.version = "1.2.3"
4+
s.version = "2.0.0"
55
s.license = "BSD 3-Clause License"
66
s.summary = "Readium OPDS"
77
s.homepage = "http://readium.github.io"
88
s.author = { "Aferdita Muriqi" => "aferdita.muriqi@gmail.com" }
9-
s.source = { :git => "https://github.com/readium/r2-opds-swift.git", :tag => "1.2.3" }
9+
s.source = { :git => "https://github.com/readium/r2-opds-swift.git", :branch => 'develop' }
1010
s.exclude_files = ["**/Info*.plist"]
1111
s.requires_arc = true
1212
s.resources = ['readium-opds/Resources/**']

opds/readium-opds.xcodeproj/project.pbxproj

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
objects = {
88

99
/* Begin PBXBuildFile section */
10-
03C3CC64222DBD2F00A01731 /* R2Shared.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 03C3CC63222DBD2F00A01731 /* R2Shared.framework */; };
1110
111E54DC2021022700A7FE9A /* OPDS2Parser.swift in Sources */ = {isa = PBXBuildFile; fileRef = 111E54DB2021022700A7FE9A /* OPDS2Parser.swift */; };
1211
AE49834720D902710013B912 /* ParseData.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE49834620D902710013B912 /* ParseData.swift */; };
1312
AE6B98E020CAB93200117197 /* OPDSParser.swift in Sources */ = {isa = PBXBuildFile; fileRef = AE6B98DF20CAB93200117197 /* OPDSParser.swift */; };
1413
AED681F020A316160090DBCD /* URLHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = AED681EF20A316160090DBCD /* URLHelper.swift */; };
1514
CA415ECB221D5307003A0F7F /* Deprecated.swift in Sources */ = {isa = PBXBuildFile; fileRef = CA415EC9221D5182003A0F7F /* Deprecated.swift */; };
15+
CA7B77CC263AB97E00260838 /* R2Shared.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CA7B77CB263AB97E00260838 /* R2Shared.framework */; };
16+
CA7B77D0263AB98800260838 /* Fuzi.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CA7B77CF263AB98800260838 /* Fuzi.framework */; };
1617
F34B7E5E1FA35B7900534FD3 /* readium_opds.h in Headers */ = {isa = PBXBuildFile; fileRef = F34B7E501FA35B7900534FD3 /* readium_opds.h */; settings = {ATTRIBUTES = (Public, ); }; };
1718
F34B7E691FA35BB100534FD3 /* OPDS1Parser.swift in Sources */ = {isa = PBXBuildFile; fileRef = F34B7E681FA35BB100534FD3 /* OPDS1Parser.swift */; };
1819
/* End PBXBuildFile section */
1920

2021
/* Begin PBXFileReference section */
21-
03C3CC63222DBD2F00A01731 /* R2Shared.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = R2Shared.framework; sourceTree = BUILT_PRODUCTS_DIR; };
2222
111E54CC201BBD9700A7FE9A /* wiki_1_1.opds */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = wiki_1_1.opds; path = "readium-opdsTests/Samples/wiki_1_1.opds"; sourceTree = SOURCE_ROOT; };
2323
111E54D9201FC91600A7FE9A /* feedbooks_catalog.atom */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = feedbooks_catalog.atom; path = "readium-opdsTests/Samples/feedbooks_catalog.atom"; sourceTree = SOURCE_ROOT; };
2424
111E54DB2021022700A7FE9A /* OPDS2Parser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OPDS2Parser.swift; sourceTree = "<group>"; };
@@ -28,6 +28,8 @@
2828
AE6B98DF20CAB93200117197 /* OPDSParser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = OPDSParser.swift; sourceTree = "<group>"; };
2929
AED681EF20A316160090DBCD /* URLHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = URLHelper.swift; sourceTree = "<group>"; };
3030
CA415EC9221D5182003A0F7F /* Deprecated.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Deprecated.swift; sourceTree = "<group>"; };
31+
CA7B77CB263AB97E00260838 /* R2Shared.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = R2Shared.framework; sourceTree = BUILT_PRODUCTS_DIR; };
32+
CA7B77CF263AB98800260838 /* Fuzi.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Fuzi.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3133
F34B7E4D1FA35B7900534FD3 /* ReadiumOPDS.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = ReadiumOPDS.framework; sourceTree = BUILT_PRODUCTS_DIR; };
3234
F34B7E501FA35B7900534FD3 /* readium_opds.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = readium_opds.h; sourceTree = "<group>"; };
3335
F34B7E511FA35B7900534FD3 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
@@ -41,7 +43,8 @@
4143
isa = PBXFrameworksBuildPhase;
4244
buildActionMask = 2147483647;
4345
files = (
44-
03C3CC64222DBD2F00A01731 /* R2Shared.framework in Frameworks */,
46+
CA7B77D0263AB98800260838 /* Fuzi.framework in Frameworks */,
47+
CA7B77CC263AB97E00260838 /* R2Shared.framework in Frameworks */,
4548
);
4649
runOnlyForDeploymentPostprocessing = 0;
4750
};
@@ -105,7 +108,8 @@
105108
F34B7E6A1FA35CEA00534FD3 /* Frameworks */ = {
106109
isa = PBXGroup;
107110
children = (
108-
03C3CC63222DBD2F00A01731 /* R2Shared.framework */,
111+
CA7B77CF263AB98800260838 /* Fuzi.framework */,
112+
CA7B77CB263AB97E00260838 /* R2Shared.framework */,
109113
);
110114
name = Frameworks;
111115
sourceTree = "<group>";
@@ -149,7 +153,7 @@
149153
isa = PBXProject;
150154
attributes = {
151155
LastSwiftUpdateCheck = 0900;
152-
LastUpgradeCheck = 0940;
156+
LastUpgradeCheck = 1250;
153157
ORGANIZATIONNAME = Readium;
154158
TargetAttributes = {
155159
F34B7E4C1FA35B7900534FD3 = {
@@ -229,6 +233,7 @@
229233
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
230234
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
231235
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
236+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
232237
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
233238
CLANG_WARN_STRICT_PROTOTYPES = YES;
234239
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -292,6 +297,7 @@
292297
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
293298
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
294299
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
300+
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;
295301
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
296302
CLANG_WARN_STRICT_PROTOTYPES = YES;
297303
CLANG_WARN_SUSPICIOUS_MOVE = YES;
@@ -341,7 +347,7 @@
341347
HEADER_SEARCH_PATHS = "$(SDKROOT)/usr/include/libxml2";
342348
INFOPLIST_FILE = "readium-opds/Info.plist";
343349
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
344-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
350+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
345351
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
346352
PRODUCT_BUNDLE_IDENTIFIER = "com.readium.readium-opds";
347353
PRODUCT_NAME = ReadiumOPDS;
@@ -372,7 +378,7 @@
372378
HEADER_SEARCH_PATHS = "$(SDKROOT)/usr/include/libxml2";
373379
INFOPLIST_FILE = "readium-opds/Info.plist";
374380
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
375-
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
381+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
376382
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
377383
PRODUCT_BUNDLE_IDENTIFIER = "com.readium.readium-opds";
378384
PRODUCT_NAME = ReadiumOPDS;
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)