Latest 1.0.2
Homepage https://github.com/BiAtoms/LinkedIn.swift
License MIT
Platforms ios 9.0
Authors

Platform
Cocoapods Compatible
Carthage Compatible
License

LinkedIn SDK iOS dependency eleminating manual import of linkedin-sdk.framework into your swift project

Usage

  1. Follow LinkedIn iOS Docs and set up your app
  2. Add following to your AppDelegate.swift

    func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
    
        return LinkedIn.application(app,
                                    open: url,
                                    options: options)
    }
  3. import LinkedInSDK, now can use LISDKSessionManager etc. classes in your project.

Features

LinkedIn.swift simplifies login and fetch user process out of the box. import LinkedInSwift (not LinkedInSDK)

import LinkedInSwift
// ...
LinkedIn.login(permissions: [.basicProfile, .email] { (user: LinkedInUser?, error: Error?) in
    print(user?.jsonDict as Any, error as Any)
}

LinkedInUser stores user info in jsonDict: [String: Any] field and there are couple of getters to simplify the access those parameters. For more information see LinkedInUser.swift and other files.

Installation

CocoaPods

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

$ gem install cocoapods

To integrate LinkedIn.swift into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
target '<Your Target Name>' do
    pod 'LinkedIn.swift', '~> 1.0'
end

Then, run the following command:

$ pod install

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate LinkedIn.swift into your Xcode project using Carthage, specify it in your Cartfile:

github "BiAtoms/LinkedIn.swift" ~> 1.0

Run carthage update to build the framework and drag the built LinkedInSwift.framework into your Xcode project.

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License – see the LICENSE file for details

Latest podspec

{
    "name": "LinkedIn.swift",
    "version": "1.0.2",
    "summary": "LinkedIn SDK wrapper for swift.",
    "homepage": "https://github.com/BiAtoms/LinkedIn.swift",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Orkhan Alikhanov": "[email protected]"
    },
    "source": {
        "git": "https://github.com/BiAtoms/LinkedIn.swift.git",
        "tag": "1.0.2"
    },
    "module_name": "LinkedInSwift",
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "Sources/*.swift",
    "preserve_paths": [
        "Sources/module.modulemap",
        "Sources/LinkedInSDK.h"
    ],
    "vendored_frameworks": "Sources/linkedin-sdk.framework",
    "pod_target_xcconfig": {
        "SWIFT_INCLUDE_PATHS": "$(PODS_TARGET_SRCROOT)/Sources"
    }
}

Pin It on Pinterest

Share This