Skip to content

Commit 8e3273b

Browse files
committed
Enable TTID preload module for Android
1 parent c35d951 commit 8e3273b

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

example/src/ddUtils.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ export function getDatadogConfig(trackingConsent: TrackingConsent) {
6262
DdLogs.info('The RN Sdk was properly initialized')
6363
DdSdkReactNative.setUserInfo({id: "1337", name: "Xavier", email: "xg@example.com", extraInfo: { type: "premium" } })
6464
DdSdkReactNative.addAttributes({campaign: "ad-network"})
65+
66+
setTimeout(async () => {
67+
await DdRum.reportAppFullyDisplayed();
68+
}, 5000);
6569
}
6670

6771
// Legacy SDK Setup

packages/core/android/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,7 @@ dependencies {
227227
implementation "com.datadoghq:dd-sdk-android-webview:3.10.0"
228228
implementation "com.datadoghq:dd-sdk-android-ndk:3.10.0"
229229
implementation "com.datadoghq:dd-sdk-android-flags:3.10.0"
230+
// implementation "com.datadoghq:dd-sdk-android-rum-prelaunch:3.10.0" // TO DO - Add module when bumping dd-sdk-android
230231
implementation "com.google.code.gson:gson:2.11.0"
231232
testImplementation "org.junit.platform:junit-platform-launcher:1.6.2"
232233
testImplementation "org.junit.jupiter:junit-jupiter-api:5.6.2"

0 commit comments

Comments
 (0)