Skip to content

Commit

Permalink
Merge branch 'main' into alestiago/remove-wear-e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
alestiago authored Feb 23, 2024
2 parents 8e071ab + f6a04d0 commit 33bb184
Show file tree
Hide file tree
Showing 264 changed files with 8,507 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .github/.cspell/dart_dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@
audioplayers # A Flutter plugin to play multiple simultaneously audio files.
cupertino # Flutter module containing iOS-style widgets.
endtemplate # Dart doc macro used to end a reusable piece of documentation.
fluttium # User flow testing tool for Flutter.
LTWH # From Flutter, abbreviation left, top, width and height.
macos # MacOs, apple's operating system for Mac.
mockingjay # A Flutter package for mocking navigation.
mocktail # A Dart mock package.
pubspec # File name where all the package metadata goes in.
tracefile # File that records the steps of map execution.
unawaited # A Dart function to explicitly ignore a future.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Every request must be reviewed and accepted by:

* @VeryGoodOpenSource/codeowners
* @VeryGoodOpenSource/codeowners
4 changes: 4 additions & 0 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@ updates:
directory: "/very_good_wear_app/hooks"
schedule:
interval: "daily"
- package-ecosystem: "pub"
directory: "/very_good_flutter_plugin/hooks"
schedule:
interval: "daily"
26 changes: 19 additions & 7 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,39 @@
- name: very_good_core
- name: "product: very_good_core"
color: "31E6FF"
description: Changes that affect the Very Good Core template.
aliases: [very_good_core]

- name: very_good_dart_cli
- name: "product: very_good_dart_cli"
color: "03505A"
description: Changes that affect the Very Good Dart CLI template.
aliases: [very_good_dart_cli]

- name: very_good_dart_package
- name: "product: very_good_dart_package"
color: "008799"
description: Changes that affect the Very Good Dart Package template.
aliases: [very_good_dart_package]

- name: very_good_docs_site
- name: "product: very_good_docs_site"
color: "004699"
description: Changes that affect the Very Good Docs Site template.
aliases: [very_good_docs_site]

- name: very_good_flame_game
- name: "product: very_good_flame_game"
color: "990900"
description: Changes that affect the Very Good Flame Game template.
aliases: [very_good_flame_game]

- name: very_good_flutter_package
- name: "product: very_good_flutter_package"
color: "00C9C9"
description: Changes that affect the Very Good Flutter Package template.
aliases: [very_good_flutter_package]

- name: very_good_wear_app
- name: "product: very_good_flutter_plugin"
color: "553DEC"
description: Changes that affect the Very Good Flutter Plugin template.
aliases: [very_good_flutter_plugin]

- name: "product: very_good_wear_app"
color: "1B03AD"
description: Changes that affect the Very Good Wear App template.
aliases: [very_good_wear_app]
24 changes: 24 additions & 0 deletions .github/workflows/sync_labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: ♻️ Sync Labels

on:
push:
paths:
- .github/labels.yml
branches:
- main
workflow_dispatch:

jobs:
labels:
name: ♻️ Sync labels
runs-on: ubuntu-20.04
steps:
- name: ⤵️ Check out code from GitHub
uses: actions/checkout@v4

- name: 🚀 Run Label Sync
uses: srealmoreno/label-sync-action@v1
with:
config-file: |
.github/labels.yml
https://raw.githubusercontent.com/VeryGoodOpenSource/.github/main/.github/labels.yml
88 changes: 88 additions & 0 deletions .github/workflows/very_good_flutter_plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: very_good_flutter_plugin

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

on:
push:
paths:
- .github/workflows/very_good_flutter_plugin.yaml
- "very_good_flutter_plugin/**"
branches:
- main
pull_request:
paths:
- .github/workflows/very_good_flutter_plugin.yaml
- "very_good_flutter_plugin/**"
branches:
- main

jobs:
brick:
runs-on: ubuntu-latest

strategy:
matrix:
flutter-version:
# The version of Flutter to use should use the minimum Dart SDK version supported by the package,
# refer to https://docs.flutter.dev/development/tools/sdk/releases.
- "3.13.0"
- "3.x"
platform:
- android
- ios
- linux
- macos
- web
- windows

steps:
- name: 📚 Git Checkout
uses: actions/checkout@v4

- name: 🐦 Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: ${{ matrix.flutter-version }}

- name: 🧱 Mason Make
run: |
dart pub global activate mason_cli
dart pub global activate very_good_cli
rm -rf mason.yaml
mason init
mason add very_good_flutter_plugin --path very_good_flutter_plugin
mason get
mason make very_good_flutter_plugin -c very_good_flutter_plugin/config.json -o output --on-conflict overwrite --platforms ${{ matrix.platform }}
- name: 📦 Install Dependencies
run: very_good packages get --recursive output

- name: ✨ Check Formatting
if: false
run: dart format --set-exit-if-changed output

- name: 🕵️ Analyze
if: false
run: dart analyze --fatal-infos --fatal-warnings output

