Skip to content

Commit

Permalink
Remove stard_event_logging_configuration part in BUILD.bazel and fix …
Browse files Browse the repository at this point in the history
…format issues
  • Loading branch information
XichengSpencer committed Sep 24, 2024
1 parent 49b57dc commit 4da3aa1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 0 additions & 1 deletion app/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -939,7 +939,6 @@ TEST_DEPS = [
"//utility/src/main/java/org/oppia/android/util/accessibility:test_module",
"//utility/src/main/java/org/oppia/android/util/caching:asset_prod_module",
"//utility/src/main/java/org/oppia/android/util/caching/testing:caching_test_module",
"//utility/src/main/java/org/oppia/android/util/logging:standard_event_logging_configuration_module",
"//utility/src/main/java/org/oppia/android/util/logging/firebase:debug_module",
"//utility/src/main/java/org/oppia/android/util/math:math_expression_parser",
"//utility/src/main/java/org/oppia/android/util/networking:debug_module",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,14 @@ import javax.inject.Inject
* event's integral type rather than its name (as this type will remain fixed for the lifetime of a
* given event, unlike its name returned by this implementation).
*/
class EventTypeToHumanReadableNameConverter @Inject constructor()
{
fun convertToHumanReadableName(eventType: ActivityContextCase): String {
class EventTypeToHumanReadableNameConverter @Inject constructor() {
/**
* Converts an event type to a human-readable name.
*
* @param eventType The type of event to convert.
* @return A human-readable string representation of the event type.
*/
fun convertToHumanReadableName(eventType: ActivityContextCase): String {
return when (eventType) {
ActivityContextCase.OPEN_EXPLORATION_ACTIVITY -> "open_exploration_player_screen"
ActivityContextCase.OPEN_INFO_TAB -> "select_topic_info_tab"
Expand Down

0 comments on commit 4da3aa1

Please sign in to comment.