Latest 2.3.1
Homepage https://github.com/Gini-Apps/GASocialLogin
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

Markdownify

GASocialLogin

Easy social media log in

SponsorVersionAuthorSwiftSwift

Table of Contents

  1. Support
  2. Requirements
  3. Installation
  4. How to Use
  5. Guides

Support

GASocialLogin support the following social login:

  • Facebook
  • Google

Requirements:

  • iOS 9.0+
  • Xcode 10.0+
  • Swift 4.2+

Installation:

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:

$ gem install cocoapods

To integrate GASocialLogin into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '10.0'
use_frameworks!

target '<Your Target Name>' do
  pod 'GASocialLogin/Facebook'
  pod 'GASocialLogin/Google'
end

Then, run the following command:

$ pod install

How to Use:

Call to configure with the servises configuration you want at the application didFinishLaunchingWithOptions,
Than call to GASocialLogin.shard.application(application, didFinishLaunchingWithOptions: launchOptions).

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool 
{
        // Override point for customization after application launch.

        let facebookConfiguration = GAFacebookLoginConfiguration(facebookURLScheme: "facebookURLScheme")
        GASocialLogin.shard.configure(using: [facebookConfiguration])

        GASocialLogin.shard.application(application, didFinishLaunchingWithOptions: launchOptions)

        return true
}

implement "func application(_ app:, open url: , options: ) -> Bool" and call to GASocialLogin.shard.application(app, open: url, options: options)

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool
{
        return GASocialLogin.shard.application(app, open: url, options: options)
}

Guides:

Latest podspec

{
    "name": "GASocialLogin",
    "version": "2.3.1",
    "summary": "Easy social media log in",
    "description": "Easy social media log in.",
    "homepage": "https://github.com/Gini-Apps/GASocialLogin",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "idoMeirov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Gini-Apps/GASocialLogin.git",
        "tag": "2.3.1"
    },
    "swift_version": "4.2",
    "platforms": {
        "ios": "9.0"
    },
    "frameworks": "UIKit",
    "default_subspecs": "Core",
    "subspecs": [
        {
            "name": "Core",
            "source_files": "GASocialLogin/Core/**/*"
        },
        {
            "name": "Facebook",
            "source_files": "GASocialLogin/Facebook/**/*",
            "dependencies": {
                "GASocialLogin/Core": [],
                "FBSDKLoginKit": [
                    "~> 4.38"
                ]
            }
        },
        {
            "name": "Google",
            "source_files": "GASocialLogin/Google/**/*",
            "pod_target_xcconfig": {
                "OTHER_SWIFT_FLAGS": "$(inherited) -DSYNCSERVER_GOOGLE_SIGNIN",
                "OTHER_LDFLAGS": "$(inherited) -ObjC"
            },
            "resources": "GASocialLogin/Assets/Google/GoogleSignIn.bundle",
            "preserve_paths": "GASocialLogin/ExternalVendors/Google/*.framework",
            "vendored_frameworks": [
                "GASocialLogin/ExternalVendors/Google/GoogleSignIn.framework",
                "GASocialLogin/ExternalVendors/Google/GoogleSignInDependencies.framework"
            ],
            "frameworks": [
                "UIKit",
                "LocalAuthentication",
                "SafariServices",
                "SystemConfiguration"
            ],
            "dependencies": {
                "GASocialLogin/Core": []
            }
        }
    ]
}

Pin It on Pinterest

Share This