Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6ef450d90d | ||
|
|
edcb5f8302 | ||
|
|
99c819fa88 | ||
|
|
c54c90edcb | ||
|
|
00b27d9804 | ||
|
|
d7b92a5aaf | ||
|
|
890eb99381 | ||
|
|
c4cc79a107 | ||
|
|
dd3895b2a0 | ||
|
|
87ac93168b | ||
|
|
7827f0cda4 | ||
|
|
b45cab3719 | ||
|
|
56354be0f2 | ||
|
|
37f85b8b4f | ||
|
|
6483eeff03 | ||
|
|
f9d2b03579 | ||
|
|
0e724f6484 | ||
|
|
2b05b9e41d | ||
|
|
89d5735e06 | ||
|
|
912109b58c | ||
|
|
d47ea26fed | ||
|
|
0fd81dff0d | ||
|
|
f394a4c6d4 | ||
|
|
5ae1079708 | ||
|
|
5dca47fd0e | ||
|
|
9eac5812be | ||
|
|
dc91713e77 | ||
|
|
2955e44e05 | ||
|
|
8564441d2d | ||
|
|
b44b78c2d4 | ||
|
|
22b4e3e4a3 | ||
|
|
5188d17398 | ||
|
|
16742b4670 | ||
|
|
878b4638e7 | ||
|
|
96a7312a81 | ||
|
|
b05e5314e4 | ||
|
|
576ac323c5 | ||
|
|
d8e0209494 | ||
|
|
5b0482ce08 | ||
|
|
221e3090a4 | ||
|
|
0707f7f530 | ||
|
|
4b6fb732ce | ||
|
|
a2f5802933 | ||
|
|
fbf3e1ed72 | ||
|
|
e27ceb65c8 | ||
|
|
a92f9c8c6b | ||
|
|
7b6028b86c | ||
|
|
90a951c7aa |
No files matched your search
@@ -9,7 +9,11 @@ PLAY_DELETE_EXISTING=1
|
||||
# Short and full descriptions from every locale folder here. 0 skips text.
|
||||
PLAY_METADATA_DIR=fastlane/metadata/android
|
||||
PLAY_LISTING_TEXT=1
|
||||
# Optional public/unlisted, embeddable YouTube video for PLAY_LANGUAGE.
|
||||
# Leave empty to preserve the existing video.
|
||||
PLAY_VIDEO_URL=
|
||||
|
||||
# Default is validate-only and discards the draft edit.
|
||||
# Set to 1 only when you want the uploaded screenshots committed to Play.
|
||||
# Uploads require make screenshot-review, screenshot-export and play-preflight.
|
||||
PLAY_COMMIT=0
|
||||
@@ -1,4 +1,6 @@
|
||||
build-essential
|
||||
ca-certificates
|
||||
libcurl4-openssl-dev
|
||||
ripgrep
|
||||
zlib1g-dev
|
||||
libdrm-dev
|
||||
@@ -12,5 +14,14 @@ python3-numpy
|
||||
python3-pil
|
||||
python3-requests
|
||||
python3-scipy
|
||||
xvfb
|
||||
xauth
|
||||
xdotool
|
||||
x11-apps
|
||||
x11-utils
|
||||
xclip
|
||||
sqlite3
|
||||
imagemagick
|
||||
tesseract-ocr
|
||||
|
||||
python3-cryptography
|
||||
@@ -111,12 +111,42 @@ jobs:
|
||||
- name: Run Tests
|
||||
run: sh scripts/test-shard.sh ${{ matrix.shard }} 3
|
||||
|
||||
- name: Require Visual Tests
|
||||
if: matrix.shard == 1
|
||||
run: make visual-test
|
||||
|
||||
- name: Save Visual Test Evidence
|
||||
if: always() && matrix.shard == 1
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: native-visual-tests
|
||||
path: |
|
||||
build/visual-test/
|
||||
build/native-visual-test/
|
||||
build/native-zoom-test/*.png
|
||||
build/native-zoom-test/app.log
|
||||
build/launcher-ui-test/
|
||||
build/locale-render-ui-test/
|
||||
build/native-screenshot-test/
|
||||
build/native-text-pixels-test/*.png
|
||||
build/native-text-pixels-test/*.log
|
||||
build/settings-sidebar-test/
|
||||
build/startup-quit-test/
|
||||
build/lumi-ui-test/
|
||||
build/lumi-history-ui-test/
|
||||
build/habits-cards-ui-test/
|
||||
build/lists-ui-test/
|
||||
build/sync-review-ui-test/
|
||||
build/data-back-ui-test/
|
||||
retention-days: 7
|
||||
|
||||
- name: Check out sync test server
|
||||
if: matrix.shard == 0
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: kryonlabs/daochi
|
||||
ref: 902230435fba6f64f5067afab551410456fb57d0
|
||||
# Includes the private Lumi collection used for shared account activity.
|
||||
ref: f850456a7e039e9ba39fcf03cb7cb802ff6a3329
|
||||
path: .test-server
|
||||
submodules: recursive
|
||||
|
||||
|
||||
@@ -97,6 +97,34 @@ jobs:
|
||||
- name: Run Tests
|
||||
run: make test
|
||||
|
||||
- name: Require Visual Tests
|
||||
run: make visual-test
|
||||
|
||||
- name: Save Visual Test Evidence
|
||||
if: always()
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: release-visual-tests
|
||||
path: |
|
||||
build/visual-test/
|
||||
build/native-visual-test/
|
||||
build/native-zoom-test/*.png
|
||||
build/native-zoom-test/app.log
|
||||
build/launcher-ui-test/
|
||||
build/locale-render-ui-test/
|
||||
build/native-screenshot-test/
|
||||
build/native-text-pixels-test/*.png
|
||||
build/native-text-pixels-test/*.log
|
||||
build/settings-sidebar-test/
|
||||
build/startup-quit-test/
|
||||
build/lumi-ui-test/
|
||||
build/lumi-history-ui-test/
|
||||
build/habits-cards-ui-test/
|
||||
build/lists-ui-test/
|
||||
build/sync-review-ui-test/
|
||||
build/data-back-ui-test/
|
||||
retention-days: 7
|
||||
|
||||
build-web:
|
||||
name: Build Web
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
@@ -1,4 +1,32 @@
|
||||
# Changelog
|
||||
## [2.1.23] - 2026-10-09
|
||||
### Added
|
||||
- Customize KSS in Appearance with live preview, per-app styles, an inspector, undo, and reset to defaults.
|
||||
- Ask Lumi to read, preview, and save appearance changes while preserving your existing customizations.
|
||||
### Fixed
|
||||
- Keep Telegram as input to Lumi without bot notifications; retain messages, replies and full history in Lumi.
|
||||
|
||||
|
||||
## [2.1.22] - 2026-10-08
|
||||
### Added
|
||||
- Minimize a running practice into a small window and keep using the app.
|
||||
### Fixed
|
||||
- Keep Diary opening with existing entries in the same account.
|
||||
- Keep practices and sound running in the background.
|
||||
- Support swipe typing and corrections from Android keyboards.
|
||||
- Stop repeated Lumi chat uploads.
|
||||
- Keep navigation visible on the practice home screen.
|
||||
- Open Lists, Diary and settings faster.
|
||||
- Lumi in Telegram replies in seconds and shows your tasks and habits.
|
||||
|
||||
## [2.1.21] - 2026-10-08
|
||||
### Changed
|
||||
- Clearly mark the selected app in navigation and Apps, including while hovering or pressing.
|
||||
### Fixed
|
||||
- Keep text sharp and stable throughout the zoom range.
|
||||
- Keep Appearance labels readable at large zoom by wrapping them above their controls.
|
||||
- Keep the selected navigation shortcut visible when changing apps or zooming on narrow screens.
|
||||
|
||||
## [2.1.20] - 2026-10-08
|
||||
### Changed
|
||||
- Keep Apps beside your desktop favorites without a large empty gap.
|
||||
|
||||
@@ -418,6 +418,11 @@ lumi-history-ui-test: $(TARGET)
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS \
|
||||
python3 tests/lumi_history_ui_test.py $(abspath $(TARGET))
|
||||
|
||||
.PHONY: session-window-ui-test
|
||||
session-window-ui-test: $(TARGET)
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS \
|
||||
python3 tests/session_window_ui_test.py $(abspath $(TARGET))
|
||||
|
||||
$(CELL_BUNDLES) $(INBE_BUNDLE) $(INBE_FULL_BUNDLE) &: $(CELL_SOURCES) $(CELL_RESOURCES) ziran.lock apps/versions.json scripts/check-package-versions.py scripts/generate-package-versions.py scripts/prepare-package-assets.py scripts/animation_inventory.py scripts/build-cells.sh src/practices/sun_salutation/sun_salutation_assets.zi src/practices/sun_salutation/sun_salutation_inventory.zi $(IMAGE_FILES) $(SOUND_FILES) $(FONT_FILES) $(STYLE_FILES) $(LOCALE_FILES) $(ZIRAN_BIN)
|
||||
sh scripts/build-cells.sh $(ZIRAN_BIN)
|
||||
|
||||
@@ -658,7 +663,7 @@ include mk/package-freebsd.mk
|
||||
.PHONY: web-canvas web-canvas-smoke-test web-compare-test web-side-by-side-test all native kryon-host install install-user uninstall stage package-freebsd deb package-deb deb-check rpm package-rpm rpm-check snap package-snap snap-cache-clean flatpak package-flatpak podman-check validate-desktop run tui run-tui run-termi run-termi-direct run-fresh screenshot test ci dist appimage click click-verify vendor-prebuilds vendor-prebuilds-native vendor-prebuilds-web vendor-prebuilds-windows font-subsets font-bundle-check clean clean-linux clean-native clean-vendor-builds windows-setup windows-setup-check android-avd android-audio-e2e android-check-keystore android-copy-assets android-copy-debug-apks android-copy-release-apks android-copy-bundle android-smoke android-local-properties android-debug android-release android-bundle android-install android-install-release android-clean android-rebuild validate-meditation-audio package-unpackaged-assets windows-runtime-assets-check windows windows64 web web-tools-check web-smoke-test web-smoke-test-firefox web-smoke-test-librewolf site site-release-assets-check chrome-web-store chrome-web-store-test firefox-addons firefox-addons-lint firefox-addons-source-zip verify-firefox-addons sync-web-icons social-install social-login social-draft social-x-draft social-post social-x-post social-x-post-dry-run social-post-dry-run
|
||||
.PHONY: zi-check
|
||||
.PHONY: clean-text-api-check package-check secret-check secret-check-history hooks-install test-tui-screenshot test-termi-screenshot test-termi-screenshot-direct
|
||||
.NOTPARALLEL: all native test ci zi-check dist windows windows64 android-release android-bundle click deb package-deb rpm package-rpm snap package-snap flatpak package-flatpak
|
||||
.NOTPARALLEL: all native test visual-test ci zi-check dist windows windows64 android-release android-bundle click deb package-deb rpm package-rpm snap package-snap flatpak package-flatpak
|
||||
|
||||
all: native
|
||||
|
||||
@@ -896,6 +901,8 @@ launcher-policy-test: $(ZI2C_BIN)
|
||||
launcher-ui-test: $(TARGET)
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS YUE_DESKTOP_RECOVERY=0 \
|
||||
python3 tests/launcher_ui_test.py $(abspath $(TARGET))
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS YUE_DESKTOP_RECOVERY=0 \
|
||||
python3 tests/launcher_ui_test.py $(abspath $(TARGET)) --dock-only
|
||||
|
||||
test: launcher-policy-test
|
||||
|
||||
@@ -907,15 +914,43 @@ native-screenshot-test: $(TARGET)
|
||||
native-navigation-test: $(TARGET)
|
||||
sh tests/native_navigation_test.sh $(abspath $(TARGET))
|
||||
|
||||
.PHONY: tab-switch-performance-test
|
||||
tab-switch-performance-test: $(TARGET)
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS YUE_DESKTOP_RECOVERY=0 \
|
||||
python3 tests/tab_switch_performance_test.py $(abspath $(TARGET)) desktop-rapid --rapid
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS YUE_DESKTOP_RECOVERY=0 \
|
||||
python3 tests/tab_switch_performance_test.py $(abspath $(TARGET)) mobile-rapid --mobile --rapid
|
||||
|
||||
.PHONY: music-navigation-test
|
||||
music-navigation-test: $(TARGET)
|
||||
@python3 tests/music_navigation_test.py '$(CC)' '$(NATIVE_COMPILE_FLAGS)' \
|
||||
'$(KRYON_LIBRARY_BUILD_DIR)/libkryon.a $(KRYON_NATIVE_BACKEND_LIBS) $(LIBOQS_A) $(KRYON_NATIVE_BACKEND_LDLIBS) $(RUNTIME_ASSET_LDLIBS) $(NATIVE_SYSTEM_LDLIBS) $(LDFLAGS)'
|
||||
'$(KRYON_LIBRARY_BUILD_DIR)/libkryon.a $(ZIRAN_BUILD_DIR)/libziran.a $(KRYON_NATIVE_BACKEND_LIBS) $(LIBOQS_A) $(KRYON_NATIVE_BACKEND_LDLIBS) $(RUNTIME_ASSET_LDLIBS) $(NATIVE_SYSTEM_LDLIBS) $(LDFLAGS)' \
|
||||
'$(NATIVE_OBJ_DIR)/objects.rsp'
|
||||
|
||||
.PHONY: native-zoom-test
|
||||
native-zoom-test: $(TARGET)
|
||||
sh tests/native_zoom_test.sh $(abspath $(TARGET))
|
||||
|
||||
.PHONY: native-visual-test visual-test
|
||||
native-visual-test: $(TARGET)
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS YUE_DESKTOP_RECOVERY=0 \
|
||||
python3 tests/native_visual_test.py $(abspath $(TARGET))
|
||||
|
||||
.PHONY: native-text-pixels-test
|
||||
native-text-pixels-test: $(TARGET)
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS YUE_DESKTOP_RECOVERY=0 \
|
||||
ZIRAN_ROOT=$(abspath $(ZIRAN_DIR)) ZIRAN_BIN=$(ZIRAN_BIN) \
|
||||
RAYLIB_A=$(abspath $(RAYLIB_A)) \
|
||||
KRYON_TEXT_TEST_OUTPUT=$(abspath $(BUILD_DIR)/native-text-pixels-test) \
|
||||
sh $(KRYON_DIR)/tests/raylib_text_pixels_test.sh
|
||||
|
||||
# Run every visual suite and retain a receipt even when an earlier suite fails.
|
||||
VISUAL_TEST_TARGETS := native-screenshot-test native-text-pixels-test native-zoom-test native-visual-test launcher-ui-test settings-sidebar-ui-test startup-quit-ui-test locale-render-ui-test lumi-ui-test lumi-history-ui-test habits-cards-ui-test lists-ui-test sync-review-ui-test data-back-ui-test
|
||||
visual-test: $(TARGET) $(INBE_FULL_BUNDLE)
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY \
|
||||
-u DBUS_SESSION_BUS_ADDRESS -u SESSION_MANAGER YUE_DESKTOP_RECOVERY=0 \
|
||||
python3 tests/visual_test.py $(abspath $(TARGET)) $(VISUAL_TEST_TARGETS)
|
||||
|
||||
.PHONY: settings-sidebar-ui-test
|
||||
settings-sidebar-ui-test: $(TARGET)
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS YUE_DESKTOP_RECOVERY=0 \
|
||||
@@ -1143,6 +1178,28 @@ social-post-dry-run:
|
||||
screenshot: $(TARGET)
|
||||
./scripts/generate-screenshots.sh "$(TARGET)"
|
||||
|
||||
.PHONY: screenshot-verify screenshot-review screenshot-export screenshot-source-check play-preflight lumi-promo lumi-narration
|
||||
screenshot-source-check: $(ZI2C_BIN) | build-laws
|
||||
@ZI_CHECK_DEFINES="$(ZI_NATIVE_DEFINES)" python3 scripts/check-zi-sources.py $(ZI2ZIR_BIN) $(KRYON_DIR)/src/ui $(ZIRAN_DIR)/std $(KSS_DIR)/src
|
||||
|
||||
screenshot-verify:
|
||||
python3 scripts/screenshot-harness.py verify
|
||||
|
||||
screenshot-review:
|
||||
python3 scripts/screenshot-harness.py review --reviewer "$(REVIEWER)"
|
||||
|
||||
screenshot-export:
|
||||
python3 scripts/screenshot-harness.py export
|
||||
|
||||
play-preflight:
|
||||
python3 scripts/upload-play-screenshots.py --preflight-only
|
||||
|
||||
lumi-promo:
|
||||
python3 scripts/render-lumi-promo.py
|
||||
|
||||
lumi-narration:
|
||||
python3 scripts/generate-lumi-narration.py
|
||||
|
||||
test-tui-screenshot test-termi-screenshot:
|
||||
@$(MAKE) --no-print-directory KRYON_BACKEND=termi test-termi-screenshot-direct
|
||||
|
||||
@@ -1838,6 +1895,10 @@ style-apply-zi-test: $(ZI2C_BIN)
|
||||
|
||||
test: style-apply-zi-test
|
||||
|
||||
.PHONY: appearance-ui-test
|
||||
appearance-ui-test: $(TARGET) $(INBE_FULL_BUNDLE)
|
||||
sh tests/appearance_ui_test.sh $(abspath $(TARGET))
|
||||
|
||||
.PHONY: audio-settings-test
|
||||
audio-settings-test: $(ZI2C_BIN)
|
||||
@env -u DISPLAY -u WAYLAND_DISPLAY \
|
||||
@@ -1880,6 +1941,16 @@ sync-safety-test: $(ZI2C_BIN)
|
||||
|
||||
test: sync-safety-test
|
||||
|
||||
.PHONY: account-activity-test
|
||||
account-activity-test: $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
@sh tests/account_activity_zi_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
|
||||
test: account-activity-test
|
||||
|
||||
.PHONY: account-activity-ui-test
|
||||
account-activity-ui-test: $(TARGET) $(INBE_FULL_BUNDLE) account-activity-test
|
||||
sh tests/account_activity_ui_test.sh $(abspath $(TARGET))
|
||||
|
||||
.PHONY: sync-status-policy-test
|
||||
sync-status-policy-test: $(ZI2C_BIN)
|
||||
@env -u DISPLAY -u WAYLAND_DISPLAY \
|
||||
@@ -3016,6 +3087,12 @@ package-version-test:
|
||||
|
||||
test: package-version-test
|
||||
|
||||
.PHONY: play-screenshots-test
|
||||
play-screenshots-test:
|
||||
python3 tests/play_screenshots_test.py
|
||||
|
||||
test: play-screenshots-test
|
||||
|
||||
.PHONY: package-workflow-test
|
||||
package-workflow-test:
|
||||
python3 tests/package_workflow_test.py
|
||||
@@ -3052,6 +3129,12 @@ telegram-bridge-test:
|
||||
telegram-host-test:
|
||||
@sh tests/telegram_host_test.sh
|
||||
|
||||
.PHONY: lumi-telegram-input-test
|
||||
lumi-telegram-input-test: $(ZIRAN_BIN) $(LIBOQS_A) | build-laws
|
||||
@sh tests/lumi_telegram_input_zi_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
|
||||
test: lumi-telegram-input-test
|
||||
|
||||
telegram-entry-protocol-test: $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
@sh tests/telegram_entry_protocol_zi_test.sh $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
|
||||
@@ -3082,3 +3165,9 @@ lumi-delegate-scope-test: $(ZIRAN_BIN) $(LIBOQS_A)
|
||||
telegram-authorization-test: telegram-bridge-test telegram-host-test telegram-entry-protocol-test telegram-account-flow-test telegram-account-ui-test settings-telegram-ui-test lumi-authorization-test delegate-account-test delegate-secret-cleanup-test storage-delegate-test lumi-delegate-scope-test
|
||||
|
||||
test: telegram-authorization-test
|
||||
|
||||
.PHONY: android-geometry-probe-test
|
||||
android-geometry-probe-test:
|
||||
@env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u DBUS_SESSION_BUS_ADDRESS sh tests/android_geometry_probe_test.sh
|
||||
|
||||
test: android-geometry-probe-test
|
||||
@@ -17,6 +17,10 @@ Inner Breeze is a free, open-source practice app for breathing, meditation, and
|
||||
habit tracking. It works offline, stores data locally in SQLite, and can
|
||||
optionally sync user-owned data through a Daochi-compatible sync server.
|
||||
|
||||
[Account activity](docs/ACCOUNT_ACTIVITY.md) explains persistent Telegram linking,
|
||||
reopening an authorized installation, and seeing and controlling the running
|
||||
practice from another device connected to the same account.
|
||||
|
||||
## Features
|
||||
|
||||
- Lumi, a local firefly companion with private chat, habit completion, practice starts, and optional todo tools
|
||||
@@ -35,11 +39,7 @@ separate proof tool is needed. The build host needs Python 3 and the platform's
|
||||
native build dependencies. See [build laws](docs/build-laws-plan.md) for the
|
||||
checked behavior.
|
||||
|
||||
Initialize the submodules once:
|
||||
|
||||
```bash
|
||||
git submodule update --init --recursive
|
||||
```
|
||||
Build commands fetch the dependencies pinned in `ziran.lock`.
|
||||
|
||||
Build and run the desktop app:
|
||||
|
||||
@@ -71,10 +71,81 @@ make site
|
||||
|
||||
Run the test suite:
|
||||
|
||||
[Custom appearance](docs/appearance.md) describes live KSS editing, per-app
|
||||
customizations, reset, and Lumi's appearance tools.
|
||||
|
||||
```bash
|
||||
make test
|
||||
make visual-test
|
||||
```
|
||||
|
||||
CI and releases require the visual gate. It uses disposable profiles and
|
||||
private Xvfb displays to check glyph pixels, every zoom from 50% to 250%,
|
||||
selected navigation and app cards in all 13 palettes and both color modes,
|
||||
enlarged Appearance labels, shipped locales, and page interactions. It keeps
|
||||
screenshots and logs under `build/`; CI uploads them even when a check fails.
|
||||
Every visual suite runs even if an earlier suite fails. The complete result,
|
||||
including hashes of the tested binary and bundles, is in
|
||||
`build/visual-test/results.json`; changing an artifact during the gate fails it.
|
||||
Its system tools are listed in `.github/apt/test-packages.txt`.
|
||||
|
||||
Store captures cover Apps, Lumi, Practices, Habits, Lists, Diary, Appearance,
|
||||
and supporting pages in phone, 7-inch tablet, 10-inch tablet, and Chromebook
|
||||
layouts. Capture runs use disposable profiles on private Xvfb displays and
|
||||
check viewport sizes, nonblank rendering, and expected screen text. They do
|
||||
not copy images into the store listing until visual review is recorded:
|
||||
|
||||
```bash
|
||||
make native cells PACKAGE_FLAGS=--locked
|
||||
make screenshot
|
||||
# Inspect build/screenshots/review-*.jpg and the full-size PNGs.
|
||||
make screenshot-review REVIEWER="your name"
|
||||
make screenshot-export
|
||||
make play-preflight
|
||||
python3 scripts/upload-play-screenshots.py
|
||||
```
|
||||
|
||||
The scene list in `scripts/screenshot-scenes.json` selects eight store images
|
||||
per phone/tablet type while retaining all 64 captures for review. Changing
|
||||
source, scene definitions, Kryon, binaries, bundles, or screenshot bytes
|
||||
invalidates publishing preflight. A historical capture can still be visually
|
||||
reviewed and used for a review video; Play requires a fresh capture of the
|
||||
current locked build. Local Kryon preview builds cannot pass Play preflight.
|
||||
Preflight checks every dependency against its locked commit and runs a fresh
|
||||
source check, so reused incremental preview outputs cannot hide missing imports.
|
||||
Keep credentials in the ignored `.env.play` using `.env.play.example`.
|
||||
The uploader defaults to validating and discarding its remote edit. After
|
||||
review, `PLAY_COMMIT=1 python3 scripts/upload-play-screenshots.py` validates
|
||||
and commits the listing; a failed edit is discarded. This updates listing
|
||||
assets only. App releases follow the numeric changelog, `update_version.sh`,
|
||||
and the existing release workflow, which builds and publishes the signed
|
||||
Google Play AAB and owns release tags. A local build or commit is not a Play
|
||||
deployment.
|
||||
|
||||
`make lumi-promo` renders a narrated portrait review MP4 from the exact
|
||||
reviewed phone captures and the generated artwork in `design/lumi-promo/`.
|
||||
Lumi uses eight generated wing-flapping frames, flies to each screen and settles
|
||||
facing the app while a narrator explains it. Lumi turns with the flight direction
|
||||
and flips inward after arriving on the right. Wings flap continuously using
|
||||
distinct poses; each app screen stays in a fixed position without sliding in.
|
||||
The audio contains speech only, without music or sound effects. Scene timings
|
||||
expand to fit the complete spoken lines.
|
||||
`make lumi-narration` generates the stored narrator clips through OpenRouter
|
||||
using a locally configured `OPENROUTER_API_KEY`; unchanged clips are reused.
|
||||
The voice, script and provider options are in `design/lumi-promo/narration.json`.
|
||||
The chat example runs real local theme actions; the surrounding forest and
|
||||
glow are marketing effects. Inspect `build/lumi-promo/storyboard.jpg` and
|
||||
`build/lumi-promo/inner-breeze-lumi-review.mp4` before using it publicly.
|
||||
Google Play's preview video field takes a YouTube URL, so the MP4 needs an
|
||||
approved public or unlisted YouTube upload with embedding enabled before it can
|
||||
be added to the listing. Pass `--video-url https://www.youtube.com/watch?v=VIDEO_ID`
|
||||
to the listing uploader, or configure `PLAY_VIDEO_URL`. To update only the
|
||||
video, use `PLAY_COMMIT=1 python3 scripts/upload-play-screenshots.py --video-only --video-url URL`.
|
||||
The approved [Lumi preview](https://www.youtube.com/watch?v=XESpbMRaz4o) is
|
||||
available on YouTube and configured in the English Google Play listing.
|
||||
Screenshot publishing still requires the complete current
|
||||
capture, visual review, export and locked build preflight.
|
||||
|
||||
To test sync and recovery against an isolated local server:
|
||||
|
||||
```bash
|
||||
|
||||
@@ -1,5 +1,14 @@
|
||||
# Changelog
|
||||
|
||||
## [1.1.4] - 2026-10-08
|
||||
|
||||
- Keep date limits working when Diary updates on existing Inbe installations.
|
||||
|
||||
## [1.1.3] - 2026-10-08
|
||||
|
||||
- Keep the journal on today or earlier dates and show an empty editor without a writing prompt.
|
||||
- Open the same account-synced Diary from Inner Breeze and Harmony, preserving earlier entries and photos.
|
||||
|
||||
## [1.1.2] - 2026-10-07
|
||||
|
||||
- Keep app labels and content visible after updating Inner Breeze.
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// File effects belong to the host; this bundle has no OS or database access.
|
||||
#import "json_scan"
|
||||
#import, file "diary_view.zi";
|
||||
#import, file "diary_date.zi";
|
||||
#import "text"
|
||||
#import "vec"
|
||||
#import "byte_text_linux"
|
||||
@@ -16,114 +17,6 @@ ReadDiaryFileHost :: (name: string) -> DiaryFileResult #foreign host_api;
|
||||
SaveDiaryFileHost :: (name: string, data: string) -> bool #foreign host_api;
|
||||
DiaryClockHost :: () -> string #foreign host_api;
|
||||
|
||||
Date :: struct {
|
||||
year: s32;
|
||||
month: s32;
|
||||
day: s32;
|
||||
}
|
||||
|
||||
Leap :: (year: s32) -> bool {
|
||||
return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)
|
||||
}
|
||||
|
||||
Days :: (year: s32, month: s32) -> s32 {
|
||||
lengths: [12]s32 = .[31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
|
||||
if month < 1 || month > 12 {
|
||||
return 0
|
||||
}
|
||||
if month == 2 && Leap(year) {
|
||||
return 29
|
||||
}
|
||||
return lengths[month - 1]
|
||||
}
|
||||
|
||||
Valid :: (date: Date) -> bool {
|
||||
return date.year >= 1 && date.year <= 9999 && date.month >= 1 &&
|
||||
date.month <= 12 && date.day >= 1 && date.day <= Days(date.year, date.month)
|
||||
}
|
||||
|
||||
Next :: (date: Date, delta: s32) -> Date {
|
||||
value := date
|
||||
if delta > 0 {
|
||||
value.day += 1
|
||||
if value.day > Days(value.year, value.month) {
|
||||
value.day = 1
|
||||
value.month += 1
|
||||
if value.month > 12 {
|
||||
value.month = 1;
|
||||
value.year += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
if delta < 0 {
|
||||
value.day -= 1
|
||||
if value.day < 1 {
|
||||
value.month -= 1
|
||||
if value.month < 1 {
|
||||
value.month = 12;
|
||||
value.year -= 1
|
||||
}
|
||||
value.day = Days(value.year, value.month)
|
||||
}
|
||||
}
|
||||
return ifx Valid(value) then value else date
|
||||
}
|
||||
|
||||
Weekday :: (date: Date) -> s32 {
|
||||
year := date.year
|
||||
if date.month < 3 {
|
||||
year -= 1
|
||||
}
|
||||
offsets: [12]s32 = .[0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4]
|
||||
return (year + year / 4 - year / 100 + year / 400 +
|
||||
offsets[date.month - 1] + date.day + 6) % 7
|
||||
}
|
||||
|
||||
ISO :: (date: Date) -> string {
|
||||
bytes: [10]u8
|
||||
values: [3]s32 = .[date.year, date.month, date.day]
|
||||
starts: [3]s32 = .[0, 5, 8]
|
||||
lengths: [3]s32 = .[4, 2, 2]
|
||||
bytes[4] = cast(u8)45
|
||||
bytes[7] = cast(u8)45
|
||||
for index: cast(s32)0..cast(s32)2 {
|
||||
number := values[index]
|
||||
for digit: cast(s32)0..lengths[index] - 1 {
|
||||
bytes[starts[index] + lengths[index] - digit - 1] = cast(u8)(48 + number % 10)
|
||||
number /= 10
|
||||
}
|
||||
}
|
||||
out: Vec(u8)
|
||||
BuilderPrint(*out, "%", TextFromBytes(bytes[:]))
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
ParseDate :: (value: string) -> Date {
|
||||
date: Date
|
||||
if value.count != 10 || value[4] != cast(u8)45 || value[7] != cast(u8)45 {
|
||||
return date
|
||||
}
|
||||
for index: cast(s32)0..cast(s32)9 {
|
||||
if index == 4 || index == 7 {
|
||||
continue
|
||||
}
|
||||
if value[index] < cast(u8)48 || value[index] > cast(u8)57 {
|
||||
return Date.{}
|
||||
}
|
||||
number := cast(s32)value[index] - 48
|
||||
if index < 4 {
|
||||
date.year = date.year * 10 + number
|
||||
}
|
||||
else if index < 7 {
|
||||
date.month = date.month * 10 + number
|
||||
}
|
||||
else {
|
||||
date.day = date.day * 10 + number
|
||||
}
|
||||
}
|
||||
return ifx Valid(date) then date else Date.{}
|
||||
}
|
||||
|
||||
Today :: () -> Date {
|
||||
clock := DiaryClockHost()
|
||||
if clock.count < 10 {
|
||||
@@ -240,7 +133,8 @@ PhotoSelection :: (message: DiaryMessage) -> DiaryMessage {
|
||||
}
|
||||
|
||||
PhotoChange :: (message: DiaryMessage, remove: bool) -> DiaryMessage {
|
||||
if message.load_error || (!remove && !SafePhoto(message.attachment_file)) {
|
||||
if !OnOrBefore(Date.{message.year, message.month, message.day}, Today()) ||
|
||||
message.load_error || (!remove && !SafePhoto(message.attachment_file)) {
|
||||
message.succeeded = false
|
||||
return message
|
||||
}
|
||||
@@ -283,7 +177,7 @@ PhotoChange :: (message: DiaryMessage, remove: bool) -> DiaryMessage {
|
||||
}
|
||||
|
||||
Load :: (message: DiaryMessage, date: Date) -> DiaryMessage {
|
||||
if !Valid(date) {
|
||||
if !OnOrBefore(date, Today()) {
|
||||
message.succeeded = false;
|
||||
return message
|
||||
}
|
||||
@@ -330,7 +224,7 @@ Load :: (message: DiaryMessage, date: Date) -> DiaryMessage {
|
||||
}
|
||||
|
||||
Save :: (message: DiaryMessage) -> DiaryMessage {
|
||||
if message.load_error {
|
||||
if message.load_error || !OnOrBefore(Date.{message.year, message.month, message.day}, Today()) {
|
||||
message.succeeded = false;
|
||||
return message
|
||||
}
|
||||
@@ -364,7 +258,8 @@ Apply :: (message: DiaryMessage) -> DiaryMessage {
|
||||
return PhotoChange(message, false)
|
||||
}
|
||||
if message.action == DIARY_EDIT {
|
||||
if message.load_error || message.edit_start < 0 ||
|
||||
if !OnOrBefore(Date.{message.year, message.month, message.day}, Today()) ||
|
||||
message.load_error || message.edit_start < 0 ||
|
||||
message.edit_end < message.edit_start || message.edit_end > message.text.count {
|
||||
message.succeeded = false
|
||||
return message
|
||||
@@ -426,7 +321,7 @@ Apply :: (message: DiaryMessage) -> DiaryMessage {
|
||||
message.month_number = 1;
|
||||
message.month_year += 1
|
||||
}
|
||||
if message.month_year < 1 || message.month_year > 9999 {
|
||||
if !OnOrBefore(Date.{message.month_year, message.month_number, 1}, Today()) {
|
||||
message.month_year = previous_year
|
||||
message.month_number = previous_month
|
||||
message.succeeded = false;
|
||||
@@ -434,10 +329,6 @@ Apply :: (message: DiaryMessage) -> DiaryMessage {
|
||||
}
|
||||
} else {
|
||||
before := message
|
||||
message = Save(message)
|
||||
if !message.saved && !message.load_error {
|
||||
return message
|
||||
}
|
||||
date := Date.{before.year, before.month, before.day}
|
||||
if message.control == 29001 {
|
||||
date = Next(date, -1)
|
||||
@@ -454,6 +345,14 @@ Apply :: (message: DiaryMessage) -> DiaryMessage {
|
||||
message.succeeded = false;
|
||||
return message
|
||||
}
|
||||
if !OnOrBefore(date, Today()) {
|
||||
message.succeeded = false
|
||||
return message
|
||||
}
|
||||
message = Save(message)
|
||||
if !message.saved && !message.load_error {
|
||||
return message
|
||||
}
|
||||
message = Load(message, date)
|
||||
message.calendar = false
|
||||
}
|
||||
@@ -490,7 +389,7 @@ Main :: () -> s32 {
|
||||
}
|
||||
if message.action == DIARY_FRAME {
|
||||
message.succeeded = true
|
||||
message = DiaryView(message, DiaryObserve())
|
||||
message = DiaryView(message, DiaryObserve(), Today())
|
||||
if message.action != DIARY_FRAME {
|
||||
message = Apply(message)
|
||||
}
|
||||
|
||||
@@ -0,0 +1,124 @@
|
||||
#import "text"
|
||||
#import "vec"
|
||||
#import "byte_text_linux"
|
||||
|
||||
Date :: struct {
|
||||
year: s32;
|
||||
month: s32;
|
||||
day: s32;
|
||||
}
|
||||
|
||||
Leap :: (year: s32) -> bool {
|
||||
return year % 4 == 0 && (year % 100 != 0 || year % 400 == 0)
|
||||
}
|
||||
|
||||
Days :: (year: s32, month: s32) -> s32 {
|
||||
lengths: [12]s32 = .[31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]
|
||||
if month < 1 || month > 12 {
|
||||
return 0
|
||||
}
|
||||
if month == 2 && Leap(year) {
|
||||
return 29
|
||||
}
|
||||
return lengths[month - 1]
|
||||
}
|
||||
|
||||
Valid :: (date: Date) -> bool {
|
||||
return date.year >= 1 && date.year <= 9999 && date.month >= 1 &&
|
||||
date.month <= 12 && date.day >= 1 && date.day <= Days(date.year, date.month)
|
||||
}
|
||||
|
||||
Next :: (date: Date, delta: s32) -> Date {
|
||||
value := date
|
||||
if delta > 0 {
|
||||
value.day += 1
|
||||
if value.day > Days(value.year, value.month) {
|
||||
value.day = 1
|
||||
value.month += 1
|
||||
if value.month > 12 {
|
||||
value.month = 1;
|
||||
value.year += 1
|
||||
}
|
||||
}
|
||||
}
|
||||
if delta < 0 {
|
||||
value.day -= 1
|
||||
if value.day < 1 {
|
||||
value.month -= 1
|
||||
if value.month < 1 {
|
||||
value.month = 12;
|
||||
value.year -= 1
|
||||
}
|
||||
value.day = Days(value.year, value.month)
|
||||
}
|
||||
}
|
||||
return ifx Valid(value) then value else date
|
||||
}
|
||||
|
||||
Weekday :: (date: Date) -> s32 {
|
||||
year := date.year
|
||||
if date.month < 3 {
|
||||
year -= 1
|
||||
}
|
||||
offsets: [12]s32 = .[0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4]
|
||||
return (year + year / 4 - year / 100 + year / 400 +
|
||||
offsets[date.month - 1] + date.day + 6) % 7
|
||||
}
|
||||
|
||||
ISO :: (date: Date) -> string {
|
||||
bytes: [10]u8
|
||||
values: [3]s32 = .[date.year, date.month, date.day]
|
||||
starts: [3]s32 = .[0, 5, 8]
|
||||
lengths: [3]s32 = .[4, 2, 2]
|
||||
bytes[4] = cast(u8)45
|
||||
bytes[7] = cast(u8)45
|
||||
for index: cast(s32)0..cast(s32)2 {
|
||||
number := values[index]
|
||||
for digit: cast(s32)0..lengths[index] - 1 {
|
||||
bytes[starts[index] + lengths[index] - digit - 1] = cast(u8)(48 + number % 10)
|
||||
number /= 10
|
||||
}
|
||||
}
|
||||
out: Vec(u8)
|
||||
BuilderPrint(*out, "%", TextFromBytes(bytes[:]))
|
||||
return BuilderFinish(out)
|
||||
}
|
||||
|
||||
ParseDate :: (value: string) -> Date {
|
||||
date: Date
|
||||
if value.count != 10 || value[4] != cast(u8)45 || value[7] != cast(u8)45 {
|
||||
return date
|
||||
}
|
||||
for index: cast(s32)0..cast(s32)9 {
|
||||
if index == 4 || index == 7 {
|
||||
continue
|
||||
}
|
||||
if value[index] < cast(u8)48 || value[index] > cast(u8)57 {
|
||||
return Date.{}
|
||||
}
|
||||
number := cast(s32)value[index] - 48
|
||||
if index < 4 {
|
||||
date.year = date.year * 10 + number
|
||||
}
|
||||
else if index < 7 {
|
||||
date.month = date.month * 10 + number
|
||||
}
|
||||
else {
|
||||
date.day = date.day * 10 + number
|
||||
}
|
||||
}
|
||||
return ifx Valid(date) then date else Date.{}
|
||||
}
|
||||
|
||||
OnOrBefore :: (date: Date, limit: Date) -> bool {
|
||||
if !Valid(date) || !Valid(limit) {
|
||||
return false
|
||||
}
|
||||
if date.year != limit.year {
|
||||
return date.year < limit.year
|
||||
}
|
||||
if date.month != limit.month {
|
||||
return date.month < limit.month
|
||||
}
|
||||
return date.day <= limit.day
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
#import "geometry"
|
||||
#import, file "diary_date.zi";
|
||||
#import "image_props"
|
||||
#import "image_widget"
|
||||
#import "layout"
|
||||
@@ -38,21 +39,29 @@ DiarySaveDue :: () -> bool {
|
||||
}
|
||||
|
||||
DateTitle :: (year: s32, month: s32, day: s32) -> string {
|
||||
bytes: [10]u8
|
||||
numbers: [3]s32 = .[year, month, day]
|
||||
positions: [3]s32 = .[0, 5, 8]
|
||||
lengths: [3]s32 = .[4, 2, 2]
|
||||
bytes[4] = cast(u8)45
|
||||
bytes[7] = cast(u8)45
|
||||
for index: cast(s32)0..cast(s32)2 {
|
||||
number := numbers[index]
|
||||
for digit: cast(s32)0..lengths[index] - 1 {
|
||||
bytes[positions[index] + lengths[index] - digit - 1] = cast(u8)(48 + number % 10)
|
||||
number /= 10
|
||||
if month < 1 || month > 12 { return "" }
|
||||
keys: [12]string = .["habit_month_1", "habit_month_2", "habit_month_3",
|
||||
"habit_month_4", "habit_month_5", "habit_month_6", "habit_month_7",
|
||||
"habit_month_8", "habit_month_9", "habit_month_10", "habit_month_11", "habit_month_12"]
|
||||
month_text := DiaryLocaleHost(keys[month - 1])
|
||||
title: Vec(u8)
|
||||
eastern := month_text.count >= 2 && month_text[:2] == "%d"
|
||||
if day > 0 && !eastern { BuilderPrint(*title, "% ", day) }
|
||||
index: s64 = 0
|
||||
while index < month_text.count {
|
||||
if index + 1 < month_text.count && month_text[index:index + 2] == "%d" {
|
||||
BuilderPrint(*title, "%", year)
|
||||
index += 2
|
||||
} else {
|
||||
BuilderPrint(*title, "%", month_text[index:index + 1])
|
||||
index += 1
|
||||
}
|
||||
}
|
||||
title: Vec(u8)
|
||||
BuilderPrint(*title, "%", TextFromBytes(bytes[:ifx day == 0 then 7 else 10]))
|
||||
if day > 0 && eastern {
|
||||
BuilderPrint(*title, "%", day)
|
||||
suffix := ifx month_text[month_text.count - 3:] == "월" then "일" else "日"
|
||||
BuilderPrint(*title, "%", suffix)
|
||||
}
|
||||
return BuilderFinish(title)
|
||||
}
|
||||
|
||||
@@ -65,9 +74,9 @@ FinishView :: () -> DiaryMessage {
|
||||
return state
|
||||
}
|
||||
|
||||
DiaryAction :: ( id: s32, label: string, bounds: Rectangle) {
|
||||
DiaryAction :: ( id: s32, label: string, bounds: Rectangle, enabled: bool = true) {
|
||||
if Button(frame.session, ButtonProps.{.id = id, .bounds = bounds,
|
||||
.label = label, .tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.label = label, .disabled = !enabled, .tone = cast(ButtonTone)ButtonToneNeutral,
|
||||
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0 {
|
||||
if id == 29005 {
|
||||
frame.photo_requested = true
|
||||
@@ -82,7 +91,7 @@ DiaryAction :: ( id: s32, label: string, bounds: Rectangle) {
|
||||
}
|
||||
}
|
||||
|
||||
DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame) -> DiaryMessage {
|
||||
DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> DiaryMessage {
|
||||
state = message
|
||||
frame = observed
|
||||
column := CenteredColumnFor(frame.width, Scale(640), Scale(16))
|
||||
@@ -97,7 +106,9 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame) -> DiaryMessage {
|
||||
DiaryAction(29004, DiaryLocaleHost("diary_today"), Rectangle.{left + part + cast(float32)Scale(6),
|
||||
top, part, cast(float32)Scale(44)})
|
||||
DiaryAction(29002, "›", Rectangle.{left + 2.0 * (part + cast(float32)Scale(6)),
|
||||
top, part, cast(float32)Scale(44)})
|
||||
top, part, cast(float32)Scale(44)},
|
||||
OnOrBefore(Next(Date.{state.year, state.month, state.day}, 1), today) &&
|
||||
!OnOrBefore(today, Date.{state.year, state.month, state.day}))
|
||||
DiaryAction(29003, DiaryLocaleHost("tab_diary_calendar"),
|
||||
Rectangle.{left, top + cast(float32)Scale(52), width, cast(float32)Scale(44)})
|
||||
if state.calendar {
|
||||
@@ -112,7 +123,9 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame) -> DiaryMessage {
|
||||
origin := scroll.content.y
|
||||
DiaryAction(29011, "‹", Rectangle.{left, origin, part, cast(float32)Scale(44)})
|
||||
DiaryAction(29012, "›", Rectangle.{left + 2.0 * (part + cast(float32)Scale(6)),
|
||||
origin, part, cast(float32)Scale(44)})
|
||||
origin, part, cast(float32)Scale(44)},
|
||||
state.month_year < today.year ||
|
||||
(state.month_year == today.year && state.month_number < today.month))
|
||||
Text(frame.session, TextProps.{.bounds = Rectangle.{left + part,
|
||||
origin + cast(float32)Scale(8), part, cast(float32)Scale(32)},
|
||||
.text = DateTitle(state.month_year, state.month_number, 0), .font = frame.font})
|
||||
@@ -133,7 +146,8 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame) -> DiaryMessage {
|
||||
DiaryAction(29100 + day, day_title,
|
||||
Rectangle.{left + cast(float32)(position % 7) * cell,
|
||||
origin + cast(float32)Scale(80 + (position / 7) * 44), cell - 2.0,
|
||||
cast(float32)Scale(42)})
|
||||
cast(float32)Scale(42)},
|
||||
OnOrBefore(Date.{state.month_year, state.month_number, day}, today))
|
||||
}
|
||||
End(frame.session)
|
||||
return FinishView()
|
||||
@@ -162,7 +176,6 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame) -> DiaryMessage {
|
||||
area.bounds = Rectangle.{left, page.content.y + cast(float32)Scale(56), width,
|
||||
cast(float32)editor_height}
|
||||
area.value = state.text
|
||||
area.placeholder = DiaryLocaleHost("diary_placeholder")
|
||||
area.label = DiaryLocaleHost("tab_diary")
|
||||
area.wrap = true
|
||||
area.cursor = state.cursor
|
||||
@@ -193,10 +206,12 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame) -> DiaryMessage {
|
||||
frame.clipboard_text = edited.clipboard_text
|
||||
}
|
||||
|
||||
status := ifx frame.photo_error then "diary_photo_error" else ifx state.load_error then "diary_read_error" else ifx state.saved then "diary_saved" else "diary_save_pending"
|
||||
Text(frame.session, TextProps.{.bounds = Rectangle.{left,
|
||||
area.bounds.y + area.bounds.height + cast(float32)Scale(12), width, cast(float32)Scale(40)},
|
||||
.text = DiaryLocaleHost(status), .font = frame.font})
|
||||
if frame.photo_error || state.load_error || !state.saved {
|
||||
status := ifx frame.photo_error then "diary_photo_error" else ifx state.load_error then "diary_read_error" else "diary_save_pending"
|
||||
Text(frame.session, TextProps.{.bounds = Rectangle.{left,
|
||||
area.bounds.y + area.bounds.height + cast(float32)Scale(12), width, cast(float32)Scale(40)},
|
||||
.text = DiaryLocaleHost(status), .font = frame.font})
|
||||
}
|
||||
if state.photo_count > 0 {
|
||||
photo_top := area.bounds.y + area.bounds.height + cast(float32)Scale(60)
|
||||
path: Vec(u8)
|
||||
|
||||
@@ -1,5 +1,19 @@
|
||||
# Changelog
|
||||
|
||||
## [2.1.20] - 2026-10-09
|
||||
|
||||
- Customize each app in Appearance using live KSS editing, inspection, undo, and reset to defaults.
|
||||
- Ask Lumi to preview and save your appearance changes.
|
||||
|
||||
## [2.1.19] - 2026-10-08
|
||||
|
||||
- Deliver the updated Diary to existing Inbe installations with today as its latest date.
|
||||
|
||||
## [2.1.18] - 2026-10-08
|
||||
|
||||
- Keep Diary in the same account as Habits, including existing entries and photos.
|
||||
- Limit Diary to today and earlier dates and open a blank editor without a writing prompt.
|
||||
|
||||
## [2.1.17] - 2026-10-07
|
||||
|
||||
- Find every app in a searchable library and keep up to two favorites in the compact dock.
|
||||
|
||||
@@ -146,14 +146,14 @@ LumiIntent :: (input: string, commands: LumiCommands) -> LumiAction {
|
||||
}
|
||||
diary_prefixes: [7]string = .[commands.write_diary, "write this to my diary",
|
||||
"write to my diary", "add to my diary", "save to my diary", "/journal", "/diary"]
|
||||
boundary: s32 = 0
|
||||
while boundary < input.count && input[boundary] != cast(u8)58 && input[boundary] != cast(u8)10 {
|
||||
boundary += 1
|
||||
}
|
||||
for prefix: diary_prefixes {
|
||||
if prefix.count == 0 || (prefix == "/diary" && LumiEqual(input, prefix)) {
|
||||
continue
|
||||
}
|
||||
boundary: s32 = 0
|
||||
while boundary < input.count && input[boundary] != cast(u8)58 && input[boundary] != cast(u8)10 {
|
||||
boundary += 1
|
||||
}
|
||||
if boundary < input.count && CommandPhrase(LumiTrim(input[:boundary]), prefix) {
|
||||
return LumiAction.{.kind = LUMI_WRITE_DIARY, .title = LumiTrim(input[boundary + 1:])}
|
||||
}
|
||||
@@ -196,15 +196,23 @@ LumiIntent :: (input: string, commands: LumiCommands) -> LumiAction {
|
||||
return LumiAction.{.kind = LUMI_START_PRACTICE, .practice = index}
|
||||
}
|
||||
}
|
||||
normalized := CommandNormalize(input)
|
||||
practice_patterns: [7]string = .["^start\\s+whm[.!?]*$", "^start\\s+wim\\s+hof$",
|
||||
"^start\\s+wim\\s+hof\\s+method$", "^start\\s+meditation[.!?]*$",
|
||||
"^start\\s+sun\\s+salutations?[.!?]*$", "^start\\s+breathing\\s+patterns[.!?]*$",
|
||||
"^start\\s+patterns[.!?]*$"]
|
||||
ids: [7]s32 = .[0, 0, 0, 1, 2, 3, 3]
|
||||
for index: cast(s32)0..cast(s32)6 {
|
||||
if RegexMatch(practice_patterns[index], normalized) {
|
||||
return LumiAction.{.kind = LUMI_START_PRACTICE, .practice = ids[index]}
|
||||
first_word_end: s32 = 0
|
||||
while first_word_end < input.count && !CommandSpace(input[first_word_end]) {
|
||||
first_word_end += 1
|
||||
}
|
||||
// All practice expressions start with the corrected word "start". Free
|
||||
// text needs neither a normalized copy nor seven regex evaluations.
|
||||
if CommandTypo(input[:first_word_end], "start") {
|
||||
normalized := CommandNormalize(input)
|
||||
practice_patterns: [7]string = .["^start\\s+whm[.!?]*$", "^start\\s+wim\\s+hof$",
|
||||
"^start\\s+wim\\s+hof\\s+method$", "^start\\s+meditation[.!?]*$",
|
||||
"^start\\s+sun\\s+salutations?[.!?]*$", "^start\\s+breathing\\s+patterns[.!?]*$",
|
||||
"^start\\s+patterns[.!?]*$"]
|
||||
ids: [7]s32 = .[0, 0, 0, 1, 2, 3, 3]
|
||||
for index: cast(s32)0..cast(s32)6 {
|
||||
if RegexMatch(practice_patterns[index], normalized) {
|
||||
return LumiAction.{.kind = LUMI_START_PRACTICE, .practice = ids[index]}
|
||||
}
|
||||
}
|
||||
}
|
||||
practice_aliases: [10]string = .["start whm", "start wim hof", "start wim hof method",
|
||||
|
||||
@@ -17,6 +17,9 @@ LumiTaskCountHost :: () -> s32 #foreign host_api;
|
||||
PerformLumiActionHost :: (action: LumiAction) -> bool #foreign host_api;
|
||||
AppendLumiChatHost :: (text: string, user: bool) #foreign host_api;
|
||||
LumiLocaleHost :: (key: string) -> string #foreign host_api;
|
||||
LumiLocaleRevisionHost :: () -> s64 #foreign host_api;
|
||||
command_revision: s64 = -1;
|
||||
command_cache: LumiCommands;
|
||||
ReadLumiToolsHost :: () -> LumiTools #foreign host_api;
|
||||
SetLumiHabitChoiceHost :: (choosing: bool) #foreign host_api;
|
||||
SetLumiDiaryChoiceHost :: (choosing: bool) #foreign host_api;
|
||||
@@ -43,7 +46,10 @@ LumiAskHabit :: (tools: LumiTools) {
|
||||
}
|
||||
|
||||
LumiCommandSet :: () -> LumiCommands {
|
||||
return LumiCommands.{.add = LumiLocaleHost("lumi_add"),
|
||||
revision := LumiLocaleRevisionHost()
|
||||
if revision == command_revision { return command_cache }
|
||||
command_revision = revision
|
||||
command_cache = LumiCommands.{.add = LumiLocaleHost("lumi_add"),
|
||||
.complete = LumiLocaleHost("lumi_complete"), .reopen = LumiLocaleHost("lumi_reopen"),
|
||||
.complete_habit = LumiLocaleHost("lumi_complete_habit"),
|
||||
.start_whm = LumiLocaleHost("lumi_start_whm"),
|
||||
@@ -56,6 +62,7 @@ LumiCommandSet :: () -> LumiCommands {
|
||||
.theme = LumiLocaleHost("lumi_theme"), .dark = LumiLocaleHost("lumi_dark"),
|
||||
.light = LumiLocaleHost("lumi_light"), .system = LumiLocaleHost("lumi_system"),
|
||||
.progress = LumiLocaleHost("lumi_show_progress"), .donations = LumiLocaleHost("lumi_show_donations")}
|
||||
return command_cache
|
||||
}
|
||||
|
||||
LumiRespond :: (input: string) {
|
||||
@@ -201,7 +208,8 @@ Main :: () -> s32 {
|
||||
if message.action == LUMI_ROUTE {
|
||||
message.succeeded = message.screen == ScreenLumi
|
||||
} else if message.action == LUMI_FRAME {
|
||||
message = LumiView(message, LumiCommandSet())
|
||||
commands := LumiCommandSet()
|
||||
message = LumiView(message, commands, command_revision)
|
||||
if message.action == LUMI_SEND {
|
||||
LumiRespond(message.input)
|
||||
}
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
#import "tree"
|
||||
#import "text"
|
||||
#import "byte_text_linux"
|
||||
#import "c_string"
|
||||
#import "vec"
|
||||
#import, file "../../src/cells/lumi_types.zi";
|
||||
#import, file "../../src/cells/lumi_ui_types.zi";
|
||||
@@ -48,6 +49,57 @@ chart_selected_point: s32;
|
||||
donation_notice: string;
|
||||
donation_notice_row: s32 = -1;
|
||||
|
||||
// Visible replies are unchanged between frames. Keep a bounded copy so
|
||||
// scrolling, account changes and edited rows cannot reuse borrowed host text.
|
||||
LumiReplyText :: struct {
|
||||
source: [LUMI_INPUT_MAX]u8
|
||||
count: s32
|
||||
formatted: LumiMessageText
|
||||
}
|
||||
|
||||
reply_text: [8]LumiReplyText;
|
||||
draft_intent_source: [LUMI_INPUT_MAX]u8;
|
||||
draft_intent_count: s32;
|
||||
draft_intent_revision: s64 = -1;
|
||||
draft_intent: LumiAction;
|
||||
draft_intent_title_count: s32;
|
||||
candidate_revision: s64 = -1;
|
||||
candidate_actions: [20]LumiAction;
|
||||
|
||||
// Interpretation depends on the draft and translated command set. Cursor
|
||||
// blinking, scrolling and unchanged frames reuse the result, while sending
|
||||
// still validates the request against the current tools in LumiRespond.
|
||||
DraftIntent :: (value: string, commands: LumiCommands, revision: s64) -> LumiAction {
|
||||
if revision != draft_intent_revision ||
|
||||
value != TextFromBytes(draft_intent_source[:draft_intent_count]) {
|
||||
draft_intent_count = 0
|
||||
if CopyCString(value, draft_intent_source[:]) {
|
||||
draft_intent_count = cast(s32)value.count
|
||||
}
|
||||
draft_intent_revision = revision
|
||||
action := LumiIntent(value, commands)
|
||||
draft_intent = LumiAction.{.kind = action.kind, .route = action.route, .practice = action.practice}
|
||||
draft_intent_title_count = cast(s32)action.title.count
|
||||
}
|
||||
action := draft_intent
|
||||
// Intent titles are suffixes of the trimmed request. Retain their length,
|
||||
// then return a view of this frame's value rather than a cached text view.
|
||||
action.title = value[value.count - draft_intent_title_count:]
|
||||
return action
|
||||
}
|
||||
|
||||
ReplyText :: (index: s32, value: string) -> *LumiMessageText {
|
||||
slot := *reply_text[index % cast(s32)reply_text.count]
|
||||
if value != TextFromBytes(slot.source[:slot.count]) {
|
||||
slot.formatted = LumiFormatMessage(value, true)
|
||||
slot.count = 0
|
||||
if CopyCString(value, slot.source[:]) {
|
||||
slot.count = cast(s32)value.count
|
||||
}
|
||||
}
|
||||
return *slot.formatted
|
||||
}
|
||||
|
||||
Scale :: (value: s32) -> s32 {
|
||||
return cast(s32)(cast(float32)value * frame.scale)
|
||||
}
|
||||
@@ -182,7 +234,7 @@ DonationCard :: (index: s32, x: s32, y: s32, width: s32) {
|
||||
}
|
||||
}
|
||||
|
||||
LumiView :: (message: LumiMessage, commands: LumiCommands) -> LumiMessage {
|
||||
LumiView :: (message: LumiMessage, commands: LumiCommands, revision: s64) -> LumiMessage {
|
||||
frame = ReadLumiUiHost()
|
||||
column := CenteredColumnFor(frame.width, Scale(720), Scale(16))
|
||||
x := column.x
|
||||
@@ -202,6 +254,9 @@ LumiView :: (message: LumiMessage, commands: LumiCommands) -> LumiMessage {
|
||||
if chat_height < Scale(60) {
|
||||
chat_height = Scale(60)
|
||||
}
|
||||
if frame.follow_end {
|
||||
frame.scroll = 1000000
|
||||
}
|
||||
history := Scroll(frame.session, ScrollProps.{.key = cast(u64)300100,
|
||||
.bounds = Bounds(x, history_top, width, chat_height),
|
||||
.content_height = frame.history_height, .scroll_offset = frame.scroll, .scale = frame.scale})
|
||||
@@ -238,13 +293,17 @@ LumiView :: (message: LumiMessage, commands: LumiCommands) -> LumiMessage {
|
||||
card_height := Scale(ifx row.kind == LUMI_CHAT_PROGRESS then 242 else
|
||||
ifx row.kind == LUMI_CHAT_DONATIONS then 500 else ifx row.kind == LUMI_CHAT_FEEDBACK then 54 else 0)
|
||||
text_height := row_height - text_top - Scale(16) - card_height
|
||||
formatted := LumiFormatMessage(row.text, !row.user)
|
||||
Text(frame.session, TextProps.{.key = cast(u64)(300403 + index * 4),
|
||||
.bounds = Bounds(left + Scale(14), top + text_top,
|
||||
props := TextProps.{.key = cast(u64)(300403 + index * 4),
|
||||
.bounds = Bounds(left + Scale(14), top + text_top,
|
||||
bubble_width - Scale(28), text_height),
|
||||
.text = TextFromBytes(formatted.bytes[:formatted.count]),
|
||||
.strong = formatted.strong[:formatted.strong_count],
|
||||
.font = frame.font, .selectable = true, .wrap = cast(TextWrap)TextWrapAuto})
|
||||
.text = row.text, .font = frame.font, .selectable = true,
|
||||
.wrap = cast(TextWrap)TextWrapAuto}
|
||||
if !row.user {
|
||||
formatted := ReplyText(index, row.text)
|
||||
props.text = TextFromBytes(formatted.bytes[:formatted.count])
|
||||
props.strong = formatted.strong[:formatted.strong_count]
|
||||
}
|
||||
Text(frame.session, props)
|
||||
card_top := top + text_top + text_height + Scale(8)
|
||||
if row.kind == LUMI_CHAT_PROGRESS {
|
||||
ProgressCard(row, index, left + Scale(14), card_top, bubble_width - Scale(28))
|
||||
@@ -281,7 +340,7 @@ LumiView :: (message: LumiMessage, commands: LumiCommands) -> LumiMessage {
|
||||
selected: bool
|
||||
limit: s32 = 2
|
||||
chip_width := (width - Scale(8)) / limit
|
||||
action := LumiIntent(typed, commands)
|
||||
action := DraftIntent(typed, commands, revision)
|
||||
if action.kind == 0 && frame.choosing_habit {
|
||||
action = LumiAction.{.kind = LUMI_COMPLETE_HABIT, .title = typed}
|
||||
}
|
||||
@@ -312,11 +371,17 @@ LumiView :: (message: LumiMessage, commands: LumiCommands) -> LumiMessage {
|
||||
suggestion_count += 1
|
||||
}
|
||||
}
|
||||
if revision != candidate_revision {
|
||||
for index: cast(s32)0..cast(s32)19 {
|
||||
candidate_actions[index] = LumiIntent(candidates[index], commands)
|
||||
}
|
||||
candidate_revision = revision
|
||||
}
|
||||
for index: cast(s32)0..cast(s32)19 {
|
||||
if typed.count == 0 || frame.choosing_diary || action.kind == LUMI_COMPLETE_HABIT || suggestion_count >= limit {
|
||||
break
|
||||
}
|
||||
candidate_action := LumiIntent(candidates[index], commands)
|
||||
candidate_action := candidate_actions[index]
|
||||
practice_match := action.kind == LUMI_START_PRACTICE && candidate_action.kind == LUMI_START_PRACTICE &&
|
||||
action.practice == candidate_action.practice
|
||||
if (requirements[index] != 0 && (frame.available_apps & requirements[index]) == 0) || suggestion_count >= limit ||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
"apps": {
|
||||
"inbe": {
|
||||
"id": "inbe",
|
||||
"version": "2.1.17",
|
||||
"sequence": 14,
|
||||
"version": "2.1.20",
|
||||
"sequence": 17,
|
||||
"bundled": true
|
||||
},
|
||||
"habits": {
|
||||
@@ -28,8 +28,8 @@
|
||||
},
|
||||
"diary": {
|
||||
"id": "inbe.diary",
|
||||
"version": "1.1.2",
|
||||
"sequence": 4,
|
||||
"version": "1.1.4",
|
||||
"sequence": 6,
|
||||
"bundled": true
|
||||
},
|
||||
"lumi": {
|
||||
|
||||
@@ -320,5 +320,302 @@
|
||||
"annotations": {
|
||||
"readOnlyHint": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "read_style",
|
||||
"description": "Read editable KSS, saved and live preview sources, shipped app/style-pack defaults, precedence and current revision for a scope. Always read before editing; preserve existing edits. Use supported KSS properties and existing component classes.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"all",
|
||||
"lists",
|
||||
"habits",
|
||||
"practices",
|
||||
"diary",
|
||||
"lumi"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"scope"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"annotations": {
|
||||
"readOnlyHint": true,
|
||||
"destructiveHint": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "inspect_style",
|
||||
"description": "Inspect effective values and matching source rules for a widget/class/state in the selected scope. This reads the last valid preview without changing it.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"all",
|
||||
"lists",
|
||||
"habits",
|
||||
"practices",
|
||||
"diary",
|
||||
"lumi"
|
||||
]
|
||||
},
|
||||
"widget": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"App",
|
||||
"Button",
|
||||
"Text",
|
||||
"Card",
|
||||
"TextArea",
|
||||
"TextField",
|
||||
"NavigationBar",
|
||||
"NavigationBarItem",
|
||||
"Image",
|
||||
"Surface"
|
||||
]
|
||||
},
|
||||
"class": {
|
||||
"type": "string",
|
||||
"maxLength": 63
|
||||
},
|
||||
"state": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"normal",
|
||||
"hover",
|
||||
"pressed",
|
||||
"focus",
|
||||
"selected",
|
||||
"disabled"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"scope",
|
||||
"widget",
|
||||
"state"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"annotations": {
|
||||
"readOnlyHint": true,
|
||||
"destructiveHint": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "preview_style",
|
||||
"description": "Replace the selected custom KSS draft and preview validated changes immediately. Invalid code remains editable and leaves the last working appearance intact. This does not save. Read the current revision first; send the complete custom sheet, preserving unrelated rules.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"all",
|
||||
"lists",
|
||||
"habits",
|
||||
"practices",
|
||||
"diary",
|
||||
"lumi"
|
||||
]
|
||||
},
|
||||
"revision": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "The latest revision returned by read_style or the last successful style operation. Read again if another edit changed it."
|
||||
},
|
||||
"source": {
|
||||
"type": "string",
|
||||
"maxLength": 8191
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"scope",
|
||||
"revision",
|
||||
"source"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"annotations": {
|
||||
"readOnlyHint": false,
|
||||
"destructiveHint": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "save_style",
|
||||
"description": "Validate and save the selected custom KSS draft for this account. Use after the user requests applying or keeping the preview.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"all",
|
||||
"lists",
|
||||
"habits",
|
||||
"practices",
|
||||
"diary",
|
||||
"lumi"
|
||||
]
|
||||
},
|
||||
"revision": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "The latest revision returned by read_style or the last successful style operation. Read again if another edit changed it."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"scope",
|
||||
"revision"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"annotations": {
|
||||
"readOnlyHint": false,
|
||||
"destructiveHint": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "reset_style",
|
||||
"description": "Reset the selected customization to its shipped default by saving an empty override. Other scopes and app data remain intact.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"all",
|
||||
"lists",
|
||||
"habits",
|
||||
"practices",
|
||||
"diary",
|
||||
"lumi"
|
||||
]
|
||||
},
|
||||
"revision": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "The latest revision returned by read_style or the last successful style operation. Read again if another edit changed it."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"scope",
|
||||
"revision"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"annotations": {
|
||||
"readOnlyHint": false,
|
||||
"destructiveHint": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "undo_style",
|
||||
"description": "Undo the latest edit in this scope and preview the restored draft. It is not saved until save_style.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"all",
|
||||
"lists",
|
||||
"habits",
|
||||
"practices",
|
||||
"diary",
|
||||
"lumi"
|
||||
]
|
||||
},
|
||||
"revision": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "The latest revision returned by read_style or the last successful style operation. Read again if another edit changed it."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"scope",
|
||||
"revision"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"annotations": {
|
||||
"readOnlyHint": false,
|
||||
"destructiveHint": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "discard_style",
|
||||
"description": "Discard unsaved changes in this scope and restore its saved appearance.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"all",
|
||||
"lists",
|
||||
"habits",
|
||||
"practices",
|
||||
"diary",
|
||||
"lumi"
|
||||
]
|
||||
},
|
||||
"revision": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "The latest revision returned by read_style or the last successful style operation. Read again if another edit changed it."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"scope",
|
||||
"revision"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"annotations": {
|
||||
"readOnlyHint": false,
|
||||
"destructiveHint": false
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "format_style",
|
||||
"description": "Format the current KSS draft without changing its meaning, then preview it. Saving is separate.",
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"scope": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"all",
|
||||
"lists",
|
||||
"habits",
|
||||
"practices",
|
||||
"diary",
|
||||
"lumi"
|
||||
]
|
||||
},
|
||||
"revision": {
|
||||
"type": "integer",
|
||||
"minimum": 0,
|
||||
"description": "The latest revision returned by read_style or the last successful style operation. Read again if another edit changed it."
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"scope",
|
||||
"revision"
|
||||
],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"annotations": {
|
||||
"readOnlyHint": false,
|
||||
"destructiveHint": false
|
||||
}
|
||||
}
|
||||
]
|
||||
@@ -16,6 +16,8 @@ tokens {
|
||||
launcher-muted: #adc1cd;
|
||||
launcher-selection: #99deb8;
|
||||
launcher-ink: #18352a;
|
||||
launcher-selected-hover: #8fd0ad;
|
||||
launcher-selected-pressed: #84c2a2;
|
||||
launcher-border: #344957;
|
||||
}
|
||||
}
|
||||
@@ -125,11 +127,33 @@ Button.launcher-tile:pressed {
|
||||
background-end: launcher-hover;
|
||||
border: launcher-selection;
|
||||
}
|
||||
Button.launcher-tile:selected {
|
||||
background: launcher-panel;
|
||||
background-end: launcher-panel;
|
||||
foreground: launcher-selection;
|
||||
border: launcher-selection;
|
||||
Button.launcher-tile[tone=Accent][emphasis=Filled] {
|
||||
background: launcher-selection;
|
||||
background-end: launcher-selection;
|
||||
foreground: launcher-ink;
|
||||
border: launcher-text;
|
||||
border-width: 2;
|
||||
}
|
||||
Button.launcher-tile[tone=Accent][emphasis=Filled]:hover {
|
||||
background: launcher-selected-hover;
|
||||
background-end: launcher-selected-hover;
|
||||
}
|
||||
Button.launcher-tile[tone=Accent][emphasis=Filled]:pressed {
|
||||
background: launcher-selected-pressed;
|
||||
background-end: launcher-selected-pressed;
|
||||
}
|
||||
// The install or remove symbol inside an app card uses its card's ink.
|
||||
// Rules stay few: every style pack plus this sheet must fit the KSS rule
|
||||
// table (style-apply-zi-test), so hover uses the style pack default.
|
||||
Button.launcher-action {
|
||||
background: #00000000;
|
||||
background-end: #00000000;
|
||||
foreground: launcher-text;
|
||||
border: #00000000;
|
||||
radius: 10;
|
||||
}
|
||||
Button.launcher-action[tone=Accent] {
|
||||
foreground: launcher-ink;
|
||||
}
|
||||
NavigationBar.launcher-dock { background: launcher-canvas; }
|
||||
NavigationBarItem.launcher-dock {
|
||||
@@ -141,7 +165,7 @@ NavigationBarItem.launcher-dock {
|
||||
radius: 14;
|
||||
font-size: 12;
|
||||
icon-size: 24;
|
||||
gap: 8;
|
||||
gap: 2;
|
||||
padding-x: 3;
|
||||
padding-y: 6;
|
||||
offset-x: 0;
|
||||
@@ -149,13 +173,24 @@ NavigationBarItem.launcher-dock {
|
||||
}
|
||||
NavigationBarItem.launcher-dock:hover { background: launcher-hover; background-end: launcher-hover; padding-x: 3; padding-y: 6; }
|
||||
NavigationBarItem.launcher-dock:pressed { background: launcher-panel; background-end: launcher-panel; }
|
||||
NavigationBarItem.launcher-dock:selected {
|
||||
// Filled accent identifies the active route even during hover and press.
|
||||
NavigationBarItem.launcher-dock[tone=Accent][emphasis=Filled] {
|
||||
background: launcher-selection;
|
||||
background-end: launcher-selection;
|
||||
foreground: launcher-ink;
|
||||
border: launcher-text;
|
||||
border-width: 2;
|
||||
padding-x: 3;
|
||||
padding-y: 6;
|
||||
}
|
||||
NavigationBarItem.launcher-dock[tone=Accent][emphasis=Filled]:hover {
|
||||
background: launcher-selected-hover;
|
||||
background-end: launcher-selected-hover;
|
||||
}
|
||||
NavigationBarItem.launcher-dock[tone=Accent][emphasis=Filled]:pressed {
|
||||
background: launcher-selected-pressed;
|
||||
background-end: launcher-selected-pressed;
|
||||
}
|
||||
Button.launcher-pin {
|
||||
background: #00000000;
|
||||
background-end: #00000000;
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"tool": "built-in image_gen",
|
||||
"lumi-flight.png": {
|
||||
"reference": "assets/lumi/mascot.png",
|
||||
"transparent": true,
|
||||
"prompt": "Use case: ads-marketing. Asset type: transparent flying character cutout for an animated Inner Breeze promo video. Input image: identity and style reference for Lumi, the app's friendly glowing firefly. Keep Lumi recognizably identical: rounded olive-green head/body, cream golden glowing tummy, two curved antennae ending in golden lights, huge warm brown eyes, gentle smile, tiny translucent cream wings and feet. Create a full-body three-quarter view of Lumi in joyful flight, floating horizontally slightly facing right, one small hand gesturing as a guide. Magical premium storybook painted 3D feeling, soft tactile watercolor texture matching the reference. Make both delicate wings visible and luminous, no hard cartoon outlines. Entire character including glow and antennae inside image with generous transparent margins. True transparent alpha background. No text, no phone, no scenery, no additional character, no logos."
|
||||
},
|
||||
"forest.png": {
|
||||
"transparent": false,
|
||||
"prompt": "Use case: ads-marketing. Asset type: portrait background plate for an Inner Breeze wellness app promo guided by Lumi, a glowing golden firefly. Create an enchanting cinematic forest glade at twilight in a premium soft storybook painted 3D style with delicate watercolor texture. Deep sage, teal, moss and midnight green foliage framing only the extreme bottom and side edges, many tiny warm gold firefly lights at different depths, soft volumetric moonlight and gentle golden light trails like breath rising toward the center. Calm spacious central area with an uncluttered deep teal-to-sage atmospheric gradient, where readable app screens will be composited later. Magical intimate and inviting, lush organic detail, exquisite soft glowing bokeh, subtle painterly paper texture. Portrait 9:16 composition. No characters, no letters or typography, no phones, no UI, no logos or watermark."
|
||||
},
|
||||
"lumi-flight-cycle.png": {
|
||||
"reference": "lumi-flight.png",
|
||||
"transparent": true,
|
||||
"columns": 4,
|
||||
"rows": 2,
|
||||
"frames": 8,
|
||||
"prompt": "Use case: ads-marketing. Asset type: transparent 8-frame wing-flapping sprite sheet for an animated video. Input image 1 is the Lumi identity reference; input image 2 is the existing animation sheet to fix. Recreate image 2 as an evenly spaced 4-column by 2-row grid of exactly 8 full-body frames, same warm olive green firefly Lumi and same soft painted 3D texture. Critical correction: shrink EVERY character so its complete antenna glow, wings and feet occupy ONLY the central 60 percent of its cell, leaving an empty transparent margin of at least 18 percent along EVERY side. No character part or glow can touch a cell edge. Keep precisely the same head center and body size in all 8 cells. Body stable; wings do real full up/down strokes. Sequential wing positions left-to-right then second row: frame 1 wings up, frame 2 middle downward, frame 3 wings fully down, frame 4 middle upward, frame 5 wings up, frame 6 middle downward, frame 7 wings fully down, frame 8 middle upward. Clearly distinct full strokes, not duplicate wings. Both delicate wings attached at the back, correct anatomy. No whole-body rotation or sliding. Preserve face and hands identically so playback doesn't flicker. Tiny feet gently flex with the strokes. Big friendly brown eyes and inviting smile. Golden glows localized close to antenna bulbs and belly, no large halo clouds. True transparent alpha everywhere outside the character. No scenery, no grid lines, no text or labels. Wide canvas 2:1 aspect ratio, high resolution. Character always fully contained within its allotted cell with very generous empty alpha padding."
|
||||
},
|
||||
"status": "Review artwork for a promo; does not change the in-app mascot or claim new customization capabilities."
|
||||
}
|
||||
|
After Width: | Height: | Size: 2.2 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
|
After Width: | Height: | Size: 1.2 MiB |
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"model": "microsoft/mai-voice-2.1",
|
||||
"voice": "en-US-Harper:MAI-Voice-2.1",
|
||||
"response_format": "mp3",
|
||||
"speed": 1.0,
|
||||
"provider": {"options": {"azure": {"style": "narrator", "styledegree": 1.0}}},
|
||||
"clips": [
|
||||
"Meet Lumi. Your little guide to Inner Breeze.",
|
||||
"A space for your apps, and your daily rhythm.",
|
||||
"Take a breath. Find your calm. Make time to move.",
|
||||
"Build little habits that make every day brighter.",
|
||||
"Keep your plans in Lists, and your thoughts in Diary.",
|
||||
"Make it yours. Ask Lumi for a forest theme, then switch to dark mode.",
|
||||
"Inner Breeze. A little space, made for you."
|
||||
],
|
||||
"documentation": "https://openrouter.ai/docs/guides/overview/multimodal/tts"
|
||||
}
|
||||
@@ -0,0 +1,59 @@
|
||||
{
|
||||
"config_sha256": "a3f0fbaea5ab604d86f9117572956e0597f18d314660c16c836e38ed431e1c83",
|
||||
"provider": "OpenRouter",
|
||||
"model": "microsoft/mai-voice-2.1",
|
||||
"voice": "en-US-Harper:MAI-Voice-2.1",
|
||||
"clips": [
|
||||
{
|
||||
"file": "clip-00.mp3",
|
||||
"text": "Meet Lumi. Your little guide to Inner Breeze.",
|
||||
"seconds": 3.648,
|
||||
"sha256": "31777f316cb9f786ea69a051be06fd82ad4a8e7508a1f739a9b6faa8a3dd4734",
|
||||
"generation_id": "gen-tts-1791514279-Tg7LWgrcfvxt2OIWjuDj"
|
||||
},
|
||||
{
|
||||
"file": "clip-01.mp3",
|
||||
"text": "A space for your apps, and your daily rhythm.",
|
||||
"seconds": 2.952,
|
||||
"sha256": "766bdb7e9ca8c44b6690170ab20ac61ddfcca4934947d4f369d150ea2a6e7224",
|
||||
"generation_id": "gen-tts-1791514280-LacvzXxRZsGdXgjW1xmY"
|
||||
},
|
||||
{
|
||||
"file": "clip-02.mp3",
|
||||
"text": "Take a breath. Find your calm. Make time to move.",
|
||||
"seconds": 4.752,
|
||||
"sha256": "f2ed561fa0b3c77775b4cc3b3a4fb19fa1ea6cb23cc0bbc4c7216305edd12f4f",
|
||||
"generation_id": "gen-tts-1791514282-FVKXyQSwJ0oGJecZ9MPL"
|
||||
},
|
||||
{
|
||||
"file": "clip-03.mp3",
|
||||
"text": "Build little habits that make every day brighter.",
|
||||
"seconds": 2.784,
|
||||
"sha256": "3685d1e6ec34bd1c2bbd98db10b0fd3e0cc3313bb14dfd1ccae596289eea849b",
|
||||
"generation_id": "gen-tts-1791514283-tIeLAmKNQfvB5vqNpjLR"
|
||||
},
|
||||
{
|
||||
"file": "clip-04.mp3",
|
||||
"text": "Keep your plans in Lists, and your thoughts in Diary.",
|
||||
"seconds": 3.48,
|
||||
"sha256": "34db8fdb37793e22425867fc5123d0abdac4cf8fa515f373b1553e7c4d31bef0",
|
||||
"generation_id": "gen-tts-1791514286-Be2DMWRxLmqQHWnLy2WK"
|
||||
},
|
||||
{
|
||||
"file": "clip-05.mp3",
|
||||
"text": "Make it yours. Ask Lumi for a forest theme, then switch to dark mode.",
|
||||
"seconds": 5.088,
|
||||
"sha256": "3a9816c6484ee089bdfd36bc15b8efd8d925b79ad4477c8b3680a3918706e4c5",
|
||||
"generation_id": "gen-tts-1791514288-kfGqTRkfR6gYKGQzSzTH"
|
||||
},
|
||||
{
|
||||
"file": "clip-06.mp3",
|
||||
"text": "Inner Breeze. A little space, made for you.",
|
||||
"seconds": 4.056,
|
||||
"sha256": "55e9a0c3b19a8c5b6f9eaf23bb81b1b3cc67a0a6b864f3aa57ad3103ef0c3eaa",
|
||||
"generation_id": "gen-tts-1791514290-ttQk1lQ5H3modKGaq95J"
|
||||
}
|
||||
],
|
||||
"music": false,
|
||||
"documentation": "https://openrouter.ai/docs/guides/overview/multimodal/tts"
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
# Account activity and Telegram reopening
|
||||
|
||||
The Lumi bot's link belongs to the numeric Telegram account and remains in
|
||||
Daochi's database across Telegram clients and node restarts. It does not belong
|
||||
to a Telegram Desktop window or a Mini App launch.
|
||||
|
||||
On reopening the Mini App, Inbe verifies fresh Telegram identity, validates the
|
||||
saved owner's signed delegate grant, and obtains a fresh key-bound session
|
||||
automatically. A temporary sync outage or offline reopening keeps the saved
|
||||
delegate. Offline reopening denies access until a fresh online launch verifies
|
||||
the identity; it does not delete the protected account. Changed
|
||||
identity, revocation, or an expired grant still prevents access. The owner's
|
||||
private key is never sent to the bot or stored in the delegate capsule.
|
||||
|
||||
Telegram SecureStorage is device-local. A new Mini App device still needs its
|
||||
own initial authorization. A native app joins the same account by importing the
|
||||
same account key. The current Mini App grant covers Lumi history and shared
|
||||
activity; it does not grant access to owner-only Diary, Lists, or Habits data.
|
||||
|
||||
The running device publishes encrypted activity every two seconds through the
|
||||
existing v6 private Lumi collection. The shared record identifies the practice,
|
||||
its originating device, session, phase, counters, elapsed or remaining time,
|
||||
pause state, and last update. Phase and round boundaries publish immediately.
|
||||
Other signed-in devices show it on the Practice
|
||||
page and provide a shortcut from other pages. The Telegram Mini App opens the
|
||||
live activity view and can return to Lumi.
|
||||
|
||||
Pause and resume requests target the exact session, originating device, and
|
||||
state revision. The running device acknowledges them in its next activity
|
||||
record. Replayed, expired, and superseded requests are ignored. Observers do not
|
||||
advance the practice or save another result. A finished session publishes an
|
||||
inactive record. A session without updates for twenty seconds shows its last
|
||||
known state and disables remote controls.
|
||||
|
||||
Sync transport continues during practice while changes to its screen and
|
||||
settings remain deferred. Android's existing background practice timer also
|
||||
pumps activity and sync while background play is enabled. Background suspension,
|
||||
an offline device, or concurrent offline starts cannot provide uninterrupted
|
||||
live synchronization. This is a live view and remote pause/resume, not a transfer
|
||||
of practice execution to another device.
|
||||
|
||||
Validation: `make account-activity-test telegram-account-flow-test
|
||||
sync-safety-test android-timer-zi-test android-lifecycle-zi-test`;
|
||||
`make build-laws proof-test sync-recovery-test version-test`; and the
|
||||
two-client `sync-server-test` scenario, which exchanges the encrypted session,
|
||||
pause request, acknowledgement, and completion through a real Daochi server.
|
||||
`make account-activity-ui-test` checks the desktop and narrow-screen live view,
|
||||
remote control acknowledgement, stale controls, and completion on a private
|
||||
Xvfb display. Harmony's application state also exposes the account activity
|
||||
and enables its remote pause/resume controls only while the session is fresh.
|
||||
@@ -0,0 +1,51 @@
|
||||
# Custom appearance
|
||||
|
||||
Open **Settings → Appearance → Advanced appearance (KSS)**. Choose **All apps**
|
||||
or Lists, Habits, Practices, Diary, or Lumi. Each scope has its own custom sheet.
|
||||
The shared style pack and Inbe defaults remain readable in the Source menu.
|
||||
|
||||
Valid edits render after a short typing pause. An invalid draft stays editable;
|
||||
the last complete preview remains installed. The status shows the source file,
|
||||
line, and column of an error. **Save** persists the selected sheet for the current
|
||||
account. **Discard** restores its saved sheet. **Undo edit** restores a previous
|
||||
draft. **Format KSS** formats the draft without saving it. **Reset to defaults**
|
||||
clears and saves only the selected customization. Resetting one app still keeps
|
||||
the All apps customization; reset All apps as well to return to shipped styling.
|
||||
|
||||
```kss
|
||||
Button {
|
||||
radius: 24;
|
||||
}
|
||||
|
||||
Button.profile-header:hover {
|
||||
border-width: 2;
|
||||
}
|
||||
|
||||
tokens {
|
||||
color {
|
||||
canvas: #14202b;
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
KSS is Kryon's stylesheet language. Use the component names, classes, tokens,
|
||||
and properties shown in the shipped sheets; unsupported CSS properties produce
|
||||
errors. Styles resolve in this order: shared pack and app defaults, All apps,
|
||||
then the selected app. The inspector displays resolved properties and matching
|
||||
source rules for a component and interaction state. Sheets may contain up to
|
||||
8,191 UTF-8 bytes; the complete cascade allows 512 rules. Custom imports cannot
|
||||
load files. Saved preferences never modify shipped assets or other accounts.
|
||||
|
||||
**Ask Lumi** opens the conversation with the selected scope in a draft. Describe
|
||||
the look you want and send it. Online Lumi and Harmony use the same app-owned
|
||||
tools: `read_style`, `inspect_style`, `preview_style`, `save_style`, `reset_style`,
|
||||
`undo_style`, `discard_style`, and `format_style`. A mutation requires the current
|
||||
revision from a read or preceding operation, so an outdated edit cannot overwrite
|
||||
newer changes. Lumi requires an available online chat service; manual editing
|
||||
works offline.
|
||||
|
||||
Verification: `make style-apply-zi-test appearance-ui-test` checks parsing,
|
||||
atomic validation, scope isolation, persistence, reset, and real editor input on
|
||||
a private display. Harmony's `tests/app_mcp_test.py` checks the registered tool
|
||||
path through its companion and hosted app. Daochi's chat tests cover the complete
|
||||
tool count and larger style-result continuations while retaining input limits.
|
||||
@@ -219,7 +219,8 @@ key must match `registry-public-key.hex`. The package publisher cannot approve
|
||||
itself: registration requires the separate node operator key. Existing account
|
||||
collections, capabilities, token policies and other publisher keys are retained;
|
||||
suspended, revoked and node-restricted registrations are not replaced. Repeating
|
||||
the preparation keeps unchanged manifest versions and advances changed ones.
|
||||
the preparation retains the registry protocol version and existing scopes while
|
||||
updating the app's client version.
|
||||
|
||||
The wrapper release workflow requires public pins covering all six app IDs,
|
||||
so each included cell has a configured publisher for its updates.
|
||||
@@ -239,7 +240,8 @@ Pending local choices win equal timestamps; newer remote choices win.
|
||||
Invalid keys, values and timestamps cannot alter preferences. Versions, package
|
||||
paths, release sequence floors and the automatic-update preference stay local.
|
||||
All apps share the existing account, SQLite database and outbox. Diary entries
|
||||
currently remain device-local, as they were in Harmony.
|
||||
and photos use the owner-only encrypted cell collection on that same sync
|
||||
account. Per-account files provide a local cache; they are not the only copy.
|
||||
|
||||
## Diary and standalone use
|
||||
|
||||
@@ -252,10 +254,11 @@ lock and atomic writes.
|
||||
|
||||
For explicit migration, set `INBE_DIARY_IMPORT=/absolute/harmony/diary` when
|
||||
opening Diary. The importer copies safe regular filenames and skips existing
|
||||
Inbe files and symlinks. It leaves Harmony originals untouched. There is no
|
||||
automatic migration from an unrelated live profile. Harmony's Diary catalog
|
||||
entry now opens the Inbe child inside the existing supervised parent window
|
||||
and passes its own Diary folder for a safe import. Old saved native-renderer
|
||||
Inbe files and symlinks. It preserves Harmony entries and photos and binds each legacy folder to the
|
||||
first importing account with an owner marker. There is no automatic migration
|
||||
from an unrelated live profile. Harmony's Diary catalog entry opens the Inbe
|
||||
child inside the existing supervised parent window and passes its own data
|
||||
root as `HARMONY_DATA_ROOT` for a safe import. Old saved native-renderer
|
||||
metadata does not restore a second Diary engine. Inbe's Diary package includes
|
||||
photo attachment, previews, navigation and removal; removal retains original
|
||||
photo bytes. Native and Android use their ordinary file pickers.
|
||||
|
||||
@@ -17,6 +17,8 @@ def buildingAndroidBundle = gradle.startParameter.taskNames.any { it.toLowerCase
|
||||
def kryonDirOverride = (project.findProperty('kryon.dir') ?: System.getenv("KRYON_DIR") ?: '').toString()
|
||||
|
||||
android {
|
||||
useLibrary 'android.test.runner', false
|
||||
useLibrary 'android.test.base', false
|
||||
namespace 'xyz.waozi.inbe'
|
||||
compileSdk 36
|
||||
ndkVersion "28.2.13676358"
|
||||
@@ -53,8 +55,9 @@ android {
|
||||
applicationId "xyz.waozi.inbe"
|
||||
minSdk 21
|
||||
targetSdk 36
|
||||
versionCode 157
|
||||
versionName "2.1.20"
|
||||
testInstrumentationRunner "android.test.InstrumentationTestRunner"
|
||||
versionCode 160
|
||||
versionName "2.1.23"
|
||||
manifestPlaceholders = [
|
||||
inbeAppLabel: "Inner Breeze",
|
||||
inbeUsesCleartextTraffic: "false"
|
||||
|
||||
@@ -0,0 +1,87 @@
|
||||
package xyz.waozi.inbe;
|
||||
|
||||
import android.content.Intent;
|
||||
import android.os.SystemClock;
|
||||
import android.test.InstrumentationTestCase;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.WindowInsets;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import java.lang.reflect.Field;
|
||||
|
||||
/** Runs only in the disposable 390x844 Lumi profile prepared by the harness. */
|
||||
public class LumiKeyboardTest extends InstrumentationTestCase {
|
||||
private void awaitKeyboard(MainActivity activity, boolean visible) {
|
||||
boolean[] actual = { !visible };
|
||||
long deadline = SystemClock.uptimeMillis() + 7000;
|
||||
while (actual[0] != visible && SystemClock.uptimeMillis() < deadline) {
|
||||
getInstrumentation().runOnMainSync(() -> {
|
||||
WindowInsets insets = activity.getWindow().getDecorView().getRootWindowInsets();
|
||||
actual[0] = insets != null && insets.isVisible(WindowInsets.Type.ime());
|
||||
});
|
||||
SystemClock.sleep(100);
|
||||
}
|
||||
assertEquals("Keyboard visibility", visible, actual[0]);
|
||||
}
|
||||
|
||||
private void tap(int x, int y) {
|
||||
long now = SystemClock.uptimeMillis();
|
||||
MotionEvent down = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, x, y, 0);
|
||||
getInstrumentation().sendPointerSync(down);
|
||||
down.recycle();
|
||||
SystemClock.sleep(100);
|
||||
MotionEvent up = MotionEvent.obtain(now, SystemClock.uptimeMillis(), MotionEvent.ACTION_UP, x, y, 0);
|
||||
getInstrumentation().sendPointerSync(up);
|
||||
up.recycle();
|
||||
SystemClock.sleep(500);
|
||||
}
|
||||
|
||||
public void testFirstFocusSwipeTextReachesNativeLumi() throws Exception {
|
||||
Intent launch = new Intent(getInstrumentation().getTargetContext(), MainActivity.class);
|
||||
launch.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
MainActivity activity = (MainActivity)getInstrumentation().startActivitySync(launch);
|
||||
SystemClock.sleep(4000);
|
||||
tap(80, 715);
|
||||
Field inputField = MainActivity.class.getDeclaredField("textInputView");
|
||||
inputField.setAccessible(true);
|
||||
TextInputView input = (TextInputView)inputField.get(activity);
|
||||
Field target = TextInputView.class.getDeclaredField("target");
|
||||
target.setAccessible(true);
|
||||
assertTrue("Native Lumi field did not acquire the IME", target.getLong(input) > 0);
|
||||
getInstrumentation().runOnMainSync(() -> {
|
||||
assertTrue(input.hasFocus());
|
||||
InputMethodManager manager = (InputMethodManager)activity.getSystemService(MainActivity.INPUT_METHOD_SERVICE);
|
||||
assertTrue(manager.isActive(input));
|
||||
InputConnection connection = input.onCreateInputConnection(new EditorInfo());
|
||||
assertNotNull(connection);
|
||||
connection.beginBatchEdit();
|
||||
assertTrue(connection.setComposingText("hel", 1));
|
||||
assertTrue(connection.setComposingText("hello", 1));
|
||||
assertTrue(connection.commitText("hello 水😀", 1));
|
||||
connection.endBatchEdit();
|
||||
});
|
||||
Field revision = TextInputView.class.getDeclaredField("revision");
|
||||
revision.setAccessible(true);
|
||||
long sent = revision.getLong(input);
|
||||
Field acknowledged = TextInputView.class.getDeclaredField("acknowledgedRevision");
|
||||
acknowledged.setAccessible(true);
|
||||
long deadline = SystemClock.uptimeMillis() + 7000;
|
||||
while (acknowledged.getLong(input) < sent && SystemClock.uptimeMillis() < deadline) {
|
||||
SystemClock.sleep(100);
|
||||
}
|
||||
assertEquals("Native widget did not acknowledge the IME edit", sent, acknowledged.getLong(input));
|
||||
getInstrumentation().runOnMainSync(() -> assertEquals("hello 水😀", input.getText().toString()));
|
||||
awaitKeyboard(activity, true);
|
||||
getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_BACK);
|
||||
awaitKeyboard(activity, false);
|
||||
tap(80, 715);
|
||||
awaitKeyboard(activity, true);
|
||||
getInstrumentation().runOnMainSync(() -> {
|
||||
assertTrue("Lumi did not regain the editor", input.hasFocus());
|
||||
assertEquals("Dismissal changed the draft", "hello 水😀", input.getText().toString());
|
||||
});
|
||||
assertFalse(activity.isFinishing());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,199 @@
|
||||
package xyz.waozi.inbe;
|
||||
|
||||
import android.accessibilityservice.AccessibilityServiceInfo;
|
||||
import android.content.Intent;
|
||||
import android.graphics.Rect;
|
||||
import android.os.Build;
|
||||
import android.os.ParcelFileDescriptor;
|
||||
import android.os.SystemClock;
|
||||
import android.test.InstrumentationTestCase;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.InputDevice;
|
||||
import android.view.MotionEvent;
|
||||
import android.view.WindowInsets;
|
||||
import android.view.accessibility.AccessibilityNodeInfo;
|
||||
import android.view.accessibility.AccessibilityWindowInfo;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import java.lang.reflect.Field;
|
||||
import java.io.ByteArrayOutputStream;
|
||||
import java.io.InputStream;
|
||||
|
||||
/** Physical Pixel check: never sends a message and restores the original draft. */
|
||||
public class PixelLumiKeyboardTest extends InstrumentationTestCase {
|
||||
private void pointer(int action, long start, float x, float y) {
|
||||
AccessibilityNodeInfo root = getInstrumentation().getUiAutomation().getRootInActiveWindow();
|
||||
assertNotNull("No foreground window for keyboard check", root);
|
||||
String owner = String.valueOf(root.getPackageName());
|
||||
root.recycle();
|
||||
assertTrue("Another app took the foreground; stopping input",
|
||||
owner.equals("xyz.waozi.inbe.debug") || owner.equals("com.google.android.inputmethod.latin"));
|
||||
MotionEvent event = MotionEvent.obtain(start, SystemClock.uptimeMillis(), action, x, y, 0);
|
||||
event.setSource(InputDevice.SOURCE_TOUCHSCREEN);
|
||||
try {
|
||||
assertTrue("Keyboard touch was rejected", getInstrumentation().getUiAutomation().injectInputEvent(event, true));
|
||||
} finally {
|
||||
event.recycle();
|
||||
}
|
||||
}
|
||||
|
||||
private void glide(Rect first, Rect second) throws Exception {
|
||||
AccessibilityNodeInfo root = getInstrumentation().getUiAutomation().getRootInActiveWindow();
|
||||
assertNotNull("No foreground window for Gboard check", root);
|
||||
String owner = String.valueOf(root.getPackageName());
|
||||
root.recycle();
|
||||
assertTrue("Another app took the foreground; stopping input",
|
||||
owner.equals("xyz.waozi.inbe.debug") || owner.equals("com.google.android.inputmethod.latin"));
|
||||
String command = "input touchscreen swipe " + first.centerX() + " " + first.centerY() +
|
||||
" " + second.centerX() + " " + second.centerY() + " 400";
|
||||
ParcelFileDescriptor pipe = getInstrumentation().getUiAutomation().executeShellCommand(command);
|
||||
ByteArrayOutputStream output = new ByteArrayOutputStream();
|
||||
try (InputStream stream = new ParcelFileDescriptor.AutoCloseInputStream(pipe)) {
|
||||
byte[] buffer = new byte[1024];
|
||||
int count;
|
||||
while ((count = stream.read(buffer)) != -1) {
|
||||
output.write(buffer, 0, count);
|
||||
}
|
||||
}
|
||||
assertEquals("Shell keyboard gesture failed", "", output.toString("UTF-8").trim());
|
||||
}
|
||||
|
||||
private void focus(MainActivity activity) {
|
||||
int[] location = new int[2];
|
||||
getInstrumentation().runOnMainSync(() -> {
|
||||
WindowInsets insets = activity.getWindow().getDecorView().getRootWindowInsets();
|
||||
int bottom = insets.getInsets(WindowInsets.Type.navigationBars()).bottom;
|
||||
float density = activity.getResources().getDisplayMetrics().density;
|
||||
location[0] = activity.getWindow().getDecorView().getWidth() / 5;
|
||||
location[1] = activity.getWindow().getDecorView().getHeight() - bottom - Math.round(92 * density);
|
||||
});
|
||||
long start = SystemClock.uptimeMillis();
|
||||
pointer(MotionEvent.ACTION_DOWN, start, location[0], location[1]);
|
||||
SystemClock.sleep(250);
|
||||
pointer(MotionEvent.ACTION_UP, start, location[0], location[1]);
|
||||
SystemClock.sleep(1500);
|
||||
}
|
||||
|
||||
private void openLumi(MainActivity activity) {
|
||||
int[] point = new int[2];
|
||||
getInstrumentation().runOnMainSync(() -> {
|
||||
WindowInsets insets = activity.getWindow().getDecorView().getRootWindowInsets();
|
||||
int bottom = insets.getInsets(WindowInsets.Type.navigationBars()).bottom;
|
||||
float density = activity.getResources().getDisplayMetrics().density;
|
||||
point[0] = activity.getWindow().getDecorView().getWidth() / 12;
|
||||
point[1] = activity.getWindow().getDecorView().getHeight() - bottom - Math.round(14 * density);
|
||||
});
|
||||
long start = SystemClock.uptimeMillis();
|
||||
pointer(MotionEvent.ACTION_DOWN, start, point[0], point[1]);
|
||||
SystemClock.sleep(250);
|
||||
pointer(MotionEvent.ACTION_UP, start, point[0], point[1]);
|
||||
SystemClock.sleep(1500);
|
||||
}
|
||||
|
||||
private Rect findKey(AccessibilityNodeInfo node, String letter) {
|
||||
if (node == null) return null;
|
||||
CharSequence text = node.getText();
|
||||
CharSequence description = node.getContentDescription();
|
||||
if ((text != null && letter.equalsIgnoreCase(text.toString())) ||
|
||||
(description != null && letter.equalsIgnoreCase(description.toString()))) {
|
||||
Rect bounds = new Rect();
|
||||
node.getBoundsInScreen(bounds);
|
||||
if (!bounds.isEmpty()) return bounds;
|
||||
}
|
||||
for (int index = 0; index < node.getChildCount(); index++) {
|
||||
AccessibilityNodeInfo child = node.getChild(index);
|
||||
Rect result = findKey(child, letter);
|
||||
if (child != null) child.recycle();
|
||||
if (result != null) return result;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private Rect key(String letter) {
|
||||
for (AccessibilityWindowInfo window : getInstrumentation().getUiAutomation().getWindows()) {
|
||||
if (window.getType() != AccessibilityWindowInfo.TYPE_INPUT_METHOD) continue;
|
||||
AccessibilityNodeInfo root = window.getRoot();
|
||||
if (root == null) continue;
|
||||
Rect result = null;
|
||||
if ("com.google.android.inputmethod.latin".contentEquals(root.getPackageName())) {
|
||||
result = findKey(root, letter);
|
||||
}
|
||||
root.recycle();
|
||||
if (result != null) return result;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private void acknowledged(TextInputView input) throws Exception {
|
||||
Field sent = TextInputView.class.getDeclaredField("revision");
|
||||
Field accepted = TextInputView.class.getDeclaredField("acknowledgedRevision");
|
||||
sent.setAccessible(true);
|
||||
accepted.setAccessible(true);
|
||||
long deadline = SystemClock.uptimeMillis() + 7000;
|
||||
while (accepted.getLong(input) < sent.getLong(input) && SystemClock.uptimeMillis() < deadline) {
|
||||
SystemClock.sleep(100);
|
||||
}
|
||||
assertEquals("Native Lumi did not apply the keyboard edit", sent.getLong(input), accepted.getLong(input));
|
||||
}
|
||||
|
||||
public void testGboardSwipeAndReopeningOnPixel() throws Exception {
|
||||
assertEquals("This check is only for the authorized Pixel", "Pixel 3a", Build.MODEL);
|
||||
AccessibilityServiceInfo service = getInstrumentation().getUiAutomation().getServiceInfo();
|
||||
service.flags |= AccessibilityServiceInfo.FLAG_RETRIEVE_INTERACTIVE_WINDOWS;
|
||||
getInstrumentation().getUiAutomation().setServiceInfo(service);
|
||||
Intent launch = new Intent(getInstrumentation().getTargetContext(), MainActivity.class);
|
||||
launch.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||
MainActivity activity = (MainActivity)getInstrumentation().startActivitySync(launch);
|
||||
Field ready = MainActivity.class.getDeclaredField("firstFrameReady");
|
||||
ready.setAccessible(true);
|
||||
long deadline = SystemClock.uptimeMillis() + 15000;
|
||||
while (!ready.getBoolean(activity) && SystemClock.uptimeMillis() < deadline) {
|
||||
SystemClock.sleep(100);
|
||||
}
|
||||
assertTrue("Native first frame did not finish", ready.getBoolean(activity));
|
||||
openLumi(activity);
|
||||
focus(activity);
|
||||
Field field = MainActivity.class.getDeclaredField("textInputView");
|
||||
field.setAccessible(true);
|
||||
TextInputView input = (TextInputView)field.get(activity);
|
||||
String[] original = new String[1];
|
||||
InputConnection[] connection = new InputConnection[1];
|
||||
boolean[] focused = new boolean[1];
|
||||
getInstrumentation().runOnMainSync(() -> {
|
||||
focused[0] = input.hasFocus();
|
||||
original[0] = input.getText().toString();
|
||||
connection[0] = input.onCreateInputConnection(new EditorInfo());
|
||||
});
|
||||
assertTrue("Lumi did not focus its editor", focused[0]);
|
||||
assertNotNull(connection[0]);
|
||||
getInstrumentation().runOnMainSync(() -> {
|
||||
connection[0].setSelection(0, input.length());
|
||||
connection[0].commitText("", 1);
|
||||
});
|
||||
try {
|
||||
acknowledged(input);
|
||||
Rect first = key("w");
|
||||
Rect second = key("e");
|
||||
assertNotNull("Gboard W key unavailable", first);
|
||||
assertNotNull("Gboard E key unavailable", second);
|
||||
glide(first, second);
|
||||
SystemClock.sleep(1500);
|
||||
boolean[] typed = new boolean[1];
|
||||
getInstrumentation().runOnMainSync(() -> typed[0] = input.length() > 0);
|
||||
assertTrue("Gboard glide did not produce text", typed[0]);
|
||||
acknowledged(input);
|
||||
getInstrumentation().sendKeyDownUpSync(KeyEvent.KEYCODE_BACK);
|
||||
SystemClock.sleep(1000);
|
||||
focus(activity);
|
||||
assertNotNull("Keyboard did not reopen", key("w"));
|
||||
assertFalse("Activity closed during keyboard use", activity.isFinishing());
|
||||
} finally {
|
||||
getInstrumentation().runOnMainSync(() -> {
|
||||
InputConnection current = input.onCreateInputConnection(new EditorInfo());
|
||||
current.setSelection(0, input.length());
|
||||
current.commitText(original[0], 1);
|
||||
});
|
||||
acknowledged(input);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,82 @@
|
||||
package xyz.waozi.inbe;
|
||||
|
||||
import android.test.InstrumentationTestCase;
|
||||
import android.view.inputmethod.BaseInputConnection;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
public class TextInputViewTest extends InstrumentationTestCase {
|
||||
private static byte[] bytes(String value) {
|
||||
return value.getBytes(StandardCharsets.UTF_8);
|
||||
}
|
||||
|
||||
private static final class Changes implements TextInputView.Listener {
|
||||
String value;
|
||||
long revision;
|
||||
int cursor;
|
||||
int anchor;
|
||||
int count;
|
||||
@Override public void changed(long target, long revision, byte[] value, int cursor, int anchor) {
|
||||
this.value = new String(value, StandardCharsets.UTF_8);
|
||||
this.revision = revision;
|
||||
this.cursor = cursor;
|
||||
this.anchor = anchor;
|
||||
count++;
|
||||
}
|
||||
@Override public void enter() {}
|
||||
}
|
||||
|
||||
public void testSwipeCompositionCorrectionsAndUnicode() {
|
||||
getInstrumentation().runOnMainSync(() -> {
|
||||
Changes changes = new Changes();
|
||||
TextInputView view = new TextInputView(getInstrumentation().getTargetContext(), changes);
|
||||
view.update(1, 0, bytes("prefix "), 7, 7, false, true);
|
||||
InputConnection connection = view.onCreateInputConnection(new EditorInfo());
|
||||
assertNotNull(connection);
|
||||
connection.beginBatchEdit();
|
||||
assertTrue(connection.setComposingText("hel", 1));
|
||||
assertTrue(connection.setComposingText("hello", 1));
|
||||
connection.endBatchEdit();
|
||||
assertEquals("prefix hello", changes.value);
|
||||
assertEquals(12, changes.cursor);
|
||||
long acknowledged = changes.revision;
|
||||
view.update(1, acknowledged, bytes(changes.value), 12, 12, false, true);
|
||||
assertTrue(BaseInputConnection.getComposingSpanStart(view.getText()) >= 0);
|
||||
assertTrue(connection.commitText("hello ", 1));
|
||||
assertEquals("prefix hello ", changes.value);
|
||||
assertTrue(connection.commitText("水😀", 1));
|
||||
assertEquals("prefix hello 水😀", changes.value);
|
||||
assertEquals(20, changes.cursor);
|
||||
assertTrue(connection.deleteSurroundingTextInCodePoints(1, 0));
|
||||
assertEquals("prefix hello 水", changes.value);
|
||||
assertEquals(16, changes.cursor);
|
||||
assertTrue(connection.setSelection(0, 6));
|
||||
assertTrue(connection.commitText("start", 1));
|
||||
assertEquals("start hello 水", changes.value);
|
||||
assertEquals(5, changes.cursor);
|
||||
assertTrue(connection.commitText("\n", 1));
|
||||
assertEquals("start\n hello 水", changes.value);
|
||||
});
|
||||
}
|
||||
|
||||
public void testStaleAcknowledgementAndOldConnectionCannotReplaceNewField() {
|
||||
getInstrumentation().runOnMainSync(() -> {
|
||||
Changes changes = new Changes();
|
||||
TextInputView view = new TextInputView(getInstrumentation().getTargetContext(), changes);
|
||||
view.update(10, 0, bytes(""), 0, 0, false, true);
|
||||
InputConnection old = view.onCreateInputConnection(new EditorInfo());
|
||||
assertTrue(old.commitText("fresh", 1));
|
||||
view.update(10, 0, bytes("stale"), 5, 5, false, true);
|
||||
assertEquals("fresh", view.getText().toString());
|
||||
view.update(11, 0, bytes("saved"), 5, 5, false, true);
|
||||
assertFalse(old.commitText("late", 1));
|
||||
assertEquals("saved", view.getText().toString());
|
||||
InputConnection current = view.onCreateInputConnection(new EditorInfo());
|
||||
assertTrue(current.commitText(" draft", 1));
|
||||
assertEquals("saved draft", changes.value);
|
||||
view.deactivate();
|
||||
assertFalse(current.commitText("after blur", 1));
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -87,6 +87,10 @@ file(GLOB_RECURSE APP_LIBRARY_ZIRAN_SOURCES CONFIGURE_DEPENDS
|
||||
"${ZIRAN_DIR}/std/*.zi" "${REPO_ROOT}/build/packages/daochi-client/*.zi")
|
||||
set(APP_ZIRAN_DEFINES --define ANDROID_BUILD)
|
||||
set(APP_ZIRAN_CHECK_DEFINES "ANDROID_BUILD")
|
||||
if(CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
list(APPEND APP_ZIRAN_DEFINES --define ANDROID_DEBUG)
|
||||
string(APPEND APP_ZIRAN_CHECK_DEFINES " ANDROID_DEBUG")
|
||||
endif()
|
||||
if(ANDROID_ABI STREQUAL "arm64-v8a")
|
||||
set(APP_ZIRAN_ARCH __aarch64__)
|
||||
elseif(ANDROID_ABI STREQUAL "armeabi-v7a")
|
||||
|
||||
@@ -3,6 +3,8 @@
|
||||
# Android loads the NativeActivity entry and registers JNI methods.
|
||||
ANativeActivity_onCreate;
|
||||
JNI_OnLoad;
|
||||
# AndroidSurface resolves the statically linked raylib window state.
|
||||
CORE;
|
||||
local:
|
||||
*;
|
||||
};
|
||||
@@ -54,6 +54,8 @@ public class MainActivity extends NativeActivity {
|
||||
private FrameLayout startupView;
|
||||
private boolean firstFrameReady;
|
||||
private long startupStarted;
|
||||
private TextInputView textInputView;
|
||||
private boolean textInputVisible;
|
||||
|
||||
private void showStartup() {
|
||||
startupView = new FrameLayout(this);
|
||||
@@ -158,14 +160,6 @@ public class MainActivity extends NativeActivity {
|
||||
private boolean pendingDebugDonationReminder = false;
|
||||
private int pendingDebugDonationReminderRetries = 0;
|
||||
private final Handler mainHandler = new Handler(Looper.getMainLooper());
|
||||
private final Runnable checkSessionIndicator = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (backgroundExecutionActive) {
|
||||
syncLifecycleState("indicator check");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private native void nativeSetInsets(int left, int top, int right, int bottom, int imeBottom,
|
||||
int cutoutLeft, int cutoutTop, int cutoutRight, int cutoutBottom);
|
||||
@@ -182,6 +176,7 @@ public class MainActivity extends NativeActivity {
|
||||
private native void nativeTextInputCommit(int codepoint);
|
||||
private native void nativeTextInputBackspace();
|
||||
private native void nativeTextInputEnter();
|
||||
private native void nativeTextInputState(long target, long revision, byte[] value, int cursor, int anchor);
|
||||
private native void nativeInvalidateGraphicsResources();
|
||||
private native boolean nativeStartPractice(int practiceId);
|
||||
private native boolean nativeDebugImportMusicForPractice(String path, int practiceId);
|
||||
@@ -263,21 +258,35 @@ public class MainActivity extends NativeActivity {
|
||||
@Override
|
||||
public void run() {
|
||||
InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||
View view = getWindow() != null ? getWindow().getDecorView() : null;
|
||||
View view = textInputView;
|
||||
if (imm == null || view == null) return;
|
||||
|
||||
textInputVisible = visible;
|
||||
if (visible) {
|
||||
view.requestFocus();
|
||||
imm.showSoftInput(view, InputMethodManager.SHOW_IMPLICIT);
|
||||
} else {
|
||||
imm.hideSoftInputFromWindow(view.getWindowToken(), 0);
|
||||
textInputView.deactivate();
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
public void setTextInputState(final long target, final long revision, final byte[] value,
|
||||
final int cursor, final int anchor,
|
||||
final boolean secure, final boolean multiline) {
|
||||
runOnUiThread(() -> {
|
||||
if (textInputView != null && !isFinishing() && !isDestroyed()) {
|
||||
textInputView.update(target, revision, value, cursor, anchor, secure, multiline);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean dispatchKeyEvent(KeyEvent event) {
|
||||
if (textInputVisible && textInputView != null && textInputView.hasFocus()) {
|
||||
return super.dispatchKeyEvent(event);
|
||||
}
|
||||
if (event != null && event.getAction() == KeyEvent.ACTION_DOWN) {
|
||||
int keyCode = event.getKeyCode();
|
||||
if (keyCode == KeyEvent.KEYCODE_DEL) {
|
||||
@@ -787,10 +796,6 @@ public class MainActivity extends NativeActivity {
|
||||
|
||||
public void acquireWakeLock() {
|
||||
requestNotificationPermissionIfNeeded();
|
||||
if (!SessionForegroundService.canShowIndicator(this)) {
|
||||
Log.w(TAG, "Session indicator unavailable; background service not started");
|
||||
return;
|
||||
}
|
||||
Log.d(TAG, "Starting session foreground service");
|
||||
Intent intent = new Intent(this, SessionForegroundService.class);
|
||||
intent.setAction(SessionForegroundService.ACTION_START);
|
||||
@@ -861,6 +866,15 @@ public class MainActivity extends NativeActivity {
|
||||
configureSystemBars();
|
||||
super.onCreate(savedInstanceState);
|
||||
configureSystemBars();
|
||||
textInputView = new TextInputView(this, new TextInputView.Listener() {
|
||||
@Override public void changed(long target, long revision, byte[] value, int cursor, int anchor) {
|
||||
nativeTextInputState(target, revision, value, cursor, anchor);
|
||||
}
|
||||
@Override public void enter() {
|
||||
nativeTextInputEnter();
|
||||
}
|
||||
});
|
||||
addContentView(textInputView, new ViewGroup.LayoutParams(1, 1));
|
||||
showStartup();
|
||||
|
||||
synchronized (cachedInsets) {
|
||||
@@ -1102,11 +1116,6 @@ public class MainActivity extends NativeActivity {
|
||||
if (activityPaused && !backgroundExecutionActive) {
|
||||
stopService(new Intent(this, SessionForegroundService.class));
|
||||
}
|
||||
|
||||
mainHandler.removeCallbacks(checkSessionIndicator);
|
||||
if (backgroundExecutionActive) {
|
||||
mainHandler.postDelayed(checkSessionIndicator, 2000);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -1163,7 +1172,6 @@ public class MainActivity extends NativeActivity {
|
||||
protected void onDestroy() {
|
||||
httpTransport.close();
|
||||
NotificationPresence.setActivityVisible(false);
|
||||
mainHandler.removeCallbacks(checkSessionIndicator);
|
||||
super.onDestroy();
|
||||
Log.d(TAG, "onDestroy called - releasing wake lock");
|
||||
allowScreenOff();
|
||||
|
||||
@@ -61,10 +61,10 @@ public class SessionForegroundService extends Service {
|
||||
}
|
||||
|
||||
private void startSession() {
|
||||
// The session keeps running even when notifications are disabled:
|
||||
// Android still runs the foreground service and only hides its card.
|
||||
if (!canShowIndicator(this)) {
|
||||
Log.w(TAG, "Session indicator unavailable; refusing background service");
|
||||
stopSelf();
|
||||
return;
|
||||
Log.w(TAG, "Session notification hidden; continuing in the background");
|
||||
}
|
||||
currentStatusText = "";
|
||||
Notification notification = buildNotification();
|
||||
|
||||
@@ -0,0 +1,259 @@
|
||||
package xyz.waozi.inbe;
|
||||
|
||||
import android.content.Context;
|
||||
import android.text.Editable;
|
||||
import android.text.InputType;
|
||||
import android.text.TextWatcher;
|
||||
import android.view.KeyEvent;
|
||||
import android.view.View;
|
||||
import android.view.inputmethod.EditorInfo;
|
||||
import android.view.inputmethod.InputConnection;
|
||||
import android.view.inputmethod.InputConnectionWrapper;
|
||||
import android.view.inputmethod.InputMethodManager;
|
||||
import android.view.inputmethod.TextAttribute;
|
||||
import android.widget.EditText;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
|
||||
/** The IME's editor. Kryon renders and validates the actual focused field. */
|
||||
final class TextInputView extends EditText {
|
||||
interface Listener {
|
||||
void changed(long target, long revision, byte[] value, int cursor, int anchor);
|
||||
void enter();
|
||||
}
|
||||
|
||||
private final Listener listener;
|
||||
private long target;
|
||||
private long revision;
|
||||
private long acknowledgedRevision;
|
||||
private boolean restoring;
|
||||
private int batchDepth;
|
||||
private boolean dirty;
|
||||
private boolean secure;
|
||||
private boolean multiline;
|
||||
|
||||
TextInputView(Context context, Listener listener) {
|
||||
super(context);
|
||||
this.listener = listener;
|
||||
setFocusableInTouchMode(true);
|
||||
setBackground(null);
|
||||
setPadding(0, 0, 0, 0);
|
||||
setAlpha(0);
|
||||
setCursorVisible(false);
|
||||
setImportantForAccessibility(View.IMPORTANT_FOR_ACCESSIBILITY_NO);
|
||||
setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI | EditorInfo.IME_FLAG_NO_FULLSCREEN);
|
||||
addTextChangedListener(new TextWatcher() {
|
||||
@Override public void beforeTextChanged(CharSequence text, int start, int count, int after) {}
|
||||
@Override public void onTextChanged(CharSequence text, int start, int before, int count) {}
|
||||
@Override public void afterTextChanged(Editable text) { publish(); }
|
||||
});
|
||||
setOnEditorActionListener((view, action, event) -> {
|
||||
if (!multiline && action != EditorInfo.IME_NULL) {
|
||||
listener.enter();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
}
|
||||
|
||||
private static int byteOffset(String value, int characterOffset) {
|
||||
int offset = Math.max(0, Math.min(characterOffset, value.length()));
|
||||
if (offset > 0 && offset < value.length() && Character.isLowSurrogate(value.charAt(offset))) {
|
||||
offset--;
|
||||
}
|
||||
return value.substring(0, offset).getBytes(StandardCharsets.UTF_8).length;
|
||||
}
|
||||
|
||||
private static int characterOffset(String value, int byteOffset) {
|
||||
int bytes = 0;
|
||||
int offset = 0;
|
||||
while (offset < value.length() && bytes < byteOffset) {
|
||||
int point = value.codePointAt(offset);
|
||||
int width = point < 128 ? 1 : point < 2048 ? 2 : point < 65536 ? 3 : 4;
|
||||
if (bytes + width > byteOffset) {
|
||||
break;
|
||||
}
|
||||
bytes += width;
|
||||
offset += Character.charCount(point);
|
||||
}
|
||||
return offset;
|
||||
}
|
||||
|
||||
private void publish() {
|
||||
if (restoring || target == 0 || listener == null) {
|
||||
return;
|
||||
}
|
||||
if (batchDepth > 0) {
|
||||
dirty = true;
|
||||
return;
|
||||
}
|
||||
String value = getText().toString();
|
||||
revision++;
|
||||
listener.changed(target, revision, value.getBytes(StandardCharsets.UTF_8),
|
||||
byteOffset(value, getSelectionEnd()), byteOffset(value, getSelectionStart()));
|
||||
dirty = false;
|
||||
}
|
||||
|
||||
@Override protected void onSelectionChanged(int start, int end) {
|
||||
super.onSelectionChanged(start, end);
|
||||
publish();
|
||||
}
|
||||
|
||||
void update(long target, long acknowledged, byte[] bytes, int cursor, int anchor,
|
||||
boolean secure, boolean multiline) {
|
||||
boolean changedTarget = this.target != target;
|
||||
if (!changedTarget && acknowledged < revision) {
|
||||
return;
|
||||
}
|
||||
String value = new String(bytes, StandardCharsets.UTF_8);
|
||||
boolean changedType = this.secure != secure || this.multiline != multiline;
|
||||
restoring = true;
|
||||
try {
|
||||
this.target = target;
|
||||
this.revision = acknowledged;
|
||||
this.acknowledgedRevision = acknowledged;
|
||||
if (changedTarget) {
|
||||
batchDepth = 0;
|
||||
}
|
||||
if (changedType || changedTarget) {
|
||||
int type = InputType.TYPE_CLASS_TEXT;
|
||||
if (secure) {
|
||||
type |= InputType.TYPE_TEXT_VARIATION_PASSWORD;
|
||||
} else {
|
||||
type |= InputType.TYPE_TEXT_FLAG_AUTO_CORRECT | InputType.TYPE_TEXT_FLAG_CAP_SENTENCES;
|
||||
}
|
||||
if (multiline) {
|
||||
type |= InputType.TYPE_TEXT_FLAG_MULTI_LINE;
|
||||
}
|
||||
setInputType(type);
|
||||
setImeOptions(EditorInfo.IME_FLAG_NO_EXTRACT_UI | EditorInfo.IME_FLAG_NO_FULLSCREEN
|
||||
| (secure ? EditorInfo.IME_FLAG_NO_PERSONALIZED_LEARNING : 0)
|
||||
| (multiline ? EditorInfo.IME_ACTION_NONE : EditorInfo.IME_ACTION_DONE));
|
||||
this.secure = secure;
|
||||
this.multiline = multiline;
|
||||
}
|
||||
// Preserve composing spans when acknowledging the same text.
|
||||
if (!getText().toString().equals(value) || changedTarget) {
|
||||
setText(value);
|
||||
}
|
||||
int start = characterOffset(value, anchor);
|
||||
int end = characterOffset(value, cursor);
|
||||
if (getSelectionStart() != start || getSelectionEnd() != end) {
|
||||
setSelection(start, end);
|
||||
}
|
||||
dirty = false;
|
||||
} finally {
|
||||
restoring = false;
|
||||
}
|
||||
if (changedTarget || changedType) {
|
||||
InputMethodManager manager = (InputMethodManager)getContext().getSystemService(Context.INPUT_METHOD_SERVICE);
|
||||
if (manager != null && hasFocus()) {
|
||||
manager.restartInput(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void deactivate() {
|
||||
target = 0;
|
||||
dirty = false;
|
||||
clearFocus();
|
||||
}
|
||||
|
||||
@Override public InputConnection onCreateInputConnection(EditorInfo info) {
|
||||
InputConnection connection = super.onCreateInputConnection(info);
|
||||
if (connection == null) {
|
||||
return null;
|
||||
}
|
||||
final long connectionTarget = target;
|
||||
return new InputConnectionWrapper(connection, false) {
|
||||
private boolean current() {
|
||||
return target != 0 && target == connectionTarget;
|
||||
}
|
||||
|
||||
@Override public boolean beginBatchEdit() {
|
||||
if (!current()) {
|
||||
return false;
|
||||
}
|
||||
batchDepth++;
|
||||
return super.beginBatchEdit();
|
||||
}
|
||||
|
||||
@Override public boolean endBatchEdit() {
|
||||
if (!current()) {
|
||||
return false;
|
||||
}
|
||||
boolean result = super.endBatchEdit();
|
||||
if (batchDepth > 0) {
|
||||
batchDepth--;
|
||||
}
|
||||
if (batchDepth == 0 && dirty) {
|
||||
publish();
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
@Override public boolean sendKeyEvent(KeyEvent event) {
|
||||
// EditText owns text keys; Activity must not also queue them.
|
||||
return current() && super.sendKeyEvent(event);
|
||||
}
|
||||
|
||||
@Override public boolean commitText(CharSequence text, int cursor) {
|
||||
return current() && super.commitText(text, cursor);
|
||||
}
|
||||
|
||||
@Override public boolean commitText(CharSequence text, int cursor, TextAttribute attributes) {
|
||||
return commitText(text, cursor);
|
||||
}
|
||||
|
||||
@Override public boolean setComposingText(CharSequence text, int cursor) {
|
||||
return current() && super.setComposingText(text, cursor);
|
||||
}
|
||||
|
||||
@Override public boolean setComposingText(CharSequence text, int cursor, TextAttribute attributes) {
|
||||
return setComposingText(text, cursor);
|
||||
}
|
||||
|
||||
@Override public boolean setComposingRegion(int start, int end) {
|
||||
return current() && super.setComposingRegion(start, end);
|
||||
}
|
||||
|
||||
@Override public boolean setComposingRegion(int start, int end, TextAttribute attributes) {
|
||||
return setComposingRegion(start, end);
|
||||
}
|
||||
|
||||
@Override public boolean finishComposingText() {
|
||||
return current() && super.finishComposingText();
|
||||
}
|
||||
|
||||
@Override public boolean setSelection(int start, int end) {
|
||||
return current() && super.setSelection(start, end);
|
||||
}
|
||||
|
||||
@Override public boolean deleteSurroundingText(int before, int after) {
|
||||
return current() && super.deleteSurroundingText(before, after);
|
||||
}
|
||||
|
||||
@Override public boolean deleteSurroundingTextInCodePoints(int before, int after) {
|
||||
return current() && super.deleteSurroundingTextInCodePoints(before, after);
|
||||
}
|
||||
|
||||
@Override public boolean performEditorAction(int action) {
|
||||
return current() && super.performEditorAction(action);
|
||||
}
|
||||
|
||||
@Override public boolean replaceText(int start, int end, CharSequence text,
|
||||
int cursor, TextAttribute attributes) {
|
||||
if (!current()) {
|
||||
return false;
|
||||
}
|
||||
beginBatchEdit();
|
||||
try {
|
||||
finishComposingText();
|
||||
setSelection(start, end);
|
||||
return commitText(text, cursor);
|
||||
} finally {
|
||||
endBatchEdit();
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -12,6 +12,14 @@ GEWOHNHEITEN
|
||||
- Verknüpfe eine Gewohnheit mit einer Übung, dann zählen abgeschlossene Sitzungen automatisch mit.
|
||||
- Eine kurze Stimmungsabfrage nach jeder Übung.
|
||||
|
||||
DEINE APPS
|
||||
- Öffne Lumi, Übungen, Gewohnheiten, Listen und Tagebuch über Apps und halte deine Favoriten griffbereit.
|
||||
- Sammle Pläne in Listen und tägliche Gedanken im Tagebuch.
|
||||
|
||||
LUMI
|
||||
- Bitte Lumi, eine Übung zu starten, eine Aufgabe hinzuzufügen, ins heutige Tagebuch zu schreiben oder das Farbthema zu ändern.
|
||||
- Lokale App-Befehle funktionieren offline. Für verknüpfte Konten sind Online-Gespräche optional mit einem täglichen Kontingent verfügbar.
|
||||
|
||||
DEINE DATEN
|
||||
- Alles wird auf deinem Gerät gespeichert.
|
||||
- Importiere und exportiere deine Daten, oder exportiere Sitzungen als CSV oder zu Health Connect.
|
||||
|
||||
@@ -1 +1 @@
|
||||
Kostenlos: Wim-Hof-Atmung, Meditation und Gewohnheiten. Ohne Werbung und Konto.
|
||||
Atmung, Gewohnheiten, Listen und Tagebuch – gestalte deine App mit Lumi.
|
||||
@@ -0,0 +1,8 @@
|
||||
Changed
|
||||
---
|
||||
- Clearly mark the selected app in navigation and Apps, including while hovering or pressing.
|
||||
Fixed
|
||||
---
|
||||
- Keep text sharp and stable throughout the zoom range.
|
||||
- Keep Appearance labels readable at large zoom by wrapping them above their controls.
|
||||
- Keep the selected navigation shortcut visible when changing apps or zooming on narrow screens.
|
||||
@@ -0,0 +1,12 @@
|
||||
Added
|
||||
---
|
||||
- Minimize a running practice into a small window and keep using the app.
|
||||
Fixed
|
||||
---
|
||||
- Keep Diary opening with existing entries in the same account.
|
||||
- Keep practices and sound running in the background.
|
||||
- Support swipe typing and corrections from Android keyboards.
|
||||
- Stop repeated Lumi chat uploads.
|
||||
- Keep navigation visible on the practice home screen.
|
||||
- Open Lists, Diary and settings faster.
|
||||
- Lumi in Telegram replies in seconds and shows your tasks and habits.
|
||||
@@ -0,0 +1,7 @@
|
||||
Added
|
||||
---
|
||||
- Customize KSS in Appearance with live preview, per-app styles, an inspector, undo, and reset to defaults.
|
||||
- Ask Lumi to read, preview, and save appearance changes while preserving your existing customizations.
|
||||
Fixed
|
||||
---
|
||||
- Keep Telegram as input to Lumi without bot notifications; retain messages, replies and full history in Lumi.
|
||||
@@ -12,6 +12,14 @@ HABITS
|
||||
- Link a habit to a practice, and finished sessions count toward it.
|
||||
- A quick mood check-in after each practice.
|
||||
|
||||
YOUR APPS
|
||||
- Open Lumi, Practices, Habits, Lists and Diary from Apps, and keep your favorites close.
|
||||
- Keep plans in Lists and daily thoughts in Diary.
|
||||
|
||||
LUMI
|
||||
- Ask Lumi to start a practice, add a to-do, write to today’s Diary or change your theme.
|
||||
- Local app commands work offline. Online conversation is optional, with a daily allowance for connected accounts.
|
||||
|
||||
YOUR DATA
|
||||
- Everything is stored on your device.
|
||||
- Import and export your data, or export sessions as CSV or to Health Connect.
|
||||
|
||||
|
After Width: | Height: | Size: 148 KiB |
|
Before Width: | Height: | Size: 309 KiB |
|
After Width: | Height: | Size: 183 KiB |
|
Before Width: | Height: | Size: 199 KiB |
|
After Width: | Height: | Size: 401 KiB |
|
Before Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 251 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 177 KiB |
|
After Width: | Height: | Size: 249 KiB |
|
Before Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 137 KiB |
|
After Width: | Height: | Size: 138 KiB |
|
Before Width: | Height: | Size: 316 KiB |
|
After Width: | Height: | Size: 146 KiB |
|
Before Width: | Height: | Size: 303 KiB |
@@ -0,0 +1,150 @@
|
||||
{
|
||||
"capture_sha256": "a4278c4b52f6a1dd0f6bf199dc83a493100a86fc32733973106fec31d2160849",
|
||||
"source_sha256": "627d81fe891bcfd612f63e89ca92095f1ba73b2aafa17e6e381d93efedd91189",
|
||||
"files": [
|
||||
{
|
||||
"file": "phoneScreenshots/01-apps.png",
|
||||
"sha256": "f3c82b97ff50d31755e100474eb47cf158c3b2dd524b127140278e925a608b0c",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
{
|
||||
"file": "phoneScreenshots/02-lumi-customize.png",
|
||||
"sha256": "d0382b7831539184b4007773a474a402bcf599556a3ca7271eb08d48339f447e",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
{
|
||||
"file": "phoneScreenshots/03-practice-home.png",
|
||||
"sha256": "d626cbff648e4f4c57a0b98d5d62f3875850cfe08826f43b9cb98055f55404d5",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
{
|
||||
"file": "phoneScreenshots/04-sun-salutation.png",
|
||||
"sha256": "ed70eb5adbe78096c9de64e7074bafb7eaa86060c9f4cf5add64ab73f048c266",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
{
|
||||
"file": "phoneScreenshots/05-habits.png",
|
||||
"sha256": "7d4c57e9b44d76098463c077e576eef37cb53ec35f8a146f3dc981300dc13e40",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
{
|
||||
"file": "phoneScreenshots/06-lists.png",
|
||||
"sha256": "d8e2c715d22e0d9a95a955e3f9ed7060f2e24b212256c35e5d9dbdb7b2bdb33c",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
{
|
||||
"file": "phoneScreenshots/07-diary.png",
|
||||
"sha256": "111bd29c939d3769935e0deef6abf08640034d306aac534f05c1ab86a9692de4",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
{
|
||||
"file": "phoneScreenshots/08-appearance.png",
|
||||
"sha256": "dd5971e69d39014df3cfa82f4d9791bc6305ca84d3da2e067b4ba2736ea7290c",
|
||||
"width": 1080,
|
||||
"height": 1920
|
||||
},
|
||||
{
|
||||
"file": "sevenInchScreenshots/01-apps.png",
|
||||
"sha256": "bce3fd56454881dd4f2196dea271ec0b110b61ca4ec47b2339efc3ba161e6c4f",
|
||||
"width": 1920,
|
||||
"height": 1080
|
||||
},
|
||||
{
|
||||
"file": "sevenInchScreenshots/02-lumi-customize.png",
|
||||
"sha256": "c7b1e80a1430f1cd5545f242d113d0b703b49b53f9121dedaa533449ab417a8a",
|
||||
"width": 1920,
|
||||
"height": 1080
|
||||
},
|
||||
{
|
||||
"file": "sevenInchScreenshots/03-practice-home.png",
|
||||
"sha256": "5635551cefbb23225027e77b7799fabaf90173cb5571c8e408b8cfef3aa6e3b8",
|
||||
"width": 1920,
|
||||
"height": 1080
|
||||
},
|
||||
{
|
||||
"file": "sevenInchScreenshots/04-sun-salutation.png",
|
||||
"sha256": "af74b4fe19d638447a2d3e4412af41cede6ad8d0f4f619239a5084ea4450ae68",
|
||||
"width": 1920,
|
||||
"height": 1080
|
||||
},
|
||||
{
|
||||
"file": "sevenInchScreenshots/05-habits.png",
|
||||
"sha256": "884cae695a4b39ce3b6279ab61d28adcacc50c0b2a6778b7cf2444d59fbffde0",
|
||||
"width": 1920,
|
||||
"height": 1080
|
||||
},
|
||||
{
|
||||
"file": "sevenInchScreenshots/06-lists.png",
|
||||
"sha256": "c6704993c9ee57ba101f7cfb0a21964affcf3c858cc0a1cf5db8e615747adce4",
|
||||
"width": 1920,
|
||||
"height": 1080
|
||||
},
|
||||
{
|
||||
"file": "sevenInchScreenshots/07-diary.png",
|
||||
"sha256": "88aff68b18ba1af54b4b7128e283b2fa327b7f1619307b86a0783c8f79fa582b",
|
||||
"width": 1920,
|
||||
"height": 1080
|
||||
},
|
||||
{
|
||||
"file": "sevenInchScreenshots/08-appearance.png",
|
||||
"sha256": "5df14c3f024bce5a39f52c4452765d3e3d5f6ec4e085f7dca75dc496f9da7440",
|
||||
"width": 1920,
|
||||
"height": 1080
|
||||
},
|
||||
{
|
||||
"file": "tenInchScreenshots/01-apps.png",
|
||||
"sha256": "31ec41efc112eb6ca3c30b80e94b46ffd866c7cc4042e752e5d5fedc7fecca83",
|
||||
"width": 2560,
|
||||
"height": 1440
|
||||
},
|
||||
{
|
||||
"file": "tenInchScreenshots/02-lumi-customize.png",
|
||||
"sha256": "3e776bc87a361741962756508e14229be1c246645d3f383550a012f2ece2fb7a",
|
||||
"width": 2560,
|
||||
"height": 1440
|
||||
},
|
||||
{
|
||||
"file": "tenInchScreenshots/03-practice-home.png",
|
||||
"sha256": "b26f719d5ca327a6cc0b26ff5821fd397a0f61e490663c775a472d274d6b160d",
|
||||
"width": 2560,
|
||||
"height": 1440
|
||||
},
|
||||
{
|
||||
"file": "tenInchScreenshots/04-sun-salutation.png",
|
||||
"sha256": "3768b26622dda6db827723f32459b503b0b84f10cc1af705e3310cce805633ea",
|
||||
"width": 2560,
|
||||
"height": 1440
|
||||
},
|
||||
{
|
||||
"file": "tenInchScreenshots/05-habits.png",
|
||||
"sha256": "3c91d86bbfd4229883adc552bf43466244f83326e8cc7e11edd7e2a2df0d9c1d",
|
||||
"width": 2560,
|
||||
"height": 1440
|
||||
},
|
||||
{
|
||||
"file": "tenInchScreenshots/06-lists.png",
|
||||
"sha256": "d246d81801cab6eb70f1ce1dee0423454281dd0450a75311bcd3fd4105315fbe",
|
||||
"width": 2560,
|
||||
"height": 1440
|
||||
},
|
||||
{
|
||||
"file": "tenInchScreenshots/07-diary.png",
|
||||
"sha256": "844bdd536ae229ff830ac389790796a7e872b472028dd362ffea4114e27a12f8",
|
||||
"width": 2560,
|
||||
"height": 1440
|
||||
},
|
||||
{
|
||||
"file": "tenInchScreenshots/08-appearance.png",
|
||||
"sha256": "3f1f5fcdac2a211f94bb6b04fd646931d7705e6c3b36df521eec7babcd47fdc8",
|
||||
"width": 2560,
|
||||
"height": 1440
|
||||
}
|
||||
]
|
||||
}
|
||||
|
After Width: | Height: | Size: 123 KiB |
|
Before Width: | Height: | Size: 538 KiB |
|
After Width: | Height: | Size: 134 KiB |
|
Before Width: | Height: | Size: 285 KiB |
|
After Width: | Height: | Size: 641 KiB |
|
Before Width: | Height: | Size: 57 KiB |
|
Before Width: | Height: | Size: 466 KiB |
|
After Width: | Height: | Size: 125 KiB |
|
Before Width: | Height: | Size: 141 KiB |
|
After Width: | Height: | Size: 205 KiB |
|
Before Width: | Height: | Size: 73 KiB |
|
After Width: | Height: | Size: 115 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
Before Width: | Height: | Size: 273 KiB |
|
After Width: | Height: | Size: 136 KiB |
|
Before Width: | Height: | Size: 418 KiB |
|
After Width: | Height: | Size: 199 KiB |
|
Before Width: | Height: | Size: 604 KiB |
|
After Width: | Height: | Size: 221 KiB |
|
Before Width: | Height: | Size: 329 KiB |
|
After Width: | Height: | Size: 753 KiB |
|
Before Width: | Height: | Size: 72 KiB |
|
Before Width: | Height: | Size: 521 KiB |
|
After Width: | Height: | Size: 194 KiB |
|
Before Width: | Height: | Size: 191 KiB |
|
After Width: | Height: | Size: 308 KiB |
|
Before Width: | Height: | Size: 105 KiB |
|
After Width: | Height: | Size: 191 KiB |
|
After Width: | Height: | Size: 190 KiB |
|
Before Width: | Height: | Size: 312 KiB |