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: README.md
+12-4Lines changed: 12 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# README
2
2
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:
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:
25
25
26
26
```kotlin
27
27
gankIoService().picApi.getMeiziPics(1, 0)
28
28
// ...
29
29
```
30
30
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:
32
32
33
33
```kotlin
34
34
classGankIoServiceTest {
@@ -46,4 +46,12 @@ class GankIoServiceTest {
46
46
}
47
47
```
48
48
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