Skip to content

v0.20.0 — WordCraft 0.20.0 (craft framework)

Latest

Choose a tag to compare

@physicistlk physicistlk released this 04 Dec 15:27

WordCraft 0.20.0 replaces its own window plumbing with the craft framework, so this port is rewired rather than adjusted.

What changed in the port

  • WordApp is no longer an eframe::App. The shell now drives it exactly as the desktop shell does: embed::before_input for input, app.logic + embed::logic(close_decision), embed::before_ui + app.ui.
  • The craft-ui runtime is installed once in app_creator with craft::ui::shell::embed::install, the app's own app_id, and a text clipboard backend. Without it the window paints from default state and every tap fires a command nothing handles — the same bug fixed in the PdfCraft and VectorCraft ports on the same day.
  • File dialogs moved from Services::file_dialog to craft::host::Files. The new src/files.rs implements the trait over the existing in-app picker; Save answers are Picked::Saved, so Save As records the file.

Upstream tree

Two lines keep rfd off Android: craft's dialogs feature is now desktop-only in crates/ui-egui/Cargo.toml, and the one use of craft::dialogs::ui in file_dialogs.rs has an Android arm. rfd 0.17 has no Android backend and the build failed inside it with twelve FolderPickerDialogImpl / FileSaveDialogImpl / MessageDialogImpl errors.

Vendored winit moves from storytold/winit@a517b384 to @3fd7ae64; its Android backend is byte-identical between the two revs, so the touch/mouse patch is unchanged.

Verified

  • cargo check -p wordcraft-android --target aarch64-linux-android — clean.
  • The regenerated patch applies to a pristine v0.20.0 tree plus this repository's apps/ and vendor/.
  • aapt2: ai.storyteller.wordcraft 0.20.0 / versionCode 16782336, native-code: 'arm64-v8a'. apksigner: v2 + v3. Every LOAD segment 16 KB aligned; android_main and ANativeActivity_onCreate exported.

Not yet runtime-tested on the tablet: it was off the network when this build finished. The framework wiring is the same shape verified by hand in PdfCraft the same day (menu, file picker, folder chips).

Same package and signing key as 0.19.1, so adb install -r upgrades in place.