From 0ff8d67eafd019a8c75c763c201a7bc47a028b27 Mon Sep 17 00:00:00 2001 From: bohan-amplitude <96497806+bohan-amplitude@users.noreply.github.com> Date: Wed, 10 Aug 2022 14:57:01 -0700 Subject: [PATCH] fix: add version_name to event json body (#60) --- core/src/main/java/com/amplitude/core/utilities/JSONUtil.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/core/src/main/java/com/amplitude/core/utilities/JSONUtil.kt b/core/src/main/java/com/amplitude/core/utilities/JSONUtil.kt index fe5ac6f2..a03f8357 100644 --- a/core/src/main/java/com/amplitude/core/utilities/JSONUtil.kt +++ b/core/src/main/java/com/amplitude/core/utilities/JSONUtil.kt @@ -40,6 +40,7 @@ object JSONUtil { eventJSON.addValue("location_lat", event.locationLat) eventJSON.addValue("location_lng", event.locationLng) eventJSON.addValue("ip", event.ip) + eventJSON.addValue("version_name", event.versionName) eventJSON.addValue("idfa", event.idfa) eventJSON.addValue("idfv", event.idfv) eventJSON.addValue("adid", event.adid)