Skip to content
This repository has been archived by the owner on Dec 30, 2021. It is now read-only.

Commit

Permalink
Fix iOS and watchOS build (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzalezreal authored Nov 15, 2020
1 parent eb385c0 commit 7bfdcfa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .spi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
version: 1
builder:
configs:
- platform: watchos
scheme: AdaptiveCardUI_watchOS
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ DESTINATION_MACOS = platform=macOS
DESTINATION_IOS = platform=iOS Simulator,name=iPhone 8
DESTINATION_IOS_SNAPSHOT = platform=iOS Simulator,OS=14.0,name=iPhone 8
DESTINATION_TVOS = platform=tvOS Simulator,name=Apple TV
DESTINATION_WATCHOS = generic/platform=watchOS

default: test

test: test-macos test-ios test-tvos
test: test-macos test-ios test-tvos watchos

test-macos:
xcodebuild test \
Expand All @@ -28,6 +29,11 @@ test-tvos:
-scheme AdaptiveCardUI \
-destination '$(DESTINATION_TVOS)'

watchos:
xcodebuild \
-scheme AdaptiveCardUI_watchOS \
-destination '$(DESTINATION_WATCHOS)'

format:
swiftformat .

Expand Down
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@
"repositoryURL": "https://github.com/gonzalezreal/NetworkImage",
"state": {
"branch": null,
"revision": "8cd992ecc32b842d4f518032ebfcadcde52f84fd",
"version": "1.1.0"
"revision": "de0632e94acbebe35d78e2f1670398a18f8ac243",
"version": "1.1.1"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/gonzalezreal/DefaultCodable", from: "1.2.0"),
.package(url: "https://github.com/gonzalezreal/AnyValue", from: "1.0.0"),
.package(url: "https://github.com/gonzalezreal/NetworkImage", from: "1.1.0"),
.package(url: "https://github.com/gonzalezreal/NetworkImage", from: "1.1.1"),
.package(url: "https://github.com/pointfreeco/combine-schedulers", from: "0.1.2"),
.package(name: "SnapshotTesting", url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.8.1"),
],
Expand Down

0 comments on commit 7bfdcfa

Please sign in to comment.