Fix test error

pull/1510/head
Ellet 1 year ago
parent 9c648c2cff
commit a7579e8c62
No known key found for this signature in database
GPG Key ID: C488CC70BBCEF0D1
  1. 3
      .gitignore
  2. 3
      CHANGELOG.md
  3. 3
      CONTRIBUTING.md
  4. 2
      README.md
  5. 56
      doc/CONTRIBUTING.md
  6. 2
      flutter_quill_extensions/README.md
  7. 7
      flutter_quill_extensions/pubspec.yaml
  8. 3
      flutter_quill_extensions/pubspec_overrides.yaml.g
  9. 2
      flutter_quill_test/README.md
  10. 10
      flutter_quill_test/pubspec.yaml
  11. 3
      flutter_quill_test/pubspec_overrides.yaml.g
  12. 1
      lib/flutter_quill.dart
  13. 6
      pubspec.yaml
  14. 3
      pubspec_overrides.yaml.g
  15. 0
      scripts/before-push.sh
  16. 20
      scripts/disable_local_dev.sh
  17. 20
      scripts/enable_local_dev.sh

3
.gitignore vendored

@ -75,3 +75,6 @@ example/ios/Podfile.lock
!**/ios/**/default.pbxuser
!**/ios/**/default.perspectivev3
pubspec.lock
# For local development
pubspec_overrides.yaml

@ -1,3 +1,6 @@
## [8.2.6]
- Organize `QuillRawEditor` code
## [8.2.5]
- Add `builder` property in the `QuillEditorConfigurations`

@ -1,3 +0,0 @@
# Contributing
We welcome contributions!

