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

Adds Firebase Database URL field in Configure Section. #42

Merged
merged 3 commits into from
Jun 3, 2019

Conversation

DreamyPhobic
Copy link
Collaborator

Closes #21

Added Firebase Database URL field in Configure Section.
@@ -54,7 +54,21 @@
<children>
<TextField fx:id="webAPIKeyField" prefHeight="31.0" prefWidth="400.0" />
</children>
</HBox> <Label text="Dynamic Link Domain">
</HBox>
<Label text="Database URL">
Copy link
Member

Choose a reason for hiding this comment

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

Database URL could mean a number of things in this context. Pick a different label, maybe Firebase Realtime Database URL or Firebase Database URL.

@@ -30,6 +31,7 @@ public Data(){
setDYNAMIC_LINK_DOMAIN((String) mainObject.getString("dynamicLinkDomain"));
setANDROID_APP_PACKAGE_NAME((String) mainObject.getString("packageName"));
setSYNC_CLIENT_URL((String) mainObject.getString("syncClientURL"));
setDATABASE_URL((String) mainObject.getString("databaseURL"));
Copy link
Member

Choose a reason for hiding this comment

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

The cast to String is redundant.

@@ -142,4 +146,12 @@ public String toString() {
", SYNC_CLIENT_URL='" + SYNC_CLIENT_URL + '\'' +
'}';
}

public String getDATABASE_URL() {
Copy link
Member

Choose a reason for hiding this comment

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

Please follow the convention of this class and move these getter/setter up where the other getters and setters are.

@DreamyPhobic
Copy link
Collaborator Author

@linl33 please review new changes.

@Override
public String toString() {
return "Data{" +
"SUPERVISOR_ID='" + SUPERVISOR_ID + '\'' +
", WEB_API_KEY='" + WEB_API_KEY + '\'' +
", DATABASE_URL='" + DATABASE_URL + '\'' +
", DATABASE_URL='" + FIREBASE_DATABASE_URL + '\'' +
Copy link
Member

Choose a reason for hiding this comment

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

", DATABASE_URL='"

This string here should be changed as well.

@linl33 linl33 merged commit 4010f7c into odk-x:master Jun 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Firebase database URL is hardcoded. This should be configurable.
3 participants