- Linux, Mac OS X, or Windows.
- git (used for source version control).
- An ssh client (used to authenticate with GitHub).
- An IDE such as Android Studio or Visual Studio Code.
- Ensure all the dependencies described in the previous section are installed.
- Fork
https://github.com/vital-edu/touch_bar_flutter_plugin.gitinto your own GitHub account. If you already have a fork, and are now installing a development environment on a new machine, make sure you've updated your fork so that you don't use stale configuration options from long ago. - If you haven't configured your machine with an SSH key that's known to github, then follow GitHub's directions to generate an SSH key.
git clone git@github.com:<your_name_here>/touch_bar_flutter_plugin.gitgit remote add upstream git@github.com:vital-edu/touch_bar_flutter_plugin.git(So that you fetch from the master repository, not your clone, when runninggit fetchet al.)
We use Melos to manage the project and dependencies.
To install Melos, run the following command from your SSH client:
dart pub global activate melosNext, at the root of your locally cloned repository bootstrap the projects dependencies:
melos bootstrapThe bootstrap command locally links all dependencies within the project without having to
provide manual dependency_overrides. This allows all
packages and example to build from the local clone project.
You do not need to run
flutter pub getonce bootstrap has been completed.
If you're using fvm you might need to specify the sdk-path:
melos bs --sdk-path=/Users/user/fvm/default/
We have an example app which aims to showcase the plugin features on MacOS.
To run an example, run the flutter run command from the example directory:
cd example
flutter runUsing Melos (installed in step 3), any changes made to the packages will also be reflected in all other packages that depends on it automatically.
We gladly accept contributions via GitHub pull requests.
To start working on a patch:
git fetch upstreamgit checkout upstream/master -b <name_of_your_branch>- Hack away!
Once you have made your changes, commit and push your code:
git commit -a -m "<your informative commit message>"git push origin <name_of_your_branch>
To send us a pull request:
git pull-request(if you are using Hub) or go tohttps://github.com/vital-edu/touch_bar_flutter_pluginand click the "Compare & pull request" button
Please make sure all your check-ins have detailed commit messages explaining the patch.
When naming the title of your pull request, please follow the Conventional Commits guide. For example, for a fix to the TouchBarPlatformInterface package:
fix(interface): fixed a bug!
Please use one of the scopes below:
- no scope: when the changes are global or related with multiple packages (e.g.:
fix: fixed a bug!) - interface: when the changes are related with the
touch_bar_platform_interfacepackage (e.g.:fix(interface): fixed a bug!) - macos: when the changes are related with the
touch_bar_macospackage (e.g.:fix(macos): fixed a bug!) - touch_bar: when the changes are related with the
touch_barpackage (e.g.:fix(touch_bar): fixed a bug!)
Once you create your PR wait for one the package maintainers to review and merge the pull request.
If you've never submitted code before, you must add your (or your organization's) name and contact info to the AUTHORS file.
If you create a new file, do not forget to add the license header.
We push releases manually.