Release 0.2.0 - #8
Merged
Merged
Conversation
Adds app lifecycle control (launch/stop/listRunning + FlatpakInstance), the FlatpakStopException split from FlatpakNotFoundException, and the build-hook reworks (skip_native_build / clear_ambient_flags user-defines, Ninja detection, no forced clang pin). Purely additive to the public API: 298 insertions and no deletions across lib/ since v0.1.2. Signed-off-by: Joel Winarske <joel.winarske@linux.com>
|
Coverage after merging release/0.2.0 into main will be
Coverage Report for Changed Files
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prepares the 0.2.0 release: version bump and CHANGELOG entry. No code changes — everything being released already landed via #3.
Version
0.1.2→0.2.0. The API diff sincev0.1.2is 298 insertions and zero deletions acrosslib/, so nothing breaks. The minor bump reflects the new public surface rather than any incompatibility.What's in the release
FlatpakClient.launch()returns theFlatpakInstancelibflatpak created, so callers get the instance id and pids without polling;stop()terminates every running instance of an app id;listRunning()lists running sandboxes. Bothstop()andlistRunning()are host-wide, since flatpak instances are not scoped to an installation.stop()uses pidfd where available — pinning the exact process rather than a pid that may have been recycled — and escalates SIGTERM to SIGKILL after a 1.5s grace period. Process identity is verified against/proc/<pid>/statstart time on both the pidfd and fallback paths.FlatpakStopException, split out fromFlatpakNotFoundException. Previously the two were conflated and a running app could be reported as not running.skip_native_builduser-define for build systems that cross-compile the native library out of band (Yocto/meta-flutter),clear_ambient_flagsfor polluted host environments, Ninja detection, and no forced clang pin so the native library matches the target's libflatpak toolchain.Validation
dart pub publish --dry-runclean · 72/72 Dart tests ·dart analyzeclean.