This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree 3 files changed +5
-13
lines changed
packages/google_sign_in/google_sign_in
3 files changed +5
-13
lines changed Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a BSD-style license that can be
3
3
// found in the LICENSE file.
4
4
5
- #import " FLTGoogleSignInPlugin_Private.h"
6
-
7
5
@import Flutter;
6
+
8
7
@import XCTest;
9
8
@import google_sign_in;
10
9
@import GoogleSignIn;
@@ -32,15 +31,10 @@ - (void)setUp {
32
31
self.mockSignIn = mockSignIn;
33
32
34
33
OCMStub (self.mockPluginRegistrar .messenger ).andReturn (self.mockBinaryMessenger );
35
- self.plugin = [[FLTGoogleSignInPlugin alloc ] initW ];
34
+ self.plugin = [[FLTGoogleSignInPlugin alloc ] initWithSignIn: mockSignIn ];
36
35
[FLTGoogleSignInPlugin registerWithRegistrar: self .mockPluginRegistrar];
37
36
}
38
37
39
- - (void )tearDown {
40
- [self .mockSignIn stopMocking ];
41
- [super tearDown ];
42
- }
43
-
44
38
- (void )testUnimplementedMethod {
45
39
FlutterMethodCall *methodCall = [FlutterMethodCall methodCallWithMethodName: @" bogus"
46
40
arguments: nil ];
Original file line number Diff line number Diff line change 37
37
}
38
38
39
39
@interface FLTGoogleSignInPlugin () <GIDSignInDelegate>
40
- @property (strong , readonly ) GIDSignIn *signIn;
40
+ @property (strong , readonly ) GIDSignIn *signIn;
41
41
42
42
// Redeclared as not a designated initializer.
43
43
- (instancetype )init ;
@@ -173,8 +173,7 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
173
173
174
174
if ([self setAccountRequest: result]) {
175
175
_additionalScopesRequest = missingScopes;
176
- self.signIn .scopes =
177
- [currentScopes arrayByAddingObjectsFromArray: missingScopes];
176
+ self.signIn .scopes = [currentScopes arrayByAddingObjectsFromArray: missingScopes];
178
177
self.signIn .presentingViewController = [self topViewController ];
179
178
self.signIn .loginHint = user.profile .email ;
180
179
@try {
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ Enables Google Sign-In in Flutter apps.
13
13
s . author = { 'Flutter Team' => '[email protected] ' }
14
14
s . source = { :http => 'https://github.com/flutter/plugins/tree/master/packages/google_sign_in' }
15
15
s . source_files = 'Classes/**/*'
16
- s . public_header_files = 'Classes/FLTGoogleSignInPlugin.h'
17
- s . private_header_files = 'Classes/**/*_Private.h'
16
+ s . public_header_files = 'Classes/**/*.h'
18
17
s . dependency 'Flutter'
19
18
s . dependency 'GoogleSignIn' , '~> 5.0'
20
19
s . static_framework = true
You can’t perform that action at this time.
0 commit comments