This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[google_sign_in] Add iOS unit tests #4157
Merged
Merged
Changes from 1 commit
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b2d5f81
[google_sign_in] Add iOS unit tests
jmagman 4d90826
Format
jmagman cd4a6c4
Injected GIDSignIn
jmagman 9a67228
valueForKey
jmagman 6cc702f
Angle imports
jmagman fab5aa0
FLTGoogleSignInPlugin_Test
jmagman 6d48338
google_sign_in.Test module
jmagman 72fba46
Format
jmagman File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
google_sign_in.Test module
- Loading branch information
commit 6d48338d141fc1cc3ca16776b60e31a6c237b380
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/google_sign_in/google_sign_in/ios/Classes/FLTGoogleSignInPlugin.modulemap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 { | ||
| header "FLTGoogleSignInPlugin_Test.h" | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
packages/google_sign_in/google_sign_in/ios/Classes/google_sign_in-umbrella.h
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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 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[]; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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" | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.Testbe imported to access FLTGoogleSignInPlugin_Test. SoinitWithSignIn:won't be available in the normalimport google_sign_incase, won't auto-complete, etc.