Skip to content

Commit f8f769c

Browse files
committed
Merge remote-tracking branch 'origin/develop' into feature/v3
2 parents acf1587 + dc61c07 commit f8f769c

File tree

330 files changed

+11881
-2039
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

330 files changed

+11881
-2039
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Publish Changelog to Confluence
2+
on:
3+
pull_request:
4+
branches:
5+
- develop
6+
paths:
7+
- 'CHANGELOG.md'
8+
permissions:
9+
contents: read
10+
jobs:
11+
publish:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
16+
17+
- name: Prepare Only Changelog
18+
run: |
19+
mkdir -p publish_folder
20+
cp CHANGELOG.md publish_folder/
21+
echo "Publishing only CHANGELOG.md"
22+
23+
- name: Publish Markdown to Confluence
24+
uses: markdown-confluence/publish-action@7767a0a7f438bb1497ee7ffd7d3d685b81dfe700 # v5
25+
with:
26+
confluenceBaseUrl: ${{ secrets.CONFLUENCE_BASE_URL }}
27+
confluenceParentId: ${{ secrets.CONFLUENCE_PARENT_ID }}
28+
atlassianUserName: ${{ secrets.ATLASSIAN_USERNAME }}
29+
atlassianApiToken: ${{ secrets.ATLASSIAN_API_TOKEN }}
30+
contentRoot: '.'
31+
folderToPublish: 'publish_folder'

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ config/*
2626
# .log
2727
*.log
2828

29+
# Kotlin
30+
.kotlin/
31+
2932
gh_token
3033
sdk_classpath
3134
detekt_classpath

.gitlab-ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include:
44
# SETUP
55

66
variables:
7-
CURRENT_CI_IMAGE: "14"
7+
CURRENT_CI_IMAGE: "16"
88
CI_IMAGE_DOCKER: registry.ddbuild.io/ci/dd-sdk-android:$CURRENT_CI_IMAGE
99
GIT_DEPTH: 5
1010

@@ -19,7 +19,7 @@ variables:
1919

2020
EMULATOR_NAME: "android_emulator"
2121
ANDROID_ARCH: "arm64-v8a"
22-
ANDROID_API: "35"
22+
ANDROID_API: "36"
2323
ANDROID_SDK_VERSION: "commandlinetools-mac-11076708_latest"
2424

2525
stages:
@@ -235,7 +235,7 @@ test-pyramid:core-it-latest-api:
235235
stage: test-pyramid
236236
timeout: 1h
237237
variables:
238-
ANDROID_API: "35"
238+
ANDROID_API: "36"
239239
ANDROID_EMULATOR_IMAGE: "system-images;android-$ANDROID_API;google_apis;${ANDROID_ARCH}"
240240
ANDROID_PLATFORM: "platforms;android-$ANDROID_API"
241241
ANDROID_BUILD_TOOLS: "build-tools;$ANDROID_API.0.0"
@@ -360,7 +360,7 @@ test-pyramid:legacy-integration-instrumented-latest-api:
360360
stage: test-pyramid
361361
timeout: 1h
362362
variables:
363-
ANDROID_API: "35"
363+
ANDROID_API: "36"
364364
ANDROID_EMULATOR_IMAGE: "system-images;android-$ANDROID_API;google_apis;${ANDROID_ARCH}"
365365
ANDROID_PLATFORM: "platforms;android-$ANDROID_API"
366366
ANDROID_BUILD_TOOLS: "build-tools;$ANDROID_API.0.0"

CHANGELOG.md

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,69 @@
1+
# 2.21.0 / 2025-05-06
2+
3+
* [FEATURE] Add Compose instrumentation API for view tracking and image recording. See [#2570](https://github.com/DataDog/dd-sdk-android/pull/2570)
4+
* [FEATURE] Add `ActionTrackingStrategy` interface to decouple find view logic. See [#2573](https://github.com/DataDog/dd-sdk-android/pull/2573)
5+
* [FEATURE] Add Compose actions tracking strategy API in `RumConfiguration`. See [#2575](https://github.com/DataDog/dd-sdk-android/pull/2575)
6+
* [FEATURE] Implement Compose actions tracking strategy. See [#2586](https://github.com/DataDog/dd-sdk-android/pull/2586)
7+
* [FEATURE] Change `TrackViews` and `RecordImages` annotations to `ComposeInstrumentation`. See [#2595](https://github.com/DataDog/dd-sdk-android/pull/2595)
8+
* [BUGFIX] Fix Rum Action Tap is added twice for every `ACTION_UP`. See [#2579](https://github.com/DataDog/dd-sdk-android/pull/2579)
9+
* [BUGFIX] Cover `IndexOutOfBoundsException` in `DrawableUtils`. See [#2604](https://github.com/DataDog/dd-sdk-android/pull/2604)
10+
* [BUGFIX] Let `AndroidTracer.logErrorMessage()` send an ERROR log. See [#2605](https://github.com/DataDog/dd-sdk-android/pull/2605)
11+
* [BUGFIX] Fix artifacts in Jetpack Compose scrolling. See [#2610](https://github.com/DataDog/dd-sdk-android/pull/2610)
12+
* [BUGFIX] Fix `ViewTarget` is garbage collected during actions tracking. See [#2608](https://github.com/DataDog/dd-sdk-android/pull/2608)
13+
* [BUGFIX] Fix the memory leak in the `PendingTrace#cleaner`. See [#2607](https://github.com/DataDog/dd-sdk-android/pull/2607)
14+
* [BUGFIX] Fix Session Replay is not resumed after the session has expired before. See [#2611](https://github.com/DataDog/dd-sdk-android/pull/2611)
15+
* [BUGFIX] Catch NPE when drawing cloned drawable in Session Replay. See [#2622](https://github.com/DataDog/dd-sdk-android/pull/2622)
16+
* [BUGFIX] Revert: Remove shared `ThreadLocal` scopes. See [#2603](https://github.com/DataDog/dd-sdk-android/pull/2603)
17+
* [IMPROVEMENT] Remove test fixtures content root duplication in `dd-sdk-android-session-replay-compose` module. See [#2592](https://github.com/DataDog/dd-sdk-android/pull/2592)
18+
* [IMPROVEMENT] Minor improvements. See [#2609](https://github.com/DataDog/dd-sdk-android/pull/2609)
19+
* [IMPROVEMENT] Propagate session ID in baggage header. See [#2602](https://github.com/DataDog/dd-sdk-android/pull/2602)
20+
* [MAINTENANCE] Add workflow: Changelog update to Confluence. See [#2596](https://github.com/DataDog/dd-sdk-android/pull/2596)
21+
* [MAINTENANCE] Add telemetry for Compose instrumentation functions. See [#2601](https://github.com/DataDog/dd-sdk-android/pull/2601)
22+
* [MAINTENANCE] Add Android Auto and Android XR support to the sample app. See [#2606](https://github.com/DataDog/dd-sdk-android/pull/2606)
23+
* [MAINTENANCE] Add metrics for internal benchmarking. See [#2581](https://github.com/DataDog/dd-sdk-android/pull/2581)
24+
* [MAINTENANCE] Sample telemetry for `RecordedDataQueueHandler`. See [#2600](https://github.com/DataDog/dd-sdk-android/pull/2600)
25+
* [MAINTENANCE] Remove the noisy warning log as for some views it is normal to not have ITV. See [#2617](https://github.com/DataDog/dd-sdk-android/pull/2617)
26+
* [MAINTENANCE] Fix semantics of `ExecutorService.submit` vs `Executor.execute` usage. See [#2616](https://github.com/DataDog/dd-sdk-android/pull/2616)
27+
* [MAINTENANCE] Integrate Datadog Plugin in benchmark application. See [#2618](https://github.com/DataDog/dd-sdk-android/pull/2618)
28+
* [MAINTENANCE] Merge `feature/compose-instrumentation-api` into `feature/actions-tracking`. See [#2583](https://github.com/DataDog/dd-sdk-android/pull/2583)
29+
* [MAINTENANCE] Merge 2.20.0 into `develop`. See [#2588](https://github.com/DataDog/dd-sdk-android/pull/2588)
30+
* [MAINTENANCE] Merge `Feature/actions-tracking` into `develop`. See [#2598](https://github.com/DataDog/dd-sdk-android/pull/2598)
31+
* [MAINTENANCE] Bump version to 2.21.0-SNAPSHOT. See [#2585](https://github.com/DataDog/dd-sdk-android/pull/2585)
32+
* [MAINTENANCE] Bump `targetSdk` to 36. See [#2589](https://github.com/DataDog/dd-sdk-android/pull/2589)
33+
34+
# 2.20.0 / 2025-04-07
35+
36+
* [FEATURE] Slow frames collection support. See [#2518](https://github.com/DataDog/dd-sdk-android/pull/2518)
37+
* [FEATURE] Introduce `UISlownessMetricDispatcher`. See [#2567](https://github.com/DataDog/dd-sdk-android/pull/2567)
38+
* [BUGFIX] Remove double computation of the `RUM` payload. See [#2528](https://github.com/DataDog/dd-sdk-android/pull/2528)
39+
* [BUGFIX] Add try-catch in `drawOnCanvas` in order to catch exceptions from `draw(canvas)` method. See [#2549](https://github.com/DataDog/dd-sdk-android/pull/2549)
40+
* [BUGFIX] Fix issue with missing freeze rate and slow frames rate. See [#2557](https://github.com/DataDog/dd-sdk-android/pull/2557)
41+
* [BUGFIX] Ignore secondary displays in `Session Replay`. See [#2574](https://github.com/DataDog/dd-sdk-android/pull/2574)
42+
* [IMPROVEMENT] Set the `local-ci` script to check for specific version of KtLint. See [#2526](https://github.com/DataDog/dd-sdk-android/pull/2526)
43+
* [IMPROVEMENT] Add missing builder function for anonymous user tracking. See [#2540](https://github.com/DataDog/dd-sdk-android/pull/2540)
44+
* [IMPROVEMENT] Add telemetry for pending batch files. See [#2548](https://github.com/DataDog/dd-sdk-android/pull/2548)
45+
* [IMPROVEMENT] Remove the possibility to read the `Tracer` config from `env` and from the config file. See [#2564](https://github.com/DataDog/dd-sdk-android/pull/2564)
46+
* [IMPROVEMENT] Add `traceSampleRate` to the telemetry `Configuration` events. See [#2563](https://github.com/DataDog/dd-sdk-android/pull/2563)
47+
* [IMPROVEMENT] Report configured distributed tracing headers as part of `Configuration` telemetry. See [#2572](https://github.com/DataDog/dd-sdk-android/pull/2572)
48+
* [IMPROVEMENT] Optimize features context reads in `TelemetryEventHandler`. See [#2576](https://github.com/DataDog/dd-sdk-android/pull/2576)
49+
* [IMPROVEMENT] Optimize `OkHttp` configuration telemetry. See [#2578](https://github.com/DataDog/dd-sdk-android/pull/2578)
50+
* [IMPROVEMENT] Make SDK support 16Kb page sizes. See [#2580](https://github.com/DataDog/dd-sdk-android/pull/2580)
51+
* [MAINTENANCE] Update AndroidX `Metrics` library to 1.0.0-beta02. See [#2546](https://github.com/DataDog/dd-sdk-android/pull/2546)
52+
* [MAINTENANCE] Remove `RUM` feature check in `AndroidTracer` builder. [#2539](https://github.com/DataDog/dd-sdk-android/pull/2539)
53+
* [MAINTENANCE] Change `TraceWriter#write` type from `MutableList` to `List`. See [#2568](https://github.com/DataDog/dd-sdk-android/pull/2568)
54+
* [MAINTENANCE] Fix flaky `TraceWriterTest` M log error and proceed W write() { serialization failed }. See [#2565](https://github.com/DataDog/dd-sdk-android/pull/2565)
55+
* [MAINTENANCE] Fix flaky tests in `OtelTraceWriter`. See [#2571](https://github.com/DataDog/dd-sdk-android/pull/2571)
56+
* [MAINTENANCE] Change `OtelTraceWriter#write type` from `MutableList` to `List`. See [#2577](https://github.com/DataDog/dd-sdk-android/pull/2577)
57+
* [MAINTENANCE] Fix negative values in slow frames, adjusting telemetry. See [#2582](https://github.com/DataDog/dd-sdk-android/pull/2582)
58+
59+
# 2.19.2 / 2025-03-20
60+
61+
* [BUGFIX] Fix NPE with Metrics listener on older APIs. See[#2558](https://github.com/DataDog/dd-sdk-android/pull/2558)
62+
63+
# 2.19.1 / 2025-03-17
64+
65+
* [BUGFIX] Fix NPE when `Drawable.getCurrent` returns null. See[#2545](https://github.com/DataDog/dd-sdk-android/pull/2545)
66+
167
# 2.19.0 / 2025-03-10
268

369
* [FEATURE] Core: Introduce anonymous RUM Identifier. See [#2487](https://github.com/DataDog/dd-sdk-android/pull/2487)

Dockerfile.gitlab

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ RUN set -x \
2525
&& apt-get -y clean \
2626
&& rm -rf /var/lib/apt/lists/*
2727

28-
ENV GRADLE_VERSION 8.10.2
29-
ENV ANDROID_COMPILE_SDK 35
30-
ENV ANDROID_BUILD_TOOLS 35.0.0
28+
ENV GRADLE_VERSION 8.11.1
29+
ENV ANDROID_COMPILE_SDK 36
30+
ENV ANDROID_BUILD_TOOLS 36.0.0
3131
ENV ANDROID_SDK_TOOLS 11076708
32-
ENV NDK_VERSION 25.1.8937393
32+
ENV NDK_VERSION 28.0.13004108
3333
ENV CMAKE_VERSION 3.22.1
3434
ENV DD_TRACER_VERSION 1.41.0
3535
# requires build with BuildKit to be available https://docs.docker.com/build/building/variables/#multi-platform-build-arguments

LICENSE-3rdparty.csv

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,10 @@ build,com.fasterxml.jackson.module,Apache-2.0,"Copyright (c) 2007- Tatu Salorant
138138
build,com.fasterxml.woodstox,Apache-2.0,"Copyright (c) 2007- Tatu Saloranta"
139139
build,com.google.android,Apache-2.0,Copyright (C) 2013 The Android Open Source Project
140140
build,com.google.api.grpc,Apache-2.0,Copyright 2020 Google LLC
141+
build,com.google.auto,Apache-2.0,"Copyright 2014 Google LLC"
142+
build,com.google.auto.service,Apache-2.0,"Copyright 2013 Google LLC"
141143
build,com.google.crypto.tink,Apache-2.0,Copyright 2023 Google LLC
144+
build,com.google.dagger,Apache-2.0,"Copyright (C) 2018 The Dagger Authors"
142145
build,com.google.devtools.ksp,Apache-2.0,"Copyright 2020 Google LLC, Copyright 2010-2020 JetBrains s.r.o. and Kotlin Programming Language contributors."
143146
build,com.google.testing.platform,Apache-2.0,Copyright (C) 2021 The Android Open Source Project
144147
build,com.pinterest,MIT,"Copyright 2019 Pinterest Inc, Copyright 2016-2019 Stanley Shyiko"
@@ -148,6 +151,7 @@ build,io.github.microutils,Apache-2.0,Copyright (c) 2016-2018 Ohad Shai
148151
build,io.gitlab.arturbosch.detekt,Apache-2.0,Copyright 2016-2019 the original author or authors
149152
build,io.grpc,Apache-2.0,Copyright 2014 The gRPC Authors
150153
build,io.netty,Apache-2.0,Copyright 2014 The Netty Project
154+
build,io.opencensus,Apache-2.0,"Copyright 2017, OpenCensus Authors"
151155
build,io.perfmark,Apache-2.0,Copyright 2019 Google LLC
152156
build,jakarta.activation,BSD 3-Clause,"Copyright (c) 2017, 2018 Oracle and/or its affiliates"
153157
build,jakarta.xml.bind,BSD 3-Clause,"Copyright (c) 2017, 2018 Oracle and/or its affiliates"
@@ -161,3 +165,4 @@ build,org.jetbrains.dokka,Apache-2.0,"Copyright 2014-2019 JetBrains s.r.o. and D
161165
build,org.jetbrains.intellij.deps,LGPL-2.1-only,"Copyright (c) 2001-2002, Eric D. Friedman, Jason Baldridge, Copyright (c) 1999 CERN - European Organization for Nuclear Research"
162166
build,org.ow2.asm,BSD-3-Clause,"Copyright (c) 2000-2011 INRIA, France Telecom"
163167
build,org.slf4j,MIT,"Copyright (c) 2004-2022 QOS.ch Sarl (Switzerland)"
168+

build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ buildscript {
3232
classpath(libs.kotlinSPGradlePlugin)
3333
classpath(libs.dokkaGradlePlugin)
3434
classpath(libs.unmockGradlePlugin)
35-
classpath(libs.realmGradlePlugin)
3635
classpath(libs.sqlDelightGradlePlugin)
3736
classpath(libs.binaryCompatibilityGradlePlugin)
3837
}
@@ -59,7 +58,7 @@ nexusPublishing {
5958
}
6059

6160
task<Delete>("clean") {
62-
delete(rootProject.buildDir)
61+
delete(rootProject.layout.buildDirectory)
6362
}
6463

6564
tasks.register("checkAll") {

buildSrc/build.gradle.kts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ dependencies {
3232
implementation(libs.kotlinGradlePlugin)
3333
implementation(libs.androidToolsGradlePlugin)
3434
implementation(libs.versionsGradlePlugin)
35-
implementation(libs.fuzzyWuzzy)
3635
implementation(libs.dokkaGradlePlugin)
3736
implementation(libs.dependencyLicenseGradlePlugin)
3837
implementation(libs.kover)

buildSrc/src/main/kotlin/com/datadog/gradle/Dependencies.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ object Dependencies {
1111
object Versions {
1212

1313
// NDK
14-
const val Ndk = "25.1.8937393"
14+
const val Ndk = "28.0.13004108"
1515
const val CMake = "3.22.1"
1616
}
1717

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ import org.gradle.api.Project
1515

1616
object AndroidConfig {
1717

18-
const val TARGET_SDK = 35
18+
const val TARGET_SDK = 36
1919
const val MIN_SDK = 21
2020
const val MIN_SDK_FOR_WEAR = 23
21-
const val BUILD_TOOLS_VERSION = "35.0.0"
21+
const val BUILD_TOOLS_VERSION = "36.0.0"
2222

23-
val VERSION = Version(2, 20, 0, Version.Type.Snapshot)
23+
val VERSION = Version(2, 22, 0, Version.Type.Snapshot)
2424
}
2525

2626
// TODO RUM-628 Switch to Java 17 bytecode
@@ -70,6 +70,11 @@ fun Project.androidLibraryConfig() {
7070
checkReleaseBuilds = false
7171
checkGeneratedSources = true
7272
ignoreTestSources = true
73+
disable.addAll(
74+
listOf(
75+
"UseKtx" // https://googlesamples.github.io/android-custom-lint-rules/checks/UseKtx.md.html
76+
)
77+
)
7378
}
7479

7580
packaging {

0 commit comments

Comments
 (0)