Skip to content

Commit

Permalink
RUM-4822 Prepare debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
xgouchet committed Sep 4, 2024
1 parent 92e45d5 commit 1f08228
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ fun Project.publishingConfig(projectDescription: String) {

groupId = MavenConfig.GROUP_ID
artifactId = projectName
version = AndroidConfig.VERSION.name
version = AndroidConfig.VERSION.name + "-debug"

pom {
name.set(projectName)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,10 +238,13 @@ class SampleApplication : Application() {
}
.setResourceEventMapper { event ->
event.context?.additionalProperties?.put(ATTR_IS_MAPPED, true)
if (KEEP_UPLOAD_REQUEST_AS_RESOURCES) {
event
} else {
val isDdResource = event.resource.url.contains(
DatadogSite.valueOf(BuildConfig.DD_SITE_NAME).intakeEndpoint
)
if (isDdResource && !KEEP_UPLOAD_REQUEST_AS_RESOURCES) {
null
} else {
event
}
}
.setErrorEventMapper { event ->
Expand Down

0 comments on commit 1f08228

Please sign in to comment.