forked from oppia/oppia-android
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Adding BUILD.bazel in app//viewmodel * Reformatted to alphabetical order * Adding target deps * Resolving Requested changes * lexicographic ordering in deps * Resolving requested changes * replacing with third party wrapper * Added Doc for viewmodel/BUILD.bazel * Excluding from the glob * Update app/BUILD.bazel Co-authored-by: Ben Henning <henning.benmax@gmail.com> Co-authored-by: Ben Henning <henning.benmax@gmail.com>
- Loading branch information
1 parent
6107ecd
commit a70d9b0
Showing
3 changed files
with
60 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
app/src/main/java/org/oppia/android/app/viewmodel/BUILD.bazel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
""" | ||
Utilities corresponding to simplify using Jetpack's view model functionality. | ||
""" | ||
|
||
load("@io_bazel_rules_kotlin//kotlin:kotlin.bzl", "kt_android_library") | ||
|
||
kt_android_library( | ||
name = "observable_array_list", | ||
srcs = [ | ||
"ObservableArrayList.kt", | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//third_party:androidx_databinding_databinding-adapters", | ||
], | ||
) | ||
|
||
kt_android_library( | ||
name = "observable_view_model", | ||
srcs = [ | ||
"ObservableViewModel.kt", | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//third_party:androidx_databinding_databinding-adapters", | ||
"//third_party:androidx_lifecycle_lifecycle-extensions", | ||
], | ||
) | ||
|
||
kt_android_library( | ||
name = "view_model_provider", | ||
srcs = [ | ||
"ViewModelBridgeFactory.kt", | ||
"ViewModelProvider.kt", | ||
], | ||
visibility = ["//visibility:public"], | ||
deps = [ | ||
"//third_party:androidx_appcompat_appcompat", | ||
"//third_party:androidx_lifecycle_lifecycle-extensions", | ||
"//third_party:javax_inject_javax_inject", | ||
], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters