-
Notifications
You must be signed in to change notification settings - Fork 625
Check for mandatory Firebase Options. #1140
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
...ase-installations/src/main/java/com/google/firebase/installations/FirebaseInstallations.java
Outdated
Show resolved
Hide resolved
...ase-installations/src/main/java/com/google/firebase/installations/FirebaseInstallations.java
Outdated
Show resolved
Hide resolved
/** Returns the Project Id or Project Number for the Google Cloud Project. */ | ||
@Nullable | ||
String getProjectIdentifier() { | ||
return firebaseApp.getOptions().getProjectId() == null |
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.
Can you use #isEmpty()?
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.
Updated.PTAL
*/ | ||
private void preConditionChecks() { | ||
Preconditions.checkNotNull(getApplicationId()); |
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.
Did you define the method #getApplicationId?
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.
It was defined previously. git only shows the changes - you can see the method:
Line 143 in cbb626b
String getApplicationId() { |
...ase-installations/src/main/java/com/google/firebase/installations/FirebaseInstallations.java
Outdated
Show resolved
Hide resolved
Codecov Report
Continue to review full report at Codecov.
|
@@ -14,6 +14,7 @@ | |||
|
|||
package com.google.firebase.installations; | |||
|
|||
import android.text.TextUtils; |
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.
I hope I did not make you add another factor that could make our SDK fail, haha
No description provided.