Skip to content

Commit 6bf6e34

Browse files
committed
Update swift test configs
1 parent ba23ba6 commit 6bf6e34

File tree

19 files changed

+32
-447
lines changed

19 files changed

+32
-447
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
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

Lines changed: 4 additions & 4 deletions
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 X" -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

Lines changed: 8 additions & 272 deletions
Large diffs are not rendered by default.

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

Lines changed: 0 additions & 57 deletions
This file was deleted.

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

Lines changed: 0 additions & 57 deletions
This file was deleted.

Examples/OSXTests/Info.plist

Lines changed: 0 additions & 24 deletions
This file was deleted.

Examples/WatchOSExample WatchKit App/Info.plist

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 0 deletions
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

Lines changed: 1 addition & 1 deletion
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>

0 commit comments

Comments
 (0)