From c4d3f5b5248a32cb8cfa4882d8f0eb7df0d63932 Mon Sep 17 00:00:00 2001 From: Sese Schneider Date: Mon, 29 Jan 2024 15:51:26 +0100 Subject: [PATCH 1/2] Chore: Update license, workflow & readme --- .github/workflows/dart.yml | 25 +++++++++++++++++++++++++ LICENSE | 7 +------ README.md | 18 +++++++++--------- 3 files changed, 35 insertions(+), 15 deletions(-) create mode 100644 .github/workflows/dart.yml diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml new file mode 100644 index 0000000..70e107d --- /dev/null +++ b/.github/workflows/dart.yml @@ -0,0 +1,25 @@ +name: Dart + +on: + push: + branches: [ "main", "develop" ] + pull_request: + branches: [ "main", "develop" ] + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + - uses: dart-lang/setup-dart@v1 + + - name: Install dependencies + run: dart 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 From 20a57acfe1f3211b6deb02ce16497266b247dfef Mon Sep 17 00:00:00 2001 From: Sese Schneider Date: Mon, 29 Jan 2024 15:54:03 +0100 Subject: [PATCH 2/2] Use Flutter instead of Dart --- .github/workflows/{dart.yml => flutter.yml} | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) rename .github/workflows/{dart.yml => flutter.yml} (64%) diff --git a/.github/workflows/dart.yml b/.github/workflows/flutter.yml similarity index 64% rename from .github/workflows/dart.yml rename to .github/workflows/flutter.yml index 70e107d..68923a1 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/flutter.yml @@ -1,10 +1,10 @@ -name: Dart +name: Flutter on: push: - branches: [ "main", "develop" ] + branches: ["main", "develop"] pull_request: - branches: [ "main", "develop" ] + branches: ["main", "develop"] workflow_dispatch: jobs: @@ -13,10 +13,12 @@ jobs: steps: - uses: actions/checkout@v3 - - uses: dart-lang/setup-dart@v1 + - uses: subosito/flutter-action@v2 + with: + channel: "stable" - name: Install dependencies - run: dart pub get + run: flutter pub get - name: Verify formatting run: dart format --output=none --set-exit-if-changed .