Installing the DaVinci client
You need to install the DaVinci client module into your application to use its functionality.
The method you use to install the module depends on which platform you are using.
Installing the DaVinci client for Android
To install the DaVinci client into your Android app:
-
In the Project tree view of your Android Studio project, open the
build.gradle.kts
file. -
In the
dependencies
section, add the following:// Ping SDK social sign-on dependencies implementation("com.pingidentity.sdks:davinci:1.1.0")
gradle
Installing the DaVinci client for iOS
You can use Swift Package Manager (SPM) or CocoaPods to add the DaVinci client to your iOS project.
-
Swift Package Manager
-
CocoaPods
-
With your project open in Xcode, select File > Add Package Dependencies.
-
In the search bar, enter the Ping SDK for iOS repository URL:
https://github.com/ForgeRock/ping-ios-sdk
. -
Select the
ping-ios-sdk
package, and then click Add Package. -
In the Choose Package Products dialog, ensure that the
PingDavinci
andPingExternalIdp
libraries are added to your target project. -
Click Add Package.
-
In your project, import the library:
import PingDavinci
swift
-
If you do not already have CocoaPods, install the latest version.
-
If you do not already have a Podfile, in a terminal window, run the following command to create a new Podfile:
pod init
-
Add the following lines to your Podfile:
pod 'PingDavinci'
-
Run the following command to install pods:
pod install
Installing the DaVinci client for JavaScript
The DaVinci client for JavaScript as available as an npm module at @forgerock/davinci-client.
To install the module into your JavaScript project, run the following npm
command:
npm install @forgerock/davinci-client@1.1.0
After installation, import the module into your app as follows:
import { davinci } from '@forgerock/davinci-client';
Next Steps
After installing the DaVinci client, you should configure it to connect to your server.
Lear more in Getting started with the DaVinci client.