Skip to content

Commit

Permalink
Updated dependencies (#391)
Browse files Browse the repository at this point in the history
* Updated dependencies

* Updated packages
  • Loading branch information
hawkkiller authored Jan 4, 2025
1 parent c25db7e commit f4384e0
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 13 deletions.
2 changes: 1 addition & 1 deletion packages/app_database/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: app_database
description: "A new Flutter package project."
description: "Database for the app"
version: 1.0.0
publish_to: none

Expand Down
13 changes: 7 additions & 6 deletions packages/rest_client/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: rest_client
description: A sample command-line application.
description: Rest client
version: 1.0.0
publish_to: none

Expand All @@ -11,17 +11,18 @@ resolution: workspace

# Add regular dependencies here.
dependencies:
cronet_http: ^1.3.2
cupertino_http: ^2.0.1
flutter:
sdk: flutter
cronet_http: ^1.3.2
cupertino_http: ^2.0.1
http: ^1.2.2
intercepted_client: ^0.0.1
meta: ^1.15.0
path: ^1.9.0
meta: ^1.15.0

dev_dependencies:
mockito: ^5.4.4
build_runner: ^2.4.14
flutter_test:
sdk: flutter
mockito: ^5.4.4
build_runner: ^2.4.14
sizzle_lints: ^2.1.3
11 changes: 5 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ dependencies:
sdk: flutter
flutter_localizations:
sdk: flutter
collection: any
async: any
meta: any
intl: any
collection: ^1.19.0
async: ^2.11.0
meta: ^1.15.0
intl: ^0.19.0

# Stream
stream_transform: ^2.1.0
Expand Down Expand Up @@ -58,16 +58,15 @@ dependencies:
# Utils
path: ^1.9.0
path_provider: ^2.1.5
intercepted_client: ^0.0.1
clock: ^1.1.1
fake_async: ^1.3.1
package_info_plus: ^8.1.0

dev_dependencies:
# Testing
mockito: ^5.4.4
flutter_test:
sdk: flutter
mockito: ^5.4.4

# Lints
sizzle_lints: ^2.1.3
Expand Down
13 changes: 13 additions & 0 deletions scripts/bootstrap.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Get workspace dependencies
flutter pub get

# For each package in packages that has build_runner dependency run build_runner
for dir in packages/*; do
if [ -f "$dir/pubspec.yaml" ]; then
if grep -q build_runner "$dir/pubspec.yaml"; then
pushd $dir
dart run build_runner build --delete-conflicting-outputs
popd
fi
fi
done
11 changes: 11 additions & 0 deletions scripts/clean.bash
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Clean workspace
flutter clean

# Clean packages
for dir in packages/*; do
if [ -f "$dir/pubspec.yaml" ]; then
pushd $dir
flutter clean
popd
fi
done

0 comments on commit f4384e0

Please sign in to comment.