-
Notifications
You must be signed in to change notification settings - Fork 30
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
Enhancement of OptiBP widget to add Calibration data #645
Conversation
public static final String DATE = "date"; | ||
public static final String VERSION = "version"; | ||
public static final String MODEL = "model"; | ||
public static final String HEIGHT = "height"; | ||
public static final String WEIGHT = "weight"; | ||
public static final String COMPERATIVES = "comperatives"; | ||
public static final String SYSTOLIC = "systolic"; |
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.
@SebaMutuku Are we removing this because we no longer need it?
JSONObject calibrationJson = new JSONObject(); | ||
JSONObject comparativesJson = new JSONObject(); | ||
calibrationJson.put(OPTIBPCONSTANTS.DATE, df.format(new Date())); | ||
calibrationJson.put(OPTIBPCONSTANTS.VERSION, 1); |
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.
@SebaMutuku We agreed to remove this since the OptiBP app creates its
@@ -430,7 +415,7 @@ private void attachRefreshLogic(Context context, JSONObject jsonObject, View vie | |||
} | |||
} | |||
|
|||
protected enum BPFieldType { | |||
protected enum BPFieldType { |
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.
Use camel case naming standard
@@ -376,7 +377,7 @@ public void testInputJson() throws JSONException { | |||
Mockito.doReturn(jsonApi).when(formFragment).getJsonApi(); | |||
Mockito.doReturn(new JSONObject(formString)).when(jsonApi).getmJSONObject(); | |||
|
|||
String inputJson = factorySpy.getInputJsonString(jsonFormActivity, new JSONObject(optiBPWidgetString), widgetArgs); | |||
String inputJson = factorySpy.getInputJsonString(RuntimeEnvironment.application.getApplicationContext(), new JSONObject(optiBPWidgetString), widgetArgs); |
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.
Why are we changing this from using the Activity context
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.
@SebaMutuku Please fix all the code quality issues reported by codacy
# Conflicts: # gradle.properties
No description provided.