Skip to content

Conversation

@irfano
Copy link
Contributor

@irfano irfano commented Sep 23, 2025

Description

This updates the Automattic Tracks library to 6.0.6, as requested in Slack (p1757581223850569-slack-C0HTU7HV3). The main improvement is in the useragent string used in events.

I received Nosara Client for SM-S921B; Android/15 as useragent from my Samsung phone.

Steps to reproduce

Testing information

No need to test. Just review the new changes in the library. They look small and safe to me.

The tests that have been performed

Checked “Tracks Live View” to confirm that events are still being sent.

Images/gif

  • I have considered if this change warrants release notes and have added them to RELEASE-NOTES.txt if necessary. Use the "[Internal]" label for non-user-facing changes.

This commit updates the version of the `automattic-tracks` library from 6.0.4 to 6.0.6 in the `gradle/libs.versions.toml` file.
@irfano irfano added this to the 23.4 milestone Sep 23, 2025
@irfano irfano requested a review from a team as a code owner September 23, 2025 06:39
@wpmobilebot
Copy link
Collaborator

Project dependencies changes

list
! Upgraded Dependencies
com.automattic.tracks:crashlogging:6.0.6, (changed from 6.0.4)
com.automattic.tracks:experimentation:6.0.6, (changed from 6.0.4)
com.automattic:Automattic-Tracks-Android:6.0.6, (changed from 6.0.4)
io.sentry:sentry:8.18.0, (changed from 8.17.0)
io.sentry:sentry-android-core:8.18.0, (changed from 8.17.0)
io.sentry:sentry-android-fragment:8.18.0, (changed from 8.17.0)
io.sentry:sentry-android-navigation:8.18.0, (changed from 8.17.0)
io.sentry:sentry-bom:8.18.0, (changed from 8.17.0)
io.sentry:sentry-compose-android:8.18.0, (changed from 8.17.0)
io.sentry:sentry-okhttp:8.18.0, (changed from 8.17.0)
tree
-+--- com.automattic.tracks:experimentation:6.0.4
-|    +--- com.squareup.okhttp3:okhttp:4.12.0 -> 5.1.0
-|    |    \--- com.squareup.okhttp3:okhttp-android:5.1.0
-|    |         +--- androidx.annotation:annotation:1.9.1 (*)
-|    |         +--- androidx.startup:startup-runtime:1.2.0 (*)
-|    |         +--- com.squareup.okio:okio:3.15.0 (*)
-|    |         \--- org.jetbrains.kotlin:kotlin-stdlib:2.2.0 (*)
-|    +--- com.squareup.moshi:moshi:1.15.1 -> 1.15.2
-|    |    +--- com.squareup.okio:okio:3.7.0 -> 3.15.0 (*)
-|    |    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.21 -> 1.9.24 (*)
-|    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 -> 1.10.2 (*)
-|    \--- org.jetbrains.kotlin:kotlin-stdlib:1.9.24 -> 2.2.0 (*)
++--- com.automattic.tracks:experimentation:6.0.6
+|    +--- com.squareup.okhttp3:okhttp:4.12.0 -> 5.1.0
+|    |    \--- com.squareup.okhttp3:okhttp-android:5.1.0
+|    |         +--- androidx.annotation:annotation:1.9.1 (*)
+|    |         +--- androidx.startup:startup-runtime:1.2.0 (*)
+|    |         +--- com.squareup.okio:okio:3.15.0 (*)
+|    |         \--- org.jetbrains.kotlin:kotlin-stdlib:2.2.0 (*)
+|    +--- com.squareup.moshi:moshi:1.15.1 -> 1.15.2
+|    |    +--- com.squareup.okio:okio:3.7.0 -> 3.15.0 (*)
+|    |    \--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.21 -> 1.9.24 (*)
+|    +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 -> 1.10.2 (*)
+|    \--- org.jetbrains.kotlin:kotlin-stdlib:2.0.21 -> 2.2.0 (*)
-+--- com.automattic:Automattic-Tracks-Android:6.0.4
-|    +--- androidx.annotation:annotation:1.1.0 -> 1.9.1 (*)
-|    \--- org.jetbrains.kotlin:kotlin-stdlib:1.9.24 -> 2.2.0 (*)
++--- com.automattic:Automattic-Tracks-Android:6.0.6
+|    +--- androidx.annotation:annotation:1.1.0 -> 1.9.1 (*)
+|    \--- org.jetbrains.kotlin:kotlin-stdlib:2.0.21 -> 2.2.0 (*)
-\--- com.automattic.tracks:crashlogging:6.0.4
-     +--- io.sentry:sentry-bom:8.17.0
-     |    +--- io.sentry:sentry-android-core:8.17.0 (c)
-     |    +--- io.sentry:sentry-android-fragment:8.17.0 (c)
-     |    +--- io.sentry:sentry-compose-android:8.17.0 (c)
-     |    +--- io.sentry:sentry-okhttp:8.17.0 (c)
-     |    +--- io.sentry:sentry:8.17.0 (c)
-     |    \--- io.sentry:sentry-android-navigation:8.17.0 (c)
-     +--- io.sentry:sentry-android-core -> 8.17.0
-     |    +--- androidx.lifecycle:lifecycle-common-java8:2.2.0 -> 2.9.3 (*)
-     |    +--- androidx.lifecycle:lifecycle-process:2.2.0 -> 2.9.3 (*)
-     |    +--- androidx.core:core:1.3.2 -> 1.16.0 (*)
-     |    \--- io.sentry:sentry:8.17.0
-     +--- io.sentry:sentry-okhttp -> 8.17.0
-     |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.24 (*)
-     |    \--- io.sentry:sentry:8.17.0
-     +--- io.sentry:sentry-android-fragment -> 8.17.0
-     |    \--- io.sentry:sentry:8.17.0
-     +--- io.sentry:sentry-compose-android -> 8.17.0
-     |    +--- io.sentry:sentry:8.17.0
-     |    +--- io.sentry:sentry-android-navigation:8.17.0
-     |    |    \--- io.sentry:sentry:8.17.0
-     |    \--- androidx.lifecycle:lifecycle-common-java8:2.2.0 -> 2.9.3 (*)
-     +--- androidx.annotation:annotation:1.1.0 -> 1.9.1 (*)
-     +--- com.squareup.okhttp3:okhttp:4.9.0 -> 5.1.0 (*)
-     +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 -> 1.10.2 (*)
-     \--- org.jetbrains.kotlin:kotlin-stdlib:1.9.24 -> 2.2.0 (*)
+\--- com.automattic.tracks:crashlogging:6.0.6
+     +--- io.sentry:sentry-bom:8.18.0
+     |    +--- io.sentry:sentry-android-core:8.18.0 (c)
+     |    +--- io.sentry:sentry-android-fragment:8.18.0 (c)
+     |    +--- io.sentry:sentry-compose-android:8.18.0 (c)
+     |    +--- io.sentry:sentry-okhttp:8.18.0 (c)
+     |    +--- io.sentry:sentry:8.18.0 (c)
+     |    \--- io.sentry:sentry-android-navigation:8.18.0 (c)
+     +--- io.sentry:sentry-android-core -> 8.18.0
+     |    +--- androidx.lifecycle:lifecycle-common-java8:2.2.0 -> 2.9.3 (*)
+     |    +--- androidx.lifecycle:lifecycle-process:2.2.0 -> 2.9.3 (*)
+     |    +--- androidx.core:core:1.3.2 -> 1.16.0 (*)
+     |    \--- io.sentry:sentry:8.18.0
+     +--- io.sentry:sentry-okhttp -> 8.18.0
+     |    +--- org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.9.24 (*)
+     |    \--- io.sentry:sentry:8.18.0
+     +--- io.sentry:sentry-android-fragment -> 8.18.0
+     |    \--- io.sentry:sentry:8.18.0
+     +--- io.sentry:sentry-compose-android -> 8.18.0
+     |    +--- io.sentry:sentry:8.18.0
+     |    +--- io.sentry:sentry-android-navigation:8.18.0
+     |    |    \--- io.sentry:sentry:8.18.0
+     |    +--- androidx.compose.material3:material3:1.2.1 -> 1.3.2 (*)
+     |    \--- androidx.lifecycle:lifecycle-common-java8:2.2.0 -> 2.9.3 (*)
+     +--- com.squareup.okhttp3:okhttp:4.9.0 -> 5.1.0 (*)
+     +--- org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4 -> 1.10.2 (*)
+     \--- org.jetbrains.kotlin:kotlin-stdlib:2.0.21 -> 2.2.0 (*)

