Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create DevTools extension for package:provider #832

Merged
merged 25 commits into from
Sep 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ jobs:
flutter:
runs-on: ubuntu-latest

defaults:
run:
working-directory: packages/provider

strategy:
matrix:
channel:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ macos/
pubspec.lock

# Conventional directory for build outputs
build/
/build/
coverage/

# Directory created by dartdoc
Expand Down
74 changes: 74 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "provider",
"request": "launch",
"type": "dart"
},
{
"name": "provider (profile mode)",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "provider (release mode)",
"request": "launch",
"type": "dart",
"flutterMode": "release"
},
{
"name": "example",
"cwd": "example",
"request": "launch",
"type": "dart"
},
{
"name": "example (profile mode)",
"cwd": "example",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "example (release mode)",
"cwd": "example",
"request": "launch",
"type": "dart",
"flutterMode": "release"
},
{
"name": "provider_devtools_extension",
"cwd": "packages/provider_devtools_extension",
"request": "launch",
"type": "dart"
},
{
"name": "provider_devtools_extension + simulated environment",
"program": "packages/provider_devtools_extension/lib/main.dart",
"request": "launch",
"type": "dart",
"args": [
"--dart-define=use_simulated_environment=true"
],
},
{
"name": "provider_devtools_extension (profile mode)",
"cwd": "packages/provider_devtools_extension",
"request": "launch",
"type": "dart",
"flutterMode": "profile"
},
{
"name": "provider_devtools_extension (release mode)",
"cwd": "packages/provider_devtools_extension",
"request": "launch",
"type": "dart",
"flutterMode": "release"
}
]
}
15 changes: 15 additions & 0 deletions build_devtool.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
pushd packages/provider

rm -rf extension/devtools/build
mkdir extension/devtools/build

popd

pushd packages/provider_devtools_extension

flutter pub get &&
dart run devtools_extensions build_and_copy \
--source=. \
--dest=../provider/extension/devtools

popd
10 changes: 0 additions & 10 deletions example/.metadata

This file was deleted.

1 change: 1 addition & 0 deletions packages/provider/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extension/devtools/build
Loading