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

IID: version dependent on FirebaseInstallations #4533

Merged
merged 52 commits into from
Dec 20, 2019

Conversation

maksymmalyhin
Copy link
Contributor

The contains:

  • InstanceID version that uses FIS iOS SDK to generate store and retrieve IID
  • related FCM tests changes

The changes in the branch have been already reviewed in the PRs into the branch, but a brief review is appreciated anyway.

maksymmalyhin and others added 30 commits July 26, 2019 12:52
* Fix IID FCM token check.

* Unused constant deleted.

* FCM tests: fix bad merge.
#4482)

* IID: use a cached value of FID for -[FIRInstanceID appInstanceID:]

* TODO comment

* TODO updated
…4522)

* Bump FIrebaseInstallations to 1.0.0

* Travis: remove mm/fis-integration-master branch

* Travis: if_changed script updated to reflect IID dependency on FIS.

* Revert "Travis: remove mm/fis-integration-master branch"

This reverts commit 534dff9.
@maksymmalyhin maksymmalyhin added this to the M62 milestone Dec 19, 2019
Copy link
Contributor

@charlotteliang charlotteliang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is awesome and thank you for cleaning up the keychain!

@@ -16,14 +16,10 @@

#import "FIRInstanceIDKeychain.h"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might be some thing I can help in another PR but I wonder if FIRInstanceIDKeychain is needed at all after FIS is in.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can see it is still used by FIRInstanceIDAuthKeyChain which is used in the FIRInstanceIDTokenManager, FIRInstanceIDCheckinStore and couple more classes.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, so it's used to store token and checkin, not just IID. We can deal with that later then. Thanks!

@@ -2059,6 +2050,13 @@
name = "Podspec Metadata";
sourceTree = "<group>";
};
85A00DB227791D3B865D0CE2 /* Pods */ = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete.

@@ -194,4 +194,5 @@ - (void)testTokenInconsistentWithIID {
firebaseAppID:FIRInstanceIDFirebaseAppID()];
XCTAssertFalse([self.validTokenInfo isFreshWithIID:kIID]);
}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Delete unless this is a style requirement.

@@ -56,23 +59,23 @@ - (BOOL)checkTokenRefreshPolicyForIID:(NSString *)IID;
- (void)updateToAPNSDeviceToken:(NSData *)deviceToken isSandbox:(BOOL)isSandbox;
/**
* Create a fetch operation. This method can be stubbed to return a particular operation instance,
* which makes it easier to unit test different behaviors.
* which makes it easier to unit test different behaviours.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, an American to Canadian change. @ryanwilson Do we have any standard guidance about English dialects in comments?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can revert it. I just followed Xcode suggestions

@@ -46,7 +45,7 @@ typedef NS_OPTIONS(NSUInteger, FIRInstanceIDInvalidTokenReason) {
*
* @param authorizedEntity The authorized entity for the token, should not be nil.
* @param scope The scope for the token, should not be nil.
* @param keyPair The keyPair that represents the app identity.
* @param instanceID The unique string identifying the app instance.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inconsistent indent

@@ -77,7 +76,7 @@ typedef NS_OPTIONS(NSUInteger, FIRInstanceIDInvalidTokenReason) {
*
* @param authorizedEntity The authorized entity for the token, should not be nil.
* @param scope The scope for the token, should not be nil.
* @param keyPair The keyPair that represents the app identity.
* @param instanceID The unique string identifying the app instance.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@maksymmalyhin
Copy link
Contributor Author

@paulb777 Thank you for the review! I pushed the fixes.

@paulb777
Copy link
Member

Note that if you want to keep the individual commits in the git history, do a command line merge to master.

@maksymmalyhin
Copy link
Contributor Author

maksymmalyhin commented Dec 19, 2019

@paulb777 Initially I though not to keep the separate commits, though it is probably a good idea if we are fine with several extra commit pushed to the branch without PRs (the recent ones and conflict resolutions from the past). WDYT?

@paulb777
Copy link
Member

I'm ok either way. Even if you squash, you can still include the PR's from the commit message that GitHub generates automatically.

@maksymmalyhin
Copy link
Contributor Author

I'll squash and merge including the PR's in the commit message.

@maksymmalyhin maksymmalyhin merged commit f62c7dd into master Dec 20, 2019
@maksymmalyhin maksymmalyhin deleted the mm/fis-integration-master branch December 20, 2019 15:54
@maksymmalyhin maksymmalyhin restored the mm/fis-integration-master branch January 2, 2020 16:26
@firebase firebase locked and limited conversation to collaborators Jan 20, 2020
@paulb777 paulb777 deleted the mm/fis-integration-master branch April 2, 2020 16:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.