This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
packages/google_sign_in/google_sign_in Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22// Use of this source code is governed by a BSD-style license that can be
33// found in the LICENSE file.
44
5- #import " FLTGoogleSignInPlugin_Private.h"
6-
75@import Flutter;
6+
87@import XCTest;
98@import google_sign_in;
109@import GoogleSignIn;
@@ -32,15 +31,10 @@ - (void)setUp {
3231 self.mockSignIn = mockSignIn;
3332
3433 OCMStub (self.mockPluginRegistrar .messenger ).andReturn (self.mockBinaryMessenger );
35- self.plugin = [[FLTGoogleSignInPlugin alloc ] initW ];
34+ self.plugin = [[FLTGoogleSignInPlugin alloc ] initWithSignIn: mockSignIn ];
3635 [FLTGoogleSignInPlugin registerWithRegistrar: self .mockPluginRegistrar];
3736}
3837
39- - (void )tearDown {
40- [self .mockSignIn stopMocking ];
41- [super tearDown ];
42- }
43-
4438- (void )testUnimplementedMethod {
4539 FlutterMethodCall *methodCall = [FlutterMethodCall methodCallWithMethodName: @" bogus"
4640 arguments: nil ];
Original file line number Diff line number Diff line change 3737}
3838
3939@interface FLTGoogleSignInPlugin () <GIDSignInDelegate>
40- @property (strong , readonly ) GIDSignIn *signIn;
40+ @property (strong , readonly ) GIDSignIn *signIn;
4141
4242// Redeclared as not a designated initializer.
4343- (instancetype )init ;
@@ -173,8 +173,7 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
173173
174174 if ([self setAccountRequest: result]) {
175175 _additionalScopesRequest = missingScopes;
176- self.signIn .scopes =
177- [currentScopes arrayByAddingObjectsFromArray: missingScopes];
176+ self.signIn .scopes = [currentScopes arrayByAddingObjectsFromArray: missingScopes];
178177 self.signIn .presentingViewController = [self topViewController ];
179178 self.signIn .loginHint = user.profile .email ;
180179 @try {
Original file line number Diff line number Diff line change @@ -13,8 +13,7 @@ Enables Google Sign-In in Flutter apps.
1313 s . author = { 'Flutter Team' => 'flutter-dev@googlegroups.com' }
1414 s . source = { :http => 'https://github.com/flutter/plugins/tree/master/packages/google_sign_in' }
1515 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'
1817 s . dependency 'Flutter'
1918 s . dependency 'GoogleSignIn' , '~> 5.0'
2019 s . static_framework = true
You can’t perform that action at this time.
0 commit comments