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 11# RemoteImage
22
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 )
55[ ![ 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 )
68[ ![ License] ( https://img.shields.io/badge/license-MIT-lightgrey.svg?longCache=true&style=flat-square )] ( https://en.wikipedia.org/wiki/MIT_License )
79
810This 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 55// Created by Christian Elies on 15.12.19.
66//
77
8+ #if canImport(SwiftUI) && canImport(UIKit)
89import Combine
910@testable import RemoteImage
11+ import SwiftUI
12+ import UIKit
1013import XCTest
1114
1215final class RemoteImageServiceTests : XCTestCase {
@@ -283,3 +286,4 @@ final class RemoteImageServiceTests: XCTestCase {
283286 }
284287 }
285288}
289+ #endif
You can’t perform that action at this time.
0 commit comments