diff --git a/.github/workflows/flutter.yml b/.github/workflows/flutter.yml new file mode 100644 index 0000000..68923a1 --- /dev/null +++ b/.github/workflows/flutter.yml @@ -0,0 +1,27 @@ +name: Flutter + +on: + push: + branches: ["main", "develop"] + pull_request: + branches: ["main", "develop"] + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: subosito/flutter-action@v2 + with: + channel: "stable" + + - name: Install dependencies + run: flutter pub get + + - name: Verify formatting + run: dart format --output=none --set-exit-if-changed . + + - name: Analyze project source + run: dart analyze --fatal-infos diff --git a/LICENSE b/LICENSE index 8719e9f..207d710 100644 --- a/LICENSE +++ b/LICENSE @@ -22,9 +22,4 @@ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - - -Parts of this project are using the library http://www.libdivecomputer.org/ -libdivecomputer Copyright (c) 2008 Jef Driesen -The library is licensed under the GNU Lesser General Public License version 2.1. \ No newline at end of file +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. \ No newline at end of file diff --git a/README.md b/README.md index 28ddd26..db05c05 100644 --- a/README.md +++ b/README.md @@ -8,15 +8,7 @@ A Flutter plugin for communication with dive computers using the library [libdiv ## Installation -### Android, Windows, Linux - -The required library is automatically bundled with the plugin. -No further installation steps are required. - -### iOS, MacOS - -The required library needs to be linked with with your Runner. -Please follow the instructions for linking a [compiled (dynamic) library](https://docs.flutter.dev/platform-integration/macos/c-interop#compiled-dynamic-library-macos). +TODO ## Usage @@ -25,7 +17,15 @@ This plugin automatically spawns its own isolate for communication with the dive Please refer to the example app for a minimalistic example usage. +--- + +### Acknowledgements + +Parts of this project are using the library [libdivecomputer](https://www.libdivecomputer.org/). + +> libdivecomputer Copyright (c) 2008 Jef Driesen +The library is licensed under the GNU Lesser General Public License version 2.1. [license]: https://img.shields.io/github/license/DiveNote/dive_computer.svg?style=for-the-badge [release]: https://img.shields.io/pub/v/dive_computer?style=for-the-badge