---
title: Step 2. Install dependencies
description: To capture contextual data and perform risk evaluations, you must add the PingOne Protect module to your Ping (ForgeRock) SDK project.
component: sdks
version: latest
page_id: sdks:sdks:integrations/pingone-protect/02-dependencies
canonical_url: https://docs.pingidentity.com/sdks/latest/sdks/integrations/pingone-protect/02-dependencies.html
llms_txt: https://docs.pingidentity.com/sdks/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
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 Ping (ForgeRock) SDK project.

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

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

#### [Ping (ForgeRock) SDK for Android](#install-protect-android)

Add the PingOne Protect dependencies to your Android project.

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

#### [Ping (ForgeRock) SDK 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]

#### [Ping (ForgeRock) SDK 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` file for the *module*.

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

   Example `dependencies` section after editing:

   ```gradle
   dependencies {
       // Ping (ForgeRock) SDK main module
       implementation 'org.forgerock:forgerock-auth:4.8.7'

       // PingOne Protect module
       implementation 'org.forgerock:ping-protect:4.8.7'
   }
   ```

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):

   ```
   pod init
   ```

3. Add the following lines to your Podfile:

   ```
   pod 'PingProtect' // Add-on for {p1p_name}
   ```

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 Ping (ForgeRock) SDK for iOS repository URL: `https://github.com/ForgeRock/forgerock-ios-sdk`.

3. Select the `forgerock-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 {p1p_name} 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 PingOne Protect module by using npm:

```shell
npm install @forgerock/ping-protect
```

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