Skip to content

Commit 2876424

Browse files
committed
refactor: add SDK name and version in settings call [skip-ci]
1 parent 4f800a9 commit 2876424

4 files changed

Lines changed: 11 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.9.2] - 2025-07-24
9+
10+
### Added
11+
12+
- Added the SDK name and version in the settings call to VWO as query parameters.
13+
14+
815
## [1.9.1] - 2025-07-07
916

1017
### Fixed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ limitations under the License. -->
1919

2020
<groupId>com.vwo.sdk</groupId>
2121
<artifactId>vwo-fme-java-sdk</artifactId>
22-
<version>1.9.1</version>
22+
<version>1.9.2</version>
2323
<packaging>jar</packaging>
2424

2525
<name>VWO FME Java SDK</name>

src/main/java/com/vwo/constants/Constants.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public class Constants {
2828
public static final int DEFAULT_REQUEST_TIME_INTERVAL = 600; // 10 * 60(secs) = 600 secs i.e. 10 minutes
2929
public static final int DEFAULT_EVENTS_PER_REQUEST = 100;
3030
public static final String SDK_NAME = "vwo-fme-java-sdk";
31+
public static final String SDK_VERSION = "1.9.2";
3132
public static final long SETTINGS_EXPIRY = 10000000;
3233
public static final long SETTINGS_TIMEOUT = 50000;
3334

src/main/java/com/vwo/services/SettingsManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ public String fetchSettings(Boolean isViaWebhook) {
113113
NetworkManager networkInstance = NetworkManager.getInstance();
114114
Map<String, String> options = new NetworkUtil().getSettingsPath(sdkKey, accountId);
115115
options.put("api-version", "3");
116+
options.put("sn", Constants.SDK_NAME);
117+
options.put("sv", Constants.SDK_VERSION);
116118

117119
if (!networkInstance.getConfig().getDevelopmentMode()) {
118120
options.put("s", "prod");

0 commit comments

Comments
 (0)