-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Conversation
@@ -25,6 +25,6 @@ | |||
<string>arm64</string> | |||
</array> | |||
<key>MinimumOSVersion</key> | |||
<string>8.0</string> | |||
<string>9.0</string> |
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
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
Automatic from flutter/flutter#85174
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.
Nice :)
The description says "Turn on code coverage", but I'm not seeing project changes other than deployment target.
packages/google_sign_in/google_sign_in/example/ios/RunnerTests/GoogleSignInTests.m
Outdated
Show resolved
Hide resolved
packages/google_sign_in/google_sign_in/example/ios/RunnerTests/GoogleSignInTests.m
Outdated
Show resolved
Hide resolved
packages/google_sign_in/google_sign_in/example/ios/RunnerTests/GoogleSignInTests.m
Show resolved
Hide resolved
packages/google_sign_in/google_sign_in/example/ios/RunnerTests/GoogleSignInTests.m
Show resolved
Hide resolved
packages/google_sign_in/google_sign_in/example/ios/RunnerTests/GoogleSignInTests.m
Outdated
Show resolved
Hide resolved
packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin.m
Outdated
Show resolved
Hide resolved
Ah sorry I removed that in an intermediate commit since it's not being checked anywhere, so not worth the overhead in CI. Fixed the description. |
@@ -0,0 +1,13 @@ | |||
// Copyright 2013 The Flutter Authors. All rights reserved. |
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.
Unfortunately I had to make this a public header to make it accessible to the RunnerTest.
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.
Maybe I should rename to FLTGoogleSignInPlugin_Test.h
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.
Just renamed it.
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.
It would be kind of ugly, but couldn't the test do a path-based include of the private header instead of getting it via the module import?
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.
Alternately, you could do the thing that I almost always tell people not to do (in favor of making an internal header like you did) and re-declare the method you need at the top of the test file. I've never liked it, but it seems better than actually making the private header public in the module.
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.
How about a Test
module so it needs to be explicitly imported?
@import google_sign_in;
@import google_sign_in.Test;
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.
LGTM with the private header thing adrressed
packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin_Test.h
Show resolved
Hide resolved
packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin_Test.h
Show resolved
Hide resolved
packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin_Test.h
Show resolved
Hide resolved
packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin_Test.h
Show resolved
Hide resolved
@@ -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 comment
The 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.
@@ -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 comment
The reason will be displayed to describe this comment to others. Learn more.
modulemap
shouldn't be included in the source files.
@@ -0,0 +1,10 @@ | |||
// Copyright 2013 The Flutter Authors. All rights reserved. |
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.
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.
export * | ||
module * { export * } | ||
|
||
explicit module Test { |
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.
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 google_sign_in.Test
be imported to access FLTGoogleSignInPlugin_Test. So initWithSignIn:
won't be available in the normal import google_sign_in
case, won't auto-complete, etc.
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.
LGTM
Refactored the existing unit tests to expose private interfaces in a separate test header instead of an inline interface. This was first introduced in the google_sign_in plugin (flutter#4157) and after that also applied in the camera plugin (flutter#4426) and the webview_flutter plugin (flutter#4480). This commit also removed several obsolete `OCMStub` declarations.
Refactored the existing unit tests to expose private interfaces in a separate test header instead of an inline interface. This was first introduced in the google_sign_in plugin (flutter#4157) and after that also applied in the camera plugin (flutter#4426) and the webview_flutter plugin (flutter#4480). This commit also removed several obsolete `OCMStub` declarations.
Refactored the existing unit tests to expose private interfaces in a separate test header instead of an inline interface. This was first introduced in the google_sign_in plugin (flutter#4157) and after that also applied in the camera plugin (flutter#4426) and the webview_flutter plugin (flutter#4480). This commit also removed several obsolete `OCMStub` declarations.
Refactored the existing unit tests to expose private interfaces in a separate test header instead of an inline interface. This was first introduced in the google_sign_in plugin (flutter#4157) and after that also applied in the camera plugin (flutter#4426) and the webview_flutter plugin (flutter#4480).
Refactored the existing unit tests to expose private interfaces in a separate test header instead of an inline interface. This was first introduced in the google_sign_in plugin (flutter#4157) and after that also applied in the camera plugin (flutter#4426) and the webview_flutter plugin (flutter#4480).
Refactored the existing unit tests to expose private interfaces in a separate test header instead of an inline interface. This was first introduced in the google_sign_in plugin (flutter#4157) and after that also applied in the camera plugin (flutter#4426) and the webview_flutter plugin (flutter#4480).
Refactored the existing unit tests to expose private interfaces in a separate test header instead of an inline interface. This was first introduced in the google_sign_in plugin (flutter#4157) and after that also applied in the camera plugin (flutter#4426) and the webview_flutter plugin (flutter#4480).
-[FLTGoogleSignInPlugin initWithSignIn:]
initializer to allow easy injection ofGIDSignIn
into unit tests. Expose in a newgoogle_sign_in.Test
explicit clang module. Include new modulemap and umbrella header to support this.Pre-launch Checklist
dart format
.)[shared_preferences]
///
).If you need help, consider asking for advice on the #hackers-new channel on Discord.