Skip to content

Commit

Permalink
Add serialization of createdAt and actualCreatedAt to events (#290)
Browse files Browse the repository at this point in the history
* Add serialization of createdAt and actualCreatedAt

* 'Update SDK version to 3.8.12
  • Loading branch information
lmeier authored Dec 19, 2023
1 parent 03e8e20 commit 25626e0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion RadarSDK.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'RadarSDK'
s.version = '3.8.11'
s.version = '3.8.12'
s.summary = 'iOS SDK for Radar, the leading geofencing and location tracking platform'
s.homepage = 'https://radar.com'
s.author = { 'Radar Labs, Inc.' => '[email protected]' }
Expand Down
8 changes: 4 additions & 4 deletions RadarSDK.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -860,7 +860,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 3.8.11;
MARKETING_VERSION = 3.8.12;
PRODUCT_BUNDLE_IDENTIFIER = io.radar.sdk;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -890,7 +890,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 3.8.11;
MARKETING_VERSION = 3.8.12;
PRODUCT_BUNDLE_IDENTIFIER = io.radar.sdk;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -973,7 +973,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MARKETING_VERSION = 3.8.11;
MARKETING_VERSION = 3.8.12;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -1031,7 +1031,7 @@
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
MARKETING_VERSION = 3.8.11;
MARKETING_VERSION = 3.8.12;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
OTHER_CFLAGS = "-fembed-bitcode";
Expand Down
4 changes: 4 additions & 0 deletions RadarSDK/RadarEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@ - (NSDictionary *)dictionaryValue {
[dict setValue:locationDict forKey:@"location"];
[dict setValue:@(self.replayed) forKey:@"replayed"];
[dict setValue:self.metadata forKey:@"metadata"];
NSString *createdAtString = [RadarUtils.isoDateFormatter stringFromDate:self.createdAt];
[dict setValue:createdAtString forKey:@"createdAt"];
NSString *actualCreatedAtString = [RadarUtils.isoDateFormatter stringFromDate:self.actualCreatedAt];
[dict setValue:actualCreatedAtString forKey:@"actualCreatedAt"];
return dict;
}

Expand Down
2 changes: 1 addition & 1 deletion RadarSDK/RadarUtils.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ + (NSNumber *)timeZoneOffset {
}

+ (NSString *)sdkVersion {
return @"3.8.11";
return @"3.8.12";
}

+ (NSString *)deviceId {
Expand Down

0 comments on commit 25626e0

Please sign in to comment.