Skip to content
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 5 additions & 3 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: ["main"]

env:
FLUTTER_VERSION: "3.47.5"
FLUTTER_VERSION: "3.50.0"

jobs:
# Test only packages changed since the base (plus their dependents). Shared
Expand All @@ -24,6 +24,7 @@ jobs:
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- run: dart pub global activate melos 8.8.0
- run: flutter pub get --enforce-lockfile
- id: select
env:
Expand All @@ -34,7 +35,7 @@ jobs:
packages=$(dart pub workspace list --json | jq -c --arg root "$PWD" \
'[.packages[].path | if . == $root then "." else ltrimstr($root + "/") end]')
else
packages=$(dart run melos list --diff="$BASE" --include-dependents --parsable --relative | jq -Rsc 'split("\n") | map(select(. != ""))')
packages=$(melos list --diff="$BASE" --include-dependents --parsable --relative | jq -Rsc 'split("\n") | map(select(. != ""))')
fi
echo "packages=$packages" >> "$GITHUB_OUTPUT"
echo "Testing: $packages"
Expand All @@ -47,6 +48,7 @@ jobs:
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
cache: true
- run: dart pub global activate melos 8.8.0
- uses: actions/setup-python@v7
with:
python-version: "3.x"
Expand All @@ -55,7 +57,7 @@ jobs:
- name: Verify coverage gate behavior
run: python3 -m unittest discover -s tools/tests
- name: Check formatting and analyze workspace
run: dart run melos run lint
run: melos run lint

# One job per selected package; packages are independent, so they run in parallel.
test:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/nonstop-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v7
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.47.5'
flutter-version: '3.50.0'
cache: true
- run: flutter pub get --enforce-lockfile
- run: dart analyze --fatal-infos lib test tool
Expand All @@ -36,7 +36,8 @@ jobs:
- uses: actions/checkout@v7
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.47.5'
flutter-version: '3.50.0'
cache: true
- run: dart pub global activate melos 8.8.0
- run: flutter pub get --enforce-lockfile
- run: dart run tool/verify_template.dart ${{ matrix.profile }}
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,12 @@ jobs:
- name: Authenticate to pub.dev with OIDC
uses: dart-lang/setup-dart@v1
with:
sdk: '3.13.4'
sdk: '3.14.0'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.47.5'
flutter-version: '3.50.0'
cache: true
- run: dart pub global activate melos 8.8.0
- name: Resolve workspace tools
run: flutter pub get --enforce-lockfile
- name: Validate and publish tagged package
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,13 @@ jobs:
node-version: '22'
- uses: subosito/flutter-action@v2
with:
flutter-version: '3.47.5'
flutter-version: '3.50.0'
cache: true
- run: dart pub global activate melos 8.8.0
- name: Install release tools
run: |
flutter pub get --enforce-lockfile
dart run melos --version
melos --version
- name: Configure release author
run: |
git config user.name 'github-actions[bot]'
Expand Down
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ each PR focused, include a reproducible example when relevant, and follow our
Install Flutter and Node 22+ (for release tooling), then from the repository root:

```sh
dart pub global activate melos
flutter pub get --enforce-lockfile
dart run melos --version
dart run melos bootstrap --scope=PACKAGE_NAME --include-dependencies
melos --version
melos bootstrap --scope=PACKAGE_NAME --include-dependencies
```

Replace `PACKAGE_NAME` with the package you are changing. All CI and release
workflows use Flutter 3.47.5 and the pinned Melos 8.8.0 workspace dependency.
workflows use Flutter 3.50.0 and the pinned Melos 8.8.0 workspace dependency. Melos must be activated globally (`dart pub global activate melos`); the global launcher defers to the workspace-pinned version, since `dart run melos` no longer works on Dart 3.14.

Run `dart analyze --fatal-infos` inside the affected package. Use `flutter test`
for Flutter packages, or `dart test` for Dart-only packages. Format changed Dart
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ optional-module configurations.

## Development and tests

Use Flutter 3.47.5 and run `flutter pub get --enforce-lockfile` from the repository root. Melos configuration is in `pubspec.yaml`.
Use Flutter 3.50.0 and run `flutter pub get --enforce-lockfile` from the repository root. Melos configuration is in `pubspec.yaml`.

Run `python3 tools/coverage.py` (or `dart run melos run test`) to test every workspace package and require 100% executable Dart line coverage. See [testing and dependency maintenance](docs/testing.md) for focused runs, generated-template validation, and coverage scope.
Run `python3 tools/coverage.py` (or `melos run test`) to test every workspace package and require 100% executable Dart line coverage. See [testing and dependency maintenance](docs/testing.md) for focused runs, generated-template validation, and coverage scope.

## 🔗 Connect with NonStop

Expand Down
12 changes: 7 additions & 5 deletions docs/RELEASING.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ To generate the current inventory locally:

```sh
flutter pub get --enforce-lockfile
dart run melos --version
melos --version
node tools/release/release.mjs auth
```

Expand Down Expand Up @@ -146,13 +146,15 @@ commits since the last package tags may be included in this first release.
Confirm its generated version commit, package tag runs, and pub.dev versions.
The version commit itself is excluded from recursive preparation.

Release checks use Flutter **3.47.5** and the pinned **Melos 8.8.0** dependency
from the current Dart workspace. All release commands use `dart run melos`;
global Melos activation is not required.
Release checks use Flutter **3.50.0** and the pinned **Melos 8.8.0** dependency
from the current Dart workspace. Release commands call `melos` directly, so
activate it once with `dart pub global activate melos 8.8.0`; the global
launcher defers to the workspace-pinned version. (`dart run melos` fails on
Dart 3.14.)

## CLI usage

Run from a checkout with Node 22+, Flutter 3.47.5 and resolved workspace dependencies:
Run from a checkout with Node 22+, Flutter 3.50.0 and resolved workspace dependencies:

```sh
node tools/release/release.mjs --help
Expand Down
2 changes: 1 addition & 1 deletion docs/coverage-report.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Dart/Flutter dependencies, generated-template dependencies, Node development too

```sh
flutter pub get --enforce-lockfile
dart run melos run lint
melos run lint
python3 -m unittest discover -s tools/tests
python3 tools/coverage.py
python3 plugins/contact_permission/native_tests/run.py
Expand Down
6 changes: 3 additions & 3 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

The [verified coverage report](coverage-report.md) records the package totals, generated-template builds, native coverage, and dependency compatibility limits.

Use Flutter 3.47.5 (Dart 3.13.4), Python 3.10 or newer, and Node.js 24 or newer. The repository uses a native Dart pub workspace and Melos 8; configuration lives in the root `pubspec.yaml`.
Use Flutter 3.50.0, Python 3.10 or newer, and Node.js 24 or newer. The repository uses a native Dart pub workspace and Melos 8; configuration lives in the root `pubspec.yaml`.

```sh
flutter pub get --enforce-lockfile
dart run melos run lint
melos run lint
python3 -m unittest discover -s tools/tests
python3 tools/coverage.py
# Equivalent full coverage command:
dart run melos run test
melos run test
```

The coverage command discovers workspace packages rather than selecting only folders that already have tests. It includes libraries, executable entrypoints, example applications, Mason hook packages, README synchronization, repository version/bundle tools, and the generated-template verification script. Every package must have real unit or widget tests and a nonempty report. The gate requires every executable Dart line to be hit; it compares integer counts rather than a rounded percentage. Compile-time constants and export-only libraries do not contain executable lines.
Expand Down
2 changes: 1 addition & 1 deletion packages/connectivity_wrapper/example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:connectivity_wrapper/connectivity_wrapper.dart';
import 'package:connectivity_wrapper_example/screens/menu_screen.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

void main() => runApp(const MyApp());

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:connectivity_wrapper/connectivity_wrapper.dart';
import 'package:connectivity_wrapper_example/utils/strings.dart';
import 'package:connectivity_wrapper_example/utils/ui_helper.dart' as ui_helper;
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

