Skip to content

Commit 7315341

Browse files
authored
Merge pull request #5 from StarryInternet/carthage-improvements
Update carthage-compatible project to use one multiplatform framework target
2 parents 3cc82f3 + 2ace236 commit 7315341

9 files changed

Lines changed: 78 additions & 1092 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,38 +2,39 @@ name: CI
22

33
on:
44
push:
5-
branches: [ master ]
5+
branches: [master]
66
paths:
7-
- '**.swift'
8-
- '**.podspec'
9-
- '.github/workflows/*'
7+
- "**.swift"
8+
- "**.podspec"
9+
- ".github/workflows/*"
1010
pull_request:
11-
branches: [ master ]
11+
branches: [master]
1212
paths:
13-
- '**.swift'
14-
- '**.podspec'
15-
- '.github/workflows/*'
13+
- "**.swift"
14+
- "**.podspec"
15+
- ".github/workflows/*"
1616

1717
jobs:
1818
build-mac:
1919
runs-on: macos-latest
2020
steps:
21-
- uses: actions/checkout@v2
22-
- name: Build
23-
run: swift build
24-
- name: Run tests
25-
run: swift test
26-
- name: Pod lint
27-
run: pod lib lint --quick
21+
- uses: actions/checkout@v2
22+
- name: Build
23+
run: swift build
24+
- name: Run tests
25+
run: swift test
26+
- name: Pod lint
27+
run: pod lib lint --quick
28+
- name: Verify Carthage
29+
run: carthage build --no-skip-current --verbose --use-xcframeworks --platform macOS
2830

29-
3031
build-ios:
3132
runs-on: macos-latest
3233
steps:
33-
- uses: actions/checkout@v2
34-
- name: Build
35-
run: |
36-
swift build -Xswiftc "-sdk" \
37-
-Xswiftc `xcrun --sdk iphonesimulator --show-sdk-path` \
38-
-Xswiftc "-target" \
39-
-Xswiftc "x86_64-apple-ios`xcrun --show-sdk-version --sdk iphonesimulator`-simulator"
34+
- uses: actions/checkout@v2
35+
- name: Build
36+
run: |
37+
swift build -Xswiftc "-sdk" \
38+
-Xswiftc `xcrun --sdk iphonesimulator --show-sdk-path` \
39+
-Xswiftc "-target" \
40+
-Xswiftc "x86_64-apple-ios`xcrun --show-sdk-version --sdk iphonesimulator`-simulator"

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
/.build
33
/Packages
44
xcuserdata
5-
.swiftpm
5+
.swiftpm
6+
/Carthage

CombineCoreBluetooth.xcodeproj/project.pbxproj

Lines changed: 30 additions & 833 deletions
Large diffs are not rendered by default.

CombineCoreBluetooth.xcodeproj/xcshareddata/xcschemes/CombineCoreBluetooth macOS.xcscheme

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

CombineCoreBluetooth.xcodeproj/xcshareddata/xcschemes/CombineCoreBluetooth tvOS.xcscheme

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

CombineCoreBluetooth.xcodeproj/xcshareddata/xcschemes/CombineCoreBluetooth watchOS.xcscheme

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

CombineCoreBluetooth.xcodeproj/xcshareddata/xcschemes/CombineCoreBluetooth iOS.xcscheme renamed to CombineCoreBluetooth.xcodeproj/xcshareddata/xcschemes/CombineCoreBluetooth.xcscheme

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
BuildableIdentifier = "primary"
1717
BlueprintIdentifier = "EB443F8D27C6BCA70005CCEA"
1818
BuildableName = "CombineCoreBluetooth.framework"
19-
BlueprintName = "CombineCoreBluetooth iOS"
19+
BlueprintName = "CombineCoreBluetooth"
2020
ReferencedContainer = "container:CombineCoreBluetooth.xcodeproj">
2121
</BuildableReference>
2222
</BuildActionEntry>
@@ -33,8 +33,8 @@
3333
<BuildableReference
3434
BuildableIdentifier = "primary"
3535
BlueprintIdentifier = "EB443FD827C6C1940005CCEA"
36-
BuildableName = "CombineCoreBluetooth iOS Tests.xctest"
37-
BlueprintName = "CombineCoreBluetooth iOS Tests"
36+
BuildableName = "CombineCoreBluetooth Tests.xctest"
37+
BlueprintName = "CombineCoreBluetooth Tests"
3838
ReferencedContainer = "container:CombineCoreBluetooth.xcodeproj">
3939
</BuildableReference>
4040
</TestableReference>
@@ -62,7 +62,7 @@
6262
BuildableIdentifier = "primary"
6363
BlueprintIdentifier = "EB443F8D27C6BCA70005CCEA"
6464
BuildableName = "CombineCoreBluetooth.framework"
65-
BlueprintName = "CombineCoreBluetooth iOS"
65+
BlueprintName = "CombineCoreBluetooth"
6666
ReferencedContainer = "container:CombineCoreBluetooth.xcodeproj">
6767
</BuildableReference>
6868
</MacroExpansion>

CombineCoreBluetooth.xcworkspace/contents.xcworkspacedata

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>IDEDidComputeMac32BitWarning</key>
6+
<true/>
7+
</dict>
8+
</plist>

0 commit comments

Comments
 (0)