Skip to content

Commit 1f08228

Browse files
committed
RUM-4822 Prepare debug build
1 parent 92e45d5 commit 1f08228

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

buildSrc/src/main/kotlin/com/datadog/gradle/config/MavenConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ fun Project.publishingConfig(projectDescription: String) {
4949

5050
groupId = MavenConfig.GROUP_ID
5151
artifactId = projectName
52-
version = AndroidConfig.VERSION.name
52+
version = AndroidConfig.VERSION.name + "-debug"
5353

5454
pom {
5555
name.set(projectName)

sample/kotlin/src/main/kotlin/com/datadog/android/sample/SampleApplication.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,10 +238,13 @@ class SampleApplication : Application() {
238238
}
239239
.setResourceEventMapper { event ->
240240
event.context?.additionalProperties?.put(ATTR_IS_MAPPED, true)
241-
if (KEEP_UPLOAD_REQUEST_AS_RESOURCES) {
242-
event
243-
} else {
241+
val isDdResource = event.resource.url.contains(
242+
DatadogSite.valueOf(BuildConfig.DD_SITE_NAME).intakeEndpoint
243+
)
244+
if (isDdResource && !KEEP_UPLOAD_REQUEST_AS_RESOURCES) {
244245
null
246+
} else {
247+
event
245248
}
246249
}
247250
.setErrorEventMapper { event ->

0 commit comments

Comments
 (0)