Skip to content

Commit bf0c9e6

Browse files
committed
Update swift test configs
1 parent ba23ba6 commit bf0c9e6

19 files changed

+32
-447
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,6 @@ DerivedData
1717
*.hmap
1818
*.xccheckout
1919
*.txt
20+
.swiftpm/*
21+
.build/*
22+
DynamicColor.xcodeproj

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
language: objective-c
2-
osx_image: xcode10.2
2+
osx_image: xcode11
33
script:
44
- brew install swiftlint || brew upgrade swiftlint
55
- swiftlint lint --path Sources/ --config ../.swiftlint.yml
6-
- cd Examples
6+
- swift package -c release generate-xcodeproj
77
- xcodebuild -version
8-
- xcodebuild -project DynamicColorExample.xcodeproj -scheme iOSTests -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 6" -configuration Release ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
8+
- xcodebuild -project DynamicColor.xcodeproj -scheme DynamicColor-Package -sdk iphonesimulator -destination "platform=iOS Simulator,name=iPhone 8" -configuration Release ONLY_ACTIVE_ARCH=YES -enableCodeCoverage YES test
99
- bash <(curl -s https://codecov.io/bash) -cF ios
10-
- xcodebuild -project DynamicColorExample.xcodeproj -scheme OSXTests -sdk macosx -configuration Release -enableCodeCoverage YES test
10+
- xcodebuild -project DynamicColor.xcodeproj -scheme DynamicColor-Package -sdk macosx -configuration Release -enableCodeCoverage YES test
1111
- bash <(curl -s https://codecov.io/bash) -cF osx

Examples/DynamicColorExample.xcodeproj/project.pbxproj

+8-272
Large diffs are not rendered by default.

Examples/DynamicColorExample.xcodeproj/xcshareddata/xcschemes/OSXTests.xcscheme

-57
This file was deleted.

Examples/DynamicColorExample.xcodeproj/xcshareddata/xcschemes/iOSTests.xcscheme

-57
This file was deleted.

Examples/OSXTests/Info.plist

-24
This file was deleted.

Examples/WatchOSExample WatchKit App/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>APPL</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>4.1.0</string>
20+
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>

Examples/WatchOSExample WatchKit Extension/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<key>CFBundlePackageType</key>
1818
<string>XPC!</string>
1919
<key>CFBundleShortVersionString</key>
20-
<string>4.1.0</string>
20+
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleSignature</key>
2222
<string>????</string>
2323
<key>CFBundleVersion</key>

Examples/WatchOSExample.xcodeproj/project.pbxproj

+6
Original file line numberDiff line numberDiff line change
@@ -555,6 +555,7 @@
555555
buildSettings = {
556556
INFOPLIST_FILE = "WatchOSExample WatchKit Extension/Info.plist";
557557
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
558+
MARKETING_VERSION = 4.2.0;
558559
PRODUCT_BUNDLE_IDENTIFIER = com.yannickloriot.WatchOSExample.watchkitapp.watchkitextension;
559560
PRODUCT_NAME = "${TARGET_NAME}";
560561
SDKROOT = watchos;
@@ -569,6 +570,7 @@
569570
buildSettings = {
570571
INFOPLIST_FILE = "WatchOSExample WatchKit Extension/Info.plist";
571572
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @executable_path/../../Frameworks";
573+
MARKETING_VERSION = 4.2.0;
572574
PRODUCT_BUNDLE_IDENTIFIER = com.yannickloriot.WatchOSExample.watchkitapp.watchkitextension;
573575
PRODUCT_NAME = "${TARGET_NAME}";
574576
SDKROOT = watchos;
@@ -586,6 +588,7 @@
586588
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
587589
IBSC_MODULE = WatchOSExample_WatchKit_Extension;
588590
INFOPLIST_FILE = "WatchOSExample WatchKit App/Info.plist";
591+
MARKETING_VERSION = 4.2.0;
589592
PRODUCT_BUNDLE_IDENTIFIER = com.yannickloriot.WatchOSExample.watchkitapp;
590593
PRODUCT_NAME = "$(TARGET_NAME)";
591594
SDKROOT = watchos;
@@ -602,6 +605,7 @@
602605
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
603606
IBSC_MODULE = WatchOSExample_WatchKit_Extension;
604607
INFOPLIST_FILE = "WatchOSExample WatchKit App/Info.plist";
608+
MARKETING_VERSION = 4.2.0;
605609
PRODUCT_BUNDLE_IDENTIFIER = com.yannickloriot.WatchOSExample.watchkitapp;
606610
PRODUCT_NAME = "$(TARGET_NAME)";
607611
SDKROOT = watchos;
@@ -617,6 +621,7 @@
617621
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
618622
INFOPLIST_FILE = WatchOSExample/Info.plist;
619623
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
624+
MARKETING_VERSION = 4.2.0;
620625
PRODUCT_BUNDLE_IDENTIFIER = com.yannickloriot.WatchOSExample;
621626
PRODUCT_NAME = "$(TARGET_NAME)";
622627
};
@@ -628,6 +633,7 @@
628633
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
629634
INFOPLIST_FILE = WatchOSExample/Info.plist;
630635
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
636+
MARKETING_VERSION = 4.2.0;
631637
PRODUCT_BUNDLE_IDENTIFIER = com.yannickloriot.WatchOSExample;
632638
PRODUCT_NAME = "$(TARGET_NAME)";
633639
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";

Examples/WatchOSExample/Info.plist

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>4.1.0</string>
18+
<string>$(MARKETING_VERSION)</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

Examples/iOSTests/Info.plist

-22
This file was deleted.

Tests/DynamicColor+HSBTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626

2727
import XCTest
28-
import DynamicColor
28+
@testable import DynamicColor
2929

3030
let TestsAcceptedAccuracy = CGFloat(0.000001)
3131

Tests/DynamicColor+HSLTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626

2727
import XCTest
28-
import DynamicColor
28+
@testable import DynamicColor
2929

3030
class DynamicColorHSLTests: XCTestCase {
3131
func testInitWithHSLComponents() {

Tests/DynamicColor+RGBATests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626

2727
import XCTest
28-
import DynamicColor
28+
@testable import DynamicColor
2929

3030
class DynamicColorRGBATests: XCTestCase {
3131
func testInit() {

Tests/DynamicColor+XYZTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626

2727
import XCTest
28-
import DynamicColor
28+
@testable import DynamicColor
2929

3030
class DynamicColorXYZTests: XCTestCase {
3131
func testInitWithXYZComponents() {

Tests/DynamicColorArrayTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626

2727
import XCTest
28-
import DynamicColor
28+
@testable import DynamicColor
2929

3030
class DynamicColorArrayTests: XCTestCase {
3131
func testGradientProperty() {

Tests/DynamicColorLabTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626

2727
import XCTest
28-
import DynamicColor
28+
@testable import DynamicColor
2929

3030
class DynamicColorLabTests: XCTestCase {
3131
func testInitWithLabComponents() {

Tests/DynamicColorTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626

2727
import XCTest
28-
import DynamicColor
28+
@testable import DynamicColor
2929

3030
class DynamicColorTests: XCTestCase {
3131
func testColorFromHexString() {

Tests/DynamicGradientTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626

2727
import XCTest
28-
import DynamicColor
28+
@testable import DynamicColor
2929

3030
class DynamicGradientTests: XCTestCase {
3131
func testColorPalette() {

0 commit comments

Comments
 (0)