Skip to content

Commit

Permalink
Flatten repository out of monorepo structure (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
fujidaiti authored Aug 24, 2024
1 parent bdc82df commit 14e3987
Show file tree
Hide file tree
Showing 209 changed files with 426 additions and 1,364 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/code_check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,29 +30,21 @@ jobs:
needs: changes
if: ${{ needs.changes.outputs.dart-files == 'true' }}
runs-on: ubuntu-latest
strategy:
matrix:
target: [package, cookbook]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Flutter
uses: ./.github/actions/setup_flutter
with:
target: ${{ matrix.target }}

- name: Format
run: dart format . -o none --set-exit-if-changed
working-directory: ${{ matrix.target }}

- name: Analyze
run: dart analyze
working-directory: ${{ matrix.target }}

- name: Disallowed patterns check
run: bash ${{ env.PATTERN_CHECKER }} "*.dart" "--" "debugPrint"
working-directory: ${{ matrix.target }}

# Unit testing
testing:
Expand All @@ -69,12 +61,9 @@ jobs:

- name: Setup Flutter
uses: ./.github/actions/setup_flutter
with:
target: package

- name: Run unit tests
run: flutter test --file-reporter="json:${{ env.FLUTTER_TEST_REPORT }}"
working-directory: package

- name: Write test report
uses: dorny/test-reporter@v1
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/dry_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ jobs:

- name: Setup Flutter
uses: ./.github/actions/setup_flutter
with:
target: package

- name: Install pana
run: dart pub global activate pana

- name: Run pana
id: analysis
run: |
pana --json package 2>&1 | grep -v '^{"logName"' > pana-report.json
pana --json . 2>&1 | grep -v '^{"logName"' > pana-report.json
JSON_OUTPUT=$(cat pana-report.json | jq -c .)
echo "::set-output name=json_output::$JSON_OUTPUT"
Expand All @@ -37,4 +35,3 @@ jobs:
supported-platforms: ios, android

- run: flutter pub publish --dry-run
working-directory: package
3 changes: 0 additions & 3 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ jobs:

- name: Setup Flutter
uses: ./.github/actions/setup_flutter
with:
target: package

- name: Setup OIDC token
uses: dart-lang/setup-dart@v1

- name: Publish to pub.dev
run: flutter pub publish --force
working-directory: package
13 changes: 12 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,16 @@
.history
.svn/
migrate_working_dir/
pubspec.lock

# IntelliJ related
*.iml
*.ipr
*.iws
.idea/

# Flutter/Dart/Pub related
/pubspec.lock
**/doc/api/
.dart_tool/
.packages
build/
42 changes: 21 additions & 21 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,147 +9,147 @@
"request": "launch",
"type": "dart",
"program": "lib/showcase/ai_playlist_generator.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Airbnb Mobile App",
"request": "launch",
"type": "dart",
"program": "lib/showcase/airbnb_mobile_app.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Todo List",
"request": "launch",
"type": "dart",
"program": "lib/showcase/todo_list/main.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Safari",
"request": "launch",
"type": "dart",
"program": "lib/showcase/safari/main.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Scrollable Sheet",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/scrollable_sheet.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Draggable Sheet",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/draggable_sheet.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "iOS-Style Modal Navigation Sheet (with go_router)",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/ios_style_declarative_modal_navigation_sheet.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Declarative Navigation Sheet",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/declarative_navigation_sheet.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Imperative Navigation Sheet",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/imperative_navigation_sheet.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Sheet Physics",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/sheet_physics.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Sheet Content Scaffold",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/sheet_content_scaffold.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Bottom Bar Visibility",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/bottom_bar_visibility.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Sheet Controller",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/sheet_controller.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Sheet Draggable",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/sheet_draggable.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Declarative Modal Sheet",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/declarative_modal_sheet.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Imperative Modal Sheet",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/imperative_modal_sheet.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Cupertino Modal Sheet",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/cupertino_modal_sheet.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Extent Driven Animation",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/extent_driven_animation.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Keyboard Dismiss Behavior",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/keyboard_dismiss_behavior.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "Navigation Sheet and Keyboard",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/navigation_sheet_and_keyboard.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
{
"name": "ScrollableSheet and PageView",
"request": "launch",
"type": "dart",
"program": "lib/tutorial/scrollable_pageview_sheet.dart",
"cwd": "./cookbook"
"cwd": "./example"
},
]
}
File renamed without changes.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 Daichi Fujita
Copyright (c) 2024 Daichi Fujita

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
47 changes: 0 additions & 47 deletions Makefile.toml

This file was deleted.

1 change: 0 additions & 1 deletion README.md

This file was deleted.

Loading

0 comments on commit 14e3987

Please sign in to comment.