-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Merge FLoC SDK into master branch. #6466
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
* Create Segmentation SDK structure for source and unit tests. * Review changes: Remove unnecessary files in test folder. Add md-floc-master to CI * Rename Segmentation directory to FirebaseSegmentation directory. Update podspec to include search header path.
* Add core support with interop for Segmentation SDK. Also update headers to be under sources folder. * Review fixes. * Minor changes. * Fix style. * Fix style. * Style changes. * Fix whitespace in travis.yml * Fix style. * Travis CI is stuck..try updating the travis.yml * Undo travis.yml change.
…4574) * Working drop of Segmentation SDK along with sample app and unit tests. * Update if_changed.sh to include FirebaseSegmentation. * Complete NS_ASSUME_NON_NULL_START with NS_ASSUME_NON_NULL_END in header file. * Fix unit tests. * Fix style. * Fixes after running XCode's static analyzer. * Fix style. * fix style. * 'pod lib lint' fixes. * Fix analyzer errors. * Address review comments. * Minor changes for review comments. * Address review comments. * Address review comments. * stop mocking in tear down method for tests. * Minor update to sample app project. * Fix trailing whitespace in Podfile. * Add set -x to check.sh
Danger has errored[!] Invalid
Generated by 🚫 Danger |
/retest |
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.
Don't forget to update the Dangerfile with segmentation paths: https://cs.opensource.google/firebase-sdk/firebase-ios-sdk/+/master:Dangerfile;l=73?q=Dangerfile
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.
GHA actions should be set up
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.
You may need to update the copyright header.
|
||
_installationIdentifier = identifier; | ||
|
||
__weak SEGContentManager *weakSelf = self; |
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.
Using __weak
here is unnecessary since self
is a singleton instance, and will thus never be deallocated.
FIRLogError(kFIRLoggerSegmentation, @"I-SEG000022", | ||
@"Internal error making network request."); | ||
completionHandler( | ||
NO, @{@"errorDescription" : @"Internal error making network request."}); |
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.
This errorDescription
key is inconsistent with other completion handler invocations (errorDescription
vs ErrorDescription
). Can you use a global constant key instead of a string literal in every completion handler?
#import <Foundation/Foundation.h> | ||
|
||
#ifndef SEGSegmentationConstants_h | ||
#define SEGSegmentationConstants_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: Header guards not required for files included with #import
dispatch_async(_databaseOperationQueue, ^{ | ||
SEGDatabaseManager *strongSelf = weakSelf; | ||
SEGDatabaseManager *strongSelf = self; |
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.
You can remove this declaration (and the if statement below) and use self
directly.
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.
Also, needs a rebase or merge with master
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 on green CI. Thanks!
Context:
design doc:
https://docs.google.com/document/d/1Lh4cZ5RJieRh6sso-JqDA6xxJFrrX769BbpI__UbQGA/edit#heading=h.8lfbj9ruhrwi
api council approval:
https://docs.google.com/document/d/1Tw-1xqA3pGkZZVF4SW_P9cGaYdU9HyCXT0W7gYJSbDA/edit?ts=5ce5fdb4#heading=h.x94y9zzc13xn