@wzieba
Copy link
Contributor

wzieba commented Sep 23, 2025

The project fails due to JDK incompatibility. Tracks was built with 21, while Woo uses 17.

Can we update Java in Woo Android to 21?

@irfano irfano mentioned this pull request Sep 23, 2025
1 task
@irfano irfano added the status: blocked Blocked from progressing somehow, waiting for another piece of work to be done. label Sep 23, 2025
@irfano irfano changed the base branch from trunk to update-java-version-to-21.0 September 23, 2025 21:26
@irfano irfano removed the status: blocked Blocked from progressing somehow, waiting for another piece of work to be done. label Sep 23, 2025
@irfano
Copy link
Contributor Author

irfano commented Sep 23, 2025

The project fails due to JDK incompatibility. Tracks was built with 21, while Woo uses 17.

Can we update Java in Woo Android to 21?

Thank you for your help, @wzieba ! I opened a PR to update Java to 21 and targeted that PR.

@irfano
Copy link
Contributor Author

irfano commented Sep 24, 2025

@wzieba, this PR is still failing. Is there anything missing in the Java 21 PR, or do we also need to update the CI settings to use Java 21?
There was an issue with syncing this PR. I thought updating the base branch would be enough, but I also needed to click the "Update branch" button. Anyway, it’s not failing anymore.

