Skip to content

Commit

Permalink
feat: Use direct url routing config feature flag (#229)
Browse files Browse the repository at this point in the history
  • Loading branch information
einsteinx2 authored Oct 11, 2023
1 parent 2259297 commit e862524
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mParticle-Apple-SDK/MPIConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ extern NSString * _Nonnull const kMPRemoteConfigRestrictIDFA;
extern NSString * _Nonnull const kMPRemoteConfigAliasMaxWindow;
extern NSString * _Nonnull const kMPRemoteConfigAllowASR;
extern NSString * _Nonnull const kMPRemoteConfigExcludeAnonymousUsersKey;
extern NSString * _Nonnull const kMPRemoteConfigDirectURLRouting;

extern NSString * _Nonnull const kMPRemoteConfigBlockUnplannedEvents;
extern NSString * _Nonnull const kMPRemoteConfigBlockUnplannedEventAttributes;
extern NSString * _Nonnull const kMPRemoteConfigBlockUnplannedIdentities;
Expand Down Expand Up @@ -324,8 +326,6 @@ extern NSString * _Nonnull const kMPRemoteConfigDataPlanningDataPlanVersionValue
extern NSString * _Nonnull const kMPRemoteConfigDataPlanningDataPlanVersionValueImpressionView;
extern NSString * _Nonnull const kMPRemoteConfigDataPlanningDataPlanVersionValueImpressionClick;



// Notifications
extern NSString * _Nonnull const kMPCrashReportOccurredNotification;
extern NSString * _Nonnull const kMPConfigureExceptionHandlingNotification;
Expand Down
1 change: 1 addition & 0 deletions mParticle-Apple-SDK/MPIConstants.m
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@
NSString *const kMPRemoteConfigAliasMaxWindow = @"alias_max_window";
NSString *const kMPRemoteConfigAllowASR = @"iasr";
NSString *const kMPRemoteConfigExcludeAnonymousUsersKey = @"eau";
NSString *const kMPRemoteConfigDirectURLRouting = @"dur";
NSString *const kMPRemoteConfigDataPlanningResults = @"dpr";
NSString *const kMPRemoteConfigDataPlanning = @"dtpn";
NSString *const kMPRemoteConfigDataPlanningBlock = @"blok";
Expand Down
1 change: 1 addition & 0 deletions mParticle-Apple-SDK/Utils/MPResponseConfig.m
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ - (nonnull instancetype)initWithConfiguration:(nonnull NSDictionary *)configurat
[stateMachine configureDataBlocking:_configuration[kMPRemoteConfigDataPlanningResults]];

stateMachine.allowASR = [_configuration[kMPRemoteConfigAllowASR] boolValue];
stateMachine.enableDirectRouting = [_configuration[kMPRemoteConfigDirectURLRouting] boolValue];

// Exception handling
NSString *auxString = !MPIsNull(_configuration[kMPRemoteConfigExceptionHandlingModeKey]) ? _configuration[kMPRemoteConfigExceptionHandlingModeKey] : nil;
Expand Down

0 comments on commit e862524

Please sign in to comment.