-
Notifications
You must be signed in to change notification settings - Fork 10
Running Test Demo Apps
Matt Klein edited this page Oct 10, 2025
·
6 revisions
tl;dr: The easiest way to obtain example app binaries is to go to the SDK releases in GitHub and download the example app for your desired platform (iOS/Android).
- example-apps.android.zip
- example-apps.ios.zip
Every time the release job completes, new updated versions of the example apps will be available along with the release.
In Android there are 2 test apps
-
GradleTestAppis built using gradle and lives in https://github.com/bitdriftlabs/capture-sdk/tree/main/platform/jvm/gradle-test-app -
HelloWorldAppis built using bazel and lives in https://github.com/bitdriftlabs/capture-sdk/tree/main/examples/android
-
Have adb (Android Debug Bridge) installed. This is included as part of the Android Platform Tools.
- You can install it using homebrew
brew install android-platform-tools
- You can install it using homebrew
-
Have USB debugging enabled in your device.
- Enable
Developer options. Go toSettings>About Phone> Scroll to the bottom and tap theBuild numberrow 7 times. - Enable
USB debugging. Go toSettings>System>Developer options> Scroll down and enableUSB debugging. - If you don't have a device you can follow these steps to install an Android Emulator: http://johnborg.es/2019/04/android-setup-macos.html. You don't have to enable
USB debuggingin emulators.
- Enable
-
Download the desired zipped apk (Android Package) artifact from any of the release builds. Example apps are automatically built for every release of the SDK.
- Alternatively you can run the workflow manually if you want to create an updated version using latest
mainor any other branch. - An example build is here: https://github.com/bitdriftlabs/capture-sdk/actions/runs/16969975335 (scroll to
Artifactssection the bottom)
- Alternatively you can run the workflow manually if you want to create an updated version using latest
-
Unzip the apk
unzip path/to/Android Example Apps.zip -
Install the apk. Connect a USB cable, unlock your device, and run
adb install -r path/to/app.apk(The-rwill update the app if it's already installed.)
- Run GradleTestApp. Search your device for an app called "Gradle Test App".
-
Debug the app. Using logcat you can do some basic verification and troubleshooting using the
debugapk- Obtain the
<appId>by runningadb shell dumpsys package io.bitdrift.gradletestapp | grep appId - Stream the app logs by using the app Id obtained above running
adb logcat --uid=<appId> - Additionally we support changing the filter of the rust logger e.g. for
tracein bd crates only runadb shell setprop debug.bitdrift.internal_rust_log info,bd=trace(needs and app restart to be applied)
- Obtain the
Coming Soon...
There are two iOS example apps:
- Hello World example app - optimized for testing general logging and workflows SDK capabitilies.
- Session Replay example app - optimized for testing Session Replay. Use it together with your local instance of bitdrift frontend to see in real-time how app's screens are represented in bitdrift frontend. Go to #Intro to learn more about how to download example apps artifacts.
- Install Xcode. The details about the currently recommended Xcode version can be found in repo's README page.
- Launch Xcode. You may be asked to install iOS SDK, do it.
- Right click on Xcode icon in the dock > Open Developer Tools > Simulator to launch the simulator.
- Drag & Drop downloaded example app binaries into a running Simulator window to install the app.
- Click app icon to run the app.
Coming Soon...