@wpmobilebot
Copy link
Collaborator

📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
App Name WooCommerce-Wear Android
Platform⌚️ Wear OS
FlavorJalapeno
Build TypeDebug
Commit6e55b15
Direct Downloadwoocommerce-wear-prototype-build-pr14648-6e55b15.apk

@wpmobilebot
Copy link
Collaborator

📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.

App Name WooCommerce Android
Platform📱 Mobile
FlavorJalapeno
Build TypeDebug
Commit6e55b15
Direct Downloadwoocommerce-prototype-build-pr14648-6e55b15.apk

@codecov-commenter
Copy link

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 38.52%. Comparing base (c2411a1) to head (6e55b15).

Additional details and impacted files
@@                        Coverage Diff                        @@
##             update-java-version-to-21.0   #14648      +/-   ##
=================================================================
- Coverage                          38.52%   38.52%   -0.01%     
+ Complexity                          9784     9783       -1     
=================================================================
  Files                               2068     2068              
  Lines                             115558   115558              
  Branches                           15394    15394              
=================================================================
- Hits                               44524    44522       -2     
- Misses                             66898    66899       +1     
- Partials                            4136     4137       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JorgeMucientes JorgeMucientes self-assigned this Sep 29, 2025
Base automatically changed from update-java-version-to-21.0 to trunk September 29, 2025 09:57
Copy link
Contributor

@JorgeMucientes JorgeMucientes left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM I agree changes look minor and safe. :shipit:

@JorgeMucientes JorgeMucientes merged commit 5beb0bb into trunk Sep 29, 2025
16 checks passed
@JorgeMucientes JorgeMucientes deleted the update-automattic-tracks-version branch September 29, 2025 10:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants