Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove Other Deprecated Methods #21

Merged
merged 1 commit into from
Mar 29, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions mParticleCore.brs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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
Expand All @@ -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",
Expand Down