- name: 🧪 Run Tests
run: |
cd output
very_good test -j 4 --recursive --optimization --coverage --test-randomize-ordering-seed random
- name: 📑 Combine Code Coverage
run: |
sudo apt-get -y install lcov
very_good packages get --recursive very_good_flutter_plugin/tool/merge_coverage
cd output
dart run ../very_good_flutter_plugin/tool/merge_coverage/merge_coverage.dart
- name: 📊 Check Code Coverage
uses: VeryGoodOpenSource/very_good_coverage@v2
with:
path: output/coverage/lcov.info
# TODO(alestiago): Remove once the following is solved:
# https://github.com/VeryGoodOpenSource/very_good_flutter_plugin/issues/158
min_coverage: 86
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Collection of open-source templates created and maintained by the [Very Good Ven
| [very_good_docs_site][very_good_docs_site_code_link] | A Very Good documentation site. | [Documentation][very_good_docs_site_docs_link] | [![build][very_good_docs_site_workflow_badge]][very_good_docs_site_workflow_link] |
| [very_good_flame_game][very_good_flame_game_code_link] | A Very Good Flame game. | [Documentation][very_good_flame_game_docs_link] | [![build][very_good_flame_game_workflow_badge]][very_good_flame_game_workflow_link] |
| [very_good_flutter_package][very_good_flutter_package_code_link] | A Very Good Flutter package. | [Documentation][very_good_flutter_package_docs_link] | [![build][very_good_flutter_package_workflow_badge]][very_good_flutter_package_workflow_link] |
| [very_good_flutter_plugin][very_good_flutter_plugin_code_link] | A Very Good Flutter plugin. | [Documentation][very_good_flutter_plugin_docs_link] | [![build][very_good_flutter_package_workflow_badge]][very_good_flutter_plugin_workflow_link] |
| [very_good_wear_app][very_good_wear_app_code_link] | A Very Good WearOS Flutter app. | [Documentation][very_good_wear_app_docs_link] | [![build][very_good_wear_app_workflow_badge]][very_good_wear_app_workflow_link] |

<!-- Very Good Ventures -->
Expand Down Expand Up @@ -74,6 +75,13 @@ Collection of open-source templates created and maintained by the [Very Good Ven
[very_good_flutter_package_code_link]: https://github.com/VeryGoodOpenSource/very_good_templates/tree/main/very_good_flutter_package
[very_good_flutter_package_docs_link]: https://cli.vgv.dev/docs/templates/flutter_pkg

<!-- Very Good Flutter Plugin -->

[very_good_flutter_plugin_workflow_badge]: https://github.com/VeryGoodOpenSource/very_good_templates/actions/workflows/very_good_flutter_plugin.yaml/badge.svg?branch=main
[very_good_flutter_plugin_workflow_link]: https://github.com/VeryGoodOpenSource/very_good_templates/actions/workflows/very_good_flutter_plugin.yaml?query=branch%3Amain
[very_good_flutter_plugin_code_link]: https://github.com/VeryGoodOpenSource/very_good_templates/tree/main/very_good_flutter_plugin
[very_good_flutter_plugin_docs_link]: https://cli.vgv.dev/docs/templates/federated_plugin

<!-- Very Good Wear App -->

[very_good_wear_app_workflow_badge]: https://github.com/VeryGoodOpenSource/very_good_templates/actions/workflows/very_good_wear_app.yaml/badge.svg?branch=main
Expand Down
4 changes: 3 additions & 1 deletion mason.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,6 @@ bricks:
very_good_docs_site:
path: very_good_docs_site
very_good_flame_game:
path: very_good_flame_game
path: very_good_flame_game
very_good_flutter_plugin:
path: very_good_flutter_plugin
55 changes: 55 additions & 0 deletions very_good_flutter_plugin/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
.atom/
.idea/
.vscode/

.packages
.pub/
.dart_tool/
pubspec.lock
flutter_export_environment.sh
coverage/

Podfile.lock
Pods/
.symlinks/
**/Flutter/App.framework/
**/Flutter/ephemeral/
**/Flutter/Flutter.podspec
**/Flutter/Flutter.framework/
**/Flutter/Generated.xcconfig
**/Flutter/flutter_assets/

ServiceDefinitions.json
xcuserdata/
**/DerivedData/

local.properties
keystore.properties
.gradle/
gradlew
gradlew.bat
gradle-wrapper.jar
.flutter-plugins-dependencies
*.iml

generated_plugin_registrant.cc
generated_plugin_registrant.h
generated_plugin_registrant.dart
GeneratedPluginRegistrant.java
GeneratedPluginRegistrant.h
GeneratedPluginRegistrant.m
GeneratedPluginRegistrant.swift
build/
.flutter-plugins

.project
.classpath
.settings

# Files and directories created by mason
.mason/
mason-lock.json
output/

# Files and directories created by MacOS
.DS_Store
72 changes: 72 additions & 0 deletions very_good_flutter_plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# 0.6.0

- fix: flaky integrated tests
- feat: upgrade to `very_good_analysis ^5.1.0`
- feat: add fluttium test workflow
- docs: add docs for integration tests

# 0.5.0

- feat!: bump min Dart SDK to 3.0.0

# 0.4.0

- feat!: bump min Dart SDK to 2.19.0

# 0.3.3

- chore: fix generator run
- fix: updated regex matching
- chore: support dart sdk 2.18.0

# 0.3.2

- feat: update workflows, dependabot generation, add spellcheck
- fix: integration tests
- feat: use swift in iOS plugin

# 0.3.1

- feat: upgrade to `very_good_analysis 4.0.0`

# 0.3.0

- feat: upgrade to flutter 3.7.1

# 0.2.1

- fix: windows path resolution
- feat: add ci concurrency group to workflow

# 0.2.0

- **BREAKING** feat: add `publishable` flag (defaults to `false`)

# 0.1.2

- docs: remove copyright header and license from generated code

# 0.1.1

- feat: upgrade to Flutter 3.3.2
- feat: upgrade to very_good_analysis 3.1.0

# 0.1.0+1

- docs: minor README updates
- add dependabot integration
- fix broken link to very_good_analysis

# 0.1.0

- feat: upgrade to Flutter 3.3.1
- feat: upgrade to very_good_analysis 3.0.2
- fix: dependabot integration

# 0.0.1+1

- chore: remove duplicate images from README

# 0.0.1

- feat: initial release 🎉
21 changes: 21 additions & 0 deletions very_good_flutter_plugin/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Very Good Ventures

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading

0 comments on commit 33bb184

Please sign in to comment.