Skip to content

Commit

Permalink
Sync geofences if there are no tracking options (#280)
Browse files Browse the repository at this point in the history
* Sync geofences if there are no tracking options

* Default to efficient preset

* Fix test

* Bump to 3.8.10

* Bump other marketing version
  • Loading branch information
lmeier authored Nov 1, 2023
1 parent ba97664 commit af06554
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 7 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.9'
s.version = '3.8.10'
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.7.8;
MARKETING_VERSION = 3.8.10;
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.7.8;
MARKETING_VERSION = 3.8.10;
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.9;
MARKETING_VERSION = 3.8.10;
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.9;
MARKETING_VERSION = 3.8.10;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
OTHER_CFLAGS = "-fembed-bitcode";
Expand Down
3 changes: 2 additions & 1 deletion RadarSDK/RadarSettings.m
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ + (RadarTrackingOptions *)trackingOptions {
if (optionsDict != nil) {
return [RadarTrackingOptions trackingOptionsFromDictionary:optionsDict];
} else {
return nil;
// default to efficient preset
return RadarTrackingOptions.presetEfficient;
}
}

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.9";
return @"3.8.10";
}

+ (NSString *)deviceId {
Expand Down
1 change: 1 addition & 0 deletions RadarSDKTests/RadarSDKTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,7 @@ - (void)test_Radar_startTripWithTrackingOptionsWhenTrackingIsNotInProgress {

[RadarSettings removePreviousTrackingOptions];
[RadarSettings removeTrackingOptions];
[RadarSettings setTracking:NO];

RadarTripOptions *tripOptions = [[RadarTripOptions alloc] initWithExternalId:@"testTrip" destinationGeofenceTag:@"someTag" destinationGeofenceExternalId:@"someId"];
RadarTrackingOptions *tripTrackingOptions = RadarTrackingOptions.presetContinuous;
Expand Down

0 comments on commit af06554

Please sign in to comment.