Skip to content

Commit e6d4ccb

Browse files
authored
Update README.md
1 parent c994dae commit e6d4ccb

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# README
22

3-
This project shows how to build an android application with kotlin and some useful libraries. It intergates the [Meepo](https://github.com/nekocode/Meepo) library to create activity & broadcast routers. And use kotlin language sugars to make their usages simpler. For example:
3+
This project shows how to build an android application with kotlin and some useful libraries. It imports the [Meepo](https://github.com/nekocode/Meepo) library to create activity & broadcast routers. And use kotlin language sugars to make their usages simpler. For example:
44

55
```kotlin
66
// Goto a new activity
@@ -21,14 +21,14 @@ registerLocalReceiver({ _, intent ->
2121
}, "ACTION_XXX", "ACTION_XXX2")
2222
```
2323

24-
It intergates the [Retrofit](https://github.com/square/retrofit) library to help making http requests:
24+
It also imports the [Retrofit](https://github.com/square/retrofit) library to make network requests:
2525

2626
```kotlin
2727
gankIoService().picApi.getMeiziPics(1, 0)
2828
// ...
2929
```
3030

31-
And it splits the backend logic (file and network operations that not relate to ui) into a submodule. And make them easier to test:
31+
And it splits models' definition, file and network operations and other classes unrelated to ui into a submodule. And make them easier to test. Such as:
3232

3333
```kotlin
3434
class GankIoServiceTest {
@@ -46,4 +46,12 @@ class GankIoServiceTest {
4646
}
4747
```
4848

49-
Please reference the code to see more details.
49+
It also use language sugars to make [AutoDispose](https://github.com/uber/AutoDispose)'s usage more convenient:
50+
51+
```kotlin
52+
// ... Rx stream
53+
.autoDispose()
54+
.subscribe()
55+
```
56+
57+
For more details, you can look at the code directly.

0 commit comments

Comments
 (0)