From f89d86520722b03895d02a74b86bebfc2fb703e8 Mon Sep 17 00:00:00 2001 From: bstalnaker Date: Mon, 28 Mar 2022 10:18:11 -0400 Subject: [PATCH] fix: Remove Other Deprecated Methods --- mParticleCore.brs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mParticleCore.brs b/mParticleCore.brs index 899a855..8c69cf7 100644 --- a/mParticleCore.brs +++ b/mParticleCore.brs @@ -575,7 +575,8 @@ function mParticleStart(options as object, messagePort as object) mpUtils = { currentChannelVersion: function() as string info = CreateObject("roAppInfo") - return info.getversion() + osVersion = info.GetOSVersion() + return osVersion["major"] + "." + osVersion["minor"] end function, randomGuid: function() as string return CreateObject("roDeviceInfo").GetRandomUUID() @@ -902,12 +903,13 @@ function mParticleStart(options as object, messagePort as object) appInfo = CreateObject("roAppInfo") deviceInfo = CreateObject("roDeviceInfo") env = 2 + osVersion = info.GetOSVersion() if (mparticle()._internal.configuration.development) then env = 1 end if m.collectedApplicationInfo = { an: appInfo.GetTitle(), - av: appInfo.GetVersion(), + av: osVersion["major"] + "." + osVersion["minor"], apn: appInfo.GetID(), abn: appInfo.GetValue("build_version"), env: env @@ -927,8 +929,7 @@ function mParticleStart(options as object, messagePort as object) utcSecondsOffset = localSeconds - utcSeconds utcHoursOffset = utcSecondsOffset / 3600 versionArray = info.GetOsVersion() - versionString = Substitute("{0}.{1}.{2}.{3}", versionArray.major, versionArray.minor, versionArray.revision, versionArray.build) - + versionString = versionArray["major"] + "." + versionArray["minor"] m.collectedDeviceInfo = { dp: "Roku",