Skip to content

Commit d7ffa9e

Browse files
Merge branch 'main' into main
2 parents e7222c4 + 4a231ae commit d7ffa9e

File tree

46 files changed

+1373
-1250
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+1373
-1250
lines changed

.ci/flutter_master.version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2773c0c8e15e5a5bfe90e44eef3faa7cc0ba6803
1+
adffe244f3f112e35736d08d85ab4cdbe8e13aa4

packages/camera/camera/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## NEXT
1+
## 0.11.2
22

33
* Fixes overflowed toggles in the camera example.
4+
* Fixes `CameraLensType` export.
45

56
## 0.11.1
67

packages/camera/camera/lib/camera.dart

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ export 'package:camera_platform_interface/camera_platform_interface.dart'
77
CameraDescription,
88
CameraException,
99
CameraLensDirection,
10+
CameraLensType,
1011
ExposureMode,
1112
FlashMode,
1213
FocusMode,

packages/camera/camera/pubspec.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: A Flutter plugin for controlling the camera. Supports previewing
44
Dart.
55
repository: https://github.com/flutter/packages/tree/main/packages/camera/camera
66
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+camera%22
7-
version: 0.11.1
7+
version: 0.11.2
88

99
environment:
1010
sdk: ^3.6.0
@@ -23,7 +23,7 @@ flutter:
2323
dependencies:
2424
camera_android_camerax: ^0.6.13
2525
camera_avfoundation: ^0.9.18
26-
camera_platform_interface: ^2.9.0
26+
camera_platform_interface: ^2.10.0
2727
camera_web: ^0.3.3
2828
flutter:
2929
sdk: flutter
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// Copyright 2013 The Flutter Authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// ignore_for_file: unnecessary_statements
6+
7+
import 'package:camera/camera.dart' as main_file;
8+
import 'package:flutter_test/flutter_test.dart';
9+
10+
void main() {
11+
group('camera', () {
12+
test(
13+
'ensure camera.dart exports classes from platform interface',
14+
() {
15+
main_file.CameraDescription;
16+
main_file.CameraException;
17+
main_file.CameraLensDirection;
18+
main_file.CameraLensType;
19+
main_file.ExposureMode;
20+
main_file.FlashMode;
21+
main_file.FocusMode;
22+
main_file.ImageFormatGroup;
23+
main_file.ResolutionPreset;
24+
main_file.XFile;
25+
},
26+
);
27+
});
28+
}

packages/google_sign_in/google_sign_in_ios/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 6.0.1
2+
3+
* Returns configuration errors as `PlatformException`s in Dart instead of
4+
crashing the app.
5+
16
## 6.0.0
27

38
* **BREAKING CHANGE**: Switches to implementing version 3.0 of the platform

packages/google_sign_in/google_sign_in_ios/darwin/Tests/GoogleSignInTests.m

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -371,26 +371,26 @@ - (void)testSignInError {
371371
[self waitForExpectationsWithTimeout:5.0 handler:nil];
372372
}
373373

374-
- (void)testSignInException {
374+
- (void)testSignInExceptionReturnsError {
375375
OCMExpect([self configureMock:self.mockSignIn
376376
forSignInWithHint:OCMOCK_ANY
377377
additionalScopes:OCMOCK_ANY
378378
completion:OCMOCK_ANY])
379379
.andThrow([NSException exceptionWithName:@"MockName" reason:@"MockReason" userInfo:nil]);
380380

381-
__block FlutterError *error;
382-
XCTAssertThrows([self.plugin
383-
signInWithScopeHint:@[]
384-
nonce:nil
385-
completion:^(FSISignInResult *result, FlutterError *signInError) {
386-
// Unexpected errors, such as runtime exceptions, are returned as FlutterError.
387-
XCTAssertNil(result);
388-
error = signInError;
389-
}]);
390-
391-
XCTAssertEqualObjects(error.code, @"google_sign_in");
392-
XCTAssertEqualObjects(error.message, @"MockReason");
393-
XCTAssertEqualObjects(error.details, @"MockName");
381+
XCTestExpectation *expectation = [self expectationWithDescription:@"completion called"];
382+
[self.plugin signInWithScopeHint:@[]
383+
nonce:nil
384+
completion:^(FSISignInResult *result, FlutterError *error) {
385+
// Unexpected errors, such as runtime exceptions, are returned as
386+
// FlutterError.
387+
XCTAssertNil(result);
388+
XCTAssertEqualObjects(error.code, @"google_sign_in");
389+
XCTAssertEqualObjects(error.message, @"MockReason");
390+
XCTAssertEqualObjects(error.details, @"MockName");
391+
[expectation fulfill];
392+
}];
393+
[self waitForExpectationsWithTimeout:5.0 handler:nil];
394394
}
395395

396396
#pragma mark - refreshedAuthorizationTokens

packages/google_sign_in/google_sign_in_ios/darwin/google_sign_in_ios/Sources/google_sign_in_ios/FLTGoogleSignInPlugin.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ - (void)signInWithScopeHint:(NSArray<NSString *> *)scopeHint
196196
}];
197197
} @catch (NSException *e) {
198198
completion(nil, [FlutterError errorWithCode:@"google_sign_in" message:e.reason details:e.name]);
199-
[e raise];
200199
}
201200
}
202201

packages/google_sign_in/google_sign_in_ios/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: google_sign_in_ios
22
description: iOS implementation of the google_sign_in plugin.
33
repository: https://github.com/flutter/packages/tree/main/packages/google_sign_in/google_sign_in_ios
44
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+google_sign_in%22
5-
version: 6.0.0
5+
version: 6.0.1
66

77
environment:
88
sdk: ^3.6.0

packages/in_app_purchase/in_app_purchase_storekit/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 0.4.3
2+
3+
* Adds **Introductory Offer Eligibility** support for StoreKit2
4+
15
## 0.4.2
26

37
* Add [jwsRepresentation](https://developer.apple.com/documentation/storekit/verificationresult/jwsrepresentation-21vgo) to `SK2PurchaseDetails` as `serverVerificationData` for secure server-side purchase verification. Use this JSON Web Signature (JWS) value to perform your own JWS verification on your server.

0 commit comments

Comments
 (0)