Skip to content

Conversation

dmandar and others added 7 commits May 15, 2020 15:52
* 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
@google-oss-bot
Copy link

google-oss-bot commented Sep 15, 2020

Danger has errored

[!] Invalid Dangerfile file: syntax error, unexpected tCONSTANT, expecting )
...= hasChangesIn("FirebaseStorage/")
... ^~~~~~~~~~~~~~~
Dangerfile:109: syntax error, unexpected tCONSTANT, expecting end-of-input
...= hasChangesIn("FirebaseStorage/Sources/Public/")
... ^~~~~~~~~~~~~~~. Updating the Danger gem might fix the issue. Your Danger version: 6.1.0, latest Danger version: 8.0.5

 #  from Dangerfile:108
 #  -------------------------------------------
 #  @has_segmentation_api_changes = hasChangesIn("FirebaseSegmentation/Source/Public/
 >  @has_storage_changes = hasChangesIn("FirebaseStorage/")
 #  @has_storage_api_changes = hasChangesIn("FirebaseStorage/Sources/Public/")
 #  -------------------------------------------

Generated by 🚫 Danger

@diwu-arete
Copy link
Contributor Author

/retest

Copy link
Contributor

@morganchen12 morganchen12 left a 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

Copy link
Member

@paulb777 paulb777 left a 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

Copy link
Contributor

@morganchen12 morganchen12 left a 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;
Copy link
Contributor

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."});
Copy link
Contributor

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
Copy link
Contributor

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;
Copy link
Contributor

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.

@ChaoqunCHEN ChaoqunCHEN requested a review from paulb777 October 1, 2020 20:25
Copy link
Member

@paulb777 paulb777 left a 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

@ChaoqunCHEN ChaoqunCHEN requested a review from paulb777 October 1, 2020 21:28
Copy link
Member

@paulb777 paulb777 left a 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!

@ChaoqunCHEN ChaoqunCHEN merged commit 69bfe3f into master Oct 1, 2020
@paulb777 paulb777 deleted the ccq-floc branch October 1, 2020 22:37
@firebase firebase locked and limited conversation to collaborators Nov 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants