Skip to content

Commit 58c31aa

Browse files
committed
public 🔥
1 parent 73ad939 commit 58c31aa

File tree

2 files changed

+34
-24
lines changed

2 files changed

+34
-24
lines changed

LICENSE

+1-21
Original file line numberDiff line numberDiff line change
@@ -1,21 +1 @@
1-
MIT License
2-
3-
Copyright (c) 2023 Petrus Nguyễn Thái Học
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
TODO - TBD - WIP

README.md

+33-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
![badge][badge-tvos]
1616
![badge][badge-watchos]
1717

18+
TODO - TBD - WIP
1819
<p align="center">
1920
<img src="https://github.com/hoc081098/kmp-viewmodel/raw/master/logo.png" width="400">
2021
</p>
@@ -80,23 +81,52 @@ bus
8081

8182
## Docs
8283

83-
TODO
84+
TODO - TBD - WIP
85+
86+
## Sample
87+
88+
- [Android Compose sample](https://github.com/hoc081098/kotlin-channel-event-bus/tree/master/sample/app):
89+
an Android app using Compose UI to show how to use the library.
90+
It has two nested navigation graphs: `RegisterScreen` and `HomeScreen`.
91+
92+
In `RegisterScreen`, we have 3 steps (3 screens) to allow user to input their information, step by
93+
step.
94+
- A `RegisterSharedViewModel` (bound to `RegisterScreen` navigation graph scope) is used
95+
to hold the whole state of the registration process.
96+
It observes events from the `ChannelEventBus` and update the state accordingly.
97+
98+
- Each step screen has a `ViewModel` to hold the state of the screen, and will send events to
99+
the `ChannelEventBus`,
100+
then the `RegisterSharedViewModel` will receive those events and update the state.
101+
102+
## Roadmap
103+
104+
TODO - TBD - WIP
84105

85106
## License
86107

87108
```license
88-
MIT License
89-
Copyright (c) 2023 Petrus Nguyễn Thái Học
109+
TODO - TBD - WIP
90110
```
91111

92112
[badge-android]: http://img.shields.io/badge/android-6EDB8D.svg?style=flat
113+
93114
[badge-ios]: http://img.shields.io/badge/ios-CDCDCD.svg?style=flat
115+
94116
[badge-js]: http://img.shields.io/badge/js-F8DB5D.svg?style=flat
117+
95118
[badge-jvm]: http://img.shields.io/badge/jvm-DB413D.svg?style=flat
119+
96120
[badge-linux]: http://img.shields.io/badge/linux-2D3F6C.svg?style=flat
121+
97122
[badge-windows]: http://img.shields.io/badge/windows-4D76CD.svg?style=flat
123+
98124
[badge-mac]: http://img.shields.io/badge/macos-111111.svg?style=flat
125+
99126
[badge-watchos]: http://img.shields.io/badge/watchos-C0C0C0.svg?style=flat
127+
100128
[badge-tvos]: http://img.shields.io/badge/tvos-808080.svg?style=flat
129+
101130
[badge-wasm]: https://img.shields.io/badge/wasm-624FE8.svg?style=flat
131+
102132
[badge-nodejs]: https://img.shields.io/badge/nodejs-68a063.svg?style=flat

0 commit comments

Comments
 (0)