-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Enable ABT to be a soft dep of RC #6379
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
Conversation
|
@paulb777 Will the end result be:
|
|
@christibbs It will be Number 2, but not until the Firebase 7.0.0 release to avoid an earlier breaking change. |
329138e to
d57c21f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall LGTM, a few small things
| /// Updates the list of experiments. Experiments already | ||
| /// existing in payloads are not affected, whose state and payload is preserved. This method | ||
| /// compares whether the experiments have changed or not by their variant ID. This runs in a | ||
| /// background queue.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: the first line can fit more words, also double periods at the end of the paragraph.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Here and in the public header this was copied from.
FirebaseRemoteConfig.podspec
Outdated
| ] | ||
| abt.requires_app_host = true | ||
| abt.dependency 'OCMock' | ||
| abt.dependency 'FirebaseABTesting', '~> 4.2' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be 4.3 now instead of 4.2?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes. Good catch.
| #import "FirebaseRemoteConfig/Sources/RCNConfigValue_Internal.h" | ||
| #import "FirebaseRemoteConfig/Sources/RCNDevice.h" | ||
|
|
||
| #import "FirebaseABTesting/Sources/Interop/FIRABTInterop.h" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Should this not stay at the top where it was before?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
| #pragma clang diagnostic ignored "-Wdeprecated-declarations" | ||
| [self updateExperimentsWithServiceOrigin:origin | ||
| events:lifecycleEvent | ||
| policy:ABTExperimentPayloadExperimentOverflowPolicyDiscardOldest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this always be the case for interop, or do we want it to be a parameter as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps we want it to be the default for now? If we need to support other policies, we could add an API and expose the policies via the interop as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SGTM, thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM assuming product owners are good with this (the fact that ABT may not be there for all RC users)
|
@christibbs Would you confirm this is ok from an ABT product perspective that the fact that ABT users will need to explicitly include the pod? |
Will confirm with the team. At the very least it'll require some extensive documentation updates. Also concerned about the case where developers |
|
@christibbs Why "extensive" documentation updates? Isn't it one-line to say to add |
|
Closing since it is a product requirement for ABT to be a hard dependency of RC so that RC developers have the flexibility to add in ABT in the future. |
Fix one of the issues raised in #6345.
#no-changelog