Update the SDK
To update the SDK for React Native:
iOS
Download the latest SDK from https://flightrecorder.pulselabs.ai/download-sdk.
Unzip the file you downloaded in the previous step, creating a folder named PulseLabsFlightRecorderSDK.xcframework ready to use in the upcoming steps.
Using the Finder, navigate to the folder containing your project, and the ios folder within there.
Copy the unzipped PulseLabsFlightRecorderSDK.xcframework into this folder, replacing the exisiting folder.
Rebuild your app. The new SDK will be installed.
Android
Download the latest SDK file from https://flightrecorder.pulselabs.ai/download-sdk.
Locate the downloaded PulseLabsFlightRecorder-AndroidSDK-vx.x.x.zip file and unzip it. This action will create a folder named flightRecorder.
Open Android Studio and click File -> Open...
Navigate to the folder containing your React Native project and select the android folder at the root. Click Open.
Drag and drop the unzipped flightRecorder folder onto the folder at android/app/libs.
Open the module level
build.gradle
file for the app. Make sure you are in the Project view by selecting Project from the menu at the top of the Project window. This may currently be labelled Android. Open the file at android/app/build.gradle.Locate the
dependencies
block in thebuild.gradle(.kts)
file.Locate the line
implementation("ai.pulselabs:flightrecorder:x.x.x") where x.x.x
is the previous version number.Change the version number to the version number at the end of the zip file you downloaded earlier.
You should be prompted to sync Gradle by Android Studio. Click the sync now link, or
Start metro by running the following command inside your React Native project folder:
In the window which appears, press a to build the app, or open a new terminal inside the React Native project folder and run:
Check there are no build errors, if there are, check the code above is in the correct location.
The SDK has now been updated.
Last updated