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:
-
Navigate to the iOS project,
forgerock-flutter-sample/Flutter_To_Do_app/flutter_todo_app/ios
. -
In Xcode, open
Runner.xcworkspace
. -
Select the Runner project and navigate to Package Dependencies.
-
Click the sign, and add the Ping SDK for iOS repository,
https://github.com/ForgeRock/forgerock-ios-sdk.git
. -
Add the
FRCore
andFRAuth
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.