Skip to content

Conversation

@hiranya911
Copy link
Contributor

  • Exposed protected factory methods in FirebaseCredentials, which accept JsonFactory and HttpTransport arguments.
  • Added setJsonFactory() and setHttpTransport() methods to FirebaseOptions.

Related to #35

Copy link

@mikelehen mikelehen left a comment

Choose a reason for hiding this comment

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

Basically LGTM. Couple small issues.


@Override
public boolean equals(Object obj) {
if (!(obj instanceof FirebaseOptions)) {

Choose a reason for hiding this comment

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

Should equals / hashCode / toString need to be updated?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It looks like these were implemented to support some persistence requirements, which are not really used in the SDK anymore. In the future I can see us adding even more options to this class, and having to implement all these methods each time we make a change is a bit of a problem. WDYT? Should we just get rid of the implementations?

FirebaseApp also implements these methods, but at least it performs all comparisons based on the name of the app.

Choose a reason for hiding this comment

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

Deleting it sounds good to me.

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 will do this in a separate PR. The existing implementations in FirebaseOptions are ok for now.

Choose a reason for hiding this comment

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

Please do this sooner than later. Leaving broken equals / hashCode code around is a good recipe for unhappiness.

* and detailed documentation.
*
* @param transport HttpTransport used to communicate with the remote authentication server.
* @param jsonFactory JsonFactory used to parse JSON responses from the remote authentication

Choose a reason for hiding this comment

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

from the remote authentication .... server?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@hiranya911
Copy link
Contributor Author

Fixed the typo, and left a follow up question.

@hiranya911 hiranya911 assigned hiranya911 and unassigned mikelehen Jun 12, 2017
@hiranya911 hiranya911 merged commit ac1b0da into master Jun 12, 2017
@hiranya911 hiranya911 deleted the hkj-transport-config branch June 12, 2017 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

3 participants