Skip to content

Wrong library version (1.24.1) sent in payload and User-Agent on 1.25.0 #316

Description

@mr-jayjay

Describe the bug
The 1.25.0 release of com.segment.analytics.kotlin:core reports the wrong library version. Constants.LIBRARY_VERSION is still hardcoded to "1.24.1", so every event payload carries context.library.version = "1.24.1" even though the artifact in use is 1.25.0. The same stale value is also sent in the User-Agent header (analytics-kotlin/1.24.1) and in telemetry (library_version).

To Reproduce
Steps to reproduce the behavior:

  1. Add a dependency on com.segment.analytics.kotlin:core:1.25.0 (e.g. via analytics-kotlin 1.25.0).
  2. Initialize Analytics and send any event (e.g. analytics.track("test")).
  3. Inspect the outgoing HTTP request (or check the event in the Segment debugger).
  4. See that context.library.version is "1.24.1" and the User-Agent header is analytics-kotlin/1.24.1, instead of 1.25.0.

Root cause:
// com/segment/analytics/kotlin/core/Constants.kt (in the 1.25.0 sources jar)
object Constants {
const val LIBRARY_VERSION = "1.24.1" // <-- not bumped for the 1.25.0 release
}

Expected behavior
Constants.LIBRARY_VERSION should match the released artifact version.

Platform (please complete the following information):

  • Library Version in use: 1.25.0
  • Platform being tested: Android

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions