diff --git a/packages/app_database/pubspec.yaml b/packages/app_database/pubspec.yaml index 6dfe478..a2cbc4e 100644 --- a/packages/app_database/pubspec.yaml +++ b/packages/app_database/pubspec.yaml @@ -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 diff --git a/packages/rest_client/pubspec.yaml b/packages/rest_client/pubspec.yaml index 7a87267..66e7588 100644 --- a/packages/rest_client/pubspec.yaml +++ b/packages/rest_client/pubspec.yaml @@ -1,5 +1,5 @@ name: rest_client -description: A sample command-line application. +description: Rest client version: 1.0.0 publish_to: none @@ -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 diff --git a/pubspec.yaml b/pubspec.yaml index ba34511..d44bd17 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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 @@ -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 diff --git a/scripts/bootstrap.bash b/scripts/bootstrap.bash new file mode 100644 index 0000000..3243f4c --- /dev/null +++ b/scripts/bootstrap.bash @@ -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 \ No newline at end of file diff --git a/scripts/clean.bash b/scripts/clean.bash new file mode 100644 index 0000000..1c7e3fc --- /dev/null +++ b/scripts/clean.bash @@ -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 \ No newline at end of file