Skip to content

Commit

Permalink
Create DevTools extension for package:provider (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
kenzieschmoll authored Sep 24, 2023
1 parent 50e0158 commit a689f40
Show file tree
Hide file tree
Showing 83 changed files with 7,192 additions and 63 deletions.
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

0 comments on commit a689f40

Please sign in to comment.