Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Config] Port 'ConfigExperiment' to Swift #14179

Merged
merged 8 commits into from
Dec 5, 2024
Merged

Conversation

ncooke3
Copy link
Member

@ncooke3 ncooke3 commented Nov 27, 2024

#no-changelog

@ncooke3 ncooke3 changed the base branch from main to rc-swift December 3, 2024 20:32
@ncooke3 ncooke3 changed the base branch from rc-swift to main December 3, 2024 20:33
@ncooke3 ncooke3 force-pushed the nc/config-configexperiment branch from 6d667b7 to 4795a4c Compare December 3, 2024 20:47
@ncooke3 ncooke3 changed the base branch from main to rc-swift December 3, 2024 20:47
Copy link
Contributor

github-actions bot commented Dec 3, 2024

Apple API Diff Report

Commit: 4404a97
Last updated: Thu Dec 5 08:25 PST 2024
View workflow logs & download artifacts


FirebaseABTesting

Constants

[MODIFIED] FIRDefaultExperimentOverflowPolicy
[MODIFIED] FIRDefaultExperimentOverflowPolicy
Swift:
+  let FIRDefaultExperimentOverflowPolicy : ABTExperimentPayloadExperimentOverflowPolicy
-  let FIRDefaultExperimentOverflowPolicy : << error type >>
Objective-C:
+  extern const ABTExperimentPayloadExperimentOverflowPolicy FIRDefaultExperimentOverflowPolicy
-  extern const ABTExperimentPayloadExperimentOverflowPolicy FIRDefaultExperimentOverflowPolicy

Enumerations

[MODIFIED] ABTExperimentPayloadExperimentOverflowPolicy
[MODIFIED] ABTExperimentPayloadExperimentOverflowPolicy
Swift:
+  enum ABTExperimentPayloadExperimentOverflowPolicy : Int32 , @unchecked Sendable
+    case unspecified = 0
+    case discardOldest = 1
+    case unrecognizedValue = 999
+    case ignoreNewest = 2
Objective-C:
+  enum ABTExperimentPayloadExperimentOverflowPolicy : int32_t {}
-  NS_ENUM ( int32_t
+    ABTExperimentPayloadExperimentOverflowPolicyUnspecified = 0
+    ABTExperimentPayloadExperimentOverflowPolicyDiscardOldest = 1
+    ABTExperimentPayloadExperimentOverflowPolicyUnrecognizedValue = 999
+    ABTExperimentPayloadExperimentOverflowPolicyIgnoreNewest = 2

Classes

FIRExperimentController
[MODIFIED] -updateExperimentsWithServiceOrigin:events:policy:lastStartTime:payloads:completionHandler:
Swift:
+  func updateExperiments ( withServiceOrigin origin : String , events : LifecycleEvents , policy : ABTExperimentPayloadExperimentOverflowPolicy , lastStartTime : TimeInterval , payloads : [ Data ]) async throws
Objective-C:
+  - ( void ) updateExperimentsWithServiceOrigin :( nonnull NSString * ) origin events :( nonnull FIRLifecycleEvents * ) events policy : ( ABTExperimentPayloadExperimentOverflowPolicy ) policy lastStartTime : ( NSTimeInterval ) lastStartTime payloads : ( nonnull NSArray < NSData *> * ) payloads completionHandler : ( nullable void ( ^ )( NSError * _Nullable )) completionHandler ;
-  - ( void ) updateExperimentsWithServiceOrigin :( nonnull NSString * ) origin events :( nonnull FIRLifecycleEvents * ) events policy : ( ABTExperimentPayloadExperimentOverflowPolicy ) policy lastStartTime : ( NSTimeInterval ) lastStartTime payloads : ( nonnull NSArray < NSData *> * ) payloads completionHandler : ( nullable void ( ^ )( NSError * _Nullable )) completionHandler ;

@ncooke3 ncooke3 merged commit a82ddca into rc-swift Dec 5, 2024
51 checks passed
@ncooke3 ncooke3 deleted the nc/config-configexperiment branch December 5, 2024 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants