-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: migrate very_good_flutter_plugin
- Loading branch information
Showing
260 changed files
with
8,450 additions
and
2 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
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" | ||
- "any" | ||
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 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 🎉 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
# Very Good Flutter Plugin | ||
|
||
[![Very Good Ventures][logo_white]][very_good_ventures_link] | ||
|
||
Developed with 💙 by [Very Good Ventures][very_good_ventures_link] 🦄 | ||
|
||
[![License: MIT][license_badge]][license_link] | ||
[![Powered by Mason](https://img.shields.io/endpoint?url=https%3A%2F%2Ftinyurl.com%2Fmason-badge)](https://github.com/felangel/mason) | ||
|
||
A Very Good federated Flutter plugin created by Very Good Ventures 🦄. | ||
|
||
## What's Included ✨ | ||
|
||
- ✅ Federated Plugin Architecture | ||
- ✅ Configurable Platforms (Android, iOS, MacOS, Linux, Web, Windows) | ||
- ✅ GitHub Workflow powered by [Very Good Workflows][very_good_workflows_link] | ||
- ✅ Strict lint rules powered by [Very Good Analysis][very_good_analysis_link] | ||
- ✅ Pull Request Template | ||
- ✅ Issue Templates | ||
- ✅ Dependabot Integration | ||
- ✅ 100% Test Coverage | ||
- ✅ Fully Documented Public API | ||
- ✅ MIT License | ||
|
||
## Output 📦 | ||
|
||
``` | ||
├── .github | ||
│ ├── ISSUE_TEMPLATE | ||
│ └── workflows | ||
├── my_plugin | ||
│ ├── example | ||
│ │ ├── android | ||
│ │ ├── integration_test | ||
│ │ ├── ios | ||
│ │ ├── lib | ||
│ │ ├── linux | ||
│ │ ├── macos | ||
│ │ ├── test_driver | ||
│ │ ├── web | ||
│ │ └── windows | ||
│ ├── lib | ||
│ └── test | ||
├── my_plugin_android | ||
│ ├── android | ||
│ ├── lib | ||
│ └── test | ||
├── my_plugin_ios | ||
│ ├── ios | ||
│ ├── lib | ||
│ └── test | ||
├── my_plugin_linux | ||
│ ├── lib | ||
│ ├── linux | ||
│ └── test | ||
├── my_plugin_macos | ||
│ ├── lib | ||
│ ├── macos | ||
│ └── test | ||
├── my_plugin_platform_interface | ||
│ ├── lib | ||
│ └── test | ||
├── my_plugin_web | ||
│ ├── lib | ||
│ └── test | ||
└── my_plugin_windows | ||
├── lib | ||
├── test | ||
└── windows | ||
``` | ||
|
||
[license_badge]: https://img.shields.io/badge/license-MIT-blue.svg | ||
[license_link]: https://opensource.org/licenses/MIT | ||
[logo_white]: https://raw.githubusercontent.com/VGVentures/very_good_brand/main/styles/README/vgv_logo_white.png | ||
[mason_link]: https://github.com/felangel/mason | ||
[very_good_analysis_link]: https://pub.dev/packages/very_good_analysis | ||
[very_good_ventures_link]: https://verygood.ventures | ||
[very_good_workflows_link]: https://github.com/VeryGoodOpenSource/very_good_workflows |
29 changes: 29 additions & 0 deletions
29
...gin/__brick__/{{project_name.snakeCase()}}/.github/ISSUE_TEMPLATE/bug_report.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
--- | ||
name: Bug Report | ||
about: Create a report to help us improve | ||
title: "fix: " | ||
labels: bug | ||
--- | ||
|
||
**Description** | ||
|
||
A clear and concise description of what the bug is. | ||
|
||
**Steps To Reproduce** | ||
|
||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
**Expected Behavior** | ||
|
||
A clear and concise description of what you expected to happen. | ||
|
||
**Screenshots** | ||
|
||
If applicable, add screenshots to help explain your problem. | ||
|
||
**Additional Context** | ||
|
||
Add any other context about the problem here. |
14 changes: 14 additions & 0 deletions
14
...r_plugin/__brick__/{{project_name.snakeCase()}}/.github/ISSUE_TEMPLATE/build.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Build System | ||
about: Changes that affect the build system or external dependencies | ||
title: "build: " | ||
labels: build | ||
--- | ||
|
||
**Description** | ||
|
||
Describe what changes need to be done to the build system and why. | ||
|
||
**Requirements** | ||
|
||
- [ ] The build system is passing |
14 changes: 14 additions & 0 deletions
14
...r_plugin/__brick__/{{project_name.snakeCase()}}/.github/ISSUE_TEMPLATE/chore.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
--- | ||
name: Chore | ||
about: Other changes that don't modify src or test files | ||
title: "chore: " | ||
labels: chore | ||
--- | ||
|
||
**Description** | ||
|
||
Clearly describe what change is needed and why. If this changes code then please use another issue type. | ||
|
||
**Requirements** | ||
|
||
- [ ] No functional changes to the code |
Oops, something went wrong.