Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/SimformSolutionsPvtLtd/SSGoogleLogin
The GoogleSigninReusabelComponets for iOS is the easiest way to get data from Google .
https://github.com/SimformSolutionsPvtLtd/SSGoogleLogin
Last synced: about 1 month ago
JSON representation
The GoogleSigninReusabelComponets for iOS is the easiest way to get data from Google .
- Host: GitHub
- URL: https://github.com/SimformSolutionsPvtLtd/SSGoogleLogin
- Owner: SimformSolutionsPvtLtd
- License: mit
- Created: 2018-04-02T09:01:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-22T05:20:55.000Z (5 months ago)
- Last Synced: 2024-07-29T16:02:24.801Z (about 1 month ago)
- Language: Swift
- Size: 99.6 KB
- Stars: 19
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-SS-Mobile - SSGoogleLogin - The GoogleSigninReusabelComponets for iOS is the easiest way to get data from Google. (iOS Guides / Swift)
README
# Google Signin Reusable Components
The GoogleSigninReusabelComponets for iOS is the easiest way to get data from Google.
## Features
- [x] Get Specific user data from Google
## Requirements
- iOS 11.2+
- Xcode 14.3
Note: For Xcode version lower than 14.3 use version 2.0.1## Installation
#### Take LoginManager.swift and userData.Swift
Import two files in your project and it's done#### Manually
1. Configure Google App Settings for iOS (https://developers.google.com/identity/sign-in/ios/sign-in?ver=swift)
2. Download Google SDK Or Pod's for iOS
3. Add SDK to the Project
4. Configure Xcode Project
5. Connect App Delegate Using LoginManager.swift Methods
6. Congratulations!## Usage example
##### Developer must have to implement open url method in appdelegate file.
```swift
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation:
Any) -> Bool {
return SSGoogleManager.manager.handleOpenUrl(app: app, url: url)
}
```
##### For Version 3.0.0 (you can get default data when not passing any argument)```swift
SSGoogleManager.manager.logInWithGoogle(clientId: , presenting: UIViewController) { result in
switch result {
case .success(let userData):
print(userData)
case .failure(let error):
print(error.localizedDescription)
}
}
didDisconnectBlock: { result in
switch result {
case .success(let userData):
print(userData)
case .failure(let error):
print(error.localizedDescription)
}
}
```##### For Version 2.0.1 (you can get default data when not passing any argument)
```swift
SSGoogleManager.manager.logInWithGoogle(clientId: , controller: self, complitionBlock: { (userData, error) in
if error == nil {
print(userData ?? "")
} else {
print(error?.localizedDescription ?? "")
}
}) { (userData, error) in
if error == nil {
print(userData ?? "")
} else {
print(error?.localizedDescription ?? "")
}
}
```