Skip to content

Commit 6e81e6c

Browse files
authored
Support Swift Package Manager (#2)
* Migrate to SPM structure, cleanup and update WebP to 1.2.4 * Run tests using CI
1 parent 559bbf3 commit 6e81e6c

File tree

343 files changed

+205
-4141
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

343 files changed

+205
-4141
lines changed

.github/workflows/test.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: "Tests"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
run-tests:
13+
name: Xcode ${{ matrix.xcode }}
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
xcode:
18+
# - "15.0"
19+
- "14.3.1"
20+
- "14.1"
21+
include:
22+
# - xcode: "15.0"
23+
# macos: macOS-13
24+
# destination: "platform=iOS Simulator,name=iPhone 14,OS=17.0"
25+
- xcode: "14.3.1"
26+
macos: macOS-13
27+
destination: "platform=iOS Simulator,name=iPhone 14,OS=16.4"
28+
- xcode: "14.1"
29+
macos: macOS-12
30+
destination: "platform=iOS Simulator,name=iPhone 14,OS=16.1"
31+
runs-on: ${{ matrix.macos }}
32+
env:
33+
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
34+
steps:
35+
- name: Checkout Repo
36+
uses: actions/checkout@v3
37+
- name: Run Tests
38+
run: xcodebuild clean test -scheme TwitterImagePipeline-Package -destination '${{ matrix.destination }}'
39+

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
44

55
## Build generated
6+
.build/
67
build/
78
DerivedData
89

@@ -47,7 +48,7 @@ Carthage/Build
4748

4849
# fastlane
4950
#
50-
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
51+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
5152
# screenshots whenever they are needed.
5253
# For more information about the recommended setup visit:
5354
# https://github.com/fastlane/fastlane/blob/master/docs/Gitignore.md

.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.travis.yml

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

BuildConfiguration/TwitterImagePipeline.Debug.xcconfig

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

BuildConfiguration/TwitterImagePipeline.Release.xcconfig

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

BuildConfiguration/TwitterImagePipeline.Test.app.xcconfig

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

BuildConfiguration/TwitterImagePipeline.Test.ios.xcconfig

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

BuildConfiguration/TwitterImagePipeline.Test.swift.xcconfig

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

BuildConfiguration/TwitterImagePipeline.Test.tvos.xcconfig

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

0 commit comments

Comments
 (0)