chore: update readme and pubspec

This commit is contained in:
Mohammad Reza Moradi 2023-12-27 12:17:32 +01:00
parent 150d5dbd76
commit c57c75bc1a
No known key found for this signature in database
GPG Key ID: FE7CA223893CEFA1
2 changed files with 9 additions and 11 deletions

View File

@ -28,17 +28,17 @@ from [matrix-spec](https://github.com/matrix-org/matrix-spec/).
To regenerate the code, follow these steps: To regenerate the code, follow these steps:
1. Clone both repositories next to each other 1. Clone both repositories next to each other
1.1 `git clone git@gitlab.com:famedly/company/frontend/dart_openapi_codegen.git` 1.1 `git clone git@github.com:famedly/dart_openapi_codegen.git`
1.2 `git clone git@gitlab.com:famedly/company/frontend/libraries/matrix_api_lite.git` 1.2 `git clone git@github.com:famedly/dart_matrix_api_lite.git`
2. Execute the script in the dart_openapi_codegen directory: 2. Execute the script in the dart_openapi_codegen directory:
```sh ```sh
cd dart_openapi_codegen cd dart_openapi_codegen
./scripts/matrix.sh ../matrix_api_lite/lib/src/generated ./scripts/matrix.sh ../dart_matrix_api_lite/lib/src/generated
cd .. cd ..
``` ```
3. Run the build_runner in the matrix_api_lite directory: 3. Run the build_runner in the matrix_api_lite directory:
```sh ```sh
cd matrix_api_lite cd dart_matrix_api_lite
dart pub get dart pub get
dart run build_runner build dart run build_runner build
``` ```

View File

@ -2,8 +2,8 @@ name: matrix_api_lite
description: Dead simple data model for the matrix.org client-server API. description: Dead simple data model for the matrix.org client-server API.
version: 1.7.2 version: 1.7.2
homepage: https://famedly.com homepage: https://famedly.com
repository: https://gitlab.com/famedly/company/frontend/libraries/matrix_api_lite/ repository: https://github.com/famedly/dart_matrix_api_lite
issues: https://gitlab.com/famedly/company/frontend/libraries/matrix_api_lite/-/issues issues: https://github.com/famedly/dart_matrix_api_lite/issues
environment: environment:
sdk: ">=2.17.0 <4.0.0" sdk: ">=2.17.0 <4.0.0"
@ -19,8 +19,6 @@ dev_dependencies:
import_sorter: ^4.6.0 import_sorter: ^4.6.0
lints: ^2.0.0 lints: ^2.0.0
test: ^1.14.4 test: ^1.14.4
# dependency_overrides: # uncomment for local development
dependency_overrides: # matrix:
# uncomment for local development # path: "../matrix-dart-sdk"
# matrix:
# path: '../famedlysdk'