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

Commit 6c603de

Browse files
authored
Merge branch 'develop' into fix/remove-http-server
2 parents b583b09 + 7bda264 commit 6c603de

File tree

5 files changed

+35
-32
lines changed

5 files changed

+35
-32
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: R2Navigator
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop ]
8+
9+
jobs:
10+
build:
11+
name: Build and test
12+
runs-on: macos-latest
13+
env:
14+
scheme: ${{ 'r2-navigator-swift' }}
15+
platform: ${{ 'iOS Simulator' }}
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Prepare build
21+
run: |
22+
# r2-navigator-swift.xcodeproj is only relevant for Carthage. We remove it otherwise xcodebuild will use it.
23+
rm -rf r2-navigator-swift.xcodeproj
24+
- name: Build
25+
run: |
26+
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
27+
xcodebuild build-for-testing -scheme "$scheme" -destination "platform=$platform,name=$device"
28+
- name: Test
29+
run: |
30+
device=`xcrun xctrace list devices 2>&1 | grep -oE 'iPhone.*?[^\(]+' | head -1 | awk '{$1=$1;print}'`
31+
xcodebuild test-without-building -scheme "$scheme" -destination "platform=$platform,name=$device"

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

Package.resolved

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

R2Navigator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Pod::Spec.new do |s|
99
s.source = { :git => "https://github.com/readium/r2-navigator-swift.git", :branch => "develop" }
1010
s.exclude_files = ["**/Info*.plist"]
1111
s.requires_arc = true
12-
s.resources = ['r2-navigator-swift/Resources/**', 'r2-navigator-swift/EPUB/Resources/**']
12+
s.resources = ['r2-navigator-swift/Resources/**', 'r2-navigator-swift/EPUB/Assets']
1313
s.source_files = "r2-navigator-swift/**/*.{m,h,swift}"
1414
s.platform = :ios
1515
s.ios.deployment_target = "10.0"

r2-navigator-swift/Toolkit/Extensions/Bundle.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import Foundation
77

88
#if !SWIFT_PACKAGE
99
extension Bundle {
10-
static let module = Bundle(identifier: "org.readium.r2-navigator-swift")!
10+
/// Returns R2Navigator's bundle by querying an arbitrary type.
11+
static let module = Bundle(for: EPUBNavigatorViewController.self)
1112
}
1213
#endif

0 commit comments

Comments
 (0)