From 424945db246b9e7c7f69e67ba37a6b4d08546966 Mon Sep 17 00:00:00 2001 From: whyash8 Date: Tue, 5 Nov 2024 14:52:49 +0530 Subject: [PATCH] This commit contains a seperate build.BAZEL for the enumfilterutil i made --- app/BUILD.bazel | 3 ++- .../domain/oppialogger/analytics/BUILD.bazel | 3 ++- .../oppia/android/util/enumfilter/BUILD.bazel | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 utility/src/main/java/org/oppia/android/util/enumfilter/BUILD.bazel diff --git a/app/BUILD.bazel b/app/BUILD.bazel index 72554b41639..9d1fe55e606 100644 --- a/app/BUILD.bazel +++ b/app/BUILD.bazel @@ -63,6 +63,7 @@ MIGRATED_SOURCE_FILES = glob([ "src/main/java/org/oppia/android/app/activity/*.kt", "src/main/java/org/oppia/android/app/fragment/*.kt", "src/main/java/org/oppia/android/app/utility/datetime/*.kt", + "src/main/java/org/oppia/android/util/enumfilter/EnumFilterUtil.kt", ]) + [ "src/main/java/org/oppia/android/app/viewmodel/ObservableArrayList.kt", "src/main/java/org/oppia/android/app/viewmodel/ObservableViewModel.kt", @@ -846,7 +847,7 @@ kt_android_library( "src/sharedTest/java/org/oppia/android/app/utility/ProgressMatcher.kt", "src/sharedTest/java/org/oppia/android/app/utility/ProtoExtraMatcher.kt", "src/sharedTest/java/org/oppia/android/app/utility/TabMatcher.kt", - "src/main/java/org/oppia/android/util/enumfilter/EnumFilterUtil.kt", + ], visibility = [ ":app_testing_visibility", diff --git a/domain/src/main/java/org/oppia/android/domain/oppialogger/analytics/BUILD.bazel b/domain/src/main/java/org/oppia/android/domain/oppialogger/analytics/BUILD.bazel index b641dab91cb..b4a5a9c0d46 100644 --- a/domain/src/main/java/org/oppia/android/domain/oppialogger/analytics/BUILD.bazel +++ b/domain/src/main/java/org/oppia/android/domain/oppialogger/analytics/BUILD.bazel @@ -54,7 +54,8 @@ kt_android_library( "//utility/src/main/java/org/oppia/android/util/logging/performancemetrics:performance_metrics_assessor", "//utility/src/main/java/org/oppia/android/util/logging/performancemetrics:performance_metrics_event_logger", "//utility/src/main/java/org/oppia/android/util/networking:network_connection_util", - "//utility/src/main/java/org/oppia/android/util/enumfilter/EnumFilterUtil.kt", + "//utility/src/main/java/org/oppia/android/util/enumfilter:enum_filter_util", + ], ) diff --git a/utility/src/main/java/org/oppia/android/util/enumfilter/BUILD.bazel b/utility/src/main/java/org/oppia/android/util/enumfilter/BUILD.bazel new file mode 100644 index 00000000000..c448e446265 --- /dev/null +++ b/utility/src/main/java/org/oppia/android/util/enumfilter/BUILD.bazel @@ -0,0 +1,19 @@ +""" +General purposes utilities for filtering enums. +""" + + +load("@io_bazel_rules_kotlin//kotlin:android.bzl", "kt_android_library") + +kt_android_library( + name = "enum_filter_util", + srcs = [ + "EnumFilterUtil.kt", + ], + visibility = [ + "//:oppia_api_visibility", + ], + deps = [ + + ], +) \ No newline at end of file