Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion FirebaseRemoteConfig/Sources/RCNConfigExperiment.m
Original file line number Diff line number Diff line change
Expand Up @@ -183,13 +183,15 @@ - (void)updateExperiments {

// Update the last experiment start time with the latest payload.
[self updateExperimentStartTime];

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[self.experimentController
updateExperimentsWithServiceOrigin:kServiceOrigin
events:lifecycleEvent
policy:ABTExperimentPayload_ExperimentOverflowPolicy_DiscardOldest
lastStartTime:lastStartTime
payloads:_experimentPayloads];
#pragma clang diagnostic pop
}

- (void)updateExperimentStartTime {
Expand Down
3 changes: 3 additions & 0 deletions FirebaseRemoteConfig/Tests/Unit/RCNConfigExperimentTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,8 @@ - (void)testUpdateExperiments {

NSTimeInterval lastStartTime =
[experiment.experimentMetadata[@"last_experiment_start_time"] doubleValue];
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
OCMStub(
[mockExperimentController
updateExperimentsWithServiceOrigin:[OCMArg any]
Expand All @@ -225,6 +227,7 @@ - (void)testUpdateExperiments {
lastStartTime:lastStartTime
payloads:[OCMArg any]])
.andDo(nil);
#pragma clang diagnostic pop

ABTExperimentPayload *payload = [[ABTExperimentPayload alloc] init];
payload.experimentStartTimeMillis = 12345678000;
Expand Down