---
title: Step 2. Install dependencies
description: To capture contextual data and perform risk evaluations, you must add the PingOne Protect module to your DaVinci Client project.
component: sdks
version: latest
page_id: sdks:davinci:use-cases/pingone-protect/02-dependencies
canonical_url: https://docs.pingidentity.com/sdks/latest/davinci/use-cases/pingone-protect/02-dependencies.html
section_ids:
  install-protect-android: Add Android dependencies
  install-protect-ios: Add iOS dependencies
  add_dependencies_using_cocoapods: Add dependencies using CocoaPods
  add_dependencies_using_swift_package_manager: Add dependencies using Swift Package Manager
  install-protect-javascript: Add JavaScript dependencies
---

# Step 2. Install dependencies

To capture contextual data and perform risk evaluations, you must add the PingOne Protect module to your DaVinci Client project.

Select your platform below for instructions on installing the required modules or dependencies:

[icon: android, set=fab, size=3x]

#### [DaVinci Client for Android](#install-protect-android)

Add the PingOne Protect dependencies to your Android project.

[icon: apple, set=fab, size=3x]

#### [DaVinci Client for iOS](#install-protect-ios)

Add the PingOne Protect dependencies to your iOS project by using Cocoapods or Swift Package Manager.

[icon: js, set=fab, size=3x]

#### [DaVinci Client for JavaScript](#install-protect-javascript)

Add the PingOne Protect dependencies to your JavaScript project by using npm.

## Add Android dependencies

To add the PingOne Protect dependencies to your Android project:

1. In the **Project** tree view of your Android Studio project, open the `Gradle Scripts/build.gradle.kts` file for the *module*.

2. In the `dependencies` section, add the required dependencies:

   Example `dependencies` section after editing `build.gradle.kts`:

   ```gradle
   dependencies {
       // DaVinci Client main module
       implementation("com.pingidentity.sdks:davinci:1.3.0")

       // PingOne Protect module
       implementation("com.pingidentity.sdks:ping-protect:1.3.0")
   }
   ```

After installing the module, you can proceed to [Step 3. Develop the client app](03-app.html).

## Add iOS dependencies

You can use CocoaPods or the Swift Package Manager to add the PingOne Protect dependencies to your iOS project.

### Add dependencies using CocoaPods

1. If you do not already have CocoaPods, install the [latest version](https://guides.cocoapods.org/using/getting-started.html).

2. If you do not already have a Podfile, in a terminal window, run the following command to create a new [Podfile](https://guides.cocoapods.org/syntax/podfile.html):

   ```podfile
   pod init
   ```

3. Add the following lines to your Podfile:

   ```podfile
   pod 'PingOneProtect' // Add-on for PingOne Protect
   ```

4. Run the following command to install pods:

   ```
   pod install
   ```

### Add dependencies using Swift Package Manager

1. With your project open in **Xcode**, select File > Add Package Dependencies.

2. In the search bar, enter the DaVinci Client for iOS repository URL: `https://github.com/ForgeRock/ping-ios-sdk`.

3. Select the `ping-ios-sdk` package, and then click Add Package.

4. In the Choose Package Products dialog, ensure that the `PingProtect` library is added to your target project.

5. Click Add Package.

6. In your project, import the library:

   ```swift
   // Import the PingOne Protect library
   import PingProtect
   ```

After installing the module, you can proceed to [Step 3. Develop the client app](03-app.html).

## Add JavaScript dependencies

Install the DaVinci Client and PingOne Protect modules by using npm:

```shell
npm install @forgerock/davinci-client @forgerock/protect
```

After installing the module, you can proceed to [Step 3. Develop the client app](03-app.html).
