You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In UploadEventsWorker, the code only gets executed if the current build type is not "debug":
if (!"debug".equals(BuildConfig.BUILD_TYPE)) {
uploadLetterLearningEvents();
uploadLetterAssessmentEvents();
uploadWordLearningEvents();
uploadWordAssessmentEvents();
uploadStoryBookLearningEvents();
}
A better solution would be to execute as much code as possible, and skipping execution at the point where the files are about to get uploaded to the server. This way, a larger part of the code gets executed (and tested) during development, also making debugging easier.
The text was updated successfully, but these errors were encountered:
nya-elimu
changed the title
Move if debug check from doWork
Move debug check from doWorkApr 19, 2022
In
UploadEventsWorker
, the code only gets executed if the current build type is not "debug":A better solution would be to execute as much code as possible, and skipping execution at the point where the files are about to get uploaded to the server. This way, a larger part of the code gets executed (and tested) during development, also making debugging easier.
The text was updated successfully, but these errors were encountered: