Fix #3937: Ensure ViewEventLogsViewModel builds for alpha builds #3957
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explanation
Fix #3937
This updates DebugEventLogger's Bazel build such that it's still available to depend on for alpha production builds. This is sort of a hacky workaround needed to make ViewEventLogsViewModel compile since view models can't be conditionally excluded in builds yet. Post #59 we'll be able to exclude debug-only view models like ViewEventLogsViewModel in prod builds.
Note that there's not a reasonable way to test this today besides manually building. Also, CI doesn't catch this since our alpha build is still set up to use debug builds (which we can't move away until probably after #1720 is addressed. You can repro this locally by following this excerpt from the release process & then trying to build a debug/alpha version of the app:
DeveloperOptionsStarterModule
DebugLogReportingModule
NetworkConnectionUtilDebugModule
HintsAndSolutionDebugModule
LogReportingModule
NetworkConnectionUtilProdModule
HintsAndSolutionProdModule
view_models
, in://utility/src/main/java/org/oppia/android/util/logging/firebase:debug_module
, replace “debug_module” withprod_module
//utility/src/main/java/org/oppia/android/util/networking:debug_module
, replacedebug_module
withprod_module
Essential Checklist
For UI-specific PRs only
N/A -- not a user-facing change.