@ -297,7 +297,7 @@ Made with [contrib.rocks](https://contrib.rocks).
We welcome contributions!
Please follow these guidelines when contributing to our project. See [CONTRIBUTING.md](./CONTRIBUTING.md) for more details.
Please follow these guidelines when contributing to our project. See [CONTRIBUTING.md](./doc/CONTRIBUTING.md) for more details.
[Quill]: https://quilljs.com/docs/formats
[Flutter]: https://github.com/flutter/flutter

@ -0,0 +1,56 @@
# Contributing
The contributions are more than welcome! <br>
This project will be better with the open-source community help
There are no guidelines for now.
This page will be updated in the future.
## Steps to contributing
You will need GitHub account as well as git installed and configured with your GitHub account on your machine
1. Fork the repository in GitHub
2. clone the forked repository using `git`
3. Add the `upstream` repository using:
```
git remote add upstream git@github.com:singerdmx/flutter-quill.git
```
4. Open the project with your favorite IDE, we suggest using [IntelliJ IDEA Community Edition](https://www.jetbrains.com/idea/download/)
5. Sync the project with Gradle
6. Create a new git branch and switch to it using:
```
git checkout -b your-branch-name
```
The `your-branch-name` is your choice
7. Make your changes
8. If you are working on changes that depend on different library in the same repo, then in that directory copy `pubspec_overrides.yaml.g` which exists in all the libraries (`flutter_quill_test` and `flutter_quill_extensions` etc..)
to `pubspec_overrides.yaml` which will be ignored by `.gitignore` and it will be used by dart pub to override the libraries
```
cp pubspec_overrides.yaml.g pubspec_overrides.yaml
```
or save some time and the following script:
```
./scripts/enable_local_dev.sh
```
10. Test them in the [example](../example) and add changes in there if necessary
11. Mention the new changes in the [CHANGELOG.md](../CHANGELOG.md) in the next block
12. When you are done to send your pull request, run:
```
git add .
git commit -m "Your commit message"
git push origin your-branch-name
```
this will push the new branch to your forked repository
13. Now you can send your pull request either by following the link that you will get in the command line or open your
forked repository, and you will find an option to send the pull request, you can also
open the [Pull Requests](https://github.com/singerdmx/flutter-quill) tab and send new pull request
1. Please wait for the review, and we might ask you to make more changes, then run:
```
git add .
git commit -m "Your new commit message"
git push origin your-branch-name
```
Thank you for your time and efforts to this open-source community project!!

@ -241,7 +241,7 @@ OnDragDoneCallback get _onDragDone {
We welcome contributions!
Please follow these guidelines when contributing to our project. See [CONTRIBUTING.md](./../CONTRIBUTING.md) for more details.
Please follow these guidelines when contributing to our project. See [CONTRIBUTING.md](./../doc/CONTRIBUTING.md) for more details.
## License

@ -42,13 +42,6 @@ dependencies:
meta: ^1.9.1
cross_file: ^0.3.3+6
# In case you are working on changes for both libraries
# Comment the dependency_overrides section when publishing the package,
# then uncomment it back, this will be automated later
dependency_overrides:
flutter_quill:
path: ../
dev_dependencies:
flutter_test:
sdk: flutter

@ -0,0 +1,3 @@
dependency_overrides:
flutter_quill:
path: ../

@ -38,7 +38,7 @@ await tester.quillEnterText(find.byType(QuillEditor), 'test\n');
We welcome contributions!
Please follow these guidelines when contributing to our project. See [CONTRIBUTING.md](./../CONTRIBUTING.md) for more details.
Please follow these guidelines when contributing to our project. See [CONTRIBUTING.md](./../doc/CONTRIBUTING.md) for more details.
## License

@ -26,20 +26,12 @@ environment:
dependencies:
flutter:
sdk: flutter
flutter_quill: ^8.2.4
flutter_quill: ^8.2.5
flutter_test:
sdk: flutter
dev_dependencies:
flutter_lints: ^3.0.1
# In case you are working on changes for both libraries
# Comment the dependency_overrides section when publishing the package,
# then uncomment it back, this will be automated later
# dependency_overrides:
# flutter_quill:
# path: ../
flutter:
uses-material-design: true

@ -0,0 +1,3 @@
dependency_overrides:
flutter_quill:
path: ../

@ -28,6 +28,7 @@ export 'src/widgets/editor/editor.dart';
export 'src/widgets/embeds.dart';
export 'src/widgets/link.dart' show LinkActionPickerDelegate, LinkMenuAction;
export 'src/widgets/raw_editor/raw_editor.dart';
export 'src/widgets/raw_editor/raw_editor_state.dart';
export 'src/widgets/style_widgets/style_widgets.dart';
export 'src/widgets/toolbar/base_toolbar.dart';
export 'src/widgets/toolbar/toolbar.dart';

@ -1,6 +1,6 @@
name: flutter_quill
description: A rich text editor built for the modern Android, iOS, web and desktop platforms. It is the WYSIWYG editor and a Quill component for Flutter.
version: 8.2.5
version: 8.2.6
homepage: https://1o24bbs.com/c/bulletjournal/108
repository: https://github.com/singerdmx/flutter-quill
@ -51,10 +51,6 @@ dependencies:
flutter_animate: ^4.2.0+1
meta: ^1.9.1
dependency_overrides:
flutter_quill_test:
path: ./flutter_quill_test
dev_dependencies:
flutter_lints: ^3.0.1
flutter_test:

@ -0,0 +1,3 @@
dependency_overrides:
flutter_quill_test:
path: ./flutter_quill_test

@ -0,0 +1,20 @@
#!/bin/bash
echo ""
echo "Disable local development for flutter_quill:"
rm pubspec_overrides.yaml
echo ""
echo "Enable local development for flutter_quill_extensions:"
rm flutter_quill_extensions/pubspec_overrides.yaml
echo ""
echo "Enable local development for flutter_quill_test:"
rm flutter_quill_test/pubspec_overrides.yaml
echo ""
echo "Local development for all libraries has been disabled, please 'flutter pub get' for each one of them"

@ -0,0 +1,20 @@
#!/bin/bash
echo ""
echo "Enable local development for flutter_quill:"
cp pubspec_overrides.yaml.g pubspec_overrides.yaml
echo ""
echo "Enable local development for flutter_quill_extensions:"
cp flutter_quill_extensions/pubspec_overrides.yaml.g flutter_quill_extensions/pubspec_overrides.yaml
echo ""
echo "Enable local development for flutter_quill_test:"
cp flutter_quill_test/pubspec_overrides.yaml.g flutter_quill_test/pubspec_overrides.yaml
echo ""
echo "Local development for all libraries has been enabled, please 'flutter pub get' for each one of them"
Loading…
Cancel
Save