class CustomOfflineWidgetScreen extends StatelessWidget {
const CustomOfflineWidgetScreen({super.key});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import 'package:connectivity_wrapper/connectivity_wrapper.dart';
import 'package:connectivity_wrapper_example/screens/scaffold_example_screen.dart';
import 'package:connectivity_wrapper_example/utils/strings.dart';
import 'package:connectivity_wrapper_example/utils/utils.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

import 'custom_offline_widget_screen.dart';
import 'network_aware_widget_screen.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:connectivity_wrapper/connectivity_wrapper.dart';
import 'package:connectivity_wrapper_example/utils/strings.dart';
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:cupertino_ui/cupertino_ui.dart';
import 'package:material_ui/material_ui.dart';

class NetworkAwareWidgetScreen extends StatelessWidget {
const NetworkAwareWidgetScreen({super.key});
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:connectivity_wrapper/connectivity_wrapper.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

import '../utils/strings.dart';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

class Spacer extends StatelessWidget {
final double? size;
Expand Down
2 changes: 1 addition & 1 deletion packages/connectivity_wrapper/example/lib/utils/utils.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

class AppRoutes {
static void push(BuildContext context, Widget page) {
Expand Down
2 changes: 2 additions & 0 deletions packages/connectivity_wrapper/example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ environment:
sdk: '>=3.6.0 <4.0.0'

dependencies:
cupertino_ui: ^1.1.6
material_ui: ^1.11.0
flutter:
sdk: flutter
cupertino_icons: ^1.0.2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import 'package:connectivity_wrapper_example/screens/scaffold_example_screen.dar
import 'package:connectivity_wrapper_example/utils/strings.dart';
import 'package:connectivity_wrapper_example/utils/ui_helper.dart' as ui;
import 'package:connectivity_wrapper_example/utils/utils.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:material_ui/material_ui.dart';

void main() {
var connected = true;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:async';

import 'package:connectivity_wrapper/connectivity_wrapper.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

/// [ConnectivityProvider] event ChangeNotifier class for ConnectivityStatus
/// which extends [ChangeNotifier].
Expand Down
2 changes: 1 addition & 1 deletion packages/connectivity_wrapper/lib/src/utils/constants.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:connectivity_wrapper/src/widgets/connectivity_screen_wrapper.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

/// More info on why default port is 53
/// here:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:connectivity_wrapper/connectivity_wrapper.dart';
import 'package:connectivity_wrapper/src/providers/connectivity_provider.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:provider/provider.dart';

///[ConnectivityAppWrapper] is a StatelessWidget.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:connectivity_wrapper/connectivity_wrapper.dart';
import 'package:connectivity_wrapper/src/utils/constants.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:provider/provider.dart';

/// [PositionOnScreen] is an enum that represents the position of the offline
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:connectivity_wrapper/connectivity_wrapper.dart';
import 'package:connectivity_wrapper/src/utils/constants.dart';
import 'package:connectivity_wrapper/src/widgets/empty_container.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';
import 'package:provider/provider.dart';

/// [ConnectivityWidgetWrapper] is a StatelessWidget that wraps a widget and
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

/// [EmptyContainer] is a StatelessWidget that returns a SizedBox.shrink().
///
Expand Down
3 changes: 2 additions & 1 deletion packages/connectivity_wrapper/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ screenshots:

environment:
sdk: '>=3.6.0 <4.0.0'
flutter: ">=1.17.0"
flutter: ">=3.47.0"

dependencies:
material_ui: ^1.11.0
flutter:
sdk: flutter
provider: ^6.1.2
Expand Down
2 changes: 1 addition & 1 deletion packages/connectivity_wrapper/test/constants_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:connectivity_wrapper/connectivity_wrapper.dart';
import 'package:connectivity_wrapper/src/utils/constants.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:material_ui/material_ui.dart';

void main() {
group('Constants', () {
Expand Down
2 changes: 1 addition & 1 deletion packages/connectivity_wrapper/test/widgets_test.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'package:connectivity_wrapper/connectivity_wrapper.dart';
import 'package:connectivity_wrapper/src/widgets/empty_container.dart';
import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:material_ui/material_ui.dart';
import 'package:provider/provider.dart';

Widget _withStatus(ConnectivityStatus status, Widget child) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dzod/dzod.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

import '../../widgets/result_display.dart';
import '../../widgets/schema_display.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dzod/dzod.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

import '../../widgets/result_display.dart';
import '../../widgets/schema_display.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dzod/dzod.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

import '../../widgets/result_display.dart';
import '../../widgets/schema_display.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import 'dart:convert';

import 'package:dzod/dzod.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

import '../../widgets/result_display.dart';
import '../../widgets/schema_display.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dzod/dzod.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

import '../../widgets/result_display.dart';
import '../../widgets/schema_display.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dzod/dzod.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

import '../../widgets/result_display.dart';
import '../../widgets/schema_display.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dzod/dzod.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

import '../../widgets/result_display.dart';
import '../../widgets/schema_display.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'package:dzod/dzod.dart';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:material_ui/material_ui.dart';

import '../../widgets/result_display.dart';
import '../../widgets/schema_display.dart';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import 'package:dzod/dzod.dart';
import 'package:flutter/material.dart';
import 'package:material_ui/material_ui.dart';

import '../../widgets/result_display.dart';
import '../../widgets/schema_display.dart';
Expand Down
Loading
Loading