Skip to content

games_services_watchos 0.2.1: upstream's example - #28

Merged
MAUstaoglu merged 1 commit into
mainfrom
examples-games-services
Oct 24, 2026
Merged

MAUstaoglu merged 1 commit into
mainfrom
examples-games-services

Conversation

@MAUstaoglu

Copy link
Copy Markdown
Member

Part of #24.

Example. Our example was a hand-written watch demo with a layout widget test. It is now games_services' own example app, unchanged, ported with flutter-watchos plugin port --include-example. There are no watchOS deviations.

  • The porter copies lib/ only, so the example's assets/logo.png and the assets: entry of its pubspec were copied from games_services 5.3.0 by hand.
  • The example is MIT-licensed upstream code, so example/LICENSE carries that licence. The word allow-list lists its "free of charge" line, as it already does for the MIT licences of audioplayers and geolocator.

Tests. games_services has no integration test. Ours is renamed watchos_games_services_test.dart, so it is not taken for an upstream test. The old demo's layout test goes with the demo.

Verified on the watchOS 27.0 Simulator

  • watchos_games_services_test.dart: 7 pass.
  • The example starts with no exception in its first 15 seconds and no overflow stripe, and the logo asset loads.

Unit tests (55) and flutter analyze lib test are clean. The repo's version, example-constraint, README-snippet, test-name, word and format checks pass. pub publish --dry-run includes the logo, with no other warning.

Version 0.2.1 with a CHANGELOG entry. The README gains an Example section, and the PORTING_REPORT gets its verification rows and an Example section.

The example was a hand-written watch demo with a layout widget test.
AUTHORING.md §3 asks for upstream's own example, unchanged, so it is now
games_services' example app, ported with `flutter-watchos plugin port
--include-example` (#24). The porter copies lib/ only, so the example's
assets/logo.png and the assets entry of its pubspec come from
games_services 5.3.0 by hand.

The example is MIT-licensed upstream code, so example/LICENSE carries that
licence, and the word allow-list lists its "free of charge" line, as it does
for the MIT licences of audioplayers and geolocator.

games_services has no integration test. Ours is renamed
watchos_games_services_test.dart, so it is not taken for an upstream test.
The layout test of the old demo goes with the demo.

On the watchOS 27.0 Simulator the 7 tests pass, and the example starts with
no exception in its first 15 seconds and no overflow.
@MAUstaoglu

Copy link
Copy Markdown
Member Author

Re-checked the example's start the way spec 0006 criterion 8a asks: built with --dart-define=flutter.inspector.structuredErrors=false, so framework errors such as an overflow reach the log, and read both the console and the unified log for the first 15 seconds. The first check lacked that flag. Result on the watchOS 27.0 Simulator: no exception and no overflow, so the claim above holds.

@MAUstaoglu
MAUstaoglu merged commit 0d19226 into main Oct 24, 2026
2 checks passed
@MAUstaoglu
MAUstaoglu deleted the examples-games-services branch October 24, 2026 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant