Ping SDKs

Step 2. Configure the projects

In this step you install the dependencies the projects require.

Install the Ping SDK for iOS

This Flutter app requires the native Ping SDK for iOS. Install this by using Swift Package Manager (SPM) on the generated iOS project:

  1. Navigate to the iOS project, forgerock-flutter-sample/Flutter_To_Do_app/flutter_todo_app/ios.

  2. In Xcode, open Runner.xcworkspace.

  3. Select the Runner project and navigate to Package Dependencies.

  4. Click the sign, and add the Ping SDK for iOS repository, https://github.com/ForgeRock/forgerock-ios-sdk.git.

  5. Add the FRCore and FRAuth libraries to the project.

Install Flutter

Next, we need to open Android Studio and build the project.

If you haven’t configured Android Studio for Flutter, please follow the guide in the Flutter documentation.

Don’t forget to set the Dart SDK path in Android Studio. You can find that in the folder where you downloaded the Flutter SDK. (For example, ~/flutter/bin/cache/dart-sdk.)

In Android Studio, click File > Open, and navigate to forgerock-flutter-sample/Flutter_To_Do_app/.

When Android Studio loads the project and is ready, install any gradle dependencies, and select the iOS simulator to build and run the project.

Install API server dependencies

Install the TODO Node.JS API server app dependencies by using npm:

  1. In a Terminal window, navigate to the root folder, forgerock-flutter-sample.

  2. Enter npm install.