Update the SDK

To update the SDK for React Native:

iOS

  1. Unzip the file you downloaded in the previous step, creating a folder named PulseLabsFlightRecorderSDK.xcframework ready to use in the upcoming steps.

  2. Using the Finder, navigate to the folder containing your project, and the ios folder within there.

  3. Copy the unzipped PulseLabsFlightRecorderSDK.xcframework into this folder, replacing the exisiting folder.

  4. Rebuild your app. The new SDK will be installed.

Android

  1. Download the latest SDK file from https://flightrecorder.pulselabs.ai/download-sdk.

  2. Locate the downloaded PulseLabsFlightRecorder-AndroidSDK-vx.x.x.zip file and unzip it. This action will create a folder named flightRecorder.

  3. Open Android Studio and click File -> Open...

  4. Navigate to the folder containing your React Native project and select the android folder at the root. Click Open.

  5. Drag and drop the unzipped flightRecorder folder onto the folder at android/app/libs.

  6. 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.

  7. Locate the dependencies block in the build.gradle(.kts) file.

  8. Locate the line implementation("ai.pulselabs:flightrecorder:x.x.x") where x.x.x is the previous version number.

  9. Change the version number to the version number at the end of the zip file you downloaded earlier.

  10. You should be prompted to sync Gradle by Android Studio. Click the sync now link, or

    1. Start metro by running the following command inside your React Native project folder:

      npm run metro
    2. In the window which appears, press a to build the app, or open a new terminal inside the React Native project folder and run:

      npm run android
  11. 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