File tree Expand file tree Collapse file tree 3 files changed +16
-2
lines changed
Tests/RemoteImageTests/Services Expand file tree Collapse file tree 3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ language : swift
2
+ osx_image : xcode11.3
3
+ script :
4
+ - swift package generate-xcodeproj
5
+ - xcodebuild clean test -destination 'name=iPhone 8' -scheme RemoteImage-Package -enableCodeCoverage YES -derivedDataPath .build/derivedData -quiet
6
+ after_success :
7
+ # upload test coverage data
8
+ - bash <(curl -s https://codecov.io/bash) -J '^RemoteImage$' -D .build/derivedData
Original file line number Diff line number Diff line change 1
1
# RemoteImage
2
2
3
- [ ![ Swift 5.1] ( https://img.shields.io/badge/swift5.1-compatible -green.svg?longCache=true&style=flat-square )] ( https://developer.apple.com/swift )
4
- [ ![ Platform ] ( https://img.shields.io/badge/platform -iOS%20%7C%20macOS%20%7C%20tvOS-lightgrey.svg?longCache=true&style=flat-square )] ( https://www.apple.com )
3
+ [ ![ Swift 5.1] ( https://img.shields.io/badge/swift-5.1 -green.svg?longCache=true&style=flat-square )] ( https://developer.apple.com/swift )
4
+ [ ![ Platforms ] ( https://img.shields.io/badge/platforms -iOS%20%7C%20macOS%20%7C%20tvOS-lightgrey.svg?longCache=true&style=flat-square )] ( https://www.apple.com )
5
5
[ ![ Current Version] ( https://img.shields.io/github/v/tag/crelies/RemoteImage?longCache=true&style=flat-square )] ( https://github.com/crelies/RemoteImage )
6
+ [ ![ Build status] ( https://travis-ci.com/crelies/RemoteImage.svg?token=THnaziKxRFFz1nKcsPgz&branch=dev )] ( https://travis-ci.com/crelies/RemoteImage )
7
+ [ ![ Code coverage] ( https://codecov.io/gh/crelies/RemoteImage/branch/dev/graph/badge.svg?token=DhJyoUKNPM )] ( https://codecov.io/gh/crelies/RemoteImage )
6
8
[ ![ License] ( https://img.shields.io/badge/license-MIT-lightgrey.svg?longCache=true&style=flat-square )] ( https://en.wikipedia.org/wiki/MIT_License )
7
9
8
10
This Swift package provides a wrapper view around the existing ** SwiftUI** ` Image view ` which adds support for showing and caching remote images.
Original file line number Diff line number Diff line change 5
5
// Created by Christian Elies on 15.12.19.
6
6
//
7
7
8
+ #if canImport(SwiftUI) && canImport(UIKit)
8
9
import Combine
9
10
@testable import RemoteImage
11
+ import SwiftUI
12
+ import UIKit
10
13
import XCTest
11
14
12
15
final class RemoteImageServiceTests : XCTestCase {
@@ -283,3 +286,4 @@ final class RemoteImageServiceTests: XCTestCase {
283
286
}
284
287
}
285
288
}
289
+ #endif
You can’t perform that action at this time.
0 commit comments