Commit graph

21 commits

Author SHA1 Message Date
Simon Hausmann
9ad4ef6e52 iOS: Disable the sandbox for the cargo build script by default
When the xcode project is in a sub-dir but the cargo build tries to access a file outside, this won't work.
2025-05-20 11:07:19 +02:00
Simon Hausmann
e14140c028 iOS: Fix initial window geometry
Define a dummy UILaunchScreen to avoid the app running in legacy mode for old devices.
2025-05-20 11:07:19 +02:00
Simon Hausmann
4df7a9504a Avoid double app prefix in ios bundle ids and use dev instead of com
(to be squashed)
2025-05-20 11:07:19 +02:00
Simon Hausmann
d37ee60155 Add iOS build of the Energy Monitor and Home Automation demos
Use xcodegen -s ios-project.yml to generate the Xcode project.
2025-05-20 11:07:19 +02:00
ogoffart
e0099ea500 Bump version number to 1.12.0 2025-04-30 13:27:50 +00:00
Simon Hausmann
c91ef1d7e6 Prospective build fix for non-esp mcu-board-support crate builds 2025-04-15 11:32:27 +02:00
Simon Hausmann
00c89626df Introduce a prelude to mcu-board-support to make esp-hal available when the entry point comes from esp_hal::main
esp_hal::main's code requires the availability of `esp_hal` as import.
2025-04-15 11:32:27 +02:00
Olivier Goffart
78a3757b7f
Remormat all the toml file again to fix npm upload
Commit cd6f2e2 reformated the .toml, but the 80 char width column is
judged too small to be practical

Add a .taplo.toml file

Also do not split feature array
2025-04-09 15:06:00 +02:00
Tobias Hunger
cd6f2e2cf2 ci: Format toml files
... using taplo with default settings

I tried this with 4 spaces indentation, but the patch is almost as
big as this one, so I went with default settings instead as that
is just easier:-)
2025-04-02 11:03:41 +02:00
Olivier Goffart
6f4f5aeefa Replace no_mangle with unsafe(no_mangle) in example and docs
We can't just do `s/#\[no_mangle]/#[unsafe(no_mangle)]/g`
because the version of cbingen we use doesn't understand the unsafe
attribute yet.

Part of #7998
2025-03-31 17:35:22 +02:00
Olivier Goffart
f71721e738 energy-monitor: fix warning
```
warning: energy-monitor@1.11.0: Aliases to global callback are deprecated. Export the global to access the global callback directly from native code
warning: energy-monitor@1.11.0:   --> /home/olivier/slint/demos/energy-monitor/ui/pages/menu_page/settings.slint:54:5
warning: energy-monitor@1.11.0:    |
warning: energy-monitor@1.11.0: 54 |     callback check-radio-option <=> SettingsAdapter.check-radio-option;
warning: energy-monitor@1.11.0:    |     ^
```

Warning was introduced in #7933
2025-03-25 10:42:15 +01:00
ogoffart
178cf21c2e Bump version number to 1.11.0 2025-03-18 09:48:22 +00:00
Olivier Goffart
c3e32c1665
Don't enable image-default-formats by default, remove compat-1-10 feature
We decided that the compatibility with people having enabled the extra
format in image 0.24 [1] is not worth it compared to the extra compilation
time most people gets by default when they don't need this feature.
(Which is less than 10% slower when the feature is enabled)

Since then there is no need for compat-1-10, remove it

[1] by depending directly on image 0.24 in their Cargo.toml and enabling
the features, which will not work with Slint 1.10 that now use image 0.25
2025-02-22 11:15:18 +01:00
Tasuku Suzuki
ad61d029e5 Demo: fix documentation link to mcu-board-support 2025-01-28 06:25:22 +01:00
Olivier Goffart
8a5df27469
Update to Image 0.25 (#7365)
Added image-default-formats with all the format supported by image by
default, and enable that feature by default.
Also put that feature in compat-1-2 for compatibility with user that
have used image 0.24 with enabled features.
Make a new compat-1-10 feature that does not enable default format by
default

ChangeLog: upgraded image crate to 0.25, added a new cargo feature
to enable all image formats. (that feature is enabled by default with
compat-1-2, added compat-1-10 to disable it

Fixes https://github.com/slint-ui/slint/issues/7251
2025-01-14 16:31:05 +01:00
ogoffart
c83af3ca5c Bump version number to 1.10.0 2025-01-13 13:38:41 +00:00
Tasuku Suzuki
346d1c2df3 Fix typos
Ran `typos .` and fixed all typos that do make sense.
https://crates.io/crates/typos
2025-01-13 08:35:20 +01:00
ogoffart
f309a551b5 Bump version number to 1.9.2 2024-12-30 10:18:16 +00:00
aurindam
dc3f29b6da Bump version number to 1.9.1 2024-12-19 12:57:19 +00:00
Olivier Goffart
a3dad45f0b Accessibility: rename a few properties after API review:
- Rename `accessible-selectable` and `accessible-selected` to `accessible-item-{selectable,selected}`.
   Because the property is for items in list rather than eg Text
 - Rename `accessible-position-in-set` to `accessible-item-index`.
 - Rename `accessible-size-of-set` to `accessible-item-count` and move
   the property to the container element rather than the item itself
2024-12-07 08:25:42 +01:00
Simon Hausmann
a98d4709be Move printer demo and energy-monitor into new top-level demos/ folder
These are showing off use-cases for Slint, but they're not examples showing individual Slint features.

Also removed the old printerdemo while at it.
2024-10-25 12:09:32 +02:00