We love pull requests from everyone. By participating in this project, you agree to abide by the thoughtbot code of conduct.
Here's a quick guide:
- Fork the repo.
git clone <fork_url>
cd flutter_image_editor
dart pub global activate melos
- melos bootstrap
Open flutter_image_editor/image_editor/example/android
in Android Studio.
Or open flutter_image_editor_common/example/android
in Android Studio.
Edit image_editor_common/android/**.kotlin
files.
open flutter_image_editor/image_editor/example/ios/Runner.xcworkspace
Then the project will be opened in Xcode.
Edit the Pods/Development Pods/image_editor_common/**.m
files.
open flutter_image_editor/image_editor/example/macos/Runner.xcworkspace
Edit the Pods/Development Pods/image_editor_common/**.m
files.
Open flutter_image_editor/image_editor/example/ohos
in DevEco Studio.
When contributing to this project, please follow the Conventional Commits specification for your commit messages. This helps us automatically generate the CHANGELOG.
Each commit message should be structured as follows:
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
feat
: A new feature (correlates with MINOR version)fix
: A bug fix (correlates with PATCH version)docs
: Documentation only changesstyle
: Changes that do not affect the meaning of the coderefactor
: A code change that neither fixes a bug nor adds a featureperf
: A code change that improves performancetest
: Adding missing tests or correcting existing testschore
: Changes to the build process or auxiliary tools
- Add
!
after the type/scope:feat!: breaking change
- Or add
BREAKING CHANGE:
in the footer
feat(android): add image rotation support
fix(ios): resolve memory leak in image processing
docs: update installation instructions
feat!: change API interface
BREAKING CHANGE: new API is not compatible with previous versions
melos version
The command will generate changelog and bump version.
Next:
git push # to publish code to github
git push --tags # to publish tags to github
# or
git push --follow-tags # the command will push code and tags to github
If the package is the main package, you should create new release on github.
When the tag pushed to github, the action will publish the package to pub.dev.
Use git tag to publish a new version to pub.dev
.
git tag <package name>-v<version>
# Such as:
git tag image_editor-v1.4.0
git push --tags
Or use github release new page to create a new release.
The support package name is define in publish.py
Now they are image_editor
, image_editor_common
, image_editor_platform_interface
and image_editor_ohos
.