File tree Expand file tree Collapse file tree 3 files changed +31
-9
lines changed Expand file tree Collapse file tree 3 files changed +31
-9
lines changed Original file line number Diff line number Diff line change @@ -20,13 +20,24 @@ jobs:
20
20
runs-on : macOS-latest
21
21
steps :
22
22
- uses : actions/checkout@v2
23
- - name : Xcode 12
24
- run : sudo xcode-select -s /Applications/Xcode_12.app/Contents/Developer
25
23
- name : Initialize xcodebuild
26
24
run : xcodebuild -list
27
25
- name : iOS Unit Tests
28
26
run : scripts/third_party/travis/retry.sh ./scripts/build.sh Firebase-Package iOS spm
29
27
28
+ # Test iOS Device build since some Firestore dependencies build different files.
29
+ iOS-Device :
30
+ # Don't run on private repo unless it is a PR.
31
+ if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
32
+ runs-on : macOS-latest
33
+ steps :
34
+ - uses : actions/checkout@v2
35
+ - name : Initialize xcodebuild
36
+ run : xcodebuild -list
37
+ - name : iOS Unit Tests
38
+ # TODO (#7785) Change to Firebase-Package when #7785 is resolved.
39
+ run : scripts/third_party/travis/retry.sh ./scripts/build.sh FirebaseFirestoreSwift-Beta iOS-device spmbuildonly
40
+
30
41
platforms :
31
42
# Don't run on private repo unless it is a PR.
32
43
if : (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request'
39
50
test : [objc-import-test, swift-test, version-test]
40
51
steps :
41
52
- uses : actions/checkout@v2
42
- - name : Xcode 12
43
- run : sudo xcode-select -s /Applications/Xcode_12.app/Contents/Developer
44
53
- name : Initialize xcodebuild
45
54
run : xcodebuild -list
46
55
- name : Unit Tests
Original file line number Diff line number Diff line change @@ -102,11 +102,15 @@ let package = Package(
102
102
) ,
103
103
] ,
104
104
dependencies: [
105
- . package ( name: " Promises " , url: " https://github.com/google/promises.git " , " 1.2.8 " ..< " 1.3.0 " ) ,
105
+ . package (
106
+ name: " Promises " ,
107
+ url: " https://github.com/google/promises.git " ,
108
+ " 1.2.8 " ..< " 1.3.0 "
109
+ ) ,
106
110
. package (
107
111
name: " SwiftProtobuf " ,
108
112
url: " https://github.com/apple/swift-protobuf.git " ,
109
- from : " 1.14 .0 "
113
+ " 1.15.0 " ..< " 2.0 .0"
110
114
) ,
111
115
. package (
112
116
name: " GoogleAppMeasurement " ,
@@ -131,18 +135,17 @@ let package = Package(
131
135
. package (
132
136
name: " nanopb " ,
133
137
url: " https://github.com/firebase/nanopb.git " ,
134
- // This revision adds SPM enablement to the 0.3.9.6 release tag.
135
138
" 2.30908.0 " ..< " 2.30909.0 "
136
139
) ,
137
140
. package (
138
141
name: " abseil " ,
139
142
url: " https://github.com/firebase/abseil-cpp-SwiftPM.git " ,
140
- from : " 0.20200225.1 "
143
+ " 0.20200225.3 " ..< " 0.20200226.0 "
141
144
) ,
142
145
. package (
143
146
name: " gRPC " ,
144
147
url: " https://github.com/firebase/grpc-SwiftPM.git " ,
145
- " 1.28.3 " ..< " 1.29.0 "
148
+ " 1.28.4 " ..< " 1.29.0 "
146
149
) ,
147
150
. package (
148
151
name: " OCMock " ,
Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ product can be one of:
46
46
47
47
platform can be one of:
48
48
iOS (default)
49
+ iOS-device
49
50
macOS
50
51
tvOS
51
52
watchOS
@@ -154,6 +155,10 @@ else
154
155
)
155
156
fi
156
157
158
+ ios_device_flags=(
159
+ -sdk ' iphoneos'
160
+ )
161
+
157
162
ipad_flags=(
158
163
-sdk ' iphonesimulator'
159
164
-destination ' platform=iOS Simulator,name=iPad Pro (9.7-inch)'
@@ -183,6 +188,11 @@ case "$platform" in
183
188
gen_platform=ios
184
189
;;
185
190
191
+ iOS-device)
192
+ xcb_flags=(" ${ios_device_flags[@]} " )
193
+ gen_platform=ios
194
+ ;;
195
+
186
196
iPad)
187
197
xcb_flags=(" ${ipad_flags[@]} " )
188
198
;;
You can’t perform that action at this time.
0 commit comments