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
Copy file name to clipboardExpand all lines: final_notes.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,12 +34,12 @@ Testing project replicates the same feature structure to ease test running separ
34
34
#### LiveData / Observable Pattern
35
35
Data is handled via [LiveData](https://developer.android.com/topic/libraries/architecture/livedata) / Observable Pattern instead of RxJava, as it's better performant and includes a series of benefits as, for example, avoiding manual app lifecycle management.
36
36
37
-
*RepoListViewModel.kt*
37
+
***RepoListViewModel***
38
38
```Kotlin
39
39
val repoList:LiveData<NetworkResource<List<Repo>>> = repoListRepository.getRepos(organizationName)
40
40
```
41
41
42
-
*RepoListActivity.kt*
42
+
***RepoListActivity***
43
43
```Kotlin
44
44
//Observe live data changes and update UI accordingly
45
45
repoListViewModel.repoList.observe(this) {
@@ -56,21 +56,21 @@ Project implements Dependency Injection (SOLI**D**) to isolate modules, avoid in
56
56
57
57
Dependency Injection is handled via [Hilt](https://developer.android.com/training/dependency-injection/hilt-android), a library that uses Dagger under the hood easing its implementation via @ annotations, and is developed and recommended to use by Google.
@@ -81,7 +81,7 @@ class RepoListViewModel @ViewModelInject constructor (
81
81
### API Calls
82
82
API Calls are handled via [retrofit](https://square.github.io/retrofit/), declaring calls via an interface, and automatically deserialized by [Gson](https://github.com/google/gson) into model objects.
0 commit comments