From 8303e9ce39f13add54d0b142a42b3b763a6a6d33 Mon Sep 17 00:00:00 2001 From: ShiCheng Lu Date: Fri, 7 Jun 2024 13:54:34 -0400 Subject: [PATCH] Add missing fields verified token (#347) * add missing fields to verified token when converting to a dictionary * bump version 3.13.1 --- .gitignore | 2 +- RadarSDK.podspec | 2 +- RadarSDK.xcodeproj/project.pbxproj | 4 ++-- RadarSDK/RadarUtils.m | 2 +- RadarSDK/RadarVerifiedLocationToken.m | 2 ++ 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 6ea3f62ed..50f797021 100644 --- a/.gitignore +++ b/.gitignore @@ -11,4 +11,4 @@ build/ docs/undocumented.json *.xcarchive IntegrationExamples - +.build/ diff --git a/RadarSDK.podspec b/RadarSDK.podspec index cbcc8596a..331f89a19 100644 --- a/RadarSDK.podspec +++ b/RadarSDK.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'RadarSDK' - s.version = '3.13.0' + s.version = '3.13.1' s.summary = 'iOS SDK for Radar, the leading geofencing and location tracking platform' s.homepage = 'https://radar.com' s.author = { 'Radar Labs, Inc.' => 'support@radar.com' } diff --git a/RadarSDK.xcodeproj/project.pbxproj b/RadarSDK.xcodeproj/project.pbxproj index 817d6d267..fd59b17d7 100644 --- a/RadarSDK.xcodeproj/project.pbxproj +++ b/RadarSDK.xcodeproj/project.pbxproj @@ -1025,7 +1025,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 10.0; - MARKETING_VERSION = 3.13.0; + MARKETING_VERSION = 3.13.1; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; ONLY_ACTIVE_ARCH = YES; @@ -1083,7 +1083,7 @@ GCC_WARN_UNUSED_FUNCTION = YES; GCC_WARN_UNUSED_VARIABLE = YES; IPHONEOS_DEPLOYMENT_TARGET = 10.0; - MARKETING_VERSION = 3.13.0; + MARKETING_VERSION = 3.13.1; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; OTHER_CFLAGS = "-fembed-bitcode"; diff --git a/RadarSDK/RadarUtils.m b/RadarSDK/RadarUtils.m index b3f7ac896..cad01341d 100644 --- a/RadarSDK/RadarUtils.m +++ b/RadarSDK/RadarUtils.m @@ -45,7 +45,7 @@ + (NSNumber *)timeZoneOffset { } + (NSString *)sdkVersion { - return @"3.13.0"; + return @"3.13.1"; } + (NSString *)deviceId { diff --git a/RadarSDK/RadarVerifiedLocationToken.m b/RadarSDK/RadarVerifiedLocationToken.m index 465159cdf..aca97a4ea 100644 --- a/RadarSDK/RadarVerifiedLocationToken.m +++ b/RadarSDK/RadarVerifiedLocationToken.m @@ -87,6 +87,8 @@ - (NSDictionary *)dictionaryValue { dict[@"events"] = [RadarEvent arrayForEvents:self.events]; dict[@"token"] = self.token; dict[@"expiresAt"] = [RadarUtils.isoDateFormatter stringFromDate:self.expiresAt]; + dict[@"expiresIn"] = @(self.expiresIn); + dict[@"passed"] = @(self.passed); return dict; }