-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #106 from gbtb16/refactor/all-needed
refactor(all-needed): including basis, directories, pubspecs, examples, github actions, etc
- Loading branch information
Showing
154 changed files
with
725 additions
and
560 deletions.
There are no files selected for viewing
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,31 +1,27 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "pub" | ||
directory: "/kiwi" | ||
- package-ecosystem: "pub.dev" | ||
directory: "/packages/kiwi" | ||
schedule: | ||
interval: "daily" | ||
labels: | ||
- "pub" | ||
- "pub.dev" | ||
- "kiwi" | ||
- "dependencies" | ||
- package-ecosystem: "pub" | ||
directory: "/kiwi_generator" | ||
|
||
- package-ecosystem: "pub.dev" | ||
directory: "/packages/kiwi_generator" | ||
schedule: | ||
interval: "daily" | ||
labels: | ||
- "pub" | ||
- "kiwi_generator" | ||
- "pub.dev" | ||
- "kiwi generator" | ||
- "dependencies" | ||
|
||
- package-ecosystem: "github-actions" | ||
- package-ecosystem: "github actions" | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
labels: | ||
- "github-actions" | ||
- "github actions" | ||
- "dependencies" |
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 |
---|---|---|
|
@@ -2,9 +2,9 @@ name: build_all | |
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
branches: [ 'master', 'stable' ] | ||
pull_request: | ||
branches: [ "master" ] | ||
branches: [ 'master', 'stable' ] | ||
|
||
jobs: | ||
flutter: | ||
|
@@ -17,12 +17,12 @@ jobs: | |
- uses: subosito/[email protected] | ||
with: | ||
channel: ${{ matrix.version }} | ||
- name: Build & format for flutter_example | ||
- name: Build & format for flutter_kiwi example | ||
run: | | ||
cd flutter_example | ||
cd examples/flutter_kiwi | ||
flutter packages get | ||
flutter packages pub run build_runner build --delete-conflicting-outputs | ||
dart format . | ||
dart format --line-length 160 . | ||
- name: Use verify-changed-files to check if any of the above files changed. | ||
uses: tj-actions/verify-changed-files@v17 | ||
- name: Run step only when any of the above files change. | ||
|
@@ -41,16 +41,16 @@ jobs: | |
sdk: ${{ matrix.sdk }} | ||
- name: Build & format for kiwi_generator | ||
run: | | ||
cd kiwi_generator | ||
cd packages/kiwi_generator | ||
dart pub get | ||
dart run build_runner build --delete-conflicting-outputs | ||
dart format . | ||
- name: Build & format for example | ||
dart format --line-length 160 . | ||
- name: Build & format for dart_kiwi example | ||
run: | | ||
cd example | ||
cd examples/dart_kiwi | ||
dart pub get | ||
dart run build_runner build --delete-conflicting-outputs | ||
dart format . | ||
dart format --line-length 160 . | ||
- name: Use verify-changed-files to check if any of the above files changed. | ||
uses: tj-actions/verify-changed-files@v17 | ||
- name: Run step only when any of the above files change. | ||
|
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
10 changes: 5 additions & 5 deletions
10
.github/workflows/example.yml → .github/workflows/dart_kiwi_example.yml
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,22 +1,22 @@ | ||
name: example | ||
name: dart_kiwi_example | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
branches: [ 'master', 'stable' ] | ||
pull_request: | ||
branches: [ "master" ] | ||
branches: [ 'master', 'stable' ] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: example | ||
working-directory: examples/dart_kiwi | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/[email protected] | ||
with: | ||
channel: 'stable' | ||
- run: flutter packages get | ||
- run: flutter analyze | ||
- run: dart format -o none --set-exit-if-changed . | ||
- run: dart format --line-length 160 -o none --set-exit-if-changed . |
10 changes: 5 additions & 5 deletions
10
.github/workflows/flutter_example.yml → .github/workflows/flutter_kiwi_example.yml
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,22 +1,22 @@ | ||
name: flutter_example | ||
name: flutter_kiwi_example | ||
|
||
on: | ||
push: | ||
branches: [ "master" ] | ||
branches: [ 'master', 'stable' ] | ||
pull_request: | ||
branches: [ "master" ] | ||
branches: [ 'master', 'stable' ] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: flutter_example | ||
working-directory: examples/flutter_kiwi | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/[email protected] | ||
with: | ||
channel: 'stable' | ||
- run: flutter packages get | ||
- run: flutter analyze | ||
- run: dart format -o none --set-exit-if-changed . | ||
- run: dart format --line-length 160 -o none --set-exit-if-changed . |
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
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 was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions
6
example/lib/main.dart → examples/dart_kiwi/bin/dart_kiwi.dart
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
File renamed without changes.
8 changes: 4 additions & 4 deletions
8
example/lib/src/models/coffee_maker.dart → ...art_kiwi/lib/src/models/coffee_maker.dart
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
8 changes: 5 additions & 3 deletions
8
example/lib/src/models/electric_heater.dart → ..._kiwi/lib/src/models/electric_heater.dart
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
2 changes: 1 addition & 1 deletion
2
example/lib/src/models/heater.dart → ...ples/dart_kiwi/lib/src/models/heater.dart
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,4 +1,4 @@ | ||
abstract class Heater { | ||
abstract interface class Heater { | ||
void on(); | ||
void off(); | ||
bool get isHot; | ||
|
File renamed without changes.
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,3 @@ | ||
abstract interface class Pump { | ||
void pump(); | ||
} |
6 changes: 3 additions & 3 deletions
6
example/lib/src/models/thermosiphon.dart → ...art_kiwi/lib/src/models/thermosiphon.dart
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
12 changes: 6 additions & 6 deletions
12
...e/lib/src/modules/drip_coffee_module.dart → ...i/lib/src/modules/drip_coffee_module.dart
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
File renamed without changes.
Oops, something went wrong.