-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[google_sign_in] Add iOS unit tests #4157
Changes from all commits
b2d5f81
4d90826
cd4a6c4
9a67228
6cc702f
fab5aa0
6d48338
72fba46
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -539,7 +539,7 @@ | |
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||
GCC_WARN_UNUSED_FUNCTION = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 8.0; | ||
IPHONEOS_DEPLOYMENT_TARGET = 9.0; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Automatic from flutter/flutter#85174 |
||
MTL_ENABLE_DEBUG_INFO = YES; | ||
ONLY_ACTIVE_ARCH = YES; | ||
SDKROOT = iphoneos; | ||
|
@@ -589,7 +589,7 @@ | |
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||
GCC_WARN_UNUSED_FUNCTION = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 8.0; | ||
IPHONEOS_DEPLOYMENT_TARGET = 9.0; | ||
MTL_ENABLE_DEBUG_INFO = NO; | ||
SDKROOT = iphoneos; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
|
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
framework module google_sign_in { | ||
umbrella header "google_sign_in-umbrella.h" | ||
|
||
export * | ||
module * { export * } | ||
|
||
explicit module Test { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This isn't a private module since there are some complications for Swift files not being able to import those. Instead, this explicit module requires that |
||
header "FLTGoogleSignInPlugin_Test.h" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright 2013 The Flutter Authors. All rights reserved. | ||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
// This header is available in the Test module. Import via "@import google_sign_in.Test;" | ||
|
||
#import <google_sign_in/FLTGoogleSignInPlugin.h> | ||
|
||
@class GIDSignIn; | ||
|
||
/// Methods exposed for unit testing. | ||
@interface FLTGoogleSignInPlugin () | ||
jmagman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
/// Inject @c GIDSignIn for testing. | ||
- (instancetype)initWithSignIn:(GIDSignIn *)signIn NS_DESIGNATED_INITIALIZER; | ||
jmagman marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
@end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// Copyright 2013 The Flutter Authors. All rights reserved. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The file was previously generated by CocoaPods with the same name. Now we need to manage it manually and check it into the repo because we're defining a module map, which takes us out of the magical auto module world. |
||
// Use of this source code is governed by a BSD-style license that can be | ||
// found in the LICENSE file. | ||
|
||
#import <Foundation/Foundation.h> | ||
#import <google_sign_in/FLTGoogleSignInPlugin.h> | ||
|
||
FOUNDATION_EXPORT double google_sign_inVersionNumber; | ||
FOUNDATION_EXPORT const unsigned char google_sign_inVersionString[]; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,8 +12,9 @@ Enables Google Sign-In in Flutter apps. | |
s.license = { :type => 'BSD', :file => '../LICENSE' } | ||
s.author = { 'Flutter Team' => '[email protected]' } | ||
s.source = { :http => 'https://github.com/flutter/plugins/tree/master/packages/google_sign_in' } | ||
s.source_files = 'Classes/**/*' | ||
s.source_files = 'Classes/**/*.{h,m}' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
s.public_header_files = 'Classes/**/*.h' | ||
s.module_map = 'Classes/FLTGoogleSignInPlugin.modulemap' | ||
s.dependency 'Flutter' | ||
s.dependency 'GoogleSignIn', '~> 5.0' | ||
s.static_framework = true | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ description: Flutter plugin for Google Sign-In, a secure authentication system | |
for signing in with a Google account on Android and iOS. | ||
repository: https://github.com/flutter/plugins/tree/master/packages/google_sign_in/google_sign_in | ||
issue_tracker: https://github.com/flutter/flutter/issues?q=is%3Aissue+is%3Aopen+label%3A%22p%3A+google_sign_in%22 | ||
version: 5.0.4 | ||
version: 5.0.5 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @stuartmorgan with the module change this seems different enough to warrant a patch bump. |
||
|
||
environment: | ||
sdk: ">=2.12.0 <3.0.0" | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Automatic from flutter/flutter#85174