File tree Expand file tree Collapse file tree 5 files changed +45
-4
lines changed
Sources/Public/FirebaseAppDistribution Expand file tree Collapse file tree 5 files changed +45
-4
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,10 @@ iOS SDK for App Distribution for Firebase.
43
43
44
44
s . test_spec 'unit' do |unit_tests |
45
45
unit_tests . scheme = { :code_coverage => true }
46
- unit_tests . source_files = 'FirebaseAppDistribution/Tests/Unit*/*.[mh]'
46
+ unit_tests . source_files = [
47
+ 'FirebaseAppDistribution/Tests/Unit*/*.[mh]' ,
48
+ 'FirebaseAppDistribution/Tests/Unit/Swift*/*.swift' ,
49
+ ]
47
50
unit_tests . resources = 'FirebaseAppDistribution/Tests/Unit/Resources/*'
48
51
unit_tests . dependency 'OCMock'
49
52
end
Original file line number Diff line number Diff line change 1
1
# v9.0.0-beta
2
- - [ fixed] Marked ` releaseNotes ` as ` nullable ` as they don't always exist. (#8602 )
2
+ - [ fixed] Marked ` releaseNotes ` as ` nullable ` as they don't always exist (#8602 ).
3
+ - [ fixed] ** Breaking change:** Fixed an ObjC-to-Swift API conversion error where` checkForUpdate() `
4
+ returned a non-optional type. This change is breaking for Swift users only (#9604 ).
3
5
4
6
# v8.3.0-beta
5
7
- [ changed] Sign out the Tester when the call to fetch releases fails with an unauthorized error (#8270 ).
Original file line number Diff line number Diff line change @@ -46,8 +46,8 @@ NS_SWIFT_NAME(AppDistribution)
46
46
/* *
47
47
* Check to see whether a new distribution is available
48
48
*/
49
- - (void )checkForUpdateWithCompletion:
50
- ( void (^)(FIRAppDistributionRelease *_Nullable release, NSError *_Nullable error))completion
49
+ - (void )checkForUpdateWithCompletion:( void (^)(FIRAppDistributionRelease *_Nullable_result release,
50
+ NSError *_Nullable error))completion
51
51
NS_SWIFT_NAME (checkForUpdate(completion:));
52
52
53
53
/* *
Original file line number Diff line number Diff line change
1
+ // Copyright 2022 Google LLC
2
+ //
3
+ // Licensed under the Apache License, Version 2.0 (the "License");
4
+ // you may not use this file except in compliance with the License.
5
+ // You may obtain a copy of the License at
6
+ //
7
+ // http://www.apache.org/licenses/LICENSE-2.0
8
+ //
9
+ // Unless required by applicable law or agreed to in writing, software
10
+ // distributed under the License is distributed on an "AS IS" BASIS,
11
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ // See the License for the specific language governing permissions and
13
+ // limitations under the License.
14
+
15
+ import XCTest
16
+ @testable import FirebaseAppDistribution
17
+
18
+ class AppDistributionAPITests : XCTestCase {
19
+ @available ( iOS 13 . 0 . 0 , * )
20
+ func asyncAPIs( ) async throws {
21
+ let distro = AppDistribution . appDistribution ( )
22
+
23
+ // Release should be optional if there are no new releases.
24
+ let _: AppDistributionRelease ? = try await distro. checkForUpdate ( )
25
+ try await distro. signInTester ( )
26
+ }
27
+ }
Original file line number Diff line number Diff line change @@ -410,11 +410,20 @@ let package = Package(
410
410
name: " AppDistributionUnit " ,
411
411
dependencies: [ " FirebaseAppDistribution " , " OCMock " ] ,
412
412
path: " FirebaseAppDistribution/Tests/Unit " ,
413
+ exclude: [ " Swift/ " ] ,
413
414
resources: [ . process( " Resources " ) ] ,
414
415
cSettings: [
415
416
. headerSearchPath( " ../../.. " ) ,
416
417
]
417
418
) ,
419
+ . testTarget(
420
+ name: " AppDistributionUnitSwift " ,
421
+ dependencies: [ " FirebaseAppDistribution " ] ,
422
+ path: " FirebaseAppDistribution/Tests/Unit/Swift " ,
423
+ cSettings: [
424
+ . headerSearchPath( " ../../../.. " ) ,
425
+ ]
426
+ ) ,
418
427
419
428
. target(
420
429
name: " FirebaseAuth " ,
You can’t perform that action at this time.
0 commit comments