Merge branch 'readme-refactor-update' into 'master'
[Readme] update See merge request famedly/famedlysdk!147
This commit is contained in:
commit
cc360f2bc2
16
README.md
16
README.md
|
@ -6,7 +6,7 @@ Matrix SDK for the famedly talk app written in dart.
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
||||||
The API is documented here: [famedly.gitlab.io/famedlysdk](https://famedly.gitlab.io/famedlysdk/)
|
The API is documented here: [famedly.gitlab.io/famedlysdk/famedlysdk/famedlysdk-library.html](https://famedly.gitlab.io/famedlysdk/famedlysdk/famedlysdk-library.html)
|
||||||
|
|
||||||
## How to use this
|
## How to use this
|
||||||
|
|
||||||
|
@ -30,10 +30,10 @@ Client matrix = Client("HappyChat");
|
||||||
```
|
```
|
||||||
|
|
||||||
Take a look here for an example store:
|
Take a look here for an example store:
|
||||||
https://gitlab.com/famedly/famedlysdk/snippets/1904187
|
[https://gitlab.com/ChristianPauly/fluffychat-flutter/snippets](https://gitlab.com/ChristianPauly/fluffychat-flutter/snippets)
|
||||||
|
|
||||||
```dart
|
```dart
|
||||||
Client matrix = Client("HappyChat", store: Store(this));
|
Client matrix = Client("HappyChat");
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Connect to a Matrix Homeserver and listen to the streams:
|
3. Connect to a Matrix Homeserver and listen to the streams:
|
||||||
|
@ -68,13 +68,3 @@ final resp = await matrix.jsonRequest(
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
```
|
```
|
||||||
|
|
||||||
## Development
|
|
||||||
|
|
||||||
### Regenerating JSON Classes
|
|
||||||
|
|
||||||
To regenerate the part files of JSON Classes you need to run this command:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
flutter pub run build_runner build
|
|
||||||
```
|
|
Loading…
Reference in a new issue