Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 1.39 KB

1. GettingStarted.md

File metadata and controls

57 lines (45 loc) · 1.39 KB

Getting started

Install and start using Gravatar for iOS

Installation

Swift Package Manager

Adding Gravatar SDK to an iOS project in Xcode:

For more info, check the Apple Docs.

Adding Gravatar to a SPM project:
  1. Add the Gravatar-SDK-iOS as a dependency of your project. Recommended to use the latest tagged version.
  2. Add the Gravatar product as a dependency of your target.
let package = Package(
    name: "Package Name",
    dependencies: [
        // 1.
        .package(url: "https://github.com/Automattic/Gravatar-SDK-iOS.git", from: "x.y.z")
    ],
    targets: [
        .executableTarget(
            name: "Target Name",
            dependencies: [
                // 2.
                .product(name: "Gravatar", package: "Gravatar")
            ]
        )
    ]
)

CocoaPods

Add pod 'Gravatar' to your target in your PODFILE.

source 'https://github.com/CocoaPods/Specs.git'
use_frameworks!

target 'MyApp' do
    pod 'Gravatar'
end

Articles

@Links(visualStyle: list) { - doc:2.-DownloadingAvatar - doc:3.-UploadingAvatar - doc:4.-FetchingProfile }