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:
- Add a dependency on com.segment.analytics.kotlin:core:1.25.0 (e.g. via analytics-kotlin 1.25.0).
- Initialize Analytics and send any event (e.g. analytics.track("test")).
- Inspect the outgoing HTTP request (or check the event in the Segment debugger).
- 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
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:
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):