Skip to content

Commit beac310

Browse files
committed
Prepare the Dart and Rust 0.4.1 releases
Bump cnativeapi, nativeapi and nativeapi_flutter, and the cnativeapi, nativeapi and nativeapi_gpui crates, to 0.4.1, with each package's dependency on the next one in step. The changelogs cover what core and the bindings gained since 0.4.0: tray icon content views, application-level show and hide, full-screen events, runNativeApp() for plain Dart programs, one logical screen space on Windows, and the hidden-title-bar frame on Windows and shadow gutter on Linux.
1 parent 32d4093 commit beac310

21 files changed

Lines changed: 79 additions & 43 deletions

File tree

‎Cargo.lock‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎bindings/dart/cnativeapi/CHANGELOG.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Unreleased
1+
## 0.4.1
22

33
* Event loop shim for plain Dart programs (`src/event_loop*`, bound in
44
`lib/src/event_loop.dart`): `cnativeapi_run_ui_thread`,

‎bindings/dart/cnativeapi/pubspec.yaml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: cnativeapi
22
description: "Raw Dart FFI bindings to the nativeapi C API. The native library is built from source by a build hook."
3-
version: 0.4.0
3+
version: 0.4.1
44
homepage: https://github.com/libnativeapi/nativeapi
55
repository: https://github.com/libnativeapi/nativeapi/tree/main/bindings/dart/cnativeapi
66
resolution: workspace

‎bindings/dart/nativeapi/CHANGELOG.md‎

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Unreleased
1+
## 0.4.1
22

33
* `TrayIcon.contentView`: any `View` in place of the icon and title, on macOS.
44
The menu bar item is as wide as the view (its `preferredSize`, or what a Row
@@ -37,6 +37,15 @@
3737
and Linux whoever changes the state, on Windows for `Window.isFullScreen`.
3838
* Windows: setting `Window.titleBarStyle` on a full-screen window no longer
3939
puts a title bar on it; leaving full screen shows the title bar asked for.
40+
* Windows: a window with a hidden title bar keeps the system's frame (thin
41+
border, shadow and rounded corners) instead of a classic-theme border on its
42+
sides and bottom. Without a shadow, with a custom shadow or with a shape it
43+
has no frame at all and resizes from every edge and corner, also through a
44+
Flutter view that covers it, without the classic frame flickering in while
45+
resizing. The content stays in place when the frame comes or goes.
46+
* Linux: a hidden title bar's shadow gutter no longer leaves an empty band
47+
around the content, and no longer inflates the window on compositors that
48+
report every window as tiled, such as Hyprland.
4049

4150
## 0.4.0
4251

‎bindings/dart/nativeapi/pubspec.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nativeapi
22
description: "Dart bindings for nativeapi - providing seamless, unified access to native system APIs."
3-
version: 0.4.0
3+
version: 0.4.1
44
homepage: https://github.com/libnativeapi/nativeapi
55
repository: https://github.com/libnativeapi/nativeapi/tree/main/bindings/dart/nativeapi
66
resolution: workspace
@@ -16,7 +16,7 @@ platforms:
1616
windows:
1717

1818
dependencies:
19-
cnativeapi: ^0.4.0
19+
cnativeapi: ^0.4.1
2020
ffi: ">=1.2.1 <3.0.0"
2121

2222
dev_dependencies:

‎bindings/dart/nativeapi_flutter/CHANGELOG.md‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.4.1
2+
3+
* Requires nativeapi 0.4.1.
4+
* `runNativeApp` is not re-exported: it is for plain Dart programs, and a
5+
Flutter app's engine already runs the event loop.
6+
17
## 0.4.0
28

39
* Initial release. It re-exports `package:nativeapi`.

‎bindings/dart/nativeapi_flutter/pubspec.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: nativeapi_flutter
22
description: "Flutter integration for nativeapi: widgets, dart:ui conversions and the multi-window bridge on top of package:nativeapi."
3-
version: 0.4.0
3+
version: 0.4.1
44
homepage: https://github.com/libnativeapi/nativeapi
55
repository: https://github.com/libnativeapi/nativeapi/tree/main/bindings/dart/nativeapi_flutter
66
resolution: workspace
@@ -12,7 +12,7 @@ environment:
1212
dependencies:
1313
flutter:
1414
sdk: flutter
15-
nativeapi: ^0.4.0
15+
nativeapi: ^0.4.1
1616
path: ^1.9.1
1717

1818
dev_dependencies:

‎bindings/rust/CHANGELOG.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
## 0.4.1
2+
3+
* `TrayIcon::set_content_view` and `content_view`: any `View` in place of the
4+
icon and title, on macOS. Recorded only on Windows and Linux.
5+
* `Application::show`, `hide` and `is_visible`: application-level hiding on
6+
macOS, which the Dock understands. They return false on other platforms.
7+
* `WindowEvent::EnteredFullScreen` and `ExitedFullScreen`.
8+
* Row and Column containers size to their content.
9+
* Windows: screen coordinates are one logical space across monitors with
10+
different scale factors; display positions change where monitors have
11+
different factors, and `TrayIcon` bounds and menu positions are logical
12+
instead of physical pixels.
13+
* Windows: quitting destroys the windows before the loop ends; a full-screen
14+
window keeps no title bar when its title bar style is set.
15+
* Windows: a window with a hidden title bar keeps the system's frame instead of
16+
a classic-theme border; without a shadow, with a custom shadow or with a shape
17+
it has no frame at all and resizes from every edge and corner.
18+
* Linux: a hidden title bar's shadow gutter no longer leaves an empty band
19+
around the content or inflates the window on Hyprland.
20+
* macOS: `View::create` no longer crashes.
21+
122
## 0.4.0
223

324
The first release built from the nativeapi repository, where the Rust binding now

‎bindings/rust/cnativeapi/Cargo.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cnativeapi"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
edition = "2021"
55
authors = ["LiJianying <lijy91@foxmail.com>"]
66
description = "Native API C bindings for Rust"

‎bindings/rust/nativeapi/Cargo.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "nativeapi"
3-
version = "0.4.0"
3+
version = "0.4.1"
44
edition = "2021"
55
authors = ["LiJianying <lijy91@foxmail.com>"]
66
description = "Rust bindings for nativeapi - providing seamless, unified access to native system APIs."
@@ -11,5 +11,5 @@ keywords = ["native", "desktop", "window", "tray", "menu"]
1111
categories = ["api-bindings", "gui", "os"]
1212

1313
[dependencies]
14-
cnativeapi = { version = "0.4.0", path = "../cnativeapi" }
14+
cnativeapi = { version = "0.4.1", path = "../cnativeapi" }
1515
thiserror = "2.0"

0 commit comments

Comments
 (0)