Skip to content

Commit 9fe0b6b

Browse files
author
Christian Elies
committed
Merge branch 'dev'
2 parents 0325ee9 + 9b09c05 commit 9fe0b6b

File tree

3 files changed

+16
-2
lines changed

3 files changed

+16
-2
lines changed

.travis.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
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

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
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

810
This Swift package provides a wrapper view around the existing **SwiftUI** `Image view` which adds support for showing and caching remote images.

Tests/RemoteImageTests/Services/RemoteImageServiceTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
// Created by Christian Elies on 15.12.19.
66
//
77

8+
#if canImport(SwiftUI) && canImport(UIKit)
89
import Combine
910
@testable import RemoteImage
11+
import SwiftUI
12+
import UIKit
1013
import XCTest
1114

1215
final class RemoteImageServiceTests: XCTestCase {
@@ -283,3 +286,4 @@ final class RemoteImageServiceTests: XCTestCase {
283286
}
284287
}
285288
}
289+
#endif

0 commit comments

Comments
 (0)