Skip to content

Commit 8464f99

Browse files
committed
Prepare the Dart and Rust 0.4.0 releases
Dart: 0.3.1 was never published and the breaking changes since 0.3.0 would reach tray_manager through its ^0.3.0 constraint, so the next version is 0.4.0; fold the 0.3.1 changelog entries into it. Fix nativeapi's README symlinks, which pointed past bindings/dart, and give cnativeapi's build hook dependencies version constraints. Rust: bump the crates to 0.4.0, in step with the Dart packages; add readme, keywords and categories, drop the placeholder main.rs from nativeapi and start a CHANGELOG.
1 parent ddb466a commit 8464f99

24 files changed

Lines changed: 92 additions & 70 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 & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Unreleased
1+
## 0.4.0
22

33
* `native_view_backend_t` and `native_view_is_backend_supported`,
44
`native_view_set_default_backend`, `native_view_get_default_backend`,
@@ -22,8 +22,6 @@
2222
* The WinUI 3 backend on Windows (`NATIVEAPI_ENABLE_WINUI3`) is not built by
2323
the hook; the Win32 implementations are used.
2424

25-
## 0.3.1
26-
2725
* `native_window_set_content_under_title_bar`,
2826
`native_window_is_content_under_title_bar` and
2927
`native_window_is_content_under_title_bar_supported` are new, and

‎bindings/dart/cnativeapi/pubspec.yaml‎

Lines changed: 5 additions & 5 deletions
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.3.1
3+
version: 0.4.0
44
homepage: https://github.com/libnativeapi/nativeapi
55
repository: https://github.com/libnativeapi/nativeapi/tree/main/bindings/dart/cnativeapi
66
resolution: workspace
@@ -16,11 +16,11 @@ platforms:
1616
windows:
1717

1818
dependencies:
19-
code_assets: any
19+
code_assets: ^2.1.0
2020
ffi: ">=1.2.1 <3.0.0"
21-
hooks: any
22-
logging: any
23-
native_toolchain_c: any
21+
hooks: ^2.2.0
22+
logging: ^1.3.0
23+
native_toolchain_c: ^0.19.5
2424

2525
dev_dependencies:
2626
ffigen: any

‎bindings/dart/nativeapi/CHANGELOG.md‎

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Unreleased
1+
## 0.4.0
22

33
* `ViewBackend` and `View.isBackendSupported`, `View.setDefaultBackend`,
44
`View.getDefaultBackend` and `View.backend`: on Windows builds with the WinUI 3
@@ -34,17 +34,14 @@
3434
whether or not the wrapper that added it is collected.
3535
* `ShortcutOptions.callback` is installed by `registerWithOptions` and
3636
`Shortcut.createWithIdAndOptions`; it used to be dropped.
37-
38-
* Add `WindowShadow`, `Window.setCustomShadow` and `customShadow` for core-rendered custom shadows on hidden-title-bar desktop windows. `hasShadow` toggles visibility without discarding configuration.
39-
40-
* Add `Window.setInputShape`, `isInputShaped`, and `isInputShapeSupported` for Linux X11/Wayland pointer and touch regions.
41-
* Support Wayland in the shape demo using transparent Flutter clipping and matching native input regions, including restoration and resize/scale updates.
42-
43-
* Add `WindowShape`, `Window.setShape`, `isShaped`, and `isShapeSupported` for polygonal desktop windows.
44-
* Add `shaped_window_example` with circle, star, and speech-bubble presets, interactive content, and rectangular restoration.
45-
46-
## 0.3.1
47-
37+
* `WindowShadow`, `Window.setCustomShadow` and `customShadow`: core-rendered
38+
custom shadows on desktop windows with a hidden title bar. `hasShadow` toggles
39+
the shadow without discarding its configuration.
40+
* `WindowShape`, `Window.setShape`, `isShaped` and `isShapeSupported` for
41+
polygonal desktop windows; the new `flutter_shaped_window_example` shows
42+
circle, star and speech-bubble shapes.
43+
* `Window.setInputShape`, `isInputShaped` and `isInputShapeSupported` restrict
44+
pointer and touch input to a region on Linux (X11 and Wayland).
4845
* **Breaking:** `TitleBarStyle.hidden` now means the same thing on every platform — no
4946
title bar and no window control buttons. On macOS it used to leave the traffic lights
5047
on a transparent bar, which Windows and Linux never did. A window that wants them back
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../README-ZH.md
1+
../README-ZH.md

‎bindings/dart/nativeapi/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../../README.md
1+
../README.md

‎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.3.1
3+
version: 0.4.0
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.3.1
19+
cnativeapi: ^0.4.0
2020
ffi: ">=1.2.1 <3.0.0"
2121

2222
dev_dependencies:

‎bindings/dart/nativeapi_flutter/CHANGELOG.md‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
## Unreleased
1+
## 0.4.0
22

3+
* Initial release. It re-exports `package:nativeapi`.
34
* `View`, `TextField` and `EdgeInsets` from nativeapi are not re-exported, as
45
Flutter already has widgets and a class of those names; use the native ones
56
through a prefixed `package:nativeapi/nativeapi.dart` import.
@@ -13,7 +14,3 @@
1314
* The re-export of `package:nativeapi` leaves out `Brightness`, `Color`,
1415
`Display`, `Image`, `ModifierKey`, `ShortcutManager` and `Size`, which clash
1516
with Flutter's names.
16-
17-
## 0.3.1
18-
19-
* 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.3.1
3+
version: 0.4.0
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.3.1
15+
nativeapi: ^0.4.0
1616
path: ^1.9.1
1717

1818
dev_dependencies:

‎bindings/rust/CHANGELOG.md‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
## 0.4.0
2+
3+
The first release built from the nativeapi repository, where the Rust binding now
4+
lives next to the other bindings and is generated from the C++ headers of
5+
[nativeapi-core](https://github.com/libnativeapi/nativeapi-core).
6+
7+
* `nativeapi` covers the whole core API: `Application`, `Window` and
8+
`WindowManager` (title bar styles, visual effects, custom shadows, window and
9+
input shapes, drag sessions), `TrayIcon`, `Menu`, `Display` and
10+
`DisplayManager`, keyboard monitoring and global shortcuts, file and message
11+
dialogs, drag and drop, notifications, launch at login, preferences and secure
12+
storage, URL opening, accessibility, app and device info, and native views
13+
(`View`, `Label`, `Button`, `TextField`, `ImageView`).
14+
* Callbacks are released once the core lets them go: a listener when it is
15+
removed or its emitter destroyed, a replaced callback, and any callback whose
16+
registration failed.
17+
* `cnativeapi` carries a copy of the core sources and builds them with CMake
18+
from `build.rs`; building needs CMake and a C++17 compiler, and on Linux GTK 3,
19+
X11 and XInput development packages.
20+
* The `nativeapi` crate no longer ships a placeholder `nativeapi` binary.
21+
22+
## 0.0.1
23+
24+
* Initial release.

0 commit comments

Comments
 (0)