Describe the issue
I added DataDog SDK to the project, and we're using the datadog-configuration.json file as sepecified in the docs:
https://docs.datadoghq.com/real_user_monitoring/guide/initialize-your-native-sdk-before-react-native-starts/?tab=android
This works fine.
The top of our android/app/gradle/build file looks like:
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
apply from: "../../node_modules/@datadog/mobile-react-native/datadog-configuration.gradle"
....
The issue starts when I try to add deobfuscation of stack traces to our android gradle file, as mentioned here:
https://docs.datadoghq.com/real_user_monitoring/mobile_and_tv_monitoring/react_native/error_tracking/#get-deobfuscated-stack-traces
I add additional lines to the android/app/gradle/build file, so it looks like this:
plugins {
id("com.datadoghq.dd-sdk-android-gradle-plugin") version "1.16.0"
}
apply plugin: "com.android.application"
apply plugin: "org.jetbrains.kotlin.android"
apply plugin: "com.facebook.react"
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
apply from: "../../node_modules/@datadog/mobile-react-native/datadog-sourcemaps.gradle"
apply from: "../../node_modules/@datadog/mobile-react-native/datadog-configuration.gradle"
This results in build error:
FAILURE: Build failed with an exception.
- Where:
Script 'my_app/node_modules/@datadog/mobile-react-native/datadog-configuration.gradle' line: 9
- What went wrong:
A problem occurred evaluating script.
Could not get unknown property 'configurationFilePath' for extension 'datadog' of type com.datadog.gradle.plugin.DdExtension.
Reproduction steps
- Add datadog react native SDK to the project
- Use
datadog-configuration.json file for initialization
- Add those lines to the android/app/build.gradle file
plugins {
id("com.datadoghq.dd-sdk-android-gradle-plugin") version "1.16.0"
}
apply from: "../../node_modules/@datadog/mobile-react-native/datadog-sourcemaps.gradle"
- Build error: Could not get unknown property 'configurationFilePath' for extension 'datadog' of type com.datadog.gradle.plugin.DdExtension.
SDK logs
No response
Device Information
No response
SDK version
"@datadog/mobile-react-native": "2.7.0",
Integration Methods
NPM
React Native Version
0.76.9
Package.json Contents
No response
iOS Setup
No response
Android Setup
No response
Other relevant information
No response
Describe the issue
I added DataDog SDK to the project, and we're using the
datadog-configuration.jsonfile as sepecified in the docs:https://docs.datadoghq.com/real_user_monitoring/guide/initialize-your-native-sdk-before-react-native-starts/?tab=android
This works fine.
The top of our android/app/gradle/build file looks like:
The issue starts when I try to add deobfuscation of stack traces to our android gradle file, as mentioned here:
https://docs.datadoghq.com/real_user_monitoring/mobile_and_tv_monitoring/react_native/error_tracking/#get-deobfuscated-stack-traces
I add additional lines to the android/app/gradle/build file, so it looks like this:
This results in build error:
FAILURE: Build failed with an exception.
Script 'my_app/node_modules/@datadog/mobile-react-native/datadog-configuration.gradle' line: 9
A problem occurred evaluating script.
Reproduction steps
datadog-configuration.jsonfile for initializationSDK logs
No response
Device Information
No response
SDK version
"@datadog/mobile-react-native": "2.7.0",
Integration Methods
NPM
React Native Version
0.76.9
Package.json Contents
No response
iOS Setup
No response
Android Setup
No response
Other relevant information
No response