Compare commits

...
78 Commits
Author SHA1 Message Date
waozi cdd6c86d0c Release Inner Breeze 2.1.58
Phone check: 57.7 fps, 0.03% late frames.
2026-10-28 20:53:59 -03:00
waozi 15d89c91e1 Pin compressed abstract profile images
Keep the fixed 2.1.58 release content within the universal APK budget by pinning the optimized upstream Entity artwork.
2026-10-28 20:14:07 -03:00
waozi 8e06d7a84c Release Inner Breeze 2.1.58
Phone check: 57.7 fps, 0.06% late frames.
2026-10-28 18:51:54 -03:00
waozi 0f314013f2 Pin immediate and restart-safe game appearance publication 2026-10-28 18:13:57 -03:00
waozi 18e0db51c5 Include friend pictures and equipped skins in the Inbe update 2026-10-28 18:07:43 -03:00
waozi 6084ea547b Repair release test providers 2026-10-28 17:56:38 -03:00
waozi b2ab5d05ae Retain released glyphs in expanded profile fonts 2026-10-28 17:17:35 -03:00
waozi 477339273d Prepare Inner Breeze 2.1.58 2026-10-28 17:05:06 -03:00
waozi 341b340683 Fix Profile friend input, saved pictures and app reordering 2026-10-28 17:03:22 -03:00
waozi 3dea8b7233 Preserve Arcade installs and confirm premium usernames 2026-10-28 17:02:06 -03:00
waozi df906829d9 Close the owned Android app after automated phone tests 2026-10-28 15:40:49 -03:00
waozi b945252c5c Merge tested Inner Breeze 2.1.56 release history 2026-10-28 15:09:20 -03:00
waozi a256864bc0 Release Inner Breeze 2.1.56
Phone check: 57.7 fps, 0.03% late frames.
2026-10-28 15:09:20 -03:00
waozi 7d2bd40c73 Repair signed Moto build setup and record APK provenance 2026-10-28 13:25:21 -03:00
waozi b31f55d49f Verify Play savings in button details 2026-10-28 12:40:39 -03:00
waozi b95a57f1c8 Show localized savings on Google Play Dew packs 2026-10-28 12:34:05 -03:00
waozi d21ce9f94b Include the 10 Dew Google Play pack in the top-up screen 2026-10-28 11:35:00 -03:00
waozi 9c7daca4f6 Improve Diary photo tools and keep the typing position visible 2026-10-28 11:31:18 -03:00
waozi 445b4dfbd2 Synchronize the shared leaderboard host interface version 2026-10-28 04:06:20 -03:00
waozi b5615a4e01 Enable the fixture account for the complete Profile UI test 2026-10-28 03:57:13 -03:00
waozi 0a33736986 Unify Profile IDs and leaderboards and preserve game scores 2026-10-28 03:41:10 -03:00
waozi f2d7ce5b6f Keep desktop installs current with verified release updates 2026-10-28 02:57:30 -03:00
waozi 96d09ced6f Preserve legacy Apps guide translations in package updates 2026-10-28 01:34:19 -03:00
waozi 5235b51cbb Merge tested Inner Breeze 2.1.55 release history 2026-10-28 01:11:48 -03:00
waozi 8b20447a14 Release Inner Breeze 2.1.55
Phone check: 57.7 fps, 0.0% late frames.
2026-10-28 01:11:48 -03:00
waozi fc64f7729f Allow focused verification of the one-step Apps guide 2026-10-28 00:56:57 -03:00
waozi 9bd9176995 Preserve existing hosted app loading capabilities 2026-10-27 23:51:31 -03:00
waozi ec08615f21 Keep hosted loading theme resolution portable 2026-10-27 23:47:08 -03:00
waozi 6b4818e2a4 Improve Inbe app loading, recover Play prices and simplify Apps guidance 2026-10-27 23:12:59 -03:00
waozi 5e905491cc Match the itch.io publishing target to the Breeze repository 2026-10-27 20:35:36 -03:00
waozi 8aecef0e2d Release Inner Breeze 2.1.54
Phone check: 57.7 fps, 0.0% late frames.
2026-10-27 18:58:21 -03:00
waozi d9d454da70 Version Inner Breeze 2.1.54: Dew through Google Play in the Google Play version 2026-10-27 18:09:06 -03:00
waozi 955fe51d17 Buy Dew through Google Play in the Google Play version
The Google Play edition (the gplay build type) now builds its native code
with GOOGLE_PLAY and adds Kryon's Play Billing (its gplay sources from the
Kryon package and billing 9.1); the direct and F-Droid builds carry no
Google billing. Top up lists Entity's Dew packs at Google Play's price in the
buyer's currency once Play answers. Breeze sends each purchase to the node
with its own signed-in request through entity/dew_play, and Play forgets it
only after the node has credited the Dew. The Play edition's Top up shows no
Monero address or other coins, and running out of Dew no longer names
Monero. The old payment bridge stubs are gone.

Kryon and Entity move to their Play Billing commits; liboqs stays pinned.
2026-10-27 18:06:54 -03:00
waozi 72c80cc0f6 Release Inner Breeze 2.1.53
Phone check: 57.7 fps, 0.06% late frames.
2026-10-27 16:51:49 -03:00
waozi 14ce6d7a66 Resolve the Play build's outdated Fragment SDK for Inner Breeze 2.1.53
Google Play reported androidx.fragment:fragment:1.1.0 as an outdated SDK in
production 2.1.52. Firebase Messaging's Play services libraries still
request that version, so the Play build now resolves it to Fragment 1.8.9.
2026-10-27 16:22:12 -03:00
waozi 61ecab580e Buy Dew with another coin through dew.waozi.xyz from Top up 2026-10-27 14:32:22 -03:00
waozi 3461cc1bc6 Merge the published 2.1.52 master into the retained local history 2026-10-27 05:46:35 -03:00
waozi 3ad7e8ee19 Merge the published Inner Breeze 2.1.52 release 2026-10-27 05:46:16 -03:00
waozi d55ed0e1f4 Merge tested Inner Breeze 2.1.52 release history 2026-10-27 05:24:36 -03:00
waozi aba1996ccd Keep OpenStore diagnostics separate from release publication 2026-10-27 05:00:02 -03:00
waozi c2421a7862 Keep Focal packaging and active peer source together 2026-10-27 05:00:02 -03:00
waozi 1d0b8d7001 Keep OpenStore diagnostics separate from release publication 2026-10-27 05:00:02 -03:00
waozi d192e789d4 Merge the browser music test fix into the retained local history 2026-10-27 04:57:45 -03:00
waozi b6e1c3bfab Keep OpenStore diagnostics separate from release publication 2026-10-27 04:57:42 -03:00
waozi d5a12b5d97 Keep Focal packaging and active peer source together 2026-10-27 04:36:50 -03:00
waozi 2e9be2fc18 Publish verified OpenStore updates after the Release workflow 2026-10-27 04:36:49 -03:00
waozi df0709e3f4 Keep Focal packaging and active peer source together 2026-10-27 04:23:19 -03:00
waozi 159e0098ea Resolve and verify the target atomic runtime in Click packages 2026-10-27 04:23:19 -03:00
waozi 61241cd23e Merge the Results test fix into the retained local history 2026-10-27 04:21:56 -03:00
waozi 66676ac3d3 Keep Focal packaging and active peer source together 2026-10-27 04:19:19 -03:00
waozi bd0c862387 Serve the verified released web app on production Pages 2026-10-27 04:19:18 -03:00
waozi e23a6e6bd5 Keep Focal packaging and active peer source together 2026-10-27 04:13:55 -03:00
waozi dac6b67935 Carry the bundled runtime license notices in Click packages 2026-10-27 04:13:54 -03:00
waozi 9a1a963056 Keep Focal packaging and active peer source together 2026-10-27 04:09:31 -03:00
waozi 6369cba877 Restore Ubuntu Touch audio and sync with the device graphics stack 2026-10-27 04:09:31 -03:00
waozi 36d6e6f94e Keep OpenStore repair and pending feature history together 2026-10-27 03:42:31 -03:00
waozi 24fd4c88fe Retain SDL X11 handles required by the Raylib backend 2026-10-27 03:42:30 -03:00
waozi 6e7ae2dd17 Keep OpenStore repair and pending feature history together 2026-10-27 03:23:18 -03:00
waozi e098eaa686 Verify the generated SDL Wayland configuration 2026-10-27 03:23:17 -03:00
waozi d4b7252dac Keep OpenStore repair and pending feature history together 2026-10-27 03:22:14 -03:00
waozi 0333d4c12e Build current SDL for Focal and link the bundled runtime first 2026-10-27 03:22:14 -03:00
waozi 32e7bc5900 Merge the executable release script into the retained local history 2026-10-27 03:04:37 -03:00
waozi 661f620340 Merge the leaderboard link fix into the retained local history 2026-10-27 03:04:08 -03:00
waozi 9bb025c1ea Keep OpenStore repair and pending feature history together 2026-10-27 02:56:32 -03:00
waozi 3434a9b4f2 Build current TLS libraries for the Focal OpenStore package 2026-10-27 02:56:31 -03:00
waozi 61d91d59b4 Keep OpenStore repair and pending feature history together 2026-10-27 02:39:58 -03:00
waozi 486386519c Use the installed CMake for the Focal cross build 2026-10-27 02:39:58 -03:00
waozi e8dece0969 Merge Inner Breeze 2.1.52 into the retained local history 2026-10-27 02:23:20 -03:00
waozi 440e2ad60a Retain the scoped Apps compiler fix and current owner dependency graph 2026-10-27 02:17:15 -03:00
waozi 4b93cad051 Pin the Apps compiler linkage fix for the Focal build 2026-10-27 02:17:15 -03:00
waozi a05c2cc469 Preserve active development with reliable website deployment 2026-10-27 02:06:14 -03:00
waozi 71ba093935 Let website deployments finish while new work continues 2026-10-27 02:02:46 -03:00
waozi c443e918c1 Retain fixed release publication guidance with current development 2026-10-27 01:55:28 -03:00
waozi df1ea8d2e0 Keep OpenStore repair and pending feature history together 2026-10-27 01:54:49 -03:00
waozi ea2ef47384 Configure the pinned ARM64 Curl and scope the OpenStore upload key 2026-10-27 01:54:49 -03:00
waozi 287ae35c6a Record the trusted reference for fixed release publication 2026-10-27 01:45:53 -03:00
waozi 37e356f3a5 Keep OpenStore repair and pending feature history together 2026-10-27 01:39:44 -03:00
waozi eb17374052 Use current GNU Make with the Focal target SDK 2026-10-27 01:39:43 -03:00
109 changed files with 2928 additions and 1358 deletions

No files matched your search

+36
View File
@@ -93,6 +93,10 @@ jobs:
timeout-minutes: 20
run: python3 .github/scripts/install-android-sdk.py
- name: Install Android build dependencies
timeout-minutes: 15
run: .github/scripts/install-apt-packages.sh .github/apt/android-packages.txt
- name: Prepare Android signing key
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
@@ -117,6 +121,18 @@ jobs:
SOURCE_COMMIT: ${{ inputs.source_commit }}
run: |
set -euo pipefail
python3 - <<'PY'
import importlib.util
import os
import subprocess
from pathlib import Path
spec = importlib.util.spec_from_file_location('phone_check', 'scripts/phone-check.py')
check = importlib.util.module_from_spec(spec)
spec.loader.exec_module(check)
revision = os.environ['SOURCE_COMMIT']
assert subprocess.check_output(['git', 'rev-parse', 'HEAD'], text=True).strip() == revision
assert check.app_tree(Path.cwd()) == check.app_tree(Path.cwd(), revision), 'App source differs from candidate'
PY
./droid/gradlew -p droid assembleRelease \
-Papp.onlyAbi=armeabi-v7a \
-Pkeystore.path="$HOME/.android/inbe-release.keystore" \
@@ -132,6 +148,26 @@ jobs:
cd build/release/moto
sha256sum "inbe-$VERSION-moto.apk" > "inbe-$VERSION-moto.apk.sha256"
)
python3 - <<'PY'
import hashlib
import importlib.util
import json
import os
from pathlib import Path
spec = importlib.util.spec_from_file_location('phone_check', 'scripts/phone-check.py')
check = importlib.util.module_from_spec(spec)
spec.loader.exec_module(check)
root = Path.cwd()
revision = os.environ['SOURCE_COMMIT']
content = check.app_tree(root, revision)
assert check.app_tree(root) == content, 'App source changed during build'
apk = next(Path('build/release/moto').glob('inbe-*-moto.apk'))
receipt = dict(schema=1, status='passed', source_commit=revision, app_tree=content,
apk=dict(sha256=hashlib.sha256(apk.read_bytes()).hexdigest(), **check.apk_identity(apk)),
workflow_run=os.environ['GITHUB_SERVER_URL'] + '/' + os.environ['GITHUB_REPOSITORY'] +
'/actions/runs/' + os.environ['GITHUB_RUN_ID'])
(apk.parent / 'build-receipt.json').write_text(json.dumps(receipt, indent=2) + '\n')
PY
- name: Remove signing key
if: always()
+4 -4
View File
@@ -28,10 +28,6 @@ on:
permissions:
contents: read
concurrency:
group: openstore-${{ inputs.channel || 'focal' }}
cancel-in-progress: false
jobs:
source:
runs-on: ubuntu-24.04
@@ -95,6 +91,10 @@ jobs:
publish:
needs: source
if: needs.source.outputs.run == 'true'
concurrency:
# Skipped source checks and diagnostics cannot replace a pending release.
group: openstore-${{ inputs.channel || 'focal' }}-${{ inputs.build_only && 'verify' || 'publish' }}
cancel-in-progress: false
runs-on: ubuntu-24.04
# The published focal channel must use Focal's ARM64 libc and libraries.
container: clickable/ci-20.04-arm64@sha256:c6227ffcdb2abb50101a8469dd2a8df3ffd9208e04a3e07e351db63d36bec5d6
+1 -1
View File
@@ -1324,7 +1324,7 @@ jobs:
log_file="$(mktemp)"
for attempt in 1 2 3 4 5 6; do
if butler push "$target" "waozi/inbe:$channel" --userversion "$VERSION" 2>&1 | tee "$log_file"; then
if butler push "$target" "waozi/breeze:$channel" --userversion "$VERSION" 2>&1 | tee "$log_file"; then
rm -f "$log_file"
return 0
fi
+28
View File
@@ -1,5 +1,33 @@
# Changelog
## [2.1.58] - 2026-10-28
- Show friend pictures and equipped Apfelwurm skins in leaderboards; hide repeated headings and single-choice selectors.
- Keep downloaded Arcade games and saved progress across updates.
- Show premium username prices, confirm Dew purchases and open top-up when needed. Existing usernames stay free to keep.
- Align Profile leaderboard columns and improve Friends input, profile pictures and app rearranging.
## [2.1.56] - 2026-10-28
- Open the keyboard when editing an account alias and copy the complete public ID from Profile.
- Show a full public ID where it fits; tap it for a scannable QR code and the full ID to copy.
- Use one shared Profile leaderboard, including Apfelwurm’s score and level alongside puzzle and practice rankings.
## [2.1.55] - 2026-10-27
- Retry Google Play prices when the store cannot load Dew packs.
- Open apps with a calmer, themed loading screen and their own icon.
- Learn Apps in one short guide, with current app options.
## [2.1.54] - 2026-10-27
- Buy Dew through Google Play in the Google Play version.
## [2.1.53] - 2026-10-27
- Top up Dew with Bitcoin, USDT and other coins through dew.waozi.xyz.
- The Google Play version uses current Android components.
## [2.1.52] - 2026-10-27
- Set an account alias with capitals, an @ or spaces; a taken alias now says so.
+24
View File
@@ -1,5 +1,29 @@
# Changelog
## [1.3.22] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.58.
## [1.3.21] - 2026-10-28
- Open each day’s photos from a gallery icon, attach photos with the paperclip, and keep the entry’s layout steady while browsing its gallery.
## [1.3.20] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.56.
## [1.3.19] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.55.
## [1.3.18] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.54.
## [1.3.17] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.53.
## [1.3.16] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
+2 -2
View File
@@ -18,8 +18,8 @@ DiaryUiFrame :: struct {
scroll: s32
calendar_scroll: s32
page_scroll: s32
// How far the day's photos under the entry are scrolled sideways, and
// the day whose gallery is open (year * 10000 + month * 100 + day), or 0.
// The gallery grid's vertical scroll and the day whose separate
// gallery is open (year * 10000 + month * 100 + day), or 0.
photos_scroll: s32
photos_open_day: s32
save_at: float64
+58 -86
View File
@@ -71,12 +71,10 @@ DIARY_NEXT_ICON :: "S1.8rr:M9 5L16 12L9 19"
DIARY_CALENDAR_ICON :: "S1.6rr:M4 5H20V20H4ZM4 10H20M8 3V7M16 3V7"
DIARY_TIME_ICON :: "S1.6rr:M21 12C21 16.97 16.97 21 12 21C7.03 21 3 16.97 3 12C3 7.03 7.03 3 12 3C16.97 3 21 7.03 21 12ZM12 7V12L15.5 14"
DIARY_PHOTO_ICON :: "S1.6rr:M3 5H21V19H3ZM3 16L8 11L13 16L16 13L21 18M17.5 8.5C17.5 9.33 16.83 10 16 10C15.17 10 14.5 9.33 14.5 8.5C14.5 7.67 15.17 7 16 7C16.83 7 17.5 7.67 17.5 8.5Z"
DIARY_ATTACHMENT_ICON :: "S1.8rr:M21 11L12 20C9.8 22.2 6.2 22.2 4 20C1.8 17.8 1.8 14.2 4 12L14 2C15.66 0.34 18.34 0.34 20 2C21.66 3.66 21.66 6.34 20 8L10 18C8.9 19.1 7.1 19.1 6 18C4.9 16.9 4.9 15.1 6 14L15 5"
DIARY_UNDO_ICON :: "S1.8rr:M9 14L4 9L9 4M4 9H14C17.31 9 20 11.69 20 15C20 18.31 17.31 21 14 21H11"
DIARY_REDO_ICON :: "S1.8rr:M15 14L20 9L15 4M20 9H10C6.69 9 4 11.69 4 15C4 18.31 6.69 21 10 21H13"
DIARY_SPELLING_ICON :: "S2rr:M3 14L7.5 3L12 14M4.8 10H10.2M12 17L15.5 20.5L21.5 13"
// The gallery row's chevron points down while the photos are hidden.
DIARY_SHOW_ICON :: "S1.8rr:M6 9L12 15L18 9"
DIARY_HIDE_ICON :: "S1.8rr:M6 15L12 9L18 15"
DiaryObservedFrame :: () -> DiaryUiFrame {
return frame
@@ -153,16 +151,10 @@ DiaryEditorStyle :: (area: *TextAreaProps, text: string, editing: bool) {
area.blocks = editor_blocks[:editor_preview.photo_count]
}
// Under the entry, a Show gallery row opens every photo of the day in one
// row that scrolls sideways: the media library's photos of that day, newest
// first, then the entry's other photos in its order. A tap puts a photo's
// embed at the caret. The gallery starts closed whenever a day opens.
// The day's gallery is a separate view, opened by its toolbar icon. It
// lists the library's photos of that day, then the entry's other photos.
// Choosing one inserts it at the saved caret and returns to the entry.
DIARY_DAY_PHOTOS :: 64
DIARY_TILE :: 88
DIARY_GALLERY_ROW :: 44
// Room under the photos for the gallery's scrollbar, so it does not cover
// them.
DIARY_GALLERY_BAR :: 12
DiaryDayPhoto :: struct {
// What an embed of the photo links to.
@@ -231,18 +223,6 @@ DiaryGalleryOpen :: () -> bool {
return frame.photos_open_day != 0 && frame.photos_open_day == DiaryDayKey()
}
// The room the gallery takes under the entry, or 0 on a day without photos.
DiaryDayPhotosHeight :: () -> s32 {
if day_photo_count == 0 {
return 0
}
height := Scale(12) + Scale(DIARY_GALLERY_ROW)
if DiaryGalleryOpen() {
height += Scale(8) + Scale(DIARY_TILE) + Scale(DIARY_GALLERY_BAR)
}
return height
}
// Puts a photo's embed on its own line at the caret: one edit, saved at once.
DiaryInsertPhoto :: (destination: string, name: string) {
line := DiaryEmbedLine(destination, name)
@@ -255,45 +235,27 @@ DiaryInsertPhoto :: (destination: string, name: string) {
frame.save_at = frame.now
}
// The gallery row, a dropdown as Habits' inactive habits are, and under it
// the open gallery.
DiaryDayGallery :: (left: float32, top: float32, width: float32, editable: bool) {
open := DiaryGalleryOpen()
row := cast(float32)Scale(DIARY_GALLERY_ROW)
label := AppLocale("diary_show_gallery")
if open {
label = AppLocale("diary_hide_gallery")
}
if Button(frame.session, ButtonProps.{.id = 29017, .bounds = Rectangle.{left, top, width, row},
.label = label, .icon_shape = ifx open then DIARY_HIDE_ICON else DIARY_SHOW_ICON,
.icon_placement = cast(IconPlacement)IconPlacementTrailing,
.content_alignment = cast(ContentAlignment)ContentAlignmentStart,
.tone = cast(ButtonTone)ButtonToneNeutral,
.emphasis = cast(ButtonEmphasis)ButtonEmphasisGhost}) != 0 {
frame.photos_open_day = ifx open then 0 else DiaryDayKey()
frame.photos_scroll = 0
}
if open {
DiaryDayPhotoStrip(left, top + row + cast(float32)Scale(8), width, editable)
}
}
DiaryDayPhotoStrip :: (left: float32, top: float32, width: float32, editable: bool) {
tile := cast(float32)Scale(DIARY_TILE)
DiaryDayGallery :: (left: float32, top: float32, width: float32, height: float32, editable: bool) {
gap := cast(float32)Scale(8)
content := cast(s32)(cast(float32)day_photo_count * (tile + gap) - gap)
bar := cast(float32)Scale(DIARY_GALLERY_BAR)
strip := Scroll(frame.session, ScrollProps.{.key = cast(u64)290302, .horizontal = true,
.bounds = Rectangle.{left, top, width, tile + bar}, .content_width = content,
.content_height = cast(s32)tile, .scroll_offset = frame.photos_scroll})
inner := width - cast(float32)Scale(14)
columns := cast(s32)((inner + gap) / cast(float32)Scale(112))
if columns < 1 {
columns = 1
}
tile := (inner - cast(float32)(columns - 1) * gap) / cast(float32)columns
rows := (day_photo_count + columns - 1) / columns
strip := Scroll(frame.session, ScrollProps.{.key = cast(u64)290302,
.bounds = Rectangle.{left, top, width, height}, .scale = frame.scale,
.content_height = cast(s32)(cast(float32)rows * (tile + gap)),
.scroll_offset = frame.photos_scroll})
frame.photos_scroll = strip.scroll_offset
if !strip.opened {
return
}
for index: cast(s32)0..day_photo_count - 1 {
photo := day_photos[index]
bounds := Rectangle.{strip.content.x + cast(float32)index * (tile + gap),
strip.content.y, tile, tile}
bounds := Rectangle.{strip.content.x + cast(float32)(index % columns) * (tile + gap),
strip.content.y + cast(float32)(index / columns) * (tile + gap), tile, tile}
Box(frame.session, BoxProps.{.key = cast(u64)(292000 + index), .bounds = bounds,
.fill = Color.{156, 156, 156, 36}, .radius = cast(float32)Scale(6)})
if photo.asset.count > 0 {
@@ -306,6 +268,7 @@ DiaryDayPhotoStrip :: (left: float32, top: float32, width: float32, editable: bo
.disabled = !editable})
if press.clicked && !pending {
DiaryInsertPhoto(photo.destination, photo.name)
frame.photos_open_day = 0
}
}
End(frame.session)
@@ -382,6 +345,11 @@ DiaryAction :: ( id: s32, label: string, bounds: Rectangle, enabled: bool = true
frame.spelling_requested = true
return
}
if id == 29017 {
frame.photos_open_day = ifx DiaryGalleryOpen() then 0 else DiaryDayKey()
frame.photos_scroll = 0
return
}
state.action = DIARY_CONTROL
state.control = id
pending = true
@@ -394,6 +362,7 @@ DiaryAction :: ( id: s32, label: string, bounds: Rectangle, enabled: bool = true
DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> DiaryMessage {
state = message
frame = observed
pending = false
column := CenteredColumnFor(frame.width, Scale(640), Scale(16))
left := cast(float32)(column.x + frame.origin_x)
width := cast(float32)column.width
@@ -424,20 +393,16 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
.align = cast(TextAlign)TextAlignCenter, .vertical_align = cast(TextAlign)TextAlignCenter,
.wrap = cast(TextWrap)TextWrapEllipsis})
// Tools: Today and the calendar move between days; undo, redo, spelling,
// the time and photos change the entry. Today narrows on phones so every
// icon keeps its target.
// On phones the editing tools get their own row, keeping every target
// at 44 units instead of squeezing the icons beside Today.
tools := top + control + gap
tool_gap := cast(float32)Scale(4)
tool := control
today_width := width - 6.0 * tool - 5.0 * tool_gap - gap
if today_width < cast(float32)Scale(64) {
// The narrowest phones keep Today readable with smaller icon targets.
today_width = cast(float32)Scale(64)
tool = (width - today_width - gap - 5.0 * tool_gap) / 6.0
}
if today_width > cast(float32)Scale(128) {
today_width = cast(float32)Scale(128)
today_width := cast(float32)Scale(96)
stacked := width < today_width + gap + 7.0 * tool + 6.0 * tool_gap
edit_tools := tools
if stacked && !state.calendar {
edit_tools += control + tool_gap
}
DiaryAction(29004, AppLocale("diary_today"), Rectangle.{left, tools, today_width, control})
DiaryAction(29003, AppLocale("tab_diary_calendar"),
@@ -447,24 +412,37 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
if !state.calendar {
idle := editable && !frame.spelling_busy
DiaryAction(29014, AppLocale("diary_undo"),
Rectangle.{left + width - 5.0 * tool - 4.0 * tool_gap, tools, tool, control},
Rectangle.{left + width - 6.0 * tool - 5.0 * tool_gap, edit_tools, tool, control},
idle && frame.can_undo, DIARY_UNDO_ICON)
DiaryAction(29015, AppLocale("diary_redo"),
Rectangle.{left + width - 4.0 * tool - 3.0 * tool_gap, tools, tool, control},
Rectangle.{left + width - 5.0 * tool - 4.0 * tool_gap, edit_tools, tool, control},
idle && frame.can_redo, DIARY_REDO_ICON)
DiaryAction(29016, AppLocale("diary_check_spelling"),
Rectangle.{left + width - 3.0 * tool - 2.0 * tool_gap, tools, tool, control},
Rectangle.{left + width - 4.0 * tool - 3.0 * tool_gap, edit_tools, tool, control},
idle && HasWords(state.text) && AppSupports("text.correct.start"), DIARY_SPELLING_ICON, false, frame.spelling_busy)
DiaryAction(29013, AppLocale("diary_insert_time"),
Rectangle.{left + width - 2.0 * tool - tool_gap, tools, tool, control},
Rectangle.{left + width - 3.0 * tool - 2.0 * tool_gap, edit_tools, tool, control},
!frame.spelling_busy, DIARY_TIME_ICON)
DiaryAction(29005, AppLocale("diary_attach_photo"),
Rectangle.{left + width - tool, tools, tool, control},
AppSupports("media.pick"), DIARY_PHOTO_ICON)
Rectangle.{left + width - 2.0 * tool - tool_gap, edit_tools, tool, control},
AppSupports("media.pick"), DIARY_ATTACHMENT_ICON)
DiaryDayPhotos(state.text)
gallery_label := AppLocale("diary_show_gallery")
if DiaryGalleryOpen() {
gallery_label = AppLocale("diary_hide_gallery")
}
DiaryAction(29017, gallery_label,
Rectangle.{left + width - tool, edit_tools, tool, control},
editable && day_photo_count > 0, DIARY_PHOTO_ICON, DiaryGalleryOpen())
}
content := tools + control + cast(float32)Scale(12)
content := edit_tools + control + cast(float32)Scale(12)
content_height := cast(float32)(frame.height - frame.bottom) - content - cast(float32)Scale(16)
if !state.calendar && DiaryGalleryOpen() {
DiaryDayGallery(left, content, width, content_height, editable && !frame.spelling_busy)
return FinishView()
}
if state.calendar {
scroll := Scroll(frame.session, ScrollProps.{.key = cast(u64)290300,
.bounds = Rectangle.{left, content, width, content_height},
@@ -505,20 +483,17 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
End(frame.session)
return FinishView()
}
// The editor reaches the bottom; a notice and the day's photos take room
// below it only while they are shown.
// The gallery never changes the entry's viewport or line positions.
notice := frame.photo_error || state.load_error || frame.spelling_notice != ""
notice_room := ifx notice then Scale(60) else 0
DiaryDayPhotos(state.text)
photos_room := DiaryDayPhotosHeight()
editor_height := cast(s32)content_height - notice_room - photos_room
editor_height := cast(s32)content_height - notice_room
if editor_height < Scale(120) {
editor_height = Scale(120)
}
page := Scroll(frame.session, ScrollProps.{.key = cast(u64)290301,
.bounds = Rectangle.{left, content, width, content_height},
.content_height = editor_height + notice_room + photos_room,
.scroll_offset = frame.page_scroll})
.content_height = editor_height + notice_room,
.scroll_offset = frame.page_scroll, .scale = frame.scale})
frame.page_scroll = page.scroll_offset
if !page.opened {
return FinishView()
@@ -530,6 +505,7 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
area.value = state.text
area.label = AppLocale("tab_diary")
area.wrap = true
area.scale = frame.scale
area.cursor = state.cursor
area.anchor = state.anchor
area.scroll_y = frame.scroll
@@ -548,7 +524,7 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
frame.scroll = edited.scroll_y
frame.focused = edited.focused
frame.selecting = edited.selecting
if edited.edit.changed {
if edited.edit.changed && !pending {
state.action = DIARY_EDIT
state.edit_start = edited.edit.start
state.edit_end = edited.edit.end
@@ -573,10 +549,6 @@ DiaryView :: (message: DiaryMessage, observed: DiaryUiFrame, today: Date) -> Dia
area.bounds.y + area.bounds.height + cast(float32)Scale(12), width, cast(float32)Scale(40)},
.text = AppLocale(status), .font = frame.font})
}
if photos_room > 0 {
DiaryDayGallery(left, area.bounds.y + area.bounds.height +
cast(float32)(notice_room + Scale(12)), width, editable && !frame.spelling_busy)
}
End(frame.session)
return FinishView()
}
+20
View File
@@ -1,5 +1,25 @@
# Changelog
## [1.3.12] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.58.
## [1.3.11] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.56.
## [1.3.10] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.55.
## [1.3.9] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.54.
## [1.3.8] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.53.
## [1.3.7] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
+28
View File
@@ -1,5 +1,33 @@
# Changelog
## [2.1.59] - 2026-10-28
- Bring Lumi 1.5.24, Habits 1.3.12, Practices 1.6.6, Lists 1.1.25, Diary 1.3.22 and Leaderboard 1.0.26 for Inner Breeze 2.1.58.
## [2.1.58] - 2026-10-28
- Bring Diary’s separate day gallery and attachment toolbar.
## [2.1.57] - 2026-10-28
- Bring Lumi 1.5.23, Habits 1.3.11, Practices 1.6.5, Lists 1.1.24, Diary 1.3.20 and Leaderboard 1.0.25 for Inner Breeze 2.1.56.
## [2.1.56] - 2026-10-28
- Keep Apps guide translations available to older installed wrappers after automatic package updates.
## [2.1.55] - 2026-10-27
- Bring Lumi 1.5.22, Habits 1.3.10, Practices 1.6.4, Lists 1.1.23, Diary 1.3.19 and Leaderboard 1.0.24 for Inner Breeze 2.1.55.
## [2.1.54] - 2026-10-27
- Bring Lumi 1.5.21, Habits 1.3.9, Practices 1.6.3, Lists 1.1.22, Diary 1.3.18 and Leaderboard 1.0.23 for Inner Breeze 2.1.54.
## [2.1.53] - 2026-10-27
- Bring Lumi 1.5.20, Habits 1.3.8, Practices 1.6.2, Lists 1.1.21, Diary 1.3.17 and Leaderboard 1.0.22 for Inner Breeze 2.1.53.
## [2.1.52] - 2026-10-27
- Bring Lumi 1.5.19, Habits 1.3.7, Practices 1.6.1, Lists 1.1.20, Diary 1.3.16 and Leaderboard 1.0.21 for Inner Breeze 2.1.52.
+20
View File
@@ -1,5 +1,25 @@
# Changelog
## [1.0.26] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.58.
## [1.0.25] - 2026-10-28
- Open the shared Profile leaderboard with practice, puzzle and Apfelwurm score and level rankings.
## [1.0.24] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.55.
## [1.0.23] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.54.
## [1.0.22] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.53.
## [1.0.21] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
+2 -2
View File
@@ -4,7 +4,6 @@
#import, file "../../src/apps/module_types.zi";
#import "apps/node_types"
#import, file "../../src/core/types.zi";
#import, file "leaderboard_view.zi";
host_api :: #system_library "host_api";
ReadLeaderboardHost :: () -> LeaderboardMessage #foreign host_api;
WriteLeaderboardHost :: (message: LeaderboardMessage) #foreign host_api;
@@ -14,7 +13,8 @@ LeaderboardApply :: (message: LeaderboardMessage) -> LeaderboardMessage {
if message.action == LEADERBOARD_ROUTE {
message.succeeded = message.screen == ScreenLeaderboard
} else if message.action == LEADERBOARD_FRAME {
message = LeaderboardView(message)
// Older navigation routes redirect to the Entity Profile in the host.
// This package keeps its identity for installed-package compatibility.
} else {
message.succeeded = false
}
-254
View File
@@ -1,254 +0,0 @@
// Leaderboard owns its screen composition; the host supplies ranked rows,
// prepared once when results arrive, and ordinary Kryon widget effects.
#import "session"
#import "geometry"
#import "text"
#import "vec"
#import "drawing_props"
#import "text_props"
#import "text_align"
#import "text_widget"
#import "button_props"
#import "button_widget"
#import "control_props"
#import "scroll_props"
#import "scroll_widget"
#import "box_props"
#import "box_widget"
#import "tree"
#import "dropdown_props"
#import "dropdown_widget"
#import, file "../../src/apps/leaderboard_ui_types.zi";
#import, file "../../src/apps/leaderboard_types.zi";
using ButtonTone;
using ButtonEmphasis;
using TextAlign;
using TextWrap;
host_api :: #system_library "host_api";
ReadLeaderboardUiHost :: () -> LeaderboardUiFrame #foreign host_api;
WriteLeaderboardUiHost :: (frame: LeaderboardUiFrame) #foreign host_api;
ReadLeaderboardRowHost :: (index: s32) -> LeaderboardUiRow #foreign host_api;
ReadLeaderboardAppHost :: (index: s32) -> LeaderboardUiApp #foreign host_api;
ReadLeaderboardBoardHost :: (index: s32) -> LeaderboardUiApp #foreign host_api;
LeaderboardLocaleHost :: (key: string) -> string #foreign host_api;
frame: LeaderboardUiFrame;
state: LeaderboardMessage;
// Hosts that do not list the installed practices offer Wim Hof, breathing
// patterns, meditation and Sun Salutation.
FALLBACK_PRACTICE_COUNT :: 4
FallbackPracticeAt :: (index: s32) -> s32 {
ids: [FALLBACK_PRACTICE_COUNT]s32 = .[0, 3, 1, 2]
return ids[index]
}
// A practice this board cannot name has an empty label and is left out.
PracticeLabel :: (practice: s32) -> string {
if practice == 0 { return LeaderboardLocaleHost("exercise_wim_hof") }
if practice == 1 { return LeaderboardLocaleHost("exercise_meditation") }
if practice == 2 { return LeaderboardLocaleHost("exercise_sun_salutation") }
if practice == 3 { return LeaderboardLocaleHost("exercise_patterns") }
if practice == 4 { return LeaderboardLocaleHost("exercise_tai_chi") }
if practice == 5 { return LeaderboardLocaleHost("exercise_astral_projection") }
if practice == 6 { return LeaderboardLocaleHost("exercise_workout") }
return ""
}
// The installed practices in Practice's order, as the host lists them.
PracticeChoices :: (ids: []s32) -> s32 {
listed: s32 = ifx state.practices_listed then state.practice_count else FALLBACK_PRACTICE_COUNT
if listed > cast(s32)state.practices.count {
listed = cast(s32)state.practices.count
}
count: s32 = 0
for index: cast(s32)0..listed - 1 {
practice := ifx state.practices_listed then state.practices[index] else FallbackPracticeAt(index)
if PracticeLabel(practice).count > 0 && count < ids.count {
ids[count] = practice
count += 1
}
}
return count
}
Scale :: (pixels: s32) -> s32 {
return cast(s32)(cast(float32)pixels * frame.scale)
}
Bounds :: (x: s32, y: s32, width: s32, height: s32) -> Rectangle {
return Rectangle.{cast(float32)x, cast(float32)y,
cast(float32)width, cast(float32)height}
}
Finish :: () -> LeaderboardMessage {
// Choosing an app only matters once more than one has a board.
if frame.app_count > 1 && frame.app_count <= 16 {
apps: [16]LeaderboardUiApp
options: [16]DropdownOption
for index: cast(s32)0..frame.app_count - 1 {
apps[index] = ReadLeaderboardAppHost(index)
options[index].label = apps[index].title
}
menu := Dropdown(frame.session, DropdownProps.{.id = 7150,
.bounds = Bounds(Scale(16), Scale(12), frame.width - Scale(32), Scale(44)),
.selected_index = frame.app_index, .scale = frame.scale}, options[0:frame.app_count])
if menu.changed && menu.selected_index >= 0 && menu.selected_index < frame.app_count {
state.app = apps[menu.selected_index].name
state.metric = LEADERBOARD_STREAK
state.refresh = true
frame.scroll = 0
}
}
WriteLeaderboardUiHost(frame)
state.succeeded = true
return state
}
Cell :: (key: u64, x: s32, y: s32, width: s32, height: s32, text: string) {
Text(frame.session, TextProps.{.key = key, .bounds = Bounds(x, y, width, height),
.text = text, .font = frame.font, .wrap = cast(TextWrap)TextWrapNone,
.vertical_align = cast(TextAlign)TextAlignCenter})
}
LeaderboardView :: (message: LeaderboardMessage) -> LeaderboardMessage {
frame = ReadLeaderboardUiHost()
state = message
x := Scale(16)
width := frame.width - x * 2
y := Scale(12)
if frame.app_count > 1 { y += Scale(56) }
// Every installed practice, or every game of the chosen app with a
// board, stays visible in a grid that grows with them: two per row on
// phones, more when wide, in rows of equal length.
practices: [16]s32
games: [16]LeaderboardUiApp
practice_app := state.app == "" || state.app == "practices"
practice_count := ifx practice_app then PracticeChoices(practices[:]) else 0
if !practice_app {
practice_count = ifx frame.board_count > 16 then 16 else frame.board_count
for index: cast(s32)0..practice_count - 1 {
games[index] = ReadLeaderboardBoardHost(index)
}
}
gap := Scale(8)
widest: s32 = (width + gap) / (Scale(160) + gap)
if widest < 2 {
widest = 2
}
rows: s32 = (practice_count + widest - 1) / widest
per_row: s32 = 1
if rows > 0 {
per_row = (practice_count + rows - 1) / rows
}
choice_width := (width - gap * (per_row - 1)) / per_row
for index: cast(s32)0..practice_count - 1 {
chosen := ifx practice_app then practices[index] == state.practice else index == frame.board_index
choice_x := x + (index % per_row) * (choice_width + gap)
choice_y := y + (index / per_row) * (Scale(40) + gap)
if Button(frame.session, ButtonProps.{.id = 7140 + index,
.bounds = Bounds(choice_x, choice_y, choice_width, Scale(40)),
.label = ifx practice_app then PracticeLabel(practices[index]) else games[index].title,
.selected = chosen, .fit_content = true,
.tone = cast(ButtonTone)(ifx chosen then ButtonToneAccent else ButtonToneNeutral),
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0 && !chosen {
if practice_app {
state.practice = practices[index]
} else {
state.board = games[index].name
}
state.metric = LEADERBOARD_STREAK
state.refresh = true
frame.scroll = 0
return Finish()
}
}
if rows > 0 {
y += rows * (Scale(40) + gap) + Scale(8)
}
// Nothing is ranked until a practice is installed or a game reports.
if frame.app_count == 0 || practice_count == 0 {
Text(frame.session, TextProps.{.key = cast(u64)7120,
.bounds = Bounds(x, y, width, Scale(32)),
.text = LeaderboardLocaleHost("profile_no_leaderboard_data"),
.font = frame.font, .wrap = cast(TextWrap)TextWrapAuto})
return Finish()
}
// The name column is wider when only the streak is ranked.
columns: s32 = ifx state.has_average then 3 else 2
name_width := ifx state.has_average then width / 2 else (width * 2) / 3
value_width := ifx state.has_average then (width - name_width) / 2 else width - name_width
average_label := ifx state.practice == 1 then "profile_metric_avg_time" else "profile_metric_avg_hold"
labels: [3]string = .[LeaderboardLocaleHost("profile_friends_title"),
LeaderboardLocaleHost("profile_metric_streak"), LeaderboardLocaleHost(average_label)]
if !practice_app {
labels[1] = LeaderboardLocaleHost("leaderboard_levels")
}
header_x := x
for column: cast(s32)0..columns - 1 {
column_width := ifx column == 0 then name_width else ifx column == columns - 1 then x + width - header_x else value_width
metric := column - 1
active := column > 0 && state.metric == metric
if Button(frame.session, ButtonProps.{.id = 7110 + column,
.bounds = Bounds(header_x, y, column_width, Scale(36)),
.label = labels[column], .disabled = column == 0, .selected = active,
.fit_content = true,
.tone = cast(ButtonTone)(ifx active then ButtonToneAccent else ButtonToneNeutral),
.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft}) != 0 &&
column > 0 && !active {
state.metric = metric
return Finish()
}
header_x += column_width
}
y += Scale(44)
if state.row_count == 0 {
key := ifx state.loading then "profile_updating_status" else "profile_no_leaderboard_data"
Text(frame.session, TextProps.{.key = cast(u64)7120,
.bounds = Bounds(x, y, width, Scale(32)), .text = LeaderboardLocaleHost(key),
.font = frame.font, .wrap = cast(TextWrap)TextWrapAuto})
return Finish()
}
row_height := Scale(40)
scroll := Scroll(frame.session, ScrollProps.{.key = cast(u64)7130,
.bounds = Bounds(x, y, width, frame.height - frame.bottom - y - Scale(8)),
.content_height = state.row_count * row_height, .scroll_offset = frame.scroll})
frame.scroll = scroll.scroll_offset
if !scroll.opened {
return Finish()
}
row_y := cast(s32)scroll.content.y
left := cast(s32)scroll.content.x
for index: cast(s32)0..state.row_count - 1 {
// Rows outside the viewport are not read from the host.
if row_y + row_height > cast(s32)scroll.viewport.y &&
row_y < cast(s32)(scroll.viewport.y + scroll.viewport.height) {
row := ReadLeaderboardRowHost(index)
key := cast(u64)(7200 + index * 4)
if row.own || index % 2 == 1 {
Box(frame.session, BoxProps.{.key = key, .bounds = Bounds(left, row_y, width, row_height),
.fill = ifx row.own then Color.{156, 188, 143, 64} else Color.{156, 156, 156, 24},
.radius = cast(float32)Scale(8)})
}
name: Vec(u8)
BuilderPrint(*name, "%. %", row.rank, row.name)
pad := Scale(8)
Cell(key + 1, left + pad, row_y, name_width - pad * 2, row_height, BuilderFinish(name))
Cell(key + 2, left + name_width + pad, row_y, value_width - pad, row_height, row.streak)
if state.has_average {
Cell(key + 3, left + name_width + value_width + pad, row_y,
width - name_width - value_width - pad, row_height, row.average)
}
}
row_y += row_height
}
End(frame.session)
return Finish()
}
+20
View File
@@ -1,5 +1,25 @@
# Changelog
## [1.1.25] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.58.
## [1.1.24] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.56.
## [1.1.23] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.55.
## [1.1.22] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.54.
## [1.1.21] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.53.
## [1.1.20] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
+20
View File
@@ -1,5 +1,25 @@
# Changelog
## [1.5.24] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.58.
## [1.5.23] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.56.
## [1.5.22] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.55.
## [1.5.21] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.54.
## [1.5.20] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.53.
## [1.5.19] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
+20
View File
@@ -1,5 +1,25 @@
# Changelog
## [1.6.6] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.58.
## [1.6.5] - 2026-10-28
- Maintenance release for Inner Breeze 2.1.56.
## [1.6.4] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.55.
## [1.6.3] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.54.
## [1.6.2] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.53.
## [1.6.1] - 2026-10-27
- Maintenance release for Inner Breeze 2.1.52.
+25 -24
View File
@@ -1,66 +1,67 @@
{
"host_api": 39,
"host_api": 40,
"oldest_host_api": 12,
"package_format": "zx",
"module_api": 2,
"apps": {
"inbe": {
"id": "inbe",
"version": "2.1.52",
"sequence": 49,
"version": "2.1.59",
"sequence": 56,
"bundled": true,
"host_api": 39,
"release": "2.1.52"
"host_api": 40,
"release": "2.1.58"
},
"habits": {
"id": "inbe.habits",
"version": "1.3.7",
"sequence": 30,
"version": "1.3.12",
"sequence": 35,
"bundled": true,
"host_api": 38,
"oldest_host_api": 30,
"release": "2.1.52"
"release": "2.1.58"
},
"practices": {
"id": "inbe.practices",
"version": "1.6.1",
"sequence": 30,
"version": "1.6.6",
"sequence": 35,
"bundled": true,
"host_api": 37,
"oldest_host_api": 31,
"release": "2.1.52"
"release": "2.1.58"
},
"lists": {
"id": "inbe.lists",
"version": "1.1.20",
"sequence": 28,
"version": "1.1.25",
"sequence": 33,
"bundled": true,
"host_api": 27,
"release": "2.1.52"
"release": "2.1.58"
},
"diary": {
"id": "inbe.diary",
"version": "1.3.16",
"sequence": 33,
"version": "1.3.22",
"sequence": 39,
"bundled": true,
"host_api": 21,
"release": "2.1.52"
"release": "2.1.58"
},
"lumi": {
"id": "inbe.lumi",
"version": "1.5.19",
"sequence": 37,
"version": "1.5.24",
"sequence": 42,
"bundled": true,
"host_api": 20,
"release": "2.1.52"
"release": "2.1.58"
},
"leaderboard": {
"id": "inbe.leaderboard",
"version": "1.0.21",
"sequence": 22,
"version": "1.0.26",
"sequence": 27,
"bundled": true,
"host_api": 25,
"release": "2.1.52"
"host_api": 40,
"release": "2.1.58",
"oldest_host_api": 40
}
},
"node_apps": {
Binary file not shown.
Binary file not shown.
-2
View File
@@ -9,8 +9,6 @@
"minimum_match": 0.92,
"keys": [
"launcher_guide_find",
"launcher_guide_manage",
"launcher_guide_profile",
"practice_guide_carousel",
"practice_guide_start",
"practice_guide_manual_config",
-276
View File
@@ -122,29 +122,6 @@
"sha256": "f1872b0127ca4a6b65feb18d17074a22c801d288fbbe6a89450eb3450088d71d",
"bytes": 27015
},
"cs/launcher_guide_manage": {
"seconds": 11.424,
"transcript": "Přetáhni oblíbené aplikace do připnutých, ať je máš po ruce, v jakémkoli pořadí. Ikona koše aplikaci odebere, ale její data zachová a nainstalovat ji vrátí zpět.",
"match": 1.0,
"generation_id": "gen-tts-1791919228-q4d6TgaDv0q6AqbRq4IL",
"attempts": 1,
"file": "assets/practices/guide/voice/cs/launcher_guide_manage.ogg",
"text_sha256": "7688753d2f64bbf16580866ffb2d5b137d97a5682546856d40c9a835f2c0485f",
"sha256": "dad9d446558ef8674de17f61188bfe4caaaac577c35a587151b565ebd03428ab",
"bytes": 30338
},
"cs/launcher_guide_profile": {
"seconds": 6.853,
"transcript": "Váš profil je nahoře vedle nastavení. Klepnutím na jméno ho otevřete. Klepnutím na aplikace se vrátíte sem.",
"match": 1.0,
"generation_id": "gen-tts-1792706167-oiMeIwnu8mVsdNn3PP4t",
"attempts": 1,
"file": "assets/practices/guide/voice/cs/launcher_guide_profile.ogg",
"text_sha256": "ceb3c9d45510f0a06b8ed7e6c89aabb4fde202d9f15dc0fae2cdb30ec5ad5c4c",
"sha256": "cdd460037ae14d52279b96de68a813d5b487e9edbcbe046b45980998a17f5f2a",
"transcriber": "google/gemini-2.5-flash",
"bytes": 19276
},
"cs/leaderboard_guide_practices": {
"seconds": 6.1,
"transcript": "Tady se se svými přáteli porovnáváš ve cvičení. Vyber cvičení a uvidíš jeho žebříček.",
@@ -501,29 +478,6 @@
"sha256": "267b52d786b62ad8ff9c1fde8ce6f32b1d9ba77e7bef6606fdb872a4d494531a",
"bytes": 25920
},
"de/launcher_guide_manage": {
"seconds": 13.319,
"transcript": "Zieh deine Lieblings-Apps nach angeheftet, dann sind sie nur einen Tipp entfernt, in beliebiger Reihenfolge. Der Papierkorb entfernt eine App, behält aber ihre Daten und installieren holt sie zurück.",
"match": 1.0,
"generation_id": "gen-tts-1791919321-uYwJtpXU5hs6XylVo6xW",
"attempts": 1,
"file": "assets/practices/guide/voice/de/launcher_guide_manage.ogg",
"text_sha256": "b37e75ed6c928edf555d34e2a08087979d7af9cf6147b3953f89931055e00182",
"sha256": "94408118e2e00b292e96013c62496874d4b1dc9a4b68224191c50a5f31ddf219",
"bytes": 34999
},
"de/launcher_guide_profile": {
"seconds": 7.427,
"transcript": "Dein Profil ist oben neben den Einstellungen. Tippe auf deinen Namen, um es zu öffnen und auf Apps, um hierher zurückzukehren.",
"match": 1.0,
"generation_id": "gen-tts-1792706167-um9iKUXh5JEFnp2wU1BT",
"attempts": 1,
"file": "assets/practices/guide/voice/de/launcher_guide_profile.ogg",
"text_sha256": "d9bffebe9077cb7fa27bf9c5aa53065f42954b186dba7881bbf676da46d94180",
"sha256": "745e3346624e393efde0d1db9b07f8568c3f78813056a159eb28a4be8b25ffd0",
"transcriber": "google/gemini-2.5-flash",
"bytes": 20615
},
"de/leaderboard_guide_practices": {
"seconds": 6.06,
"transcript": "Hier vergleichst du deine Übungen mit denen deiner Freunde. Wähle eine Übung, um ihre Rangliste zu sehen.",
@@ -880,29 +834,6 @@
"sha256": "6dc94385d37b706817334afe3bdb7c925f78a9b1e4a371871339ebd327bd1951",
"bytes": 22517
},
"en/launcher_guide_manage": {
"seconds": 9.959,
"transcript": "Drag the apps you love into Pend to keep them one tap away, in any order. The trash icon removes an app, but keeps its data. An install brings it back.",
"match": 0.979,
"generation_id": "gen-tts-1791919311-6pQCub8DUXPxqSNQ3O6y",
"attempts": 1,
"file": "assets/practices/guide/voice/en/launcher_guide_manage.ogg",
"text_sha256": "1cd73c7f4880aa7ad0545036acb28d40e37074ddc18754d760addb7f5fb6810d",
"sha256": "250c60710eccf4b6d894dad8e167383bab07d20a28a03f6cd92e7fccf5d5d174",
"bytes": 26446
},
"en/launcher_guide_profile": {
"seconds": 5.738,
"transcript": "Your profile is beside Settings at the top. Tap your name to open it. Tap Apps to return here.",
"match": 1.0,
"generation_id": "gen-tts-1792706150-Tf8FTmHlKwX7KzvoD6uq",
"attempts": 1,
"file": "assets/practices/guide/voice/en/launcher_guide_profile.ogg",
"text_sha256": "7a28ec132ec413441435e243b568611500066a1fdbad301a1ba5bc27a3f59cdd",
"sha256": "ed37905e42dddd91898bdd4b335d7e5fdde4eb469ddc4e3b8fceb3daf2ff8008",
"transcriber": "google/gemini-2.5-flash",
"bytes": 16726
},
"en/leaderboard_guide_practices": {
"seconds": 4.401,
"transcript": "Here, you and your friends compare your practice. Pick a practice to see its board.",
@@ -1259,29 +1190,6 @@
"sha256": "d04772d195ad9182acf16b36d768e55ffb48305ab26a80c11a4ab15eb0577244",
"bytes": 23722
},
"es/launcher_guide_manage": {
"seconds": 10.925,
"transcript": "Arrastra a fijadas las apps que más te gustan para tenerlas a un toque, en el orden que quieras. La papelera quita una app, pero conserva sus datos, e instalar la recupera.",
"match": 1.0,
"generation_id": "gen-tts-1791919203-GXL3c655lf652S4fzTWo",
"attempts": 1,
"file": "assets/practices/guide/voice/es/launcher_guide_manage.ogg",
"text_sha256": "ee4934058436352fdbc4eec85b25f783f0b07c5d2be8d549d2b538f68948d3d6",
"sha256": "d1e9d05241cac5ab61dad679b898ecaf6527129bb8ca4b2f36e6a2ca05010d37",
"bytes": 29064
},
"es/launcher_guide_profile": {
"seconds": 6.776,
"transcript": "Tu perfil está arriba, junto a Ajustes. Toca tu nombre para abrirlo y Aplicaciones para volver aquí.",
"match": 1.0,
"generation_id": "gen-tts-1792706150-Yrku9mHPCDaXYoSZ0mDU",
"attempts": 1,
"file": "assets/practices/guide/voice/es/launcher_guide_profile.ogg",
"text_sha256": "95bf9a34c2d2e6762fbe3f606bc21f04ff6636d1877ceea3e192930c77989a7e",
"sha256": "f3af3a0efcd6dd1bb0bff0811593d9727648143296e154d9dd9d640a8d5eb4eb",
"transcriber": "google/gemini-2.5-flash",
"bytes": 19019
},
"es/leaderboard_guide_practices": {
"seconds": 5.238,
"transcript": "Aquí tú y tus amigos comparan su práctica. Elige una práctica para ver su clasificación.",
@@ -1638,29 +1546,6 @@
"sha256": "7f0481ef590a0402fda3bc447ff4fc7e62434899227bae2f3b371285ab1a8144",
"bytes": 26547
},
"fr/launcher_guide_manage": {
"seconds": 9.037,
"transcript": "Fais glisser tes apps préférées dans épingler pour les garder à portée de main dans l'ordre que tu veux. La corbeille retire une app mais garde ses données et installer la fait revenir.",
"match": 0.99,
"generation_id": "gen-tts-1791919341-pjRTnjG5d24oragRroyg",
"attempts": 1,
"file": "assets/practices/guide/voice/fr/launcher_guide_manage.ogg",
"text_sha256": "33261bc0e1ba15a83591a518e6459d72859997235e9949046b01de6127b22b75",
"sha256": "14b2a802230a43a734fb920cf9ad9f67f983c6dba702e994e95fa7ca46ab7f5a",
"bytes": 24215
},
"fr/launcher_guide_profile": {
"seconds": 6.885,
"transcript": "Votre profil se trouve en haut, à côté des paramètres. Touchez votre nom pour l'ouvrir et application pour revenir ici.",
"match": 0.9948186528497409,
"generation_id": "gen-tts-1792706184-KHS1oSATQgXonNswwZBY",
"attempts": 1,
"file": "assets/practices/guide/voice/fr/launcher_guide_profile.ogg",
"text_sha256": "2d3449d5bce7750c960a03a7dee57c366cc7ae2890ab4fb2e9aa3ad7eb20eb0b",
"sha256": "739b83c6e472c45f316d5cf0ce21af20e5ca686595417416d7781796f00a8c30",
"transcriber": "google/gemini-2.5-flash",
"bytes": 19305
},
"fr/leaderboard_guide_practices": {
"seconds": 5.659,
"transcript": "Ici, toi et tes amis, comparez votre pratique. Choisis une pratique pour voir son classement.",
@@ -2017,29 +1902,6 @@
"sha256": "af69693dcee76411e51d0351d36f8b1af74c2716e691ac2a79cb78daa42b4e9c",
"bytes": 26761
},
"id/launcher_guide_manage": {
"seconds": 12.296,
"transcript": "Seret aplikasi favoritmu ke disematkan agar selalu dekat dengan urutan sesukamu. Ikon tempat sampah menghapus aplikasi, tapi datanya tetap tersimpan dan pasang mengembalikannya.",
"match": 1.0,
"generation_id": "gen-tts-1791919360-fP8kf2Q8i0EeTaSaIdra",
"attempts": 1,
"file": "assets/practices/guide/voice/id/launcher_guide_manage.ogg",
"text_sha256": "63c9271d1d1e8ea49efb37f1cb9a01be6f05c1aeb4ba6c64b48efb1477a10b5c",
"sha256": "27f70760c06fc6610922554bfb318936151c9441d96e0d1124a23252622fa1ae",
"bytes": 32019
},
"id/launcher_guide_profile": {
"seconds": 8.03,
"transcript": "Profil Anda ada di atas, di samping pengaturan. Ketuk nama Anda untuk membukanya, ketuk aplikasi untuk kembali ke sini.",
"match": 1.0,
"generation_id": "gen-tts-1792706184-IECtHL2F83PqyTXzsNVJ",
"attempts": 1,
"file": "assets/practices/guide/voice/id/launcher_guide_profile.ogg",
"text_sha256": "b3fcb324d714d361648b1410be8c75ce69c9603a86f45f86d53da81478628ecd",
"sha256": "c037d0c4219565318692edb74bad3ddc11a82807dbf745cf0b41f1073352ea05",
"transcriber": "google/gemini-2.5-flash",
"bytes": 21891
},
"id/leaderboard_guide_practices": {
"seconds": 6.442,
"transcript": "Di sini, kamu dan teman-temanmu membandingkan latihan. Pilih latihan untuk melihat papan peringkatnya.",
@@ -2396,29 +2258,6 @@
"sha256": "046532c4677d6d7ac624b1058ac67e1304d9a2aa1491e7b66cee43101b2d1ce5",
"bytes": 26849
},
"it/launcher_guide_manage": {
"seconds": 12.067,
"transcript": "Trascina le app che ami in app fissate per averle sempre a portata di mano, nell'ordine che vuoi. Il cestino rimuove un'app, ma ne conserva i dati e installa la riporta indietro.",
"match": 1.0,
"generation_id": "gen-tts-1791919383-dfOTsxnBh3sa2prJTkx5",
"attempts": 1,
"file": "assets/practices/guide/voice/it/launcher_guide_manage.ogg",
"text_sha256": "f8297091eaf08b9e189ea56868061d963f2f7f6c325095728c161cf6a267886e",
"sha256": "71e507a6cf524334156adfeb42c73d729dfdbd47d155b33fd3d73a8d58a1fa5e",
"bytes": 31457
},
"it/launcher_guide_profile": {
"seconds": 6.452,
"transcript": "Il tuo profilo è in alto, accanto alle impostazioni. Tocca il tuo nome per aprirlo e App per tornare qui.",
"match": 1.0,
"generation_id": "gen-tts-1792706200-EFxXCavb2UGpgOB4BUST",
"attempts": 1,
"file": "assets/practices/guide/voice/it/launcher_guide_profile.ogg",
"text_sha256": "c649d2bfc127fb74766a3eac475ad51c05b7f2f65c0bdfea3c61e6266b9b771f",
"sha256": "f43557031defeaf8e5266810ec0af2039250f1d587109612f47da793ea923ced",
"transcriber": "google/gemini-2.5-flash",
"bytes": 18580
},
"it/leaderboard_guide_practices": {
"seconds": 5.935,
"transcript": "Qui tu e i tuoi amici confrontate la vostra pratica. Scegli una pratica per vederne la classifica.",
@@ -2775,29 +2614,6 @@
"sha256": "4238ae413031cc34fae845c49fe9580dd2a333dc5edc2a2e314fafb177b1727c",
"bytes": 28434
},
"ja/launcher_guide_manage": {
"seconds": 11.366,
"transcript": "お気に入り の アプリ を ピン 止め に ドロップ する と 好き な 順番 で すぐ に 開け ます 。 ゴミ箱 アイコン で アプリ を 削除 し て も データ は 残り インストール で 元 に 戻せ ます 。",
"match": 0.93,
"generation_id": "gen-tts-1791919464-4iUoddcCP4seYmUDRCfL",
"attempts": 1,
"file": "assets/practices/guide/voice/ja/launcher_guide_manage.ogg",
"text_sha256": "deb23e243272efc5ddd7a4ece075516544fff9c0b2086daa275fad70426aa967",
"sha256": "e0031df72b4459cc3d6ad786736b0d310089a0ddf28df257ac2942a3516a3487",
"bytes": 28999
},
"ja/launcher_guide_profile": {
"seconds": 7.798,
"transcript": "プロフィールは常務の設定の隣にあります。名前をタップして開き、アプリをタップしてここに戻れます。",
"match": 0.9555555555555556,
"generation_id": "gen-tts-1792706217-t7HaS25H39p59QqNY41D",
"attempts": 1,
"file": "assets/practices/guide/voice/ja/launcher_guide_profile.ogg",
"text_sha256": "746da777ac908e47782e2ddbf3b3e76b78083e81fc169a53cd05755ccbab327a",
"sha256": "3b0d3cf98c192bc854f8d5bb39906304acc9d69ce241dcb413915a6521e157d3",
"transcriber": "google/gemini-2.5-flash",
"bytes": 21068
},
"ja/leaderboard_guide_practices": {
"seconds": 6.621,
"transcript": "ここでは友達と練習を比べられます。練習を選ぶとそのランキングが見られます。",
@@ -3154,29 +2970,6 @@
"sha256": "6d68a708a6aa9d6701e3c81734a4865e076db824b4195dc117cae492f1040abe",
"bytes": 26437
},
"ko/launcher_guide_manage": {
"seconds": 12.07,
"transcript": "좋아하는 앱을 고정된 앱으로 끌어다 놓으면 원하는 순서대로 바로 열 수 있어요. 휴지통 아이콘은 앱을 삭제하지만 데이터는 남겨두고 설치를 누르면 다시 돌아와요.",
"match": 1.0,
"generation_id": "gen-tts-1791919488-kj0ErcXlsrSDW9jALeq2",
"attempts": 1,
"file": "assets/practices/guide/voice/ko/launcher_guide_manage.ogg",
"text_sha256": "27ba95d99d5d0fc89b3c075a48f2f9a6d015cf278919474bcf62d0e945a1e824",
"sha256": "6d7977b551b4444ed3175973c305b67ad3b211a5a03a49a751d7ad0ad52528e0",
"bytes": 30608
},
"ko/launcher_guide_profile": {
"seconds": 6.407,
"transcript": "프로필은 상단 설정 옆에 있어요. 이름을 눌러 열고 앱을 눌러 여기로 돌아오세요.",
"match": 1.0,
"generation_id": "gen-tts-1792706233-zoVlqFwxPCBXgLqCFizc",
"attempts": 1,
"file": "assets/practices/guide/voice/ko/launcher_guide_profile.ogg",
"text_sha256": "d4255906c9858bd5cdea5af8b0fbdf639c640b1590a3a94efb0f14653bb56727",
"sha256": "bf0bd72c16aa5a0f3a75590e9a2adb79d601a6fba64374fc5c4ef1b77c101c51",
"transcriber": "google/gemini-2.5-flash",
"bytes": 17960
},
"ko/leaderboard_guide_practices": {
"seconds": 5.97,
"transcript": "여기서 친구들과 연습을 비교해요. 연습을 고르면 그 순위표가 보여요.",
@@ -3533,29 +3326,6 @@
"sha256": "d6b891433ac93d1981f1653d6b33cd8d47cf7305d88ca9aaa65fdf0696c84446",
"bytes": 25725
},
"pt/launcher_guide_manage": {
"seconds": 12.371,
"transcript": "Arraste os apps de que você mais gosta para fixados e deixe-os a um toque, na ordem que quiser. A lixeira remove um app, mas mantém os dados dele. E instalar traz o app de volta.",
"match": 1.0,
"generation_id": "gen-tts-1791919414-EVC8gNo4jCkHsrzjEcFH",
"attempts": 1,
"file": "assets/practices/guide/voice/pt/launcher_guide_manage.ogg",
"text_sha256": "a18f5a9c51b97ec1cd733ccbab1702a92af705bac9cc20f86690ec4753b45f74",
"sha256": "9ea3d672392acb5b3f256284621f5c3ffdccd857369daaf0b7b6cb3670288c9f",
"bytes": 32166
},
"pt/launcher_guide_profile": {
"seconds": 7.4,
"transcript": "Seu perfil fica no alto, ao lado das configurações. Toque no seu nome para abri-lo e em aplicativos para voltar aqui.",
"match": 1.0,
"generation_id": "gen-tts-1792706200-gK1Zup5wfIuSuVnixVsy",
"attempts": 1,
"file": "assets/practices/guide/voice/pt/launcher_guide_profile.ogg",
"text_sha256": "c9e07f238388ec9a847bfa3f2ed193bd4b4d341e190d0c26e15acb9f7a9ea8ea",
"sha256": "a829b70213bc2b83f62f7bc80acde31b3cff8d4798afda714277f66aef4c51df",
"transcriber": "google/gemini-2.5-flash",
"bytes": 20632
},
"pt/leaderboard_guide_practices": {
"seconds": 5.483,
"transcript": "Aqui, você e seus amigos comparam a prática. Escolha uma prática para ver o ranking dela.",
@@ -3912,29 +3682,6 @@
"sha256": "331ed29e73e164788819ce092e0ca7ffc4a3f8ff3fb63a7a921428f620f2f06f",
"bytes": 27870
},
"ru/launcher_guide_manage": {
"seconds": 12.043,
"transcript": "Перетащи любимые приложения в закреплённые, чтобы они всегда были под рукой, в любом порядке. Значок корзины удаляет приложение, но сохраняет его данные, а установить возвращает его.",
"match": 1.0,
"generation_id": "gen-tts-1791919445-hW7PaNRNMaoRmsaZz1In",
"attempts": 1,
"file": "assets/practices/guide/voice/ru/launcher_guide_manage.ogg",
"text_sha256": "98ed34c33b0990ee380233405573b7a8c159574ff7cb99423687ff30f7750437",
"sha256": "a1b1f49316179d529bd6d85e60fe27984f69e432ccf0b5fdd016f5e294b84ab5",
"bytes": 31474
},
"ru/launcher_guide_profile": {
"seconds": 8.159,
"transcript": "Ваш профиль находится вверху, рядом с настройками. Нажмите на имя, чтобы открыть его, или на приложение, чтобы вернуться сюда.",
"match": 0.9901960784313726,
"generation_id": "gen-tts-1792706216-XagNRuARyCP6kSlCNrp8",
"attempts": 1,
"file": "assets/practices/guide/voice/ru/launcher_guide_profile.ogg",
"text_sha256": "fd7fe769e5948a4c1943f137f8105e60f21d449ef4d4e1941041ccce9fef89b5",
"sha256": "9c9b72227b42da6cd631a37cd67759299371f757b2b1b9e117946195d1bb5a1f",
"transcriber": "google/gemini-2.5-flash",
"bytes": 22496
},
"ru/leaderboard_guide_practices": {
"seconds": 6.172,
"transcript": "Здесь ты и твои друзья сравниваете свои практики. Выбери практику, чтобы увидеть её таблицу.",
@@ -4291,29 +4038,6 @@
"sha256": "96a207b5255bf1a1a6ce6b170d19ba0d6eb916c679651e16423198dcfe70626c",
"bytes": 26370
},
"zh/launcher_guide_manage": {
"seconds": 10.897,
"transcript": "把你喜欢的应用拖到已固定里,按你喜欢的顺序排好,随时一点就开。 垃圾桶图标会移除应用,但保留它的数据,点安装就能找回来。",
"match": 0.99,
"generation_id": "gen-tts-1791919545-nNwecZH1734x81mjrmSB",
"attempts": 4,
"file": "assets/practices/guide/voice/zh/launcher_guide_manage.ogg",
"text_sha256": "f7b43f5490ad025db31893101a98ec73d7d8772dc06bf6d273213ba154a193b7",
"sha256": "9ea80de123d7e5ff494f0a12033ed0fef824a2cc11bf514d51da57c905d7c0a5",
"bytes": 28176
},
"zh/launcher_guide_profile": {
"seconds": 7.135,
"transcript": "个人资料位于顶部设置旁边,点击你的名字即可打开,点击应用即可返回这里。",
"match": 1.0,
"generation_id": "gen-tts-1792706234-4X8OYZ2ekNPhLmFhp3CQ",
"attempts": 1,
"file": "assets/practices/guide/voice/zh/launcher_guide_profile.ogg",
"text_sha256": "63d899f1a2c9d0c3dd3c124814503ed47b1a2c4dc352f111572ab862e582d4e2",
"sha256": "888ca8fd652130795e074f2a1a744b18986df9246c1bf9ada4b7389f0689451a",
"transcriber": "google/gemini-2.5-flash",
"bytes": 19992
},
"zh/leaderboard_guide_practices": {
"seconds": 6.438,
"transcript": "在这里,你和好友可以比较各自的练习。选一个练习,就能看到它的排行榜。",
+12
View File
@@ -20,6 +20,18 @@ make native
make run
```
Install the latest published Linux desktop release and keep it current:
```bash
python3 scripts/update-desktop.py --enable-automatic
```
This verifies the release download, installs it under `~/.local`, and checks
for new releases every 30 minutes and after login. Updates preserve running
app processes and user data; a running app uses the new version when it is
next opened. Previous installed files are saved under `backup/desktop-updates/`.
The user service and timer are named `inner-breeze-update`.
Build Android artifacts:
```bash
+23 -2
View File
@@ -22,6 +22,8 @@ if (verificationInstance && gradle.startParameter.taskNames.any {
}
def buildingAndroidBundle = gradle.startParameter.taskNames.any { it.toLowerCase().contains("bundle") }
def kryonDirOverride = (project.findProperty('kryon.dir') ?: System.getenv("KRYON_DIR") ?: '').toString()
// The same Kryon checkout CMake builds with; a relative path starts at the repository.
def kryonDir = rootProject.file('..').toPath().resolve(kryonDirOverride ?: 'build/packages/kryon').toFile()
android {
useLibrary 'android.test.runner', false
@@ -67,8 +69,8 @@ android {
minSdk 21
targetSdk 36
testInstrumentationRunner "android.test.InstrumentationTestRunner"
versionCode 189
versionName "2.1.52"
versionCode 195
versionName "2.1.58"
manifestPlaceholders = [
inbeAppLabel: "Inner Breeze",
inbeUsesCleartextTraffic: "false"
@@ -106,6 +108,12 @@ android {
initWith release
signingConfig releaseSigning
matchingFallbacks = ['release']
// Native code sees GOOGLE_PLAY and sells Dew through Play Billing.
externalNativeBuild {
cmake {
arguments '-DAPP_EDITION=gplay'
}
}
buildConfigField "boolean", "GPLAY", "true"
buildConfigField "boolean", "SELF_UPDATE", "false"
buildConfigField "String", "UPDATE_FEED", '""'
@@ -143,6 +151,10 @@ android {
}
}
// Kryon's Play Billing (kryon/play_billing finds it through the
// activity's class loader); other editions carry no Google billing.
sourceSets.gplay.java.srcDir new File(kryonDir, 'templates/droid/droid/app/src/gplay/java')
dependenciesInfo {
includeInApk = false
}
@@ -267,4 +279,13 @@ dependencies {
implementation 'com.google.zxing:core:3.3.0'
gplayImplementation platform('com.google.firebase:firebase-bom:34.18.0')
gplayImplementation 'com.google.firebase:firebase-messaging'
gplayImplementation 'com.android.billingclient:billing:9.1.0'
// Billing's AndroidX libraries mix Kotlin 1.6 and 1.8 standard
// libraries; one Kotlin version keeps their classes from colliding.
gplayImplementation platform('org.jetbrains.kotlin:kotlin-bom:1.8.22')
// Play services still request Fragment 1.1.0, which Google Play reports
// as an outdated SDK; resolve it to a current release instead.
constraints {
gplayImplementation 'androidx.fragment:fragment:1.8.9'
}
}
+3 -1
View File
@@ -5,7 +5,9 @@
# Native code looks these up by class or method name through JNI/reflection.
-keep class xyz.waozi.inbe.ShareHelper { *; }
-keep class xyz.waozi.inbe.GplayPushBridge { *; }
-keep class xyz.waozi.inbe.GplayPaymentBridge { *; }
-keep class org.kryonlabs.play.PlayBilling {
public static java.lang.String call(android.app.Activity, java.lang.String);
}
# Manifest and platform callback entrypoints must keep their public shape.
-keep class xyz.waozi.inbe.FcmPushService { *; }
@@ -1,21 +0,0 @@
package xyz.waozi.inbe;
import android.widget.Toast;
final class GplayPaymentBridge {
private GplayPaymentBridge() {}
static String channel() {
return "disabled";
}
static void purchaseTokens(final MainActivity activity, final String productId,
final String accountId, final String authToken) {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(activity, "Token purchases are not available in this build.", Toast.LENGTH_LONG).show();
}
});
}
}
+6
View File
@@ -98,6 +98,12 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
list(APPEND APP_ZIRAN_DEFINES --define ANDROID_DEBUG)
string(APPEND APP_ZIRAN_CHECK_DEFINES " ANDROID_DEBUG")
endif()
# The Google Play edition (build.gradle's gplay type) buys Dew through Play
# Billing (entity/dew_play).
if(APP_EDITION STREQUAL "gplay")
list(APPEND APP_ZIRAN_DEFINES --define GOOGLE_PLAY)
string(APPEND APP_ZIRAN_CHECK_DEFINES " GOOGLE_PLAY")
endif()
if(ANDROID_ABI STREQUAL "arm64-v8a")
set(APP_ZIRAN_ARCH __aarch64__)
elseif(ANDROID_ABI STREQUAL "armeabi-v7a")
@@ -1079,18 +1079,6 @@ public class MainActivity extends NativeActivity {
PushBridge.disable(this);
}
public String paymentChannel() {
return PaymentBridge.channel();
}
public boolean dewAvailable() {
return !BuildConfig.GPLAY;
}
public void purchaseTokens(final String productId, final String accountId, final String authToken) {
PaymentBridge.purchaseTokens(this, productId, accountId, authToken);
}
private RadioPlayer radioPlayer;
private volatile boolean radioBackgroundActive;
private volatile boolean sessionWakeLockRequested;
@@ -1,127 +0,0 @@
package xyz.waozi.inbe;
import android.widget.Toast;
import java.lang.reflect.Method;
import org.json.JSONObject;
final class PaymentBridge {
private static final String DAOCHI_BASE_URL = "https://api.waozi.xyz";
private PaymentBridge() {}
static String channel() {
String gplayChannel = gplayChannel();
if (gplayChannel != null) {
return gplayChannel;
}
return "monero";
}
static void purchaseTokens(final MainActivity activity, final String productId,
final String accountId, final String authToken) {
if (purchaseGplayTokens(activity, productId, accountId, authToken)) {
return;
}
new Thread(new Runnable() {
@Override
public void run() {
try {
String body = "{\"app_id\":\"inbe\",\"product_id\":\"" + jsonEscape(productId) + "\"}";
String response = SyncNetwork.httpRequest("PAYMENTS", "POST",
DAOCHI_BASE_URL + "/api/v1/tokens/purchases/monero/invoices",
body, authHeaders(authToken));
final Invoice invoice = parseInvoice(response);
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
if (invoice.ok) {
Toast.makeText(activity,
"Send " + invoice.atomicAmount + " atomic XMR to " + invoice.address,
Toast.LENGTH_LONG).show();
} else {
Toast.makeText(activity, invoice.message, Toast.LENGTH_LONG).show();
}
}
});
} catch (Exception e) {
showToast(activity, "Monero invoice failed");
}
}
}, "monero-token-invoice").start();
}
private static String gplayChannel() {
try {
Method method = Class.forName("xyz.waozi.inbe.GplayPaymentBridge").getDeclaredMethod("channel");
method.setAccessible(true);
return (String) method.invoke(null);
} catch (ClassNotFoundException e) {
return null;
} catch (Exception e) {
return "disabled";
}
}
private static boolean purchaseGplayTokens(MainActivity activity, String productId,
String accountId, String authToken) {
try {
Method method = Class.forName("xyz.waozi.inbe.GplayPaymentBridge").getDeclaredMethod(
"purchaseTokens", MainActivity.class, String.class, String.class, String.class);
method.setAccessible(true);
method.invoke(null, activity, productId, accountId, authToken);
return true;
} catch (ClassNotFoundException e) {
return false;
} catch (Exception e) {
showToast(activity, "Token purchases are not available in this build.");
return true;
}
}
private static String[] authHeaders(String authToken) {
return new String[] {
"Content-Type: application/json",
"Authorization: Bearer " + (authToken != null ? authToken : "")
};
}
private static Invoice parseInvoice(String response) throws Exception {
int newline = response.indexOf('\n');
int status = newline > 0 ? Integer.parseInt(response.substring(0, newline).trim()) : 0;
String body = newline >= 0 ? response.substring(newline + 1) : "";
if (status < 200 || status >= 300) {
return new Invoice(false, "Monero invoice unavailable", "", 0);
}
JSONObject json = new JSONObject(body);
return new Invoice(true, "", json.optString("address", ""),
json.optLong("atomic_amount", 0));
}
private static void showToast(final MainActivity activity, final String message) {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
Toast.makeText(activity, message, Toast.LENGTH_LONG).show();
}
});
}
private static String jsonEscape(String value) {
if (value == null) return "";
return value.replace("\\", "\\\\").replace("\"", "\\\"");
}
private static final class Invoice {
final boolean ok;
final String message;
final String address;
final long atomicAmount;
Invoice(boolean ok, String message, String address, long atomicAmount) {
this.ok = ok;
this.message = message;
this.address = address;
this.atomicAmount = atomicAmount;
}
}
}
@@ -0,0 +1,2 @@
- Top up Dew with Bitcoin, USDT and other coins through dew.waozi.xyz.
- The Google Play version uses current Android components.
@@ -0,0 +1 @@
- Buy Dew through Google Play in the Google Play version.
@@ -0,0 +1,2 @@
- Retry Google Play prices when the store cannot load Dew packs.
- Open apps with a calmer, themed loading screen and their own icon.
@@ -0,0 +1,3 @@
- Open the keyboard when editing an account alias and copy the complete public ID from Profile.
- Show a full public ID where it fits; tap it for a scannable QR code and the full ID to copy.
- Use one shared Profile leaderboard, including Apfelwurm’s score and level alongside puzzle and practice rankings.
@@ -0,0 +1,3 @@
- Keep downloaded Arcade games and saved progress across updates.
- Show premium username prices, confirm Dew purchases and open top-up when needed. Existing usernames stay free to keep.
- Align Profile leaderboard columns and improve Friends input, profile pictures and app rearranging.
+92 -1
View File
@@ -607,6 +607,9 @@ Adresa zkopírována
[open_wallet_button]
Peněženka
---
[dew_other_coin_button]
Koupit jinou kryptoměnou
---
[orientation_label]
Orientace
---
@@ -3086,6 +3089,8 @@ Přetáhni oblíbené aplikace do Připnutých, ať je máš po ruce, v jakémko
[launcher_guide_profile]
Váš profil je nahoře vedle Nastavení. Klepnutím na jméno ho otevřete; klepnutím na Aplikace se vrátíte sem.
---
[lumi_guide_chat]
Tady si povídáme. Požádej mě, ať něco přidám do seznamu, odškrtnu návyk, spustím cvičení nebo zapíšu do deníku. Napiš lomítko a uvidíš všechno, co umím.
---
@@ -3110,6 +3115,12 @@ Dnes tě vrátí na dnešní stránku a kalendář ukazuje dny se zápisem.
[diary_guide_write]
Piš sem, kolik chceš. Tlačítka nahoře vracejí a opakují změny, kontrolují pravopis a přidávají čas nebo fotku.
---
[leaderboard_score]
Skóre
---
[leaderboard_level]
Úroveň
---
[leaderboard_levels]
Úrovně
---
@@ -5140,7 +5151,7 @@ Dobít
---
[profile_dew_funds]
Nedostatek Dew. Nejprve dobij přes Monero.
Nedostatek Dew. Nejprve si dobij.
---
[profile_dew_retry]
@@ -5208,6 +5219,34 @@ Získávám tvou adresu Monero…
Adresu Monero se nepodařilo získat. Zkus to znovu.
---
[profile_dew_play_pack]
Koupit %s Dew
---
[profile_dew_play_comparison]
Úspora na Dew oproti balíčku 10 Dew.
---
[profile_dew_play_loading]
Načítám ceny z Google Play…
---
[profile_dew_play_unavailable]
Nákupy přes Google Play teď nejsou k dispozici.
---
[profile_dew_play_verifying]
Připisuji Dew z tvého nákupu na Google Play…
---
[profile_dew_play_credited]
Dew bylo připsáno.
---
[profile_dew_play_failed]
Google Play platbu přijal, ale Dew zatím nešlo připsat. Zkusí se to znovu automaticky.
---
[profile_dew_topup_send]
Pošli Monero na tuto adresu. Dew se objeví po %d potvrzeních.
---
@@ -7502,3 +7541,55 @@ Otevírání aplikací
[leaderboard_refresh_failed]
Žebříček se nepodařilo aktualizovat.
---
[sync_alias_pending]
Nákup uživatelského jména je třeba zopakovat.
---
[sync_alias_retry]
Zkontrolovat čekající nákup
---
[sync_alias_current]
Toto je vaše současné uživatelské jméno. Jeho ponechání je zdarma.
---
[sync_alias_taken]
Toto uživatelské jméno je již obsazené.
---
[sync_alias_premium_available]
Prémiové uživatelské jméno je dostupné
---
[sync_alias_buy]
Koupit uživatelské jméno
---
[sync_alias_free]
Dostupné zdarma
---
[sync_alias_check]
Ověřit dostupnost
---
[sync_alias_checking]
Ověřování dostupnosti…
---
[sync_alias_premium]
Prémiové uživatelské jméno
---
[sync_alias_once]
Jednorázový nákup. Vaše uživatelské jméno se změní až po potvrzení uzlem.
---
[sync_alias_insufficient]
Nemáte dost Dew. Doplňte zůstatek a poté se vraťte potvrdit nákup.
---
[launcher_move_app]
Přesunout aplikaci
---
+92 -1
View File
@@ -607,6 +607,9 @@ Adresse kopiert
[open_wallet_button]
Wallet
---
[dew_other_coin_button]
Mit anderem Coin kaufen
---
[orientation_label]
Ausrichtung
---
@@ -3080,6 +3083,8 @@ Zieh deine Lieblings-Apps nach Angeheftet, dann sind sie nur einen Tipp entfernt
[launcher_guide_profile]
Dein Profil ist oben neben den Einstellungen. Tippe auf deinen Namen, um es zu öffnen, und auf Apps, um hierher zurückzukehren.
---
[lumi_guide_chat]
Hier unterhalten wir uns. Bitte mich, etwas auf eine Liste zu setzen, eine Gewohnheit abzuhaken, eine Übung zu starten oder in dein Tagebuch zu schreiben. Tippe einen Schrägstrich, um alles zu sehen, was ich kann.
---
@@ -3104,6 +3109,12 @@ Heute bringt dich zurück zur Seite von heute, und der Kalender zeigt die Tage,
[diary_guide_write]
Schreib hier, so viel oder so wenig du magst. Die Knöpfe darüber machen rückgängig und wiederholen, prüfen deine Rechtschreibung und fügen die Uhrzeit oder ein Foto ein.
---
[leaderboard_score]
Punkte
---
[leaderboard_level]
Level
---
[leaderboard_levels]
Level
---
@@ -5134,7 +5145,7 @@ Aufladen
---
[profile_dew_funds]
Nicht genug Dew. Lade zuerst mit Monero auf.
Nicht genug Dew. Lade zuerst auf.
---
[profile_dew_retry]
@@ -5202,6 +5213,34 @@ Deine Monero-Adresse wird abgerufen…
Die Monero-Adresse konnte nicht abgerufen werden. Versuche es erneut.
---
[profile_dew_play_pack]
%s Dew kaufen
---
[profile_dew_play_comparison]
Ersparnis pro Dew gegenüber dem Paket mit 10 Dew.
---
[profile_dew_play_loading]
Google-Play-Preise werden geladen…
---
[profile_dew_play_unavailable]
Käufe über Google Play sind gerade nicht verfügbar.
---
[profile_dew_play_verifying]
Das Dew aus deinem Google-Play-Kauf wird gutgeschrieben…
---
[profile_dew_play_credited]
Dein Dew wurde gutgeschrieben.
---
[profile_dew_play_failed]
Google Play hat die Zahlung erhalten, aber das Dew konnte noch nicht gutgeschrieben werden. Es wird automatisch erneut versucht.
---
[profile_dew_topup_send]
Sende Monero an diese Adresse. Dew erscheint nach %d Bestätigungen.
---
@@ -7496,3 +7535,55 @@ Apps werden geöffnet
[leaderboard_refresh_failed]
Die Rangliste konnte nicht aktualisiert werden.
---
[sync_alias_pending]
Der Kauf eines Benutzernamens muss erneut versucht werden.
---
[sync_alias_retry]
Ausstehenden Kauf prüfen
---
[sync_alias_current]
Dies ist dein aktueller Benutzername. Du kannst ihn kostenlos behalten.
---
[sync_alias_taken]
Dieser Benutzername ist bereits vergeben.
---
[sync_alias_premium_available]
Premium-Benutzername verfügbar
---
[sync_alias_buy]
Benutzernamen kaufen
---
[sync_alias_free]
Kostenlos verfügbar
---
[sync_alias_check]
Verfügbarkeit prüfen
---
[sync_alias_checking]
Verfügbarkeit wird geprüft…
---
[sync_alias_premium]
Premium-Benutzername
---
[sync_alias_once]
Einmaliger Kauf. Dein Benutzername ändert sich erst nach der Bestätigung durch den Knoten.
---
[sync_alias_insufficient]
Nicht genug Dew. Lade dein Guthaben auf und kehre zurück, um den Kauf zu bestätigen.
---
[launcher_move_app]
App verschieben
---
+92 -1
View File
@@ -424,6 +424,9 @@ Address copied
[open_wallet_button]
Wallet
---
[dew_other_coin_button]
Buy with another coin
---
[orientation_label]
Orientation
---
@@ -3104,6 +3107,8 @@ Drag the apps you love into Pinned to keep them one tap away, in any order. The
[launcher_guide_profile]
Your profile is beside Settings at the top. Tap your name to open it; tap Apps to return here.
---
[lumi_guide_chat]
This is where we talk. Ask me to add to a list, tick off a habit, start a practice or write in your diary. Type a slash to see everything I can do.
---
@@ -3128,6 +3133,12 @@ Today brings you back to today's page, and the calendar shows the days you wrote
[diary_guide_write]
Write here, as much or as little as you like. The buttons above undo and redo, check your spelling, and add the time or a photo.
---
[leaderboard_score]
Score
---
[leaderboard_level]
Level
---
[leaderboard_levels]
Levels
---
@@ -5158,7 +5169,7 @@ Top up
---
[profile_dew_funds]
Not enough Dew. Top up with Monero first.
Not enough Dew. Top up first.
---
[profile_dew_retry]
@@ -5226,6 +5237,34 @@ Getting your Monero address…
Could not get your Monero address. Try again.
---
[profile_dew_play_pack]
Buy %s Dew
---
[profile_dew_play_comparison]
Savings per Dew compared with the 10 Dew pack.
---
[profile_dew_play_loading]
Loading Google Play prices…
---
[profile_dew_play_unavailable]
Google Play purchases are not available right now.
---
[profile_dew_play_verifying]
Adding the Dew from your Google Play purchase…
---
[profile_dew_play_credited]
Your Dew has been added.
---
[profile_dew_play_failed]
Google Play took the payment, but the Dew could not be added yet. It tries again automatically.
---
[profile_dew_topup_send]
Send Monero to this address. Dew appears after %d confirmations.
---
@@ -7520,3 +7559,55 @@ Opening apps
[leaderboard_refresh_failed]
Could not refresh the leaderboard.
---
[sync_alias_pending]
A username purchase needs a retry.
---
[sync_alias_retry]
Review pending purchase
---
[sync_alias_current]
This is your current username. Keeping it is free.
---
[sync_alias_taken]
That username is already taken.
---
[sync_alias_premium_available]
Premium username available
---
[sync_alias_buy]
Buy username
---
[sync_alias_free]
Available for free
---
[sync_alias_check]
Check availability
---
[sync_alias_checking]
Checking availability…
---
[sync_alias_premium]
Premium username
---
[sync_alias_once]
One-time purchase. Your current username changes only after the node confirms.
---
[sync_alias_insufficient]
Not enough Dew. Top up, then return to confirm the purchase.
---
[launcher_move_app]
Move app
---
+92 -1
View File
@@ -607,6 +607,9 @@ Dirección copiada
[open_wallet_button]
Billetera
---
[dew_other_coin_button]
Comprar con otra moneda
---
[orientation_label]
Orientación
---
@@ -3080,6 +3083,8 @@ Arrastra a Fijadas las apps que más te gustan para tenerlas a un toque, en el o
[launcher_guide_profile]
Tu perfil está arriba, junto a Ajustes. Toca tu nombre para abrirlo y Aplicaciones para volver aquí.
---
[lumi_guide_chat]
Aquí es donde hablamos. Pídeme que añada algo a una lista, marque un hábito, empiece una práctica o escriba en tu diario. Escribe una barra para ver todo lo que puedo hacer.
---
@@ -3104,6 +3109,12 @@ Hoy te devuelve a la página de hoy, y el calendario muestra los días en que es
[diary_guide_write]
Escribe aquí, mucho o poco, como quieras. Los botones de arriba deshacen y rehacen, revisan tu ortografía y añaden la hora o una foto.
---
[leaderboard_score]
Puntuación
---
[leaderboard_level]
Nivel
---
[leaderboard_levels]
Niveles
---
@@ -5134,7 +5145,7 @@ Recargar
---
[profile_dew_funds]
No tienes suficiente Dew. Recarga primero con Monero.
No tienes suficiente Dew. Recarga primero.
---
[profile_dew_retry]
@@ -5202,6 +5213,34 @@ Obteniendo tu dirección de Monero…
No se pudo obtener tu dirección de Monero. Inténtalo de nuevo.
---
[profile_dew_play_pack]
Comprar %s Dew
---
[profile_dew_play_comparison]
Ahorro por Dew respecto al paquete de 10 Dew.
---
[profile_dew_play_loading]
Cargando precios de Google Play…
---
[profile_dew_play_unavailable]
Las compras de Google Play no están disponibles en este momento.
---
[profile_dew_play_verifying]
Añadiendo el Dew de tu compra en Google Play…
---
[profile_dew_play_credited]
Tu Dew se ha añadido.
---
[profile_dew_play_failed]
Google Play recibió el pago, pero el Dew aún no se pudo añadir. Se volverá a intentar automáticamente.
---
[profile_dew_topup_send]
Envía Monero a esta dirección. Dew aparece tras %d confirmaciones.
---
@@ -7496,3 +7535,55 @@ Abriendo aplicaciones
[leaderboard_refresh_failed]
No se pudo actualizar la clasificación.
---
[sync_alias_pending]
Hay que reintentar la compra de un nombre de usuario.
---
[sync_alias_retry]
Revisar compra pendiente
---
[sync_alias_current]
Este es tu nombre de usuario actual. Conservarlo es gratis.
---
[sync_alias_taken]
Ese nombre de usuario ya está ocupado.
---
[sync_alias_premium_available]
Nombre de usuario prémium disponible
---
[sync_alias_buy]
Comprar nombre de usuario
---
[sync_alias_free]
Disponible gratis
---
[sync_alias_check]
Comprobar disponibilidad
---
[sync_alias_checking]
Comprobando disponibilidad…
---
[sync_alias_premium]
Nombre de usuario prémium
---
[sync_alias_once]
Compra única. Tu nombre de usuario solo cambia cuando el nodo lo confirma.
---
[sync_alias_insufficient]
No tienes suficiente Dew. Recarga y vuelve para confirmar la compra.
---
[launcher_move_app]
Mover aplicación
---
+92 -1
View File
@@ -607,6 +607,9 @@ Adresse copiée
[open_wallet_button]
Portefeuille
---
[dew_other_coin_button]
Acheter avec une autre crypto
---
[orientation_label]
Orientation
---
@@ -3068,6 +3071,8 @@ Fais glisser tes apps préférées dans Épinglées pour les garder à portée d
[launcher_guide_profile]
Votre profil se trouve en haut, à côté des paramètres. Touchez votre nom pour l’ouvrir et Applications pour revenir ici.
---
[lumi_guide_chat]
C’est ici qu’on se parle. Demande-moi d’ajouter quelque chose à une liste, de cocher une habitude, de lancer une pratique ou d’écrire dans ton journal. Tape une barre oblique pour voir tout ce que je sais faire.
---
@@ -3092,6 +3097,12 @@ Aujourd’hui te ramène à la page du jour, et le calendrier montre les jours o
[diary_guide_write]
Écris ici, beaucoup ou peu, comme tu veux. Les boutons au-dessus annulent et rétablissent, corrigent ton orthographe et ajoutent l’heure ou une photo.
---
[leaderboard_score]
Score
---
[leaderboard_level]
Niveau
---
[leaderboard_levels]
Niveaux
---
@@ -5122,7 +5133,7 @@ Recharger
---
[profile_dew_funds]
Dew insuffisant. Rechargez d’abord avec Monero.
Dew insuffisant. Rechargez d’abord.
---
[profile_dew_retry]
@@ -5190,6 +5201,34 @@ Récupération de votre adresse Monero…
Impossible de récupérer votre adresse Monero. Réessayez.
---
[profile_dew_play_pack]
Acheter %s Dew
---
[profile_dew_play_comparison]
Économies par Dew par rapport au lot de 10 Dew.
---
[profile_dew_play_loading]
Chargement des prix Google Play…
---
[profile_dew_play_unavailable]
Les achats Google Play ne sont pas disponibles pour le moment.
---
[profile_dew_play_verifying]
Ajout des Dew de votre achat Google Play…
---
[profile_dew_play_credited]
Vos Dew ont été ajoutés.
---
[profile_dew_play_failed]
Google Play a reçu le paiement, mais les Dew n’ont pas encore pu être ajoutés. Une nouvelle tentative aura lieu automatiquement.
---
[profile_dew_topup_send]
Envoyez des Monero à cette adresse. Les Dew apparaissent après %d confirmations.
---
@@ -7484,3 +7523,55 @@ Ouverture des applications
[leaderboard_refresh_failed]
Impossible de mettre à jour le classement.
---
[sync_alias_pending]
Un achat de nom d’utilisateur doit être réessayé.
---
[sync_alias_retry]
Vérifier l’achat en attente
---
[sync_alias_current]
C’est votre nom d’utilisateur actuel. Le conserver est gratuit.
---
[sync_alias_taken]
Ce nom d’utilisateur est déjà pris.
---
[sync_alias_premium_available]
Nom d’utilisateur premium disponible
---
[sync_alias_buy]
Acheter le nom d’utilisateur
---
[sync_alias_free]
Disponible gratuitement
---
[sync_alias_check]
Vérifier la disponibilité
---
[sync_alias_checking]
Vérification de la disponibilité…
---
[sync_alias_premium]
Nom d’utilisateur premium
---
[sync_alias_once]
Achat unique. Votre nom d’utilisateur ne change qu’après confirmation du nœud.
---
[sync_alias_insufficient]
Pas assez de Dew. Rechargez votre solde, puis revenez confirmer l’achat.
---
[launcher_move_app]
Déplacer l’application
---
+92 -1
View File
@@ -607,6 +607,9 @@ Alamat disalin
[open_wallet_button]
Dompet
---
[dew_other_coin_button]
Beli dengan koin lain
---
[orientation_label]
Orientasi
---
@@ -3069,6 +3072,8 @@ Seret aplikasi favoritmu ke Disematkan agar selalu dekat, dengan urutan sesukamu
[launcher_guide_profile]
Profil Anda ada di atas, di samping Pengaturan. Ketuk nama Anda untuk membukanya; ketuk Aplikasi untuk kembali ke sini.
---
[lumi_guide_chat]
Di sinilah kita mengobrol. Minta aku menambahkan sesuatu ke daftar, mencentang kebiasaan, memulai latihan, atau menulis di buku harianmu. Ketik garis miring untuk melihat semua yang bisa kulakukan.
---
@@ -3093,6 +3098,12 @@ Hari ini membawamu kembali ke halaman hari ini, dan kalender menunjukkan hari-ha
[diary_guide_write]
Tulis di sini, sebanyak atau sesedikit yang kamu mau. Tombol di atas membatalkan dan mengulang, memeriksa ejaan, serta menambahkan waktu atau foto.
---
[leaderboard_score]
Skor
---
[leaderboard_level]
Level
---
[leaderboard_levels]
Level
---
@@ -5123,7 +5134,7 @@ Isi saldo
---
[profile_dew_funds]
Dew tidak cukup. Isi terlebih dahulu dengan Monero.
Dew tidak cukup. Isi saldo terlebih dahulu.
---
[profile_dew_retry]
@@ -5191,6 +5202,34 @@ Mengambil alamat Monero…
Alamat Monero tidak dapat diambil. Coba lagi.
---
[profile_dew_play_pack]
Beli %s Dew
---
[profile_dew_play_comparison]
Penghematan per Dew dibandingkan dengan paket 10 Dew.
---
[profile_dew_play_loading]
Memuat harga Google Play…
---
[profile_dew_play_unavailable]
Pembelian Google Play sedang tidak tersedia.
---
[profile_dew_play_verifying]
Menambahkan Dew dari pembelian Google Play Anda…
---
[profile_dew_play_credited]
Dew Anda telah ditambahkan.
---
[profile_dew_play_failed]
Google Play sudah menerima pembayaran, tetapi Dew belum dapat ditambahkan. Akan dicoba lagi secara otomatis.
---
[profile_dew_topup_send]
Kirim Monero ke alamat ini. Dew muncul setelah %d konfirmasi.
---
@@ -7485,3 +7524,55 @@ Membuka aplikasi-aplikasi
[leaderboard_refresh_failed]
Papan peringkat tidak dapat diperbarui.
---
[sync_alias_pending]
Pembelian nama pengguna perlu dicoba lagi.
---
[sync_alias_retry]
Tinjau pembelian tertunda
---
[sync_alias_current]
Ini nama pengguna Anda saat ini. Tetap menggunakannya gratis.
---
[sync_alias_taken]
Nama pengguna itu sudah dipakai.
---
[sync_alias_premium_available]
Nama pengguna premium tersedia
---
[sync_alias_buy]
Beli nama pengguna
---
[sync_alias_free]
Tersedia gratis
---
[sync_alias_check]
Periksa ketersediaan
---
[sync_alias_checking]
Memeriksa ketersediaan…
---
[sync_alias_premium]
Nama pengguna premium
---
[sync_alias_once]
Pembelian satu kali. Nama pengguna Anda hanya berubah setelah dikonfirmasi oleh node.
---
[sync_alias_insufficient]
Dew tidak cukup. Isi saldo, lalu kembali untuk mengonfirmasi pembelian.
---
[launcher_move_app]
Pindahkan aplikasi
---
+92 -1
View File
@@ -394,6 +394,9 @@ Indirizzo copiato
[open_wallet_button]
Portafoglio
---
[dew_other_coin_button]
Compra con un'altra moneta
---
[orientation_label]
Orientamento
---
@@ -3069,6 +3072,8 @@ Trascina le app che ami in App fissate per averle sempre a portata di mano, nell
[launcher_guide_profile]
Il tuo profilo è in alto, accanto alle impostazioni. Tocca il tuo nome per aprirlo e App per tornare qui.
---
[lumi_guide_chat]
Qui è dove parliamo. Chiedimi di aggiungere qualcosa a una lista, spuntare un'abitudine, avviare una pratica o scrivere nel tuo diario. Digita una barra per vedere tutto quello che so fare.
---
@@ -3093,6 +3098,12 @@ Oggi ti riporta alla pagina di oggi, e il calendario mostra i giorni in cui hai
[diary_guide_write]
Scrivi qui, tanto o poco come vuoi. I pulsanti in alto annullano e ripristinano, controllano l'ortografia e aggiungono l'ora o una foto.
---
[leaderboard_score]
Punteggio
---
[leaderboard_level]
Livello
---
[leaderboard_levels]
Livelli
---
@@ -5123,7 +5134,7 @@ Ricarica
---
[profile_dew_funds]
Dew insufficiente. Ricarica prima con Monero.
Dew insufficiente. Ricarica prima.
---
[profile_dew_retry]
@@ -5191,6 +5202,34 @@ Recupero del tuo indirizzo Monero…
Impossibile recuperare il tuo indirizzo Monero. Riprova.
---
[profile_dew_play_pack]
Acquista %s Dew
---
[profile_dew_play_comparison]
Risparmio per Dew rispetto al pacchetto da 10 Dew.
---
[profile_dew_play_loading]
Caricamento dei prezzi di Google Play…
---
[profile_dew_play_unavailable]
Gli acquisti con Google Play non sono disponibili al momento.
---
[profile_dew_play_verifying]
Aggiunta dei Dew dal tuo acquisto su Google Play…
---
[profile_dew_play_credited]
I tuoi Dew sono stati aggiunti.
---
[profile_dew_play_failed]
Google Play ha ricevuto il pagamento, ma non è stato ancora possibile aggiungere i Dew. Verrà riprovato automaticamente.
---
[profile_dew_topup_send]
Invia Monero a questo indirizzo. Dew appare dopo %d conferme.
---
@@ -7485,3 +7524,55 @@ Apertura delle app
[leaderboard_refresh_failed]
Impossibile aggiornare la classifica.
---
[sync_alias_pending]
L’acquisto di un nome utente deve essere riprovato.
---
[sync_alias_retry]
Controlla l’acquisto in sospeso
---
[sync_alias_current]
Questo è il tuo nome utente attuale. Mantenerlo è gratuito.
---
[sync_alias_taken]
Questo nome utente è già occupato.
---
[sync_alias_premium_available]
Nome utente premium disponibile
---
[sync_alias_buy]
Acquista nome utente
---
[sync_alias_free]
Disponibile gratuitamente
---
[sync_alias_check]
Verifica disponibilità
---
[sync_alias_checking]
Verifica della disponibilità…
---
[sync_alias_premium]
Nome utente premium
---
[sync_alias_once]
Acquisto unico. Il tuo nome utente cambia solo dopo la conferma del nodo.
---
[sync_alias_insufficient]
Dew insufficienti. Ricarica il saldo, poi torna per confermare l’acquisto.
---
[launcher_move_app]
Sposta app
---
+92 -1
View File
@@ -609,6 +609,9 @@ OK
[open_wallet_button]
ウォレット
---
[dew_other_coin_button]
他のコインで購入
---
[orientation_label]
向き
---
@@ -3065,6 +3068,8 @@ Telegram アカウント
[launcher_guide_profile]
プロフィールは上部の設定の隣にあります。名前をタップして開き、アプリをタップしてここに戻れます。
---
[lumi_guide_chat]
ここでわたしとお話しします。リストへの追加、習慣のチェック、練習の開始、日記の記入などを頼んでください。スラッシュを入力すると、できることが全部見られます。
---
@@ -3089,6 +3094,12 @@ Telegram アカウント
[diary_guide_write]
ここに好きなだけ書いてください。上のボタンで元に戻す、やり直す、スペルの確認、時刻や写真の追加ができます。
---
[leaderboard_score]
得点
---
[leaderboard_level]
レベル
---
[leaderboard_levels]
レベル
---
@@ -5119,7 +5130,7 @@ Dewで前払いします。プランが自動で更新されることはあり
---
[profile_dew_funds]
Dewが不足しています。先にMoneroでチャージしてください。
Dewが不足しています。先にチャージしてください。
---
[profile_dew_retry]
@@ -5187,6 +5198,34 @@ Moneroアドレスを取得しています…
Moneroアドレスを取得できませんでした。もう一度お試しください。
---
[profile_dew_play_pack]
%s Dewを購入
---
[profile_dew_play_comparison]
10 Dew パックと比べた Dew あたりの割引です。
---
[profile_dew_play_loading]
Google Playの価格を読み込んでいます…
---
[profile_dew_play_unavailable]
現在、Google Playでの購入はご利用いただけません。
---
[profile_dew_play_verifying]
Google Playでの購入分のDewを追加しています…
---
[profile_dew_play_credited]
Dewが追加されました。
---
[profile_dew_play_failed]
Google Playでの支払いは完了しましたが、まだDewを追加できませんでした。自動的に再試行します。
---
[profile_dew_topup_send]
このアドレスにMoneroを送金してください。%d回の承認後にDewが反映されます。
---
@@ -7481,3 +7520,55 @@ Lumi や日記など、Inner Breeze 内のアプリを waozi.xyz から自動で
[leaderboard_refresh_failed]
ランキングを更新できませんでした。
---
[sync_alias_pending]
ユーザー名の購入を再試行する必要があります。
---
[sync_alias_retry]
保留中の購入を確認
---
[sync_alias_current]
これは現在のユーザー名です。無料で使い続けられます。
---
[sync_alias_taken]
このユーザー名はすでに使用されています。
---
[sync_alias_premium_available]
プレミアムユーザー名を購入できます
---
[sync_alias_buy]
ユーザー名を購入
---
[sync_alias_free]
無料で利用可能
---
[sync_alias_check]
空き状況を確認
---
[sync_alias_checking]
空き状況を確認中…
---
[sync_alias_premium]
プレミアムユーザー名
---
[sync_alias_once]
一度限りの購入です。ノードが確認するまで現在のユーザー名は変わりません。
---
[sync_alias_insufficient]
Dewが不足しています。チャージしてから戻り、購入を確定してください。
---
[launcher_move_app]
アプリを移動
---
+92 -1
View File
@@ -394,6 +394,9 @@ Up
[open_wallet_button]
지갑
---
[dew_other_coin_button]
다른 코인으로 구매
---
[orientation_label]
화면 방향
---
@@ -3075,6 +3078,8 @@ Telegram 계정
[launcher_guide_profile]
프로필은 상단 설정 옆에 있어요. 이름을 눌러 열고, 앱을 눌러 여기로 돌아오세요.
---
[lumi_guide_chat]
여기서 저와 이야기해요. 목록에 추가하기, 습관 체크하기, 연습 시작하기, 일기 쓰기를 부탁해 보세요. 슬래시를 입력하면 제가 할 수 있는 모든 걸 볼 수 있어요.
---
@@ -3099,6 +3104,12 @@ Telegram 계정
[diary_guide_write]
여기에 마음껏 써 보세요. 위의 버튼으로 실행 취소와 다시 실행, 맞춤법 검사, 시간이나 사진 추가를 할 수 있어요.
---
[leaderboard_score]
점수
---
[leaderboard_level]
레벨
---
[leaderboard_levels]
레벨
---
@@ -5129,7 +5140,7 @@ Dew로 미리 결제합니다. 요금제는 자동으로 갱신되지 않습니
---
[profile_dew_funds]
Dew가 부족해요. 먼저 Monero로 충전하세요.
Dew가 부족해요. 먼저 충전하세요.
---
[profile_dew_retry]
@@ -5197,6 +5208,34 @@ Monero 주소를 가져오는 중…
Monero 주소를 가져오지 못했습니다. 다시 시도하세요.
---
[profile_dew_play_pack]
%s Dew 구매
---
[profile_dew_play_comparison]
10 Dew 팩과 비교한 Dew당 할인율입니다.
---
[profile_dew_play_loading]
Google Play 가격을 불러오는 중…
---
[profile_dew_play_unavailable]
지금은 Google Play 구매를 사용할 수 없어요.
---
[profile_dew_play_verifying]
Google Play 구매로 받은 Dew를 추가하는 중…
---
[profile_dew_play_credited]
Dew가 추가되었어요.
---
[profile_dew_play_failed]
Google Play에서 결제가 완료되었지만 아직 Dew를 추가하지 못했어요. 자동으로 다시 시도해요.
---
[profile_dew_topup_send]
이 주소로 Monero를 보내세요. %d번 확인 후 Dew가 표시됩니다.
---
@@ -7491,3 +7530,55 @@ Lumi, 일기 등 Inner Breeze 안의 앱을 waozi.xyz에서 자동으로 업데
[leaderboard_refresh_failed]
순위표를 새로 고칠 수 없습니다.
---
[sync_alias_pending]
사용자 이름 구매를 다시 시도해야 합니다.
---
[sync_alias_retry]
대기 중인 구매 확인
---
[sync_alias_current]
현재 사용자 이름입니다. 무료로 계속 사용할 수 있습니다.
---
[sync_alias_taken]
이미 사용 중인 사용자 이름입니다.
---
[sync_alias_premium_available]
프리미엄 사용자 이름 구매 가능
---
[sync_alias_buy]
사용자 이름 구매
---
[sync_alias_free]
무료로 사용 가능
---
[sync_alias_check]
사용 가능 여부 확인
---
[sync_alias_checking]
사용 가능 여부 확인 중…
---
[sync_alias_premium]
프리미엄 사용자 이름
---
[sync_alias_once]
일회성 구매입니다. 노드에서 확인한 후에만 사용자 이름이 변경됩니다.
---
[sync_alias_insufficient]
Dew가 부족합니다. 충전한 다음 돌아와 구매를 확정하세요.
---
[launcher_move_app]
앱 이동
---
+92 -1
View File
@@ -607,6 +607,9 @@ Endereço copiado
[open_wallet_button]
Carteira
---
[dew_other_coin_button]
Comprar com outra moeda
---
[orientation_label]
Orientação
---
@@ -3078,6 +3081,8 @@ Arraste os apps de que você mais gosta para Fixados e deixe-os a um toque, na o
[launcher_guide_profile]
Seu perfil fica no alto, ao lado das configurações. Toque no seu nome para abri-lo e em Aplicativos para voltar aqui.
---
[lumi_guide_chat]
É aqui que a gente conversa. Peça para eu adicionar algo a uma lista, marcar um hábito, começar uma prática ou escrever no seu diário. Digite uma barra para ver tudo o que eu sei fazer.
---
@@ -3102,6 +3107,12 @@ Hoje leva você de volta à página de hoje, e o calendário mostra os dias em q
[diary_guide_write]
Escreva aqui, muito ou pouco, como quiser. Os botões acima desfazem e refazem, corrigem a ortografia e adicionam a hora ou uma foto.
---
[leaderboard_score]
Pontuação
---
[leaderboard_level]
Nível
---
[leaderboard_levels]
Níveis
---
@@ -5132,7 +5143,7 @@ Recarregar
---
[profile_dew_funds]
Dew insuficiente. Adicione Dew com Monero primeiro.
Dew insuficiente. Recarregue primeiro.
---
[profile_dew_retry]
@@ -5200,6 +5211,34 @@ Obtendo seu endereço Monero…
Não foi possível obter seu endereço Monero. Tente novamente.
---
[profile_dew_play_pack]
Comprar %s Dew
---
[profile_dew_play_comparison]
Economia por Dew em relação ao pacote de 10 Dew.
---
[profile_dew_play_loading]
Carregando preços do Google Play…
---
[profile_dew_play_unavailable]
As compras pelo Google Play não estão disponíveis no momento.
---
[profile_dew_play_verifying]
Adicionando o Dew da sua compra no Google Play…
---
[profile_dew_play_credited]
Seu Dew foi adicionado.
---
[profile_dew_play_failed]
O Google Play recebeu o pagamento, mas o Dew ainda não pôde ser adicionado. Uma nova tentativa será feita automaticamente.
---
[profile_dew_topup_send]
Envie Monero para este endereço. Dew aparece após %d confirmações.
---
@@ -7494,3 +7533,55 @@ Abrindo aplicativos
[leaderboard_refresh_failed]
Não foi possível atualizar a classificação.
---
[sync_alias_pending]
É preciso tentar novamente a compra de um nome de usuário.
---
[sync_alias_retry]
Revisar compra pendente
---
[sync_alias_current]
Este é seu nome de usuário atual. Mantê-lo é grátis.
---
[sync_alias_taken]
Esse nome de usuário já está em uso.
---
[sync_alias_premium_available]
Nome de usuário premium disponível
---
[sync_alias_buy]
Comprar nome de usuário
---
[sync_alias_free]
Disponível grátis
---
[sync_alias_check]
Verificar disponibilidade
---
[sync_alias_checking]
Verificando disponibilidade…
---
[sync_alias_premium]
Nome de usuário premium
---
[sync_alias_once]
Compra única. Seu nome de usuário só muda após a confirmação do nó.
---
[sync_alias_insufficient]
Dew insuficiente. Recarregue e volte para confirmar a compra.
---
[launcher_move_app]
Mover aplicação
---
+92 -1
View File
@@ -397,6 +397,9 @@ OK
[open_wallet_button]
Кошелёк
---
[dew_other_coin_button]
Купить за другую монету
---
[orientation_label]
Ориентация
---
@@ -3074,6 +3077,8 @@ Lumi остаётся без сети, пока вы не примете её у
[launcher_guide_profile]
Ваш профиль находится вверху рядом с настройками. Нажмите на имя, чтобы открыть его, или на «Приложения», чтобы вернуться сюда.
---
[lumi_guide_chat]
Здесь мы разговариваем. Попроси меня добавить что-то в список, отметить привычку, начать практику или написать в дневник. Набери косую черту, чтобы увидеть всё, что я умею.
---
@@ -3098,6 +3103,12 @@ Lumi остаётся без сети, пока вы не примете её у
[diary_guide_write]
Пиши здесь сколько хочешь. Кнопки сверху отменяют и повторяют, проверяют орфографию и добавляют время или фото.
---
[leaderboard_score]
Очки
---
[leaderboard_level]
Уровень
---
[leaderboard_levels]
Уровни
---
@@ -5128,7 +5139,7 @@ Lumi остаётся без сети, пока вы не примете её у
---
[profile_dew_funds]
Недостаточно Dew. Сначала пополни баланс через Monero.
Недостаточно Dew. Сначала пополни баланс.
---
[profile_dew_retry]
@@ -5196,6 +5207,34 @@ Lumi остаётся без сети, пока вы не примете её у
Не удалось получить адрес Monero. Попробуй ещё раз.
---
[profile_dew_play_pack]
Купить %s Dew
---
[profile_dew_play_comparison]
Экономия на каждом Dew по сравнению с набором из 10 Dew.
---
[profile_dew_play_loading]
Загружаем цены Google Play…
---
[profile_dew_play_unavailable]
Покупки через Google Play сейчас недоступны.
---
[profile_dew_play_verifying]
Зачисляем Dew за твою покупку в Google Play…
---
[profile_dew_play_credited]
Dew зачислены.
---
[profile_dew_play_failed]
Google Play принял оплату, но Dew пока не удалось зачислить. Попробуем снова автоматически.
---
[profile_dew_topup_send]
Отправь Monero на этот адрес. Dew появится после %d подтверждений.
---
@@ -7490,3 +7529,55 @@ Inner Breeze обновлён до версии %s.
[leaderboard_refresh_failed]
Не удалось обновить таблицу лидеров.
---
[sync_alias_pending]
Покупку имени пользователя нужно повторить.
---
[sync_alias_retry]
Проверить ожидающую покупку
---
[sync_alias_current]
Это ваше текущее имя пользователя. Его можно сохранить бесплатно.
---
[sync_alias_taken]
Это имя пользователя уже занято.
---
[sync_alias_premium_available]
Премиальное имя пользователя доступно
---
[sync_alias_buy]
Купить имя пользователя
---
[sync_alias_free]
Доступно бесплатно
---
[sync_alias_check]
Проверить доступность
---
[sync_alias_checking]
Проверка доступности…
---
[sync_alias_premium]
Премиальное имя пользователя
---
[sync_alias_once]
Разовая покупка. Имя пользователя изменится только после подтверждения узлом.
---
[sync_alias_insufficient]
Недостаточно Dew. Пополните баланс и вернитесь, чтобы подтвердить покупку.
---
[launcher_move_app]
Переместить приложение
---
+92 -1
View File
@@ -607,6 +607,9 @@ Wim Hof 呼吸
[open_wallet_button]
钱包
---
[dew_other_coin_button]
用其他币购买
---
[orientation_label]
方向
---
@@ -3080,6 +3083,8 @@ Telegram 账号
[launcher_guide_profile]
个人资料位于顶部设置旁边。点击你的名字即可打开,点击应用即可返回这里。
---
[lumi_guide_chat]
我们在这里聊天。你可以让我往清单里加东西、勾选习惯、开始练习,或者写日记。输入一个斜杠,就能看到我能做的所有事。
---
@@ -3104,6 +3109,12 @@ Telegram 账号
[diary_guide_write]
在这里想写多少就写多少。上方的按钮可以撤销和重做、检查拼写,还能加上时间或照片。
---
[leaderboard_score]
得分
---
[leaderboard_level]
关卡
---
[leaderboard_levels]
关卡
---
@@ -5134,7 +5145,7 @@ Dew余额
---
[profile_dew_funds]
Dew不足,请先使用Monero充值。
Dew不足,请先充值。
---
[profile_dew_retry]
@@ -5202,6 +5213,34 @@ Dew不足,请先使用Monero充值。
无法获取你的Monero地址。请重试。
---
[profile_dew_play_pack]
购买 %s Dew
---
[profile_dew_play_comparison]
与 10 Dew 礼包相比,每个 Dew 的价格折扣。
---
[profile_dew_play_loading]
正在加载Google Play价格…
---
[profile_dew_play_unavailable]
Google Play购买目前不可用。
---
[profile_dew_play_verifying]
正在添加你在Google Play购买的Dew…
---
[profile_dew_play_credited]
你的Dew已添加。
---
[profile_dew_play_failed]
Google Play已收到付款,但暂时无法添加Dew。系统会自动重试。
---
[profile_dew_topup_send]
将Monero发送到此地址。%d次确认后Dew即会到账。
---
@@ -7496,3 +7535,55 @@ Inner Breeze 已更新至 %s 版本。
[leaderboard_refresh_failed]
无法刷新排行榜。
---
[sync_alias_pending]
需要重试购买用户名。
---
[sync_alias_retry]
查看待处理的购买
---
[sync_alias_current]
这是您当前的用户名,可以继续免费使用。
---
[sync_alias_taken]
该用户名已被占用。
---
[sync_alias_premium_available]
高级用户名可供购买
---
[sync_alias_buy]
购买用户名
---
[sync_alias_free]
可免费使用
---
[sync_alias_check]
检查可用性
---
[sync_alias_checking]
正在检查可用性…
---
[sync_alias_premium]
高级用户名
---
[sync_alias_once]
一次性购买。节点确认后,您的用户名才会更改。
---
[sync_alias_insufficient]
Dew不足。请充值后返回确认购买。
---
[launcher_move_app]
移动应用
---
+1 -1
View File
@@ -2,7 +2,7 @@
# App records cross the bundle boundary with codecs generated by Kryon's
# generator on top of Kryon's own widget codec.
APP_CODEC_SCHEMAS := $(KRYON_DIR)/scripts/generate-widget-codecs.py $(KRYON_DIR)/src/backend/widget_codec.zi apps/diary/diary_ui_types.zi $(addprefix src/apps/,inbe_ui_types.zi lists_ui_types.zi lumi_ui_types.zi lumi_types.zi leaderboard_ui_types.zi habits_ui_types.zi practice_ui_types.zi)
APP_CODEC_SCHEMAS := $(KRYON_DIR)/scripts/generate-widget-codecs.py $(KRYON_DIR)/src/backend/widget_codec.zi apps/diary/diary_ui_types.zi $(addprefix src/apps/,inbe_ui_types.zi lists_ui_types.zi lumi_ui_types.zi lumi_types.zi habits_ui_types.zi practice_ui_types.zi)
src/apps/app_codec.zi: scripts/generate-app-codec.py $(APP_CODEC_SCHEMAS)
python3 scripts/generate-app-codec.py
+4
View File
@@ -113,6 +113,10 @@ update-transport-zi-test: $(ZI2C_BIN)
@env -u DISPLAY -u WAYLAND_DISPLAY -u XAUTHORITY -u GDK_DISPLAY \
python3 tests/update_flow_zi_test.py
.PHONY: desktop-update-test
desktop-update-test:
python3 tests/desktop_update_test.py
.PHONY: update-policy-zi-test
update-policy-zi-test: $(ZI2C_BIN)
@env -u DISPLAY -u WAYLAND_DISPLAY \
+1 -1
View File
@@ -133,7 +133,7 @@ test: media-metadata-test media-store-test entity-photos-test photos-app-test
test: node-app-records-test node-app-snapshot-test
test: app-click-block-zi-test
test: phone-check-gate-test
test: release-tooling-test
test: release-tooling-test desktop-update-test
test: package-release-test
test: app-preferences-sync-test
test: package-version-test
+1 -1
View File
@@ -1,5 +1,5 @@
Package: inbe.waozi
Version: 2.1.52
Version: 2.1.58
Architecture: arm64
Maintainer: Waozi <[email protected]>
Click-Version: 0.4
+1 -1
View File
@@ -28,7 +28,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="2.1.52" date="2026-10-27"/>
<release version="2.1.58" date="2026-10-28"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "inbe",
"title": "Inner Breeze",
"version": "2.1.52",
"version": "2.1.58",
"architecture": "arm64",
"framework": "ubuntu-sdk-20.04",
"description": "Syncable breathing, meditation, and habit practice app.",
+1 -1
View File
@@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Inner Breeze",
"short_name": "Inbe",
"version": "2.1.52",
"version": "2.1.58",
"description": "Breathing, meditation, habit tracking, and encrypted sync.",
"permissions": [
"contextMenus"
+1 -1
View File
@@ -22,7 +22,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="2.1.52" date="2026-10-27"/>
<release version="2.1.58" date="2026-10-28"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -22,7 +22,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="2.1.52" date="2026-10-27"/>
<release version="2.1.58" date="2026-10-28"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -6,7 +6,7 @@ description: |
meditation, and habit tracking with visual and audio cues, meditation
timers, habit counters, session history, and optional sync.
version: '2.1.52'
version: '2.1.58'
license: BSD-3-Clause
base: core22
confinement: strict
+42
View File
@@ -0,0 +1,42 @@
{
"schema": 2,
"version": "2.1.53",
"app_tree": "9002e8bbfb8b2277fec2444c8726f319a8ca146ff368065d6765b6cf9039b16c",
"source_commit": "14ce6d7a66c6e2c8e58dae4a6bfbee558e30deb9",
"uncommitted": [],
"apk": {
"sha256": "8ab1c1d43b346abb5d5b8dee38789f2bbbf5abc6be0c8d687df99526317dfa8d",
"package": "xyz.waozi.inbe.verification",
"version_code": 190,
"version_name": "2.1.53"
},
"device": {
"model": "moto e6 play",
"android": "9"
},
"practice": {
"name": "Wim Hof",
"seconds": 59.39,
"frames": 3428,
"refresh_hz": 58.4,
"fps": 57.7,
"late_percent": 0.06,
"p95_frame_ms": 17.4,
"worst_frame_ms": 34.7,
"resume_layout_shift": 0.7
},
"limits": {
"minimum_refresh_share": 0.94,
"maximum_late_percent": 3.0,
"maximum_frame_ms": 250.0,
"maximum_resume_layout_shift": 2.0
},
"checks": [
"installed without clearing existing data",
"launch",
"Wim Hof frame timing",
"background and resume"
],
"passed": true,
"checked_at": "2026-10-27T19:51:49+00:00"
}
+42
View File
@@ -0,0 +1,42 @@
{
"schema": 2,
"version": "2.1.54",
"app_tree": "7244aee11fb78d71e1b8b0f01cb147cdf0a41f9a358d49b23931141fe9b1883a",
"source_commit": "d9d454da70030a395b7aec8526b416dd93a3f28c",
"uncommitted": [],
"apk": {
"sha256": "7f67f516f70463d82defc3068f16d9d38196fd77c7cafab42b172bfac050cdb2",
"package": "xyz.waozi.inbe.verification",
"version_code": 191,
"version_name": "2.1.54"
},
"device": {
"model": "moto e6 play",
"android": "9"
},
"practice": {
"name": "Wim Hof",
"seconds": 59.91,
"frames": 3460,
"refresh_hz": 58.4,
"fps": 57.7,
"late_percent": 0.0,
"p95_frame_ms": 17.4,
"worst_frame_ms": 17.9,
"resume_layout_shift": 0.7
},
"limits": {
"minimum_refresh_share": 0.94,
"maximum_late_percent": 3.0,
"maximum_frame_ms": 250.0,
"maximum_resume_layout_shift": 2.0
},
"checks": [
"installed without clearing existing data",
"launch",
"Wim Hof frame timing",
"background and resume"
],
"passed": true,
"checked_at": "2026-10-27T21:58:21+00:00"
}
+42
View File
@@ -0,0 +1,42 @@
{
"schema": 2,
"version": "2.1.55",
"app_tree": "a7aae2cead4ffdeab3d0bce749dbd16411ccef2b3e8c078f8d0de041d77c6d9c",
"source_commit": "9bd917699547d8f1f044127f20ba08e773af9f03",
"uncommitted": [],
"apk": {
"sha256": "f402991441895fba36a0af626ce2a2d3dfbab3286ef9d745546ac5fc308fe948",
"package": "xyz.waozi.inbe.verification",
"version_code": 192,
"version_name": "2.1.55"
},
"device": {
"model": "moto e6 play",
"android": "9"
},
"practice": {
"name": "Wim Hof",
"seconds": 59.51,
"frames": 3437,
"refresh_hz": 58.4,
"fps": 57.7,
"late_percent": 0.0,
"p95_frame_ms": 17.4,
"worst_frame_ms": 21.8,
"resume_layout_shift": 0.7
},
"limits": {
"minimum_refresh_share": 0.94,
"maximum_late_percent": 3.0,
"maximum_frame_ms": 250.0,
"maximum_resume_layout_shift": 2.0
},
"checks": [
"installed without clearing existing data",
"launch",
"Wim Hof frame timing",
"background and resume"
],
"passed": true,
"checked_at": "2026-10-28T04:11:48+00:00"
}
+42
View File
@@ -0,0 +1,42 @@
{
"schema": 2,
"version": "2.1.56",
"app_tree": "2352713c5637f0bcb7dbdfdd5770765f4bc254bb8168befbaf451b21f4b515f6",
"source_commit": "b31f55d49f401c1abe79d3cec003a1bf3ddcd27e",
"uncommitted": [],
"apk": {
"sha256": "09188d8cc4eab96ace625f9a3ba89808e0944ccdfb1899f03d4adfa59ab9ed8d",
"package": "xyz.waozi.inbe",
"version_code": 193,
"version_name": "2.1.56"
},
"device": {
"model": "moto e6 play",
"android": "9"
},
"practice": {
"name": "Wim Hof",
"seconds": 59.37,
"frames": 3428,
"refresh_hz": 58.4,
"fps": 57.7,
"late_percent": 0.03,
"p95_frame_ms": 17.4,
"worst_frame_ms": 34.7,
"resume_layout_shift": 0.5
},
"limits": {
"minimum_refresh_share": 0.94,
"maximum_late_percent": 3.0,
"maximum_frame_ms": 250.0,
"maximum_resume_layout_shift": 2.0
},
"checks": [
"installed without clearing existing data",
"launch",
"Wim Hof frame timing",
"background and resume"
],
"passed": true,
"checked_at": "2026-10-28T18:09:20+00:00"
}
+42
View File
@@ -0,0 +1,42 @@
{
"schema": 2,
"version": "2.1.58",
"app_tree": "6ed120045436e9126bed2ad21783a9759bc03700fc97f05384968f39a67bafb5",
"source_commit": "15d89c91e1472db0b94506ce475697e2d45f8988",
"uncommitted": [],
"apk": {
"sha256": "d16bce36a5abcbb27f094ab6b43b122911176908092ee9541dc235f3aee1bcee",
"package": "xyz.waozi.inbe.verification",
"version_code": 195,
"version_name": "2.1.58"
},
"device": {
"model": "moto e6 play",
"android": "9"
},
"practice": {
"name": "Wim Hof",
"seconds": 59.7,
"frames": 3447,
"refresh_hz": 58.4,
"fps": 57.7,
"late_percent": 0.03,
"p95_frame_ms": 17.4,
"worst_frame_ms": 34.6,
"resume_layout_shift": 0.7
},
"limits": {
"minimum_refresh_share": 0.94,
"maximum_late_percent": 3.0,
"maximum_frame_ms": 250.0,
"maximum_resume_layout_shift": 2.0
},
"checks": [
"installed without clearing existing data",
"launch",
"Wim Hof frame timing",
"background and resume"
],
"passed": true,
"checked_at": "2026-10-28T23:53:59+00:00"
}
+9 -1
View File
@@ -32,7 +32,14 @@ capture() {
adb_run logcat -b crash -d > "$logs/android-smoke-crash.txt" 2>&1 || true
adb_run shell dumpsys activity exit-info "$app_id" > "$logs/android-smoke-exit-info.txt" 2>&1 || true
}
trap capture EXIT
started=0
cleanup() {
capture
if [ "$started" = 1 ]; then
adb_run shell am force-stop "$app_id" || true
fi
}
trap cleanup EXIT
if [ "${ANDROID_SMOKE_SKIP_EMULATOR:-0}" != 1 ]; then
env -u DISPLAY -u WAYLAND_DISPLAY ANDROID_EMULATOR_HEADLESS=1 bash scripts/emulator.sh
@@ -77,6 +84,7 @@ foreground() {
}
adb_run shell am force-stop "$app_id"
started=1
start
pid=$(process || true)
[ -n "$pid" ] || fail 'app exited during startup'
Executable → Regular
+3 -1
View File
@@ -39,7 +39,9 @@ mkdir -p build/entity
--module-path kryon=build/packages/kryon/src/ui --module-path build/packages/kryon/src/ui \
--module-path build/packages/ziran/std --module-path qrcode=build/packages/qrcode/src \
--define KRYON_HOSTED_UI \
--asset-dir "assets=$entity_dir/assets" --entry entity:Main -o build/entity/entity.zx "$entity_dir/src/entity.zi"
--entry entity:Main -o build/entity/entity.zx "$entity_dir/src/entity.zi"
# Entity's images are supplied once by the root package below. Its hosted
# child uses those same asset paths; embedding a second copy bloats every APK.
for feature in lists habits practices diary lumi leaderboard; do
source=$feature
entry=$feature
+2 -2
View File
@@ -15,10 +15,10 @@ KRYON_MODULES = ['session', 'geometry', 'drawing_props', 'text_props', 'image_pr
'scroll', 'scroll_props', 'semantic', 'text_align', 'checkbox_props',
'toggle_props', 'tab_bar_props', 'box_props', 'swipe_props']
APP_TYPES = ['diary_ui_types', 'inbe_ui_types', 'lists_ui_types', 'lumi_ui_types',
'lumi_types', 'leaderboard_ui_types', 'habits_ui_types', 'practice_ui_types']
'lumi_types', 'habits_ui_types', 'practice_ui_types']
ROOTS = ['DiaryUiFrame', 'InbeUiFrame', 'ListsUiFrame', 'ListsUiRow', 'ListsUiPerson', 'ListsUiRequest', 'LumiUiFrame',
'LumiChatRow', 'LumiTask', 'LumiAction', 'LumiTools', 'LumiDonation',
'LeaderboardUiFrame', 'LeaderboardUiRow', 'LeaderboardUiApp', 'HabitsUiFrame', 'HabitsShopFrame',
'HabitsUiFrame', 'HabitsShopFrame',
'HabitsShopReward', 'HabitsShopActivity', 'HabitsListFrame', 'HabitsListRow',
'HabitsListDay', 'HabitsDayFrame', 'HabitsDayEntry', 'HabitsDaySession',
'HabitsEntryFrame', 'HabitsAnswer', 'HabitsEditFrame', 'HabitsEditQuestion',
+31 -24
View File
@@ -326,30 +326,37 @@ def check(phone, apk, seconds, evidence):
phone.shell("input", "keyevent", "KEYCODE_WAKEUP")
phone.shell("wm", "dismiss-keyguard")
phone.shell("am", "force-stop", package)
phone.start(package)
time.sleep(4)
pid = phone.pid(package)
if not pid:
raise ValueError("Inner Breeze did not stay running after launch")
phone.screenshot(package, evidence / "launch.png")
phone.start(package, "-a", START_PRACTICE, "--ei", "practice_id", str(WIM_HOF))
time.sleep(3)
phone.screenshot(package, evidence / "practice-start.png")
timing = frame_timing(phone, package, seconds)
phone.screenshot(package, evidence / "practice-end.png")
if phone.pid(package) != pid:
raise ValueError("Inner Breeze restarted during the practice")
phone.shell("input", "keyevent", "KEYCODE_HOME")
time.sleep(2)
phone.start(package)
time.sleep(2)
if phone.pid(package) != pid:
raise ValueError("Inner Breeze restarted when it returned from the background")
phone.screenshot(package, evidence / "resume.png")
timing["resume_layout_shift"] = layout_shift(evidence / "practice-end.png", evidence / "resume.png")
model = phone.shell("getprop", "ro.product.model").strip()
android = phone.shell("getprop", "ro.build.version.release").strip()
return identity, timing, dict(model=model, android=android)
try:
phone.start(package)
time.sleep(4)
pid = phone.pid(package)
if not pid:
raise ValueError("Inner Breeze did not stay running after launch")
phone.screenshot(package, evidence / "launch.png")
phone.start(package, "-a", START_PRACTICE, "--ei", "practice_id", str(WIM_HOF))
time.sleep(3)
phone.screenshot(package, evidence / "practice-start.png")
timing = frame_timing(phone, package, seconds)
phone.screenshot(package, evidence / "practice-end.png")
if phone.pid(package) != pid:
raise ValueError("Inner Breeze restarted during the practice")
phone.shell("input", "keyevent", "KEYCODE_HOME")
time.sleep(2)
phone.start(package)
time.sleep(2)
if phone.pid(package) != pid:
raise ValueError("Inner Breeze restarted when it returned from the background")
phone.screenshot(package, evidence / "resume.png")
timing["resume_layout_shift"] = layout_shift(evidence / "practice-end.png", evidence / "resume.png")
model = phone.shell("getprop", "ro.product.model").strip()
android = phone.shell("getprop", "ro.build.version.release").strip()
return identity, timing, dict(model=model, android=android)
finally:
# This check refused a pre-existing process before installation. Stop
# only its own app, including any practice/audio still running.
phone.shell("am", "force-stop", package)
if phone.pid(package):
raise ValueError("the test app did not close after the phone check")
def resolve_host(host, serial):
+222
View File
@@ -0,0 +1,222 @@
#!/usr/bin/env python3
"""Install the latest published Linux desktop release without stopping the app."""
import argparse
import datetime
import fcntl
import hashlib
import json
import os
from pathlib import Path
import platform
import re
import shutil
import subprocess
import tempfile
import urllib.request
import xml.etree.ElementTree as ET
APPCAST = "https://github.com/waozixyz/breeze/releases/latest/download/appcast.json"
RELEASES = "https://github.com/waozixyz/breeze/releases/download/"
APP_ID = "xyz.waozi.inbe"
FILES = (
"bin/breeze",
f"share/applications/{APP_ID}.desktop",
f"share/icons/hicolor/512x512/apps/{APP_ID}.png",
f"share/metainfo/{APP_ID}.metainfo.xml",
)
def version_tuple(version):
if not re.fullmatch(r"[0-9]+\.[0-9]+\.[0-9]+", version):
raise ValueError("Release version must contain three numeric components")
return tuple(map(int, version.split(".")))
def digest(path):
with path.open("rb") as source:
return hashlib.file_digest(source, "sha256").hexdigest()
def atomic_copy(source, destination, mode=None):
destination.parent.mkdir(parents=True, exist_ok=True)
fd, temporary = tempfile.mkstemp(prefix=".breeze-update-", dir=destination.parent)
try:
with os.fdopen(fd, "wb") as output, source.open("rb") as incoming:
shutil.copyfileobj(incoming, output)
output.flush()
os.fsync(output.fileno())
os.chmod(temporary, mode if mode is not None else source.stat().st_mode & 0o777)
os.replace(temporary, destination)
finally:
Path(temporary).unlink(missing_ok=True)
def artifact_for(appcast):
version = appcast["version"]
version_tuple(version)
architecture = {"x86_64": "amd64", "aarch64": "arm64"}.get(platform.machine())
if architecture is None:
raise ValueError("Desktop updates support Linux x86_64 and aarch64")
artifact = appcast["channels"]["deb-" + architecture]
expected_url = f"{RELEASES}v{version}/inbe_{version}_{architecture}.deb"
if artifact["url"] != expected_url:
raise ValueError("Desktop artifact is outside the expected Breeze release")
if not re.fullmatch(r"[a-fA-F0-9]{64}", artifact["sha256"]):
raise ValueError("Desktop artifact has no valid SHA-256 digest")
if type(artifact["size"]) is not int or not 0 < artifact["size"] <= 256 * 1024 * 1024:
raise ValueError("Desktop artifact size is invalid")
return artifact
def open_url(url):
request = urllib.request.Request(url, headers={"User-Agent": "Inner-Breeze-Desktop-Updater/1"})
return urllib.request.urlopen(request, timeout=60)
def download(artifact, destination):
checksum = hashlib.sha256()
size = 0
with open_url(artifact["url"]) as response, destination.open("wb") as output:
while chunk := response.read(1024 * 1024):
size += len(chunk)
if size > artifact["size"]:
raise ValueError("Desktop download exceeds its declared size")
checksum.update(chunk)
output.write(chunk)
if size != artifact["size"] or checksum.hexdigest() != artifact["sha256"].lower():
raise ValueError("Desktop download failed size or SHA-256 verification")
def installed_version(prefix):
metadata = prefix / FILES[-1]
if not metadata.exists():
return (0, 0, 0)
releases = ET.parse(metadata).findall("./releases/release")
return max((version_tuple(entry.attrib["version"]) for entry in releases), default=(0, 0, 0))
def install_package(package, prefix, backup_dir, version):
with tempfile.TemporaryDirectory(prefix="breeze-desktop-package-") as temporary:
extracted = Path(temporary)
subprocess.run(["dpkg-deb", "--extract", str(package), str(extracted)], check=True)
sources = [extracted / "usr" / name for name in FILES]
if not all(source.is_file() and not source.is_symlink() for source in sources):
raise ValueError("Desktop package is missing required files")
if installed_version(extracted / "usr") != version_tuple(version):
raise ValueError("Desktop package metadata does not match its release")
with sources[0].open("rb") as binary:
if binary.read(4) != b"\x7fELF":
raise ValueError("Desktop package has no native executable")
dependencies = subprocess.run(["ldd", str(sources[0])], text=True,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
if dependencies.returncode != 0 or "not found" in dependencies.stdout:
raise ValueError("Desktop package needs unavailable libraries: " + dependencies.stdout)
stamp = datetime.datetime.now(datetime.timezone.utc).strftime("%Y%m%dT%H%M%S.%fZ")
backup = backup_dir / stamp
existing = [name for name in FILES if (prefix / name).exists()]
for name in existing:
destination = backup / name
destination.parent.mkdir(parents=True, exist_ok=True)
shutil.copy2(prefix / name, destination)
try:
# Publish metadata first and replace the executable last. Running
# processes retain their original inode and are never interrupted.
for name in reversed(FILES):
atomic_copy(extracted / "usr" / name, prefix / name)
except Exception:
for name in FILES:
if name in existing:
atomic_copy(backup / name, prefix / name)
else:
(prefix / name).unlink(missing_ok=True)
raise
return backup
def update(prefix, backup_dir):
state = prefix / "state/inner-breeze-desktop"
state.mkdir(parents=True, exist_ok=True)
with (state / "update.lock").open("w") as lock:
fcntl.flock(lock, fcntl.LOCK_EX)
with open_url(APPCAST) as response:
document = response.read(65537)
if len(document) > 65536:
raise ValueError("Release appcast is too large")
appcast = json.loads(document)
artifact = artifact_for(appcast)
version = appcast["version"]
if installed_version(prefix) > version_tuple(version):
print("Installed desktop version is newer than the published release; keeping it.")
return
receipt_path = state / "installed.json"
previous = json.loads(receipt_path.read_text()) if receipt_path.exists() else {}
executable = prefix / FILES[0]
if (previous.get("version") == version and executable.exists()
and previous.get("binary_sha256") == digest(executable)
and all((prefix / name).exists() for name in FILES)):
print(f"Inner Breeze {version} is already installed.")
return
with tempfile.TemporaryDirectory(prefix="breeze-desktop-download-") as temporary:
package = Path(temporary) / "inbe.deb"
download(artifact, package)
backup = install_package(package, prefix, backup_dir, version)
receipt = {
"version": version,
"installed_at": datetime.datetime.now(datetime.timezone.utc).isoformat(),
"artifact": artifact,
"binary_sha256": digest(executable),
"backup": str(backup),
"release_url": appcast["notes_url"],
}
temporary_receipt = state / "installed.json.new"
temporary_receipt.write_text(json.dumps(receipt, indent=2) + "\n")
os.replace(temporary_receipt, receipt_path)
if shutil.which("update-desktop-database"):
subprocess.run(["update-desktop-database", str(prefix / "share/applications")], check=True)
print(f"Installed Inner Breeze {version}. Running app processes were preserved.")
def unit_quote(value):
return '"' + str(value).replace("%", "%%").replace("\\", "\\\\").replace('"', '\\"') + '"'
def enable_automatic(prefix, backup_dir):
updater = prefix / "libexec/inner-breeze-update.py"
atomic_copy(Path(__file__).resolve(), updater, 0o755)
units = Path.home() / ".config/systemd/user"
units.mkdir(parents=True, exist_ok=True)
command = " ".join(map(unit_quote, ["/usr/bin/python3", updater, "--prefix", prefix,
"--backup-dir", backup_dir]))
(units / "inner-breeze-update.service").write_text(
"[Unit]\nDescription=Keep the Inner Breeze desktop release current\n\n"
"[Service]\nType=oneshot\nExecStart=" + command + "\n"
"Nice=10\nCPUQuota=25%\nMemoryMax=256M\nTasksMax=16\nTimeoutStartSec=300\n")
(units / "inner-breeze-update.timer").write_text(
"[Unit]\nDescription=Check for Inner Breeze desktop releases every 30 minutes\n\n"
"[Timer]\nOnStartupSec=2min\nOnUnitActiveSec=30min\nPersistent=true\n\n"
"[Install]\nWantedBy=timers.target\n")
subprocess.run(["systemctl", "--user", "daemon-reload"], check=True)
subprocess.run(["systemctl", "--user", "enable", "--now", "inner-breeze-update.timer"], check=True)
print("Automatic desktop updates enabled: every 30 minutes and after login.")
def main():
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--prefix", type=Path, default=Path.home() / ".local")
parser.add_argument("--backup-dir", type=Path,
default=Path(__file__).resolve().parent.parent / "backup/desktop-updates")
parser.add_argument("--enable-automatic", action="store_true")
args = parser.parse_args()
if platform.system() != "Linux":
parser.error("This installer requires Linux")
prefix = args.prefix.resolve()
backup_dir = args.backup_dir.resolve()
update(prefix, backup_dir)
if args.enable_automatic:
enable_automatic(prefix, backup_dir)
if __name__ == "__main__":
main()
+19 -8
View File
@@ -92,12 +92,24 @@ app_launcher_update_drag :: (app: *InnerBreeze, point: Vector2) {
app_launcher_drag_handle :: (app: *InnerBreeze, card: ButtonProps,
route: s32, vertical: bool) {
if !app.launcher_editing { return }
key := card.key
key := card.key + cast(u64)29
handle: ButtonProps
handle.key = key
handle.label = LocaleText("launcher_move_app")
handle.icon_only = true
handle.icon_shape = "F:M7 4H10V7H7ZM14 4H17V7H14ZM7 10H10V13H7ZM14 10H17V13H14ZM7 16H10V19H7ZM14 16H17V19H14Z"
handle.emphasis = cast(ButtonEmphasis)ButtonEmphasisSoft
handle.bounds = Rectangle.{card.bounds.x + cast(float32)AppScale(4),
card.bounds.y + (card.bounds.height - cast(float32)AppScale(44)) * 0.5,
cast(float32)AppScale(44), cast(float32)AppScale(44)}
unused Button(app.ui.session, handle)
node := TreeSubmitted(app.ui.session, TreeCurrentParent(app.ui.session), key, WidgetKindButton)
TreeSetDragCapture(app.ui.session, node, !card.disabled)
previous := TreePrevious(app.ui.session, TreeCurrentParent(app.ui.session),
key, WidgetKindButton)
drag := TreeTakeDragAt(app.ui.session, previous)
if drag.started {
app.launcher_drag_key = key
app.launcher_drag_key = card.key
app.launcher_drag_route = route
unused AppCopyText(LauncherLibraryName(route), app.launcher_drag_name[:])
app.launcher_drag_moving = false
@@ -106,13 +118,13 @@ app_launcher_drag_handle :: (app: *InnerBreeze, card: ButtonProps,
app.launcher_drag_bounds = card.bounds
app.launcher_drag_origin = Vector2.{drag.x, drag.y}
app.launcher_drag_grab = Vector2.{drag.grab_x, drag.grab_y}
row := TreePrevious(app.ui.session, TreeCurrentParent(app.ui.session), key - cast(u64)7, WidgetKindButton)
row := TreePrevious(app.ui.session, TreeCurrentParent(app.ui.session), card.key, WidgetKindButton)
if row >= 0 {
app.launcher_drag_bounds = TreeNodeAt(app.ui.session, row).bounds
app.launcher_drag_grab = Vector2.{drag.x - app.launcher_drag_bounds.x, drag.y - app.launcher_drag_bounds.y}
}
}
if (drag.active || drag.ended) && app.launcher_drag_key == key {
if (drag.active || drag.ended) && app.launcher_drag_key == card.key {
app_launcher_update_drag(app, Vector2.{drag.x, drag.y})
app.launcher_drag_released = drag.ended
}
@@ -526,13 +538,12 @@ app_draw_launcher :: (app: *InnerBreeze, dock_drawn: bool) {
}
unused End(app.ui.session)
if app.launcher_guide_seen == 0 {
steps: [3]GuideOverlayStep
steps: [1]GuideOverlayStep
steps[0] = GuideOverlayStepFor(layout.search_bounds, "launcher_guide_find")
steps[1] = GuideOverlayStepFor(layout.scroll_bounds, "launcher_guide_manage")
steps[2] = GuideOverlayStepFor(account.bounds, "launcher_guide_profile")
guide: GuideOverlayProps
guide.steps = *steps[0]
guide.count = 3
guide.count = 1
app.launcher_guide_step = 0
guide.step = *app.launcher_guide_step
guide.view_width = app.ui.view_width
guide.view_height = app.ui.view_height
+5 -6
View File
@@ -206,7 +206,7 @@ LauncherAppWidgets :: (context: *void, module: *u8, function: *u8,
card := WidgetDecodeButtonProps(arguments[1], *launcher_app_button_codec)
for index: cast(s32)0..group.count - 1 {
entry := group.entries[index]
// While editing, the whole card is the handle that drags it.
// Editing exposes an explicit handle; the card keeps its own gestures.
handle := group.owner.launcher_editing && card.key == Rules.AppCardKey(TextUntilNul(entry.id[:]))
if !handle { continue }
item := entry.route
@@ -219,9 +219,6 @@ LauncherAppWidgets :: (context: *void, module: *u8, function: *u8,
}
}
app_launcher_drag_handle(group.owner, card, item, group.owner.launcher_grid_view)
node := TreeSubmitted(group.owner.ui.session, TreeCurrentParent(group.owner.ui.session),
card.key, WidgetKindButton)
TreeSetDragCapture(group.owner.ui.session, node, !card.disabled)
break
}
return called
@@ -503,8 +500,10 @@ app_launcher_shared_group :: (app: *InnerBreeze, section: s32, routes: []s32,
document: Vec(u8)
BuilderPrint(*document, "\"title\":\"\",\"locale\":")
Rules.AppsWriteQuoted(*document, LocaleActiveCode())
BuilderPrint(*document, ",\"presentation\":{\"mode\":\"%\",\"hide_sizes\":true,\"section_break\":%,\"columns\":%,\"tile_class\":%,\"action_class\":%,\"muted_class\":%",
ifx grid then "icon" else "list", section_break, columns, KssClassId(KssMakeName("launcher-tile")), KssClassId(KssMakeName("launcher-action")), KssClassId(KssMakeName("launcher-muted")))
// Editing changes the native controls attached to each shared card.
// Include it in the revision so a quiet frame cannot replay the old tree.
BuilderPrint(*document, ",\"presentation\":{\"mode\":\"%\",\"editing\":%,\"hide_sizes\":true,\"section_break\":%,\"columns\":%,\"tile_class\":%,\"action_class\":%,\"muted_class\":%",
ifx grid then "icon" else "list", app.launcher_editing, section_break, columns, KssClassId(KssMakeName("launcher-tile")), KssClassId(KssMakeName("launcher-action")), KssClassId(KssMakeName("launcher-muted")))
if app.launcher_pending_node > 0 {
LauncherAppQuoted(*document, "download_id", TextUntilNul(app.launcher_download_id[:]))
BuilderPrint(*document, ",\"download_request\":%", app.launcher_download_request)
+14 -2
View File
@@ -33,6 +33,7 @@ app_force_dark_mode :: () -> bool #foreign c;
#import, file "../apps/inbe_types.zi";
#import, file "../apps/catalog.zi";
#import, file "profile_picture_policy.zi";
ProfileEntity :: #import "entity/model";
#import, file "../platform/environment.zi";
#import, file "../platform/telegram_bridge.zi";
#import, file "../platform/web_storage.zi";
@@ -71,8 +72,19 @@ load_navigation_mode :: () -> s32 {
}
load_profile_picture_icon :: () -> s32 {
saved := SettingsCacheInt("profile_picture_icon", ProfilePictureDefault())
return ProfilePictureSelected(saved)
saved := SettingsCacheInt("profile_picture_icon", -1)
if saved >= 0 {
return ProfilePictureSelected(saved)
}
owner := storage_get_setting_text("sync_public_id")
if owner.count != 64 {
return ProfilePictureDefault()
}
allowed := 268435455 & ~((1 << 21) | (1 << 22) | (1 << 23))
picture := ProfileEntity.EntityInitialPicture(owner, cast(s32)allowed)
icon := ifx picture >= 25 then 124 + picture - 25 else 41 + picture
storage_set_setting_int("profile_picture_icon", icon)
return icon
}
load_bottom_nav_routes :: (app: *InnerBreeze) {
+15 -8
View File
@@ -7,6 +7,7 @@
c :: #system_library "c";
LeaderboardBoardName :: (app: *InnerBreeze) -> string #foreign c;
LeaderboardStatsBody :: (app: *InnerBreeze) -> string #foreign c;
GameScoreMetric :: (game: string, metric: s32) -> string #foreign c;
#import, file "../apps/package_files.zi";
LOG_INFO :: 3
LOG_WARNING :: 4
@@ -402,7 +403,8 @@ app_social_leaderboard_key :: (out: *u8, out_size: s64,
if board != "" {
SyncCopyText(out, out_size, "leaderboard.games.")
SyncAppendText(out, out_size, board)
SyncAppendText(out, out_size, ".levels")
SyncAppendText(out, out_size, ".")
SyncAppendText(out, out_size, GameScoreMetric(board, metric))
return
}
SyncCopyText(out, out_size, "leaderboard.breathing.")
@@ -432,7 +434,7 @@ app_social_apply_result :: (app: *InnerBreeze, requests_json: string,
current_key: [96] u8
app_social_leaderboard_key(*current_key[0], 96,
app.leaderboard_practice,
app.leaderboard_metric, LeaderboardBoardName(app))
PROFILE_LEADERBOARD_STREAK, LeaderboardBoardName(app))
if AppTextFromCString(*current_key[0], 96) == leaderboard_key {
AppCopyText(ifx (leaderboard_json.count > 0) then (leaderboard_json) else ("{\"rows\":[]}"), app.leaderboard_json[:])
}
@@ -498,9 +500,14 @@ app_social_apply_result :: (app: *InnerBreeze, requests_json: string,
*leaderboard_json[0], size_of(type_of(leaderboard_json)))
SyncCopyText(*leaderboard_avg_json[0], size_of(type_of(leaderboard_avg_json)), "{\"rows\":[]}")
// Wim Hof ranks average holds and meditation average time as well.
if result == cast(SyncResult)SYNC_OK && (AppTextFromCString(*args.practice[0], 32) == "whm" ||
if result == cast(SyncResult)SYNC_OK && (AppTextFromCString(*args.metric[0], 32) == "score" || AppTextFromCString(*args.practice[0], 32) == "whm" ||
AppTextFromCString(*args.practice[0], 32) == "meditation") {
avg_metric: string = ifx (AppTextFromCString(*args.practice[0], 32) == "meditation") then ("avg_time") else ("avg_hold")
avg_metric := "avg_hold"
if AppTextFromCString(*args.metric[0], 32) == "score" {
avg_metric = "level"
} else if AppTextFromCString(*args.practice[0], 32) == "meditation" {
avg_metric = "avg_time"
}
leaderboard_avg_result = cast(SyncResult)FetchFriendStats(
AppTextFromCString(*args.url[0], 256),
AppTextFromCString(*args.practice[0], 32), avg_metric,
@@ -878,10 +885,10 @@ app_apply_pending_social_refresh :: (app: *InnerBreeze) {
size_of(type_of(args.leaderboard_avg_key)),
app.leaderboard_practice,
PROFILE_LEADERBOARD_AVG_HOLD, board)
if board != "" {
if board != "" && GameScoreMetric(board, 0) != "score" {
args.leaderboard_avg_key[0] = cast(u8)0
}
SyncCopyText(*args.metric[0], 32, ifx board == "" then "streak" else "levels")
SyncCopyText(*args.metric[0], 32, ifx board == "" then "streak" else GameScoreMetric(board, 0))
statistics := LeaderboardStatsBody(app)
SyncCopyText(*args.statistics[0], 2048, statistics)
PackageFree(statistics)
@@ -918,14 +925,14 @@ app_apply_pending_social_refresh :: (app: *InnerBreeze) {
board := LeaderboardBoardName(app)
statistics := LeaderboardStatsBody(app)
defer { PackageFree(statistics) }
if board != "" {
if board != "" && GameScoreMetric(board, 0) != "score" {
g_social_average_key[0] = cast(u8)0
}
if !BeginSocialRefresh(*g_social_async, AppTextFromCString(*url[0], 256),
NetworkTransport(*g_social_transfer),
ifx board == "" then app_social_practice_id(app.leaderboard_practice) else board,
AppTextFromCString(*action[0], 16), AppTextFromCString(*action_value[0], 96),
ifx board == "" then "streak" else "levels", statistics) {
ifx board == "" then "streak" else GameScoreMetric(board, 0), statistics) {
app_social_record_result(g_social_async.result)
return
}
+2
View File
@@ -549,6 +549,8 @@ InnerBreeze :: struct {
// Advances whenever saved or fetched leaderboard results change.
leaderboard_revision: s32
profile_friend_input_cursor: s32
profile_friend_input_anchor: s32
profile_friend_input_scroll_x: s32
profile_friend_input_focused: s32
profile_friends_loaded: s32
profile_name_cursor: s32
+2
View File
@@ -11,6 +11,7 @@
#import, file "route_types.zi";
#import, file "exercise_types.zi";
#import, file "../platform/environment.zi";
#import, file "../platform/dew_payment.zi";
#import "android_device"
#import, file "../platform/android/graphics_context.zi";
#import, file "fonts.zi";
@@ -352,6 +353,7 @@ app_init :: (vapp: *void) {
app.break_sounds_enabled = 0
}
data_init()
DewPaymentStart()
TelegramAccountFlowStart()
if !AppsStart(app) {
TraceLog(LOG_ERROR, "APP: required Lists, Habits or Practice bundle failed validation")
+20
View File
@@ -274,7 +274,23 @@ EntityHostLocale :: (key: string) -> string {
if key == "entity.account_local" { return LocaleText("sync_no_account") }
if key == "entity.public_id" { return LocaleText("sync_public_id_label") }
if key == "entity.copy_id" { return LocaleText("sync_copy_id_button") }
if key == "entity.copied" { return LocaleText("sync_public_id_copied") }
if key == "entity.alias" { return LocaleText("sync_alias_title") }
if key == "entity.alias_rule" { return LocaleText("sync_alias_rule") }
if key == "entity.alias_pending" { return LocaleText("sync_alias_pending") }
if key == "entity.alias_retry" { return LocaleText("sync_alias_retry") }
if key == "entity.alias_current" { return LocaleText("sync_alias_current") }
if key == "entity.alias_taken" { return LocaleText("sync_alias_taken") }
if key == "entity.alias_premium_available" { return LocaleText("sync_alias_premium_available") }
if key == "entity.alias_buy" { return LocaleText("sync_alias_buy") }
if key == "entity.alias_free" { return LocaleText("sync_alias_free") }
if key == "entity.alias_check" { return LocaleText("sync_alias_check") }
if key == "entity.alias_checking" { return LocaleText("sync_alias_checking") }
if key == "entity.alias_premium" { return LocaleText("sync_alias_premium") }
if key == "entity.alias_once" { return LocaleText("sync_alias_once") }
if key == "entity.alias_insufficient" { return LocaleText("sync_alias_insufficient") }
if key == "entity.retry" { return LocaleText("retry_button") }
if key == "entity.refresh" { return LocaleText("elist_refresh") }
if key == "entity.save" { return LocaleText("save_button") }
if key == "entity.sync" { return LocaleText("sync_status_title") }
if key == "entity.sync_now" { return LocaleText("sync_now_button") }
@@ -317,6 +333,10 @@ EntityHostCall :: (context: *void, module: *u8, function: *u8,
arguments: *HostValue, count: s32, result: *HostValue) -> s32 {
app := cast(*InnerBreeze)context
name := TextFromCString(function)
if name == "ClipboardCopyHost" && count == 2 {
result.* = HostScalar("bool", ifx TextInputWriteClipboard(AppArgumentText(arguments[0])) then 1 else 0)
return 1
}
if name == "AppServiceHost" && count == 2 && AppArgumentText(arguments[0]) == LEADERBOARD_SERVICE {
result.* = EntityHostText(InbeLeaderboardSnapshot(app, AppArgumentText(arguments[1])))
return 1
+37
View File
@@ -30,6 +30,7 @@ PairingTypes :: #import "entity/pairing";
#import, file "../storage/daochi_account.zi";
#import, file "../storage/data.zi";
#import, file "../platform/environment.zi";
#import, file "../platform/web_storage.zi";
#import, file "../platform/android/android_import.zi";
using SyncAccountSaveResult;
@@ -123,6 +124,15 @@ InbeRecoveryApply :: (context: *void, incoming: *Recovery.Recovery, choice: s32)
if !InbeManagementConnect(context) {
return 0
}
if TextUntilNul(entity_management.queue.request.operation[:]) == "create" {
state := Entity.EntityDefault()
state.pictures &= ~((1 << 21) | (1 << 22) | (1 << 23))
state.picture = Entity.EntityInitialPicture(TextUntilNul(incoming.keys.public_id[:]), state.pictures)
icon := ifx state.picture >= 25 then 124 + state.picture - 25 else 41 + state.picture
storage_set_setting_int("profile_picture_icon", icon)
state.owner_id = incoming.keys.public_id
unused Native.SharedProfileSave(TextUntilNul(state.owner_id[:]), state)
}
EntityReloadData(app, 0)
unused EntityRequestSync(app)
return 1
@@ -304,6 +314,33 @@ InbeManagementAction :: (context: *void, request: *Manage.ManagementRequest) ->
storage_set_setting_text("sync_account_alias", TextUntilNul(request.value[:]))
return 1
}
if operation == "alias_purchase_load" || operation == "alias_purchase_save" || operation == "alias_purchase_clear" {
owner_buffer: [65]u8
if !InbeEntityOwner(owner_buffer[:]) ||
TextUntilNul(owner_buffer[:]) != TextUntilNul(request.owner_id[:]) {
return 0
}
name: Vec(u8)
BuilderPrint(*name, "username.%.purchase.json", TextUntilNul(owner_buffer[:]))
file := BuilderFinish(name)
defer {
Entity.EntityFree(file)
}
path_buffer: [4096]u8
path := Native.NativeJoin(path_buffer[:], data_root(), file)
if operation == "alias_purchase_load" {
count := Native.NativeRead(path, request.value[:])
if count < 0 {
return ifx PathExists(path) then 0 else 2
}
return ifx count > 2 then 1 else 2
}
document := ifx operation == "alias_purchase_clear" then "{}" else TextUntilNul(request.value[:])
if !Native.NativeWrite(path, document) || sync_web_storage_critical() == 0 {
return 0
}
return 1
}
if operation == "link_show" {
unused InbeEntityOwner(entity_management_link_owner[:])
entity_management_delivered = false
+6 -1
View File
@@ -32,5 +32,10 @@ ProfilePictureSelected :: (saved: s32) -> s32 {
ProfilePictureFromRemote :: (saved: s32) -> s32 {
legacy: [12]s32 = .[0, 42, 43, 46, 53, 54, 55, 62, 63, 64, 65, 65]
if saved >= 0 && saved <= 11 { return legacy[saved] }
return ifx ProfilePictureValid(saved) then saved else 0
// Friends may choose a picture in another app's larger picker. The
// local selection policy must not replace that valid remote picture.
if saved >= 41 && saved <= 65 || saved >= 124 && saved <= 126 {
return saved
}
return 0
}
+16 -4
View File
@@ -1,4 +1,5 @@
#import "entity/dew_model"
#import "entity/dew_play"
#import, file "../habits/habit_icons.zi";
#import, file "../habits/habit_coins.zi";
#import, file "../storage/storage_habit_wallet.zi";
@@ -52,6 +53,7 @@
#import, file "../storage/dew.zi";
#import, file "../storage/practice_unlocks.zi";
#import, file "../screens/profile_dew.zi";
#import, file "../platform/dew_payment.zi";
#import, file "../screens/profile_dew_gift.zi";
#import, file "../storage/account_types.zi";
#import, file "../storage/sync_result.zi";
@@ -78,6 +80,8 @@ using ModalType;
using AppMainTab;
using AppNavRoute;
using ExerciseType;
c :: #system_library "c";
GetTime :: () -> float64 #foreign c;
using HabitSyncMode;
using SyncResult;
using SyncAccountLocalDataChoice;
@@ -663,9 +667,7 @@ setup_screenshot_scene :: (app: *InnerBreeze, request: *ScreenshotRequest) {
app.enabled_apps = APP_ALL
unused AppsSetEnabled(APP_ALL)
app.launcher_guide_seen = 0
app.launcher_guide_step = ScreenshotParseInt(scene_text[15:], 0)
if app.launcher_guide_step < 0 { app.launcher_guide_step = 0 }
if app.launcher_guide_step > 2 { app.launcher_guide_step = 2 }
app.launcher_guide_step = 0
} else if AppTextFromCString(*request.scene[0], 64) == "first_run_guide" {
app.main_tab = APP_MAIN_TAB_PRACTICE
app.exercise_type = EXERCISE_WIM_HOF
@@ -1039,7 +1041,7 @@ setup_screenshot_scene :: (app: *InnerBreeze, request: *ScreenshotRequest) {
app.breathing.screen = ScreenProfile
} else if scene_text == "profile_dew" || scene_text == "storage_plans" ||
scene_text == "storage_plans_1gb" || scene_text == "dew_top_up" ||
scene_text == "dew_gift" {
scene_text == "dew_gift" || scene_text == "dew_play_wait" || scene_text == "dew_play_packs" {
// A fixture Dew account in the isolated data root; nothing is fetched.
account: AccountKeys = .{}
if sync_account_generate(*account) == 0 ||
@@ -1079,6 +1081,16 @@ setup_screenshot_scene :: (app: *InnerBreeze, request: *ScreenshotRequest) {
dew_minimum_atomic = 1000000000
dew_confirmations = 10
}
if scene_text == "dew_play_wait" || scene_text == "dew_play_packs" {
dew_play.enabled = true
ProfileTopUpOpen(app)
if scene_text == "dew_play_wait" {
unused AppCopyText("{\"ready\":false,\"products\":[],\"purchases\":[]}", dew_play.state[:])
profile_play_prices_deadline = GetTime() + 0.5
} else {
unused AppCopyText("{\"ready\":true,\"products\":[{\"id\":\"dew_10\",\"price\":\"$0.72\",\"micros\":720000,\"currency\":\"USD\"},{\"id\":\"dew_100\",\"price\":\"$6.90\",\"micros\":6900000,\"currency\":\"USD\"},{\"id\":\"dew_500\",\"price\":\"$33.00\",\"micros\":33000000,\"currency\":\"USD\"},{\"id\":\"dew_1000\",\"price\":\"$63.00\",\"micros\":63000000,\"currency\":\"USD\"},{\"id\":\"dew_5000\",\"price\":\"$300.00\",\"micros\":300000000,\"currency\":\"USD\"}],\"purchases\":[]}", dew_play.state[:])
}
}
if scene_text == "dew_gift" {
// A fixture friend; nothing is sent.
friend := "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
-119
View File
@@ -8,7 +8,6 @@
#import, file "lists_ui_types.zi";
#import, file "lumi_ui_types.zi";
#import, file "lumi_types.zi";
#import, file "leaderboard_ui_types.zi";
#import, file "habits_ui_types.zi";
#import, file "practice_ui_types.zi";
#import "session"
@@ -860,124 +859,6 @@ WidgetValidLumiDonation :: (value: HostValue) -> bool {
return true
}
WidgetLeaderboardUiFrameCodec :: struct {
fields: [11]HostField
session: WidgetSessionCodec
}
WidgetEncodeLeaderboardUiFrame :: (data: LeaderboardUiFrame, codec: *WidgetLeaderboardUiFrameCodec) -> HostValue {
value := HostRecordValue("LeaderboardUiFrame", codec.fields[:])
codec.fields[0].name = HostTextData("session")
codec.fields[0].value = WidgetEncodeSession(data.session, *codec.session)
codec.fields[1] = HostField.{.name = HostTextData("width"), .value = HostScalar("s32", cast(s64)data.width)}
codec.fields[2] = HostField.{.name = HostTextData("height"), .value = HostScalar("s32", cast(s64)data.height)}
codec.fields[3] = HostField.{.name = HostTextData("bottom"), .value = HostScalar("s32", cast(s64)data.bottom)}
codec.fields[4] = HostField.{.name = HostTextData("scale"), .value = HostValue.{.kind = cast(s32)HostReal, .type_name = HostTextData("float32"), .real = cast(float64)data.scale}}
codec.fields[5] = HostField.{.name = HostTextData("font"), .value = HostScalar("s32", cast(s64)data.font)}
codec.fields[6] = HostField.{.name = HostTextData("scroll"), .value = HostScalar("s32", cast(s64)data.scroll)}
codec.fields[7] = HostField.{.name = HostTextData("app_count"), .value = HostScalar("s32", cast(s64)data.app_count)}
codec.fields[8] = HostField.{.name = HostTextData("app_index"), .value = HostScalar("s32", cast(s64)data.app_index)}
codec.fields[9] = HostField.{.name = HostTextData("board_count"), .value = HostScalar("s32", cast(s64)data.board_count)}
codec.fields[10] = HostField.{.name = HostTextData("board_index"), .value = HostScalar("s32", cast(s64)data.board_index)}
return value
}
WidgetDecodeLeaderboardUiFrame :: (value: HostValue, codec: *WidgetLeaderboardUiFrameCodec) -> LeaderboardUiFrame {
data: LeaderboardUiFrame
zero: HostValue
data.session = WidgetDecodeSession(HostFieldValue(*value, 0, "session", *zero).*, *codec.session)
data.width = cast(s32)HostFieldValue(*value, 1, "width", *zero).integer
data.height = cast(s32)HostFieldValue(*value, 2, "height", *zero).integer
data.bottom = cast(s32)HostFieldValue(*value, 3, "bottom", *zero).integer
data.scale = cast(float32)HostFieldValue(*value, 4, "scale", *zero).real
data.font = cast(s32)HostFieldValue(*value, 5, "font", *zero).integer
data.scroll = cast(s32)HostFieldValue(*value, 6, "scroll", *zero).integer
data.app_count = cast(s32)HostFieldValue(*value, 7, "app_count", *zero).integer
data.app_index = cast(s32)HostFieldValue(*value, 8, "app_index", *zero).integer
data.board_count = cast(s32)HostFieldValue(*value, 9, "board_count", *zero).integer
data.board_index = cast(s32)HostFieldValue(*value, 10, "board_index", *zero).integer
return data
}
WidgetValidLeaderboardUiFrame :: (value: HostValue) -> bool {
if !HostRecordValid(*value, "LeaderboardUiFrame") { return false }
if !HostFieldRecordValid(*value, 0, "session", WidgetValidSession) { return false }
if !HostFieldScalarValid(*value, 1, "width", "s32", cast(s32)HostInteger) { return false }
if !HostFieldScalarValid(*value, 2, "height", "s32", cast(s32)HostInteger) { return false }
if !HostFieldScalarValid(*value, 3, "bottom", "s32", cast(s32)HostInteger) { return false }
if !HostFieldScalarValid(*value, 4, "scale", "float32", cast(s32)HostReal) { return false }
if !HostFieldScalarValid(*value, 5, "font", "s32", cast(s32)HostInteger) { return false }
if !HostFieldScalarValid(*value, 6, "scroll", "s32", cast(s32)HostInteger) { return false }
if !HostFieldScalarValid(*value, 7, "app_count", "s32", cast(s32)HostInteger) { return false }
if !HostFieldScalarValid(*value, 8, "app_index", "s32", cast(s32)HostInteger) { return false }
if !HostFieldScalarValid(*value, 9, "board_count", "s32", cast(s32)HostInteger) { return false }
if !HostFieldScalarValid(*value, 10, "board_index", "s32", cast(s32)HostInteger) { return false }
return true
}
WidgetLeaderboardUiRowCodec :: struct {
fields: [5]HostField
}
WidgetEncodeLeaderboardUiRow :: (data: LeaderboardUiRow, codec: *WidgetLeaderboardUiRowCodec) -> HostValue {
value := HostRecordValue("LeaderboardUiRow", codec.fields[:])
codec.fields[0] = HostField.{.name = HostTextData("rank"), .value = HostScalar("s32", cast(s64)data.rank)}
codec.fields[1] = HostField.{.name = HostTextData("name"), .value = HostValue.{.kind = cast(s32)HostString, .type_name = HostTextData("string"), .data = HostTextData(data.name), .length = cast(usize)data.name.count}}
codec.fields[2] = HostField.{.name = HostTextData("streak"), .value = HostValue.{.kind = cast(s32)HostString, .type_name = HostTextData("string"), .data = HostTextData(data.streak), .length = cast(usize)data.streak.count}}
codec.fields[3] = HostField.{.name = HostTextData("average"), .value = HostValue.{.kind = cast(s32)HostString, .type_name = HostTextData("string"), .data = HostTextData(data.average), .length = cast(usize)data.average.count}}
codec.fields[4] = HostField.{.name = HostTextData("own"), .value = HostScalar("bool", ifx data.own then 1 else 0)}
return value
}
WidgetDecodeLeaderboardUiRow :: (value: HostValue, codec: *WidgetLeaderboardUiRowCodec) -> LeaderboardUiRow {
data: LeaderboardUiRow
unused codec
zero: HostValue
data.rank = cast(s32)HostFieldValue(*value, 0, "rank", *zero).integer
data.name = HostValueText(HostFieldValue(*value, 1, "name", *zero).*)
data.streak = HostValueText(HostFieldValue(*value, 2, "streak", *zero).*)
data.average = HostValueText(HostFieldValue(*value, 3, "average", *zero).*)
data.own = HostFieldValue(*value, 4, "own", *zero).integer != 0
return data
}
WidgetValidLeaderboardUiRow :: (value: HostValue) -> bool {
if !HostRecordValid(*value, "LeaderboardUiRow") { return false }
if !HostFieldScalarValid(*value, 0, "rank", "s32", cast(s32)HostInteger) { return false }
if !HostFieldScalarValid(*value, 1, "name", "string", cast(s32)HostString) { return false }
if !HostFieldScalarValid(*value, 2, "streak", "string", cast(s32)HostString) { return false }
if !HostFieldScalarValid(*value, 3, "average", "string", cast(s32)HostString) { return false }
if !HostFieldScalarValid(*value, 4, "own", "bool", cast(s32)HostInteger) { return false }
return true
}
WidgetLeaderboardUiAppCodec :: struct {
fields: [2]HostField
}
WidgetEncodeLeaderboardUiApp :: (data: LeaderboardUiApp, codec: *WidgetLeaderboardUiAppCodec) -> HostValue {
value := HostRecordValue("LeaderboardUiApp", codec.fields[:])
codec.fields[0] = HostField.{.name = HostTextData("name"), .value = HostValue.{.kind = cast(s32)HostString, .type_name = HostTextData("string"), .data = HostTextData(data.name), .length = cast(usize)data.name.count}}
codec.fields[1] = HostField.{.name = HostTextData("title"), .value = HostValue.{.kind = cast(s32)HostString, .type_name = HostTextData("string"), .data = HostTextData(data.title), .length = cast(usize)data.title.count}}
return value
}
WidgetDecodeLeaderboardUiApp :: (value: HostValue, codec: *WidgetLeaderboardUiAppCodec) -> LeaderboardUiApp {
data: LeaderboardUiApp
unused codec
zero: HostValue
data.name = HostValueText(HostFieldValue(*value, 0, "name", *zero).*)
data.title = HostValueText(HostFieldValue(*value, 1, "title", *zero).*)
return data
}
WidgetValidLeaderboardUiApp :: (value: HostValue) -> bool {
if !HostRecordValid(*value, "LeaderboardUiApp") { return false }
if !HostFieldScalarValid(*value, 0, "name", "string", cast(s32)HostString) { return false }
if !HostFieldScalarValid(*value, 1, "title", "string", cast(s32)HostString) { return false }
return true
}
WidgetHabitsUiFrameCodec :: struct {
fields: [12]HostField
session: WidgetSessionCodec
+4 -1
View File
@@ -2,7 +2,7 @@
// bytes, but cannot select or replace the host's controller trust anchor.
// Collections built before the ZX format carried ZIB controllers, which this
// runtime cannot run; earlier ZX controllers stay trusted for collections.
AppsControllerSha256 :: "a81eb5b14d2066925d19c3fd922865af40c90673cf54fb11bd7f9bf89a29cb98"
AppsControllerSha256 :: "a1b56259e0b8581188459cc366736feacda3969b2db3055e8425a81065b065e1"
// Existing collections keep the controller from before shared saved records.
AppsControllerBeforeSharedRecords :: "a99851fc40d67a8ca820841722ce2ddde5ca51844e0778c4762681570c488289"
@@ -23,3 +23,6 @@ AppsControllerBeforeCoverGrid :: "0b350b5a5ae9813e9e0521ad6089bda78ee125483cefa0
// Collections that pack the controller from before small phone covers,
// such as Arcade 0.7.77, keep opening.
AppsControllerBeforeSmallCovers :: "5490a8e61f5fa218e813b6e3d78bece6198d2ed935c42fc77b7d5e4aeed9bfe3"
// Collections published before installation completion was retained.
AppsControllerBeforeInstalledDownloads :: "a81eb5b14d2066925d19c3fd922865af40c90673cf54fb11bd7f9bf89a29cb98"
+1 -1
View File
@@ -1,5 +1,5 @@
// Generated from apps/versions.json. This host runs packages built for host
// interfaces from the oldest to the current one; module interfaces must match.
PackageHostAPI :: 39
PackageHostAPI :: 40
PackageHostAPIOldest :: 12
PackageModuleAPI :: 2
-31
View File
@@ -1,31 +0,0 @@
#import "session"
// Device observations and retained scroll, never native pointers.
LeaderboardUiFrame :: struct {
session: Session
width: s32
height: s32
bottom: s32
scale: float32
font: s32
scroll: s32
app_count: s32
app_index: s32
// The chosen app's games with a board, such as Arcade's Shovey.
board_count: s32
board_index: s32
}
LeaderboardUiApp :: struct {
name: string
title: string
}
// Rows arrive ranked for the chosen metric, with display text prepared once.
LeaderboardUiRow :: struct {
rank: s32
name: string
streak: string
average: string
own: bool
}
-7
View File
@@ -676,13 +676,6 @@ ModuleAllows :: (context: *void, module_name: string, name: string) -> bool {
name == "SetLumiOnlineHost" || name == "LumiAgreementHost" ||
name == "OpenLumiSettingsHost" || name == "OpenLinkHost"))
}
if kind == MODULE_LEADERBOARD {
allowed = allowed || WidgetHostSupports(module_name, name) ||
(module_name == "leaderboard_view" &&
(name == "ReadLeaderboardUiHost" || name == "WriteLeaderboardUiHost" ||
name == "ReadLeaderboardRowHost" || name == "ReadLeaderboardAppHost" ||
name == "ReadLeaderboardBoardHost" || name == "LeaderboardLocaleHost"))
}
if kind == MODULE_INBE {
allowed = allowed ||
(module_name == "text_widget" && name == "TextHostedHost") ||
+1
View File
@@ -496,6 +496,7 @@ NodeTreeStart :: (runner: *NodeAppRunner, bytes: string, verified: string,
unused AppHostTrustHarness(host, AppsControllerBeforeSmallCovers)
unused AppHostTrustHarness(host, AppsControllerBeforeDownload)
unused AppHostTrustHarness(host, AppsControllerBeforeSeparateDownloads)
unused AppHostTrustHarness(host, AppsControllerBeforeInstalledDownloads)
platform := AppPlatform.{.context = cast(*void)runner, .allows = NodeTreeAllows, .call = NodeTreeCall,
.widgets = NodeTreeWidgets, .save = NodeTreeSave, .state = NodeTreeState,
.effect = NodeTreeEffect, .bundle = NodeChildBundle,
+41 -6
View File
@@ -109,6 +109,33 @@ NodeChildBundle :: (context: *void, parent: *AppNode, entry: *AppEntry) -> Hoste
return HostedAsset.{.found = true, .data = node_children[index].bytes}
}
NodeChildDependsOn :: (catalog: *AppCatalog, entry: *AppEntry, wanted: *AppEntry, depth: s32) -> bool {
if entry == wanted { return true }
if entry == null || depth >= 32 { return false }
for index: cast(s32)0..entry.dependency_count - 1 {
dependency := AppCatalogAt(catalog, AppCatalogFind(catalog, TextUntilNul(entry.dependencies[index][:])))
if NodeChildDependsOn(catalog, dependency, wanted, depth + 1) { return true }
}
return false
}
// Installation belongs to a publisher and app ID, not one release digest.
// A new catalog may update an installed game and its libraries, while games
// the account has never installed still require the download dialog.
NodeChildInstalled :: (parent: *AppNode, entry: *AppEntry) -> bool {
if parent == null { return false }
item := parent.catalog.children
while item != null {
if NodeChildDependsOn(*parent.catalog, *item.entry, entry, 0) {
identity := AppIdentity.{.authority = parent.identity.authority, .id = item.entry.id}
state: AppState
if NodeTreeState(null, NodeTreeAccount(), *identity, *state) && state.installed { return true }
}
item = item.next
}
return false
}
NodeChildDownload :: (context: *void, parent: *AppNode, entry: *AppEntry,
download: *AppDownload) -> bool {
runner := cast(*NodeAppRunner)context
@@ -122,6 +149,10 @@ NodeChildDownload :: (context: *void, parent: *AppNode, entry: *AppEntry,
}
child := *node_children[index]
if child.status == 2 { return false }
if child.status == 0 && PackageAutomaticEnabled() && NodeChildInstalled(parent, entry) {
child.requested = true
child.status = 1
}
download.downloading = child.status == 1
download.failed = child.status == 3
download.bytes = child.size
@@ -223,19 +254,23 @@ NodeChildPump :: () {
}
if node_child_work != null {
if !PackageWorkReady(node_child_work) { return }
ok := !child.retired && node_child_work.ok &&
TextUntilNul(node_child_work.digest[:]) == TextUntilNul(child.digest[:]) && node_child_work.bytes.count > 0 &&
node_child_work.bytes.count <= NODE_CHILD_MEMORY_LIMIT - node_child_memory
if ok && node_child_work.path != child.path {
ok = RenamePath(node_child_work.path, child.path)
verified := node_child_work.ok &&
TextUntilNul(node_child_work.digest[:]) == TextUntilNul(child.digest[:]) && node_child_work.bytes.count > 0
stored := verified
if stored && node_child_work.path != child.path {
stored = RenamePath(node_child_work.path, child.path)
}
ok := !child.retired && stored &&
node_child_work.bytes.count <= NODE_CHILD_MEMORY_LIMIT - node_child_memory
if ok {
child.bytes = node_child_work.bytes
node_child_work.bytes = ""
child.size = child.bytes.count
node_child_memory += child.bytes.count
}
if !ok && !child.retired { unused RemoveFile(node_child_work.path) }
// Memory pressure or a closed collection must not uninstall a valid
// download. Only an invalid payload is removed from persistent storage.
if !verified && !child.retired { unused RemoveFile(node_child_work.path) }
PackageWorkFree(node_child_work)
node_child_work = null
NodeChildFinish(ok)
+3 -3
View File
@@ -3,7 +3,7 @@ PackageBundledVersion :: (index: s32) -> string {
if index < 0 || index >= 7 {
return ""
}
versions: [7]string = .["2.1.52", "1.1.20", "1.3.7", "1.6.1", "1.3.16", "1.5.19", "1.0.21"]
versions: [7]string = .["2.1.59", "1.1.25", "1.3.12", "1.6.6", "1.3.22", "1.5.24", "1.0.26"]
return versions[index]
}
@@ -11,7 +11,7 @@ PackageBundledSequence :: (index: s32) -> s32 {
if index < 0 || index >= 7 {
return 0
}
sequences: [7]s32 = .[49, 28, 30, 30, 33, 37, 22]
sequences: [7]s32 = .[56, 33, 35, 35, 39, 42, 27]
return sequences[index]
}
@@ -22,6 +22,6 @@ PackageHostAPIOldestFor :: (index: s32) -> s32 {
if index < 0 || index >= 7 {
return 12
}
oldest: [7]s32 = .[12, 12, 30, 31, 12, 12, 12]
oldest: [7]s32 = .[12, 12, 30, 31, 12, 12, 40]
return oldest[index]
}
+2 -2
View File
@@ -3,7 +3,7 @@
#define APP_VERSION_MAJOR 2
#define APP_VERSION_MINOR 1
#define APP_VERSION_PATCH 52
#define APP_VERSION_STRING "2.1.52"
#define APP_VERSION_PATCH 58
#define APP_VERSION_STRING "2.1.58"
#endif
+2 -2
View File
@@ -1,5 +1,5 @@
// Generated by update_version.sh from CHANGELOG.md. Do not edit by hand.
VersionMajor :: 2
VersionMinor :: 1
VersionPatch :: 52
VersionString :: "2.1.52"
VersionPatch :: 58
VersionString :: "2.1.58"
+13 -26
View File
@@ -1,34 +1,21 @@
// Dew works in every build: the balance, storage plans, practice unlocks and
// app rewards are paid in Dew. Only topping Dew up with Monero is left out of
// the Play build, whose activity reports it.
#if #defined(ANDROID_BUILD) {
#import "android_jni"
}
// Dew works in every edition: the balance, storage plans, practice unlocks
// and app rewards are paid in Dew. The direct and F-Droid editions top Dew up
// with Monero; the Google Play edition (the GOOGLE_PLAY define) sells Dew
// packs through Google Play (entity/dew_play) once Play Billing answers.
#import "entity/dew_play"
dew_channel_known: bool;
dew_channel_available: bool;
dew_play: DewPlay;
// Called once at start, before the first frame asks for Dew.
DewPaymentStart :: () {
dew_play.enabled = DewPlayEdition()
}
DewAvailable :: () -> bool { return true }
DewTopUpAvailable :: () -> bool {
#if #defined(ANDROID_BUILD) {
if !dew_channel_known {
session: AndroidJniSession
if AndroidJniAttachCurrent(*session) == 0 {
return false
}
method := AndroidJniMethod(*session, "dewAvailable", "()Z")
if method != null {
dew_channel_available = session.env.functions.CallBooleanMethodA(
session.env, session.activity, method, null) != 0
if session.env.functions.ExceptionCheck(session.env) != 0 {
dew_channel_available = false
}
}
AndroidJniDetachCurrent(*session)
dew_channel_known = true
}
return dew_channel_available
if dew_play.enabled {
return dew_play.available
}
return true
}
+42 -81
View File
@@ -11,7 +11,6 @@ EntityProfile :: #import "entity/model";
#import "json_scan"
#import "text_buffer"
#import, file "../apps/leaderboard_types.zi";
#import, file "../apps/leaderboard_ui_types.zi";
#import "widget_host"
#import "hosted_values"
#import, file "../apps/hosted_assets.zi";
@@ -68,10 +67,6 @@ leaderboard_signed_in: bool;
leaderboard_built_revision: s32 = -1;
leaderboard_built_practice: s32 = -1;
leaderboard_built_metric: s32 = -1;
leaderboard_ui: LeaderboardUiFrame;
leaderboard_ui_codec: WidgetLeaderboardUiFrameCodec;
leaderboard_row_codec: WidgetLeaderboardUiRowCodec;
leaderboard_app_codec: WidgetLeaderboardUiAppCodec;
leaderboard_app_names: [16][25]u8;
leaderboard_app_titles: [16][128]u8;
leaderboard_app_count: s32;
@@ -158,6 +153,14 @@ LeaderboardGameValue :: (app: *InnerBreeze) -> float64 {
return 0.0
}
LeaderboardGameLevel :: (app: *InnerBreeze) -> float64 {
for index: cast(s32)0..leaderboard_board_count - 1 {
score := *game_scores[leaderboard_boards[index]]
if TextUntilNul(score.game[:]) == LeaderboardBoardName(app) { return cast(float64)score.level }
}
return 0.0
}
// The Wim Hof and meditation figures from this device's own records, which
// the node cannot read once sessions sync encrypted, and every game score,
// published with the next refresh. Only these numbers leave the device.
@@ -187,6 +190,11 @@ LeaderboardStatsBody :: (app: *InnerBreeze) -> string {
ifx count > 0 then "," else "", TextUntilNul(score.game[:]), TextUntilNul(score.metric[:]),
score.value, score.value, today)
count += 1
if score.run {
BuilderPrint(*out, ",{\"practice\":\"%\",\"metric\":\"level\",\"value\":%,\"label\":\"%\",\"local_date\":%}",
TextUntilNul(score.game[:]), score.level, score.level, today)
count += 1
}
}
BuilderPrint(*out, "]}")
if count == 0 {
@@ -238,7 +246,6 @@ LeaderboardKeepInstalled :: (app: *InnerBreeze, installed: LeaderboardMessage) -
}
app.leaderboard_practice = installed.practices[0]
app.leaderboard_metric = LEADERBOARD_STREAK
leaderboard_ui.scroll = 0
return true
}
@@ -268,13 +275,23 @@ LeaderboardLoadBoard :: (practice: s32, metric: s32, output: []u8) {
LeaderboardLoadCache :: (app: *InnerBreeze) {
if LeaderboardAppName(app) != "practices" {
out: Vec(u8)
BuilderPrint(*out, "leaderboard.games.%.%", LeaderboardBoardName(app), GAME_SCORE_LEVELS)
BuilderPrint(*out, "leaderboard.games.%.%", LeaderboardBoardName(app), GameScoreMetric(LeaderboardBoardName(app), 0))
key := BuilderFinish(out)
defer { PackageFree(key) }
if storage_get_social_cache_json(key, *app.leaderboard_json[0], 8192) == 0 {
unused AppCopyText("{\"rows\":[]}", app.leaderboard_json[:])
}
unused AppCopyText("{\"rows\":[]}", app.leaderboard_avg_json[:])
if GameScoreRun(LeaderboardBoardName(app)) {
second: Vec(u8)
BuilderPrint(*second, "leaderboard.games.%.level", LeaderboardBoardName(app))
second_key := BuilderFinish(second)
if storage_get_social_cache_json(second_key, *app.leaderboard_avg_json[0], 8192) == 0 {
unused AppCopyText("{\"rows\":[]}", app.leaderboard_avg_json[:])
}
PackageFree(second_key)
} else {
unused AppCopyText("{\"rows\":[]}", app.leaderboard_avg_json[:])
}
app.leaderboard_loaded = 1
app.leaderboard_revision += 1
return
@@ -381,7 +398,8 @@ LeaderboardRebuild :: (app: *InnerBreeze) {
load_friends_cache(app)
}
practice_app := LeaderboardAppName(app) == "practices"
has_average := practice_app && LeaderboardHasAverage(practice)
run := !practice_app && GameScoreRun(LeaderboardBoardName(app))
has_average := (practice_app && LeaderboardHasAverage(practice)) || run
account: AccountKeys
own_id: string = ""
if sync_account_load(*account) != 0 && account.public_id[0] != cast(u8)0 {
@@ -427,7 +445,9 @@ LeaderboardRebuild :: (app: *InnerBreeze) {
if TextUntilNul(leaderboard_averages[item].user_id[:]) == user_id {
entry.average_value = leaderboard_averages[item].value
label := TextUntilNul(leaderboard_averages[item].label[:])
if practice == EXERCISE_MEDITATION && label.count > 0 {
if run {
LeaderboardFormatRounded(entry.average_value, entry.average[:])
} else if practice == EXERCISE_MEDITATION && label.count > 0 {
unused AppCopyText(label, entry.average[:])
} else {
LeaderboardFormatAverage(practice, entry.average_value, entry.average[:])
@@ -441,6 +461,10 @@ LeaderboardRebuild :: (app: *InnerBreeze) {
entry.own = true
entry.streak_value = LeaderboardGameValue(app)
LeaderboardFormatRounded(entry.streak_value, entry.streak[:])
if run {
entry.average_value = LeaderboardGameLevel(app)
LeaderboardFormatRounded(entry.average_value, entry.average[:])
}
}
}
leaderboard_count += 1
@@ -463,7 +487,8 @@ LeaderboardRebuild :: (app: *InnerBreeze) {
display_name(*entry.name[0], cast(s64)entry.name.count,
LeaderboardText(friends, positions[index], "alias", alias[:]), user_id)
LeaderboardFormatRounded(0.0, entry.streak[:])
LeaderboardFormatAverage(practice, 0.0, entry.average[:])
if run { LeaderboardFormatRounded(0.0, entry.average[:]) }
else { LeaderboardFormatAverage(practice, 0.0, entry.average[:]) }
leaderboard_count += 1
}
@@ -479,6 +504,10 @@ LeaderboardRebuild :: (app: *InnerBreeze) {
entry.own = true
entry.streak_value = LeaderboardGameValue(app)
LeaderboardFormatRounded(entry.streak_value, entry.streak[:])
if run {
entry.average_value = LeaderboardGameLevel(app)
LeaderboardFormatRounded(entry.average_value, entry.average[:])
}
}
leaderboard_count += 1
}
@@ -500,75 +529,6 @@ LeaderboardRebuild :: (app: *InnerBreeze) {
unused AppCopyText(LeaderboardBoardName(app), leaderboard_built_board[:])
}
LeaderboardUiCall :: (context: *void, module: *u8, function: *u8,
arguments: *HostValue, count: s32, result: *HostValue) -> s32 {
if TextFromCString(module) != "leaderboard_view" {
return WidgetHostCall(context, module, function, arguments, count, result)
}
name := TextFromCString(function)
if name == "ReadLeaderboardAppHost" && count == 1 &&
HostScalarValid(arguments[0], "s32", cast(s32)HostInteger) {
index := cast(s32)arguments[0].integer
item: LeaderboardUiApp
if index >= 0 && index < leaderboard_app_count {
item.name = TextUntilNul(leaderboard_app_names[index][:])
item.title = TextUntilNul(leaderboard_app_titles[index][:])
}
result.* = WidgetEncodeLeaderboardUiApp(item, *leaderboard_app_codec)
return 1
}
if name == "ReadLeaderboardBoardHost" && count == 1 &&
HostScalarValid(arguments[0], "s32", cast(s32)HostInteger) {
index := cast(s32)arguments[0].integer
item: LeaderboardUiApp
if index >= 0 && index < leaderboard_board_count {
item.name = TextUntilNul(game_scores[leaderboard_boards[index]].game[:])
item.title = TextUntilNul(game_scores[leaderboard_boards[index]].title[:])
}
result.* = WidgetEncodeLeaderboardUiApp(item, *leaderboard_app_codec)
return 1
}
if name == "ReadLeaderboardUiHost" && count == 0 {
result.* = WidgetEncodeLeaderboardUiFrame(leaderboard_ui, *leaderboard_ui_codec)
return 1
}
if name == "WriteLeaderboardUiHost" && count == 1 && WidgetValidLeaderboardUiFrame(arguments[0]) {
observed := WidgetDecodeLeaderboardUiFrame(arguments[0], *leaderboard_ui_codec)
leaderboard_ui.scroll = observed.scroll
return 1
}
if name == "ReadLeaderboardRowHost" && count == 1 &&
HostScalarValid(arguments[0], "s32", cast(s32)HostInteger) {
index := cast(s32)arguments[0].integer
row: LeaderboardUiRow
if index >= 0 && index < leaderboard_count {
entry := *leaderboard_entries[index]
row.rank = index + 1
row.name = TextUntilNul(entry.name[:])
row.streak = TextUntilNul(entry.streak[:])
row.average = TextUntilNul(entry.average[:])
row.own = entry.own
if row.own && context != null {
app := cast(*InnerBreeze)context
if LeaderboardAppName(app) == "practices" {
AchievementLeaderboardViewed(LeaderboardPracticeId(app.leaderboard_practice))
}
}
}
result.* = WidgetEncodeLeaderboardUiRow(row, *leaderboard_row_codec)
return 1
}
if name == "LeaderboardLocaleHost" && count == 1 &&
HostScalarValid(arguments[0], "string", cast(s32)HostString) {
key := TextFromBytes(BytesFromPointer(arguments[0].data, cast(u64)arguments[0].length))
text := LocaleText(key)
result.* = HostValue.{.kind = cast(s32)HostString, .type_name = HostTextData("string"),
.data = HostTextData(text), .length = cast(usize)text.count}
return 1
}
return 0
}
// The old route remains a redirect for saved navigation and older packages.
// Profile owns the screen; Inner Breeze supplies its installed boards/data.
leaderboard_projection: string;
@@ -614,7 +574,8 @@ InbeLeaderboardSnapshot :: (app: *InnerBreeze, request: string) -> string {
unused AppCopyText(title, board.app_title[:])
unused AppCopyText(game, board.id[:])
unused AppCopyText(TextUntilNul(score.title[:]), board.title[:])
unused AppCopyText(LocaleText("leaderboard_levels"), board.primary[:])
unused AppCopyText(LocaleText(ifx score.run then "leaderboard_score" else "leaderboard_levels"), board.primary[:])
if score.run { unused AppCopyText(LocaleText("leaderboard_level"), board.average[:]) }
page.board_count += 1
}
}
+25 -27
View File
@@ -66,6 +66,9 @@
#import "file_linux"
#import "android_picker"
#import, file "node_app_loading.zi";
#import "kryon/loading_screen"
#import, file "../widgets/bottom_nav.zi";
#import, file "../app/navigation_routes.zi";
using HostValueKind;
using TextWrap;
@@ -301,37 +304,27 @@ NodeScreenPictureProgress :: (slot: s32) -> NodeScreenPictures {
}
NodeScreenProgress :: (app: *InnerBreeze, area: Rectangle, title: string,
stage: string, done: s32, total: s32) {
scale := MetricsScale()
width := area.width - 48.0 * scale
if width > 320.0 * scale { width = 320.0 * scale }
left := area.x + (area.width - width) / 2.0
middle := area.y + area.height / 2.0
Text(app.ui.session, TextProps.{.key = KeyHash("inbe/node-app/loading-title"),
.text = title, .font = AppFontSize(),
.bounds = Rectangle.{left, middle - 56.0 * scale, width, 28.0 * scale},
.align = cast(TextAlign)TextAlignCenter})
Text(app.ui.session, TextProps.{.key = KeyHash("inbe/node-app/loading-stage"),
.text = stage, .font = AppFontSize(),
.bounds = Rectangle.{left, middle - 24.0 * scale, width, 28.0 * scale},
.align = cast(TextAlign)TextAlignCenter})
counts: Vec(u8)
BuilderPrint(*counts, "% / %", done, total)
Progress(app.ui.session, ProgressProps.{.key = KeyHash("inbe/node-app/loading-progress"),
.bounds = Rectangle.{left, middle + 16.0 * scale, width, 24.0 * scale},
.min = 0, .max = total, .value = done, .label = TextView(VecSlice(counts, 0, counts.count))})
VecFree(counts)
LoadingIndicator(app.ui.session, LoadingIndicatorProps.{.key = KeyHash("inbe/node-app/loading-animation"),
.bounds = Rectangle.{left, middle + 56.0 * scale, width, 24.0 * scale},
.now = GetTime(), .scale = scale})
stage: string, done: s32, total: s32, known_progress: bool = false) {
route := app_main_tab_route(app.main_tab)
shape := app_nav_route_shape(route)
if app.breathing.screen == ScreenNodeApp {
shape = NodeAppIconShape(app.node_app_slot)
}
if shape.count == 0 {
shape = NODE_APP_GENERIC_ICON
}
LoadingScreen(app.ui.session, LoadingScreenProps.{.key = KeyHash("inbe/app/loading"),
.bounds = area, .title = title, .detail = stage, .icon_shape = shape,
.now = GetTime(), .scale = MetricsScale(), .has_progress = known_progress && total > 0,
.completed = done, .total = total})
AppRequestSmoothFrames(2)
}
NodeScreenCover :: (app: *InnerBreeze, area: Rectangle, pictures: NodeScreenPictures) {
Box(app.ui.session, BoxProps.{.key = KeyHash("inbe/node-app/cover"), .bounds = area,
.fill = StyleTokenColor("canvas")})
NodeScreenProgress(app, area, NodeAppName(app.node_app_slot),
LocaleText("app_loading_pictures"), pictures.ready, ifx pictures.total > 0 then pictures.total else 1)
NodeScreenProgress(app, area, NodeAppTitle(NodeAppName(app.node_app_slot)),
LocaleText("app_loading_pictures"), pictures.ready, pictures.total, true)
}
NodeScreenLoading :: (app: *InnerBreeze) {
@@ -341,13 +334,18 @@ NodeScreenLoading :: (app: *InnerBreeze) {
if slot >= 0 {
done := AppsFeaturesReadyCount()
total := cast(s32)PackageCount - 1
NodeScreenProgress(app, area, LocaleText("app_loading_apps"),
route := app_main_tab_route(app.main_tab)
title := app_nav_route_label(route)
if title.count == 0 {
title = LocaleText("app_loading_apps")
}
NodeScreenProgress(app, area, title,
LocaleText("app_loading_open"), done, total)
return
}
step := NodeOpenStep(app.node_app_slot)
stages: [4]string = .["app_loading_wait", "app_loading_read", "app_loading_open", "app_loading_ready"]
NodeScreenProgress(app, area, NodeAppName(app.node_app_slot), LocaleText(stages[step]), step, 3)
NodeScreenProgress(app, area, NodeAppTitle(NodeAppName(app.node_app_slot)), LocaleText(stages[step]), step, 3)
}
// The bundled app that draws the current screen, by module slot, or -1 for
+128 -4
View File
@@ -19,6 +19,10 @@
#import "segmented_control_widget"
#import "layout"
#import "tree"
#import "kryon/play_billing"
#import "entity/dew_play"
#import "entity/dew_play_pricing"
#import "loading_indicator"
#import, file "../storage/dew.zi";
#import, file "../storage/sync_async.zi";
#import, file "../storage/sync_node_storage.zi";
@@ -30,6 +34,7 @@
#import, file "../app/text_buffers.zi";
#import, file "../app/modal_rules.zi";
#import, file "../app/app_modal_state.zi";
#import, file "../app/smooth_frames.zi";
#import, file "qr_code_view.zi";
#import, file "dew_worth.zi";
@@ -48,6 +53,9 @@ profile_topup_scroll: s32;
profile_topup_started: bool;
profile_topup_failed: bool;
profile_topup_copied: bool;
profile_play_prices_deadline: float64;
c :: #system_library "c";
GetTime :: () -> float64 #foreign c;
// Top-up minimums under 0.001 XMR are not worth naming.
TopUpMinimumShown :: 1000000000
@@ -169,7 +177,8 @@ ProfileDewContent :: (app: *InnerBreeze, x: s32, y: *s32, width: s32,
unused AppCopyText("—", value[:])
}
busy := dew_operation.active
// Top-ups belong to the balance they fill; the Play build sells no Dew.
// Top-ups belong to the balance they fill; the Google Play edition
// shows its button once Google Play answers.
if dew_account.known && DewReady() && DewTopUpAvailable() {
label := LocaleText("profile_dew_topup")
button_w := AppTextWidth(label, AppFontSize()) + AppScale(32)
@@ -446,6 +455,11 @@ ProfileTopUpOpen :: (app: *InnerBreeze) {
profile_topup_started = false
profile_topup_failed = false
profile_topup_copied = false
profile_play_prices_deadline = GetTime() + 15.0
if dew_play.enabled {
// Ask on opening, even when the idle app has drawn very few frames.
unused PlayBillingProducts(DEW_PLAY_PRODUCTS, dew_play.state[:])
}
// Reopening asks for a fresh quote, even if this account has deposited
// before. Never keep an old address rate for the lifetime of the app.
dew_address = .{}
@@ -494,11 +508,109 @@ ProfileTopUpAddressText :: (output: []u8) {
}
}
// What the Google Play window says under its Dew packs, or "".
ProfileTopUpPlayNotice :: (billing: *PlayBillingState, shown: s32) -> string {
status := TextUntilNul(dew_play.status[:])
if status == "verifying" {
return LocaleText("profile_dew_play_verifying")
}
if status == "credited" {
return LocaleText("profile_dew_play_credited")
}
if status == "failed" {
return LocaleText("profile_dew_play_failed")
}
if shown > 0 {
return ""
}
error := TextUntilNul(billing.error[:])
if error != "" && error != "cancelled" {
return LocaleText("profile_dew_play_unavailable")
}
if GetTime() >= profile_play_prices_deadline {
return LocaleText("profile_dew_play_unavailable")
}
return LocaleText("profile_dew_play_loading")
}
// The Google Play edition sells Dew packs at Google Play's price in the
// buyer's currency. Play's own sheet takes the payment, and the Dew arrives
// once the node has credited the purchase (entity/dew_play).
ProfileTopUpPlayContent :: (app: *InnerBreeze, x: s32, y: *s32, width: s32, draw: bool) {
billing: PlayBillingState
unused PlayBillingRead(TextUntilNul(dew_play.state[:]), *billing)
busy := dew_operation.active || TextUntilNul(dew_play.status[:]) == "verifying"
packs: [5]string = .["dew_10", "dew_100", "dew_500", "dew_1000", "dew_5000"]
shown: s32 = 0
savings_shown := false
for pack: packs {
product: *PlayBillingProduct = null
for index: cast(s32)0..7 {
if index >= billing.product_count {
break
}
candidate := *billing.products[index]
if TextUntilNul(candidate.id[:]) == pack {
product = candidate
}
}
if product == null {
continue
}
label: [96]u8
arguments: [1]FormatArg = .[FormatArg.{.text = pack[4:], .is_text = true}]
unused FormatTemplate(LocaleText("profile_dew_play_pack"), arguments[:], label[:])
price := TextUntilNul(product.price[:])
detail: [128]u8
unused AppCopyText(price, detail[:])
savings := DewPlaySavings(TextUntilNul(dew_play.state[:]), pack)
if savings > 0 {
detail_args: [2]FormatArg = .[
FormatArg.{.text = price, .is_text = true},
FormatArg.{.number = savings}]
unused FormatTemplate("%s · −%d%%", detail_args[:], detail[:])
savings_shown = true
}
if ProfileDewButton(app, TextUntilNul(label[:]), x, y, width, busy, draw, TextUntilNul(detail[:])) {
unused DewPlayBuy(*dew_play, pack)
}
shown += 1
}
if savings_shown {
ProfileDewText(app, LocaleText("profile_dew_play_comparison"), x, y, width, AppSmallFontSize(), draw)
}
notice := ProfileTopUpPlayNotice(*billing, shown)
if notice != "" {
ProfileDewText(app, notice, x, y, width, AppSmallFontSize(), draw)
}
if shown == 0 && notice == LocaleText("profile_dew_play_unavailable") {
if ProfileDewButton(app, LocaleText("retry_button"), x, y, width, busy, draw) {
profile_play_prices_deadline = GetTime() + 15.0
unused PlayBillingProducts(DEW_PLAY_PRODUCTS, dew_play.state[:])
}
} else if shown == 0 && notice == LocaleText("profile_dew_play_loading") {
if draw {
LoadingIndicator(app.ui.session, LoadingIndicatorProps.{
.key = KeyHash("profile/dew/play/loading"),
.bounds = Rectangle.{cast(float32)x, cast(float32)y.*,
cast(float32)width, cast(float32)AppScale(28)},
.now = GetTime(), .scale = MetricsScale() * 0.7})
AppRequestSmoothFrames(2)
}
y.* += AppScale(36)
}
}
// Topping up is the one place Dew shows its money value: the balance's
// worth and the node's exchange rate.
// worth and the node's exchange rate, or Google Play's prices.
ProfileTopUpContent :: (app: *InnerBreeze, x: s32, y: *s32, width: s32, draw: bool) {
line: [384]u8
ProfileDewFormatDew(dew_account.balance, LocaleText("profile_dew_balance_line"), line[:])
if dew_play.enabled {
ProfileDewText(app, TextUntilNul(line[:]), x, y, width, AppSmallFontSize(), draw)
ProfileTopUpPlayContent(app, x, y, width, draw)
return
}
DewAppendWorth(dew_account.balance, line[:])
ProfileDewText(app, TextUntilNul(line[:]), x, y, width, AppSmallFontSize(), draw)
if ProfileDewExchangeText(line[:]) {
@@ -579,11 +691,23 @@ ProfileTopUpContent :: (app: *InnerBreeze, x: s32, y: *s32, width: s32, draw: bo
unused OpenUri(TextUntilNul(uri[:]))
}
y.* = copy_y
// Bitcoin, USDT and other coins go through dew.waozi.xyz, which hands
// the payment to Trocador for this account's own address.
if ProfileDewButton(app, LocaleText("dew_other_coin_button"), x, y, width, false, draw) {
link: [160]u8
unused AppCopyText("https://dew.waozi.xyz/?account=", link[:])
unused AppAppendText(TextUntilNul(dew_identity[:]), link[:])
unused OpenUri(TextUntilNul(link[:]))
}
}
ProfileTopUpModalDraw :: (app: *InnerBreeze) {
ProfileTopUpPump()
DewRatesRefresh()
// Monero needs this account's address and the node's rates; Google Play
// has its own prices.
if !dew_play.enabled {
ProfileTopUpPump()
DewRatesRefresh()
}
width := app.ui.view_width - AppScale(32)
if width > AppScale(480) {
width = AppScale(480)
+21 -16
View File
@@ -32,6 +32,7 @@ using TextWrap;
#import "button_props"
#import "dropdown_props"
#import "text_input_props"
#import, file "../platform/raylib_text_input.zi";
#import, file "settings/settings_status.zi";
#import, file "../storage/account_types.zi";
#import "url"
@@ -391,13 +392,6 @@ draw_friends :: (app: *InnerBreeze, x: s32, w: s32, y: *s32) {
"outgoing")
y.* += AppScale(16)
Text(CurrentApp().ui.session, TextProps.{
.bounds = Rectangle.{cast(float32)x, cast(float32)y.*, 0, 0},
.text = (LocaleText("profile_friends_title")),
.wrap = cast(TextWrap)TextWrapNone
})
y.* += AppScale(30)
Text(CurrentApp().ui.session, TextProps.{
.bounds = Rectangle.{cast(float32)x, cast(float32)y.*, 0, 0},
.text = (LocaleText("profile_friend_input_label")),
@@ -405,16 +399,31 @@ draw_friends :: (app: *InnerBreeze, x: s32, w: s32, y: *s32) {
})
y.* += AppScale(28)
typed: [128]u8
field_result := TextField(CurrentApp().ui.session, TextFieldProps.{
.key = 810,
.bounds = Rectangle.{cast(float32)x, cast(float32)y.*, cast(float32)w, cast(float32)AppScale(44)},
.value = AppTextFromCString(*app.profile_friend_input[0], 80),
.value = FrameTextHold(*app.ui.frame_text, AppTextFromCString(*app.profile_friend_input[0], 80)),
.cursor = app.profile_friend_input_cursor,
.anchor = app.profile_friend_input_anchor,
.scroll_x = app.profile_friend_input_scroll_x,
.focused = app.profile_friend_input_focused != 0,
.input = SampleTextFieldInput(app.profile_friend_input_focused != 0, typed[:]),
.max_bytes = 79,
.max_codepoints = 79,
.focus_id = 810
})
if field_result.edit.changed {
unused AppReplaceText(app.profile_friend_input[:], field_result.edit.start,
field_result.edit.end, field_result.edit.replacement)
}
app.profile_friend_input_cursor = field_result.cursor
app.profile_friend_input_anchor = field_result.anchor
app.profile_friend_input_scroll_x = field_result.scroll_x
app.profile_friend_input_focused = ifx (field_result.focused) then (1) else (0)
if field_result.clipboard_write {
unused TextInputWriteClipboard(field_result.clipboard_text)
}
if field_result.committed {
commit = 1
}
@@ -437,6 +446,8 @@ draw_friends :: (app: *InnerBreeze, x: s32, w: s32, y: *s32) {
load_friends_cache(app)
app.profile_friend_input[0] = cast(u8)0
app.profile_friend_input_cursor = 0
app.profile_friend_input_anchor = 0
app.profile_friend_input_scroll_x = 0
} else {
settings_screen_set_status_error(
LocaleText("profile_friend_invalid"))
@@ -460,12 +471,6 @@ draw_friends :: (app: *InnerBreeze, x: s32, w: s32, y: *s32) {
y.* += AppScale(16)
}
Text(CurrentApp().ui.session, TextProps.{
.bounds = Rectangle.{cast(float32)x, cast(float32)y.*, 0, 0},
.text = (LocaleText("profile_friends_title")),
.wrap = cast(TextWrap)TextWrapNone
})
y.* += AppScale(28)
draw_json_people(AppTextFromCString(*app.profile_friends_json[0], 8192), "friends", x, w, y, 0, app)
if outgoing_count > 0 {
@@ -482,7 +487,7 @@ draw_friends :: (app: *InnerBreeze, x: s32, w: s32, y: *s32) {
}
friends_content_height :: (app: *InnerBreeze, content_w: s32) -> s32 {
h := AppScale(16) + AppScale(30) + AppScale(28) + AppScale(56) + AppScale(44) + AppScale(24)
h := AppScale(16) + AppScale(28) + AppScale(56) + AppScale(44) + AppScale(24)
incoming_count: s32 = 0
outgoing_count: s32 = 0
friends: s32 = 0
@@ -501,7 +506,7 @@ friends_content_height :: (app: *InnerBreeze, content_w: s32) -> s32 {
if incoming_count > 0 {
h += AppScale(28) + incoming_count * AppScale(108) + AppScale(16)
}
h += AppScale(28) + (ifx (friends > 0) then (friends * AppScale(64)) else (AppScale(24)))
h += ifx friends > 0 then friends * AppScale(64) else AppScale(24)
if outgoing_count > 0 {
h += AppScale(16) + AppScale(28) + outgoing_count * AppScale(64)
}
+18 -1
View File
@@ -2,6 +2,7 @@
// payment confirmations and expiry; a device never grants itself credit.
#import "auth"
#import "entity/dew_model"
#import "entity/dew_play"
#import "json_scan"
#import "text_buffer"
#import "byte_text_linux"
@@ -15,6 +16,7 @@ Clock :: #import "date_time";
#import, file "sync_nodes.zi";
#import, file "sync_node_storage.zi";
#import, file "../platform/network_transport.zi";
#import, file "../platform/dew_payment.zi";
#import, file "../app/text_buffers.zi";
DewNow :: () -> s64 {
@@ -25,6 +27,7 @@ DewRead :: 1
DewUpgrade :: 2
DewAddress :: 3
DewGift :: 4
DewPlayCredit :: 5
// Where a gift to a friend stands, for the window that sends it.
DewGiftNone :: 0
@@ -156,7 +159,7 @@ DewBegin :: (action: s32, path: string, body: string) -> bool {
dew_response = .{}
dew_action = action
method := "GET"
if action == DewUpgrade || action == DewGift {
if action == DewUpgrade || action == DewGift || action == DewPlayCredit {
method = "POST"
}
if !BeginStoredRequest(*dew_operation, DewNode, NetworkTransport(*dew_transfer),
@@ -330,6 +333,8 @@ DewTick :: (visible: bool, now: float64) {
if !DewParseAddress(json) {
dew_notice = "profile_dew_error"
}
} else if dew_action == DewPlayCredit {
refresh_soon = DewPlayVerified(*dew_play, true, dew_operation.request.status, json)
} else {
received: DewAccount
if DewParseAccount(json, TextUntilNul(dew_identity[:]), *received) {
@@ -358,6 +363,9 @@ DewTick :: (visible: bool, now: float64) {
dew_notice = "profile_dew_error"
}
}
} else if dew_action == DewPlayCredit {
refresh_soon = DewPlayVerified(*dew_play, false, dew_operation.request.status,
TextUntilNul(dew_response[:]))
} else if dew_action == DewGift {
status := dew_operation.request.status
if status == 402 {
@@ -395,6 +403,15 @@ DewTick :: (visible: bool, now: float64) {
dew_gift_retry_at = now + 15.0
return
}
// A Google Play purchase goes to the node next; Play keeps it until the
// node has credited its Dew.
if DewPlayTick(*dew_play, DewReady() && !dew_operation.active) {
if !DewBegin(DewPlayCredit, DEW_PLAY_VERIFY_PATH, TextUntilNul(dew_play.body[:])) {
// Offline: the purchase waits and goes again later.
unused DewPlayVerified(*dew_play, false, 0, "")
}
return
}
// One read soon after launch keeps the balance current before Profile
// opens; a few background tries, then only while Profile shows it.
background := !dew_account_fresh && dew_background_reads < 3
+43 -23
View File
@@ -4,6 +4,7 @@
#import "text"
#import "vec"
#import "text_buffer"
#import "entity/leaderboard_model"
#import, file "storage_settings.zi";
#import, file "../app/text_buffers.zi";
#import, file "../apps/package_files.zi";
@@ -12,6 +13,7 @@ GAME_SCORES_MAX :: 16
GAME_SCORES_SETTING :: "leaderboard_game_scores"
// The one ranked measure so far: levels a puzzle game has solved.
GAME_SCORE_LEVELS :: "levels"
GAME_SCORE_SCORE :: "score"
GameScore :: struct {
// The installed app the game runs in, such as arcade.
@@ -22,6 +24,8 @@ GameScore :: struct {
title: [65]u8
metric: [17]u8
value: s64
level: s64
run: bool
}
game_scores: [GAME_SCORES_MAX]GameScore;
@@ -55,27 +59,27 @@ GameScoresLoad :: () {
while end < text.count && text[end] != #char "\n" { end += 1 }
line := text[at:end]
at = end + 1
fields: [5]string
fields: [6]string
field: s32 = 0
start: s64 = 0
for index: cast(s64)0..line.count {
if index == line.count || line[index] == #char "\t" {
if field < 5 { fields[field] = line[start:index] }
if field < 6 { fields[field] = line[start:index] }
field += 1
start = index + 1
}
}
if field != 5 || !GameScoreName(fields[0], 24) || !GameScoreName(fields[1], 31) {
if (field != 5 && field != 6) || !GameScoreName(fields[0], 24) || !GameScoreName(fields[1], 31) {
continue
}
value: s64 = 0
for byte: fields[4] {
if byte < cast(u8)48 || byte > cast(u8)57 || value > 100000 { value = -1; break }
value = value * 10 + cast(s64)(byte - cast(u8)48)
}
if value < 0 || value > 100000 || fields[3] != GAME_SCORE_LEVELS { continue }
value: s64
level: s64
run := field == 6 && fields[3] == GAME_SCORE_SCORE
if !ProfileScoreNumber(fields[4], *value) ||
(run && !ProfileScoreNumber(fields[5], *level)) ||
(!run && (field != 5 || fields[3] != GAME_SCORE_LEVELS)) { continue }
score := *game_scores[game_score_count]
score.* = GameScore.{.value = value}
score.* = GameScore.{.value = value, .level = level, .run = run}
unused AppCopyText(fields[0], score.app[:])
unused AppCopyText(fields[1], score.game[:])
unused AppCopyText(fields[2], score.title[:])
@@ -88,8 +92,10 @@ GameScoresSave :: () {
out: Vec(u8)
for index: cast(s32)0..game_score_count - 1 {
score := *game_scores[index]
BuilderPrint(*out, "%\t%\t%\t%\t%\n", TextUntilNul(score.app[:]), TextUntilNul(score.game[:]),
BuilderPrint(*out, "%\t%\t%\t%\t%", TextUntilNul(score.app[:]), TextUntilNul(score.game[:]),
TextUntilNul(score.title[:]), TextUntilNul(score.metric[:]), score.value)
if score.run { BuilderPrint(*out, "\t%", score.level) }
BuilderPrint(*out, "\n")
}
text := BuilderFinish(out)
storage_set_setting_text(GAME_SCORES_SETTING, text)
@@ -99,19 +105,13 @@ GameScoresSave :: () {
// A game's report, such as "levels 12". Saved only when it changes.
#program_export
GameScoreReport :: (app: string, game: string, title: string, request: string) -> bool {
space: s64 = 0
while space < request.count && request[space] != #char " " { space += 1 }
metric := request[:space]
digits := ifx space < request.count then request[space + 1:] else ""
value: s64 = 0
for byte: digits {
if byte < cast(u8)48 || byte > cast(u8)57 || value > 100000 { return false }
value = value * 10 + cast(s64)(byte - cast(u8)48)
}
if metric != GAME_SCORE_LEVELS || digits.count == 0 || value > 100000 ||
report: ProfileScore
if !ProfileScoreReport(request, *report) ||
!GameScoreName(app, 24) || !GameScoreName(game, 31) {
return false
}
metric := ifx report.run then GAME_SCORE_SCORE else GAME_SCORE_LEVELS
value := report.value
// A title is shown as text only; tabs and line breaks would split it.
shown: [65]u8
unused AppCopyText(title, shown[:])
@@ -128,15 +128,19 @@ GameScoreReport :: (app: string, game: string, title: string, request: string) -
}
if found >= 0 {
score := *game_scores[found]
if score.value == value && TextUntilNul(score.title[:]) == TextUntilNul(shown[:]) { return true }
if score.value == value && score.level == report.level && score.run == report.run &&
TextUntilNul(score.title[:]) == TextUntilNul(shown[:]) { return true }
score.value = value
score.level = report.level
score.run = report.run
unused AppCopyText(metric, score.metric[:])
score.title = shown
GameScoresSave()
return true
}
if game_score_count >= GAME_SCORES_MAX { return false }
score := *game_scores[game_score_count]
score.* = GameScore.{.value = value}
score.* = GameScore.{.value = value, .level = report.level, .run = report.run}
unused AppCopyText(app, score.app[:])
unused AppCopyText(game, score.game[:])
score.title = shown
@@ -146,6 +150,22 @@ GameScoreReport :: (app: string, game: string, title: string, request: string) -
return true
}
#program_export
GameScoreMetric :: (game: string, metric: s32) -> string {
GameScoresLoad()
for index: cast(s32)0..game_score_count - 1 {
score := *game_scores[index]
if TextUntilNul(score.game[:]) == game {
return ifx score.run then (ifx metric == 1 then "level" else GAME_SCORE_SCORE) else GAME_SCORE_LEVELS
}
}
return GAME_SCORE_LEVELS
}
GameScoreRun :: (game: string) -> bool {
return GameScoreMetric(game, 0) == GAME_SCORE_SCORE
}
// The games of an installed app that reported a score, in report order.
GameScoresFor :: (app: string, output: []s32) -> s32 {
GameScoresLoad()
+4 -3
View File
@@ -69,8 +69,9 @@ StartSocialStage :: (refresh: *SocialRefresh) -> bool {
}
case 5;
practice := TextUntilNul(refresh.practice[:])
valid = BuildFriendStatsPath("inbe", practice,
ifx practice == "meditation" then "avg_time" else "avg_hold", path[:])
metric := ifx practice == "meditation" then "avg_time" else "avg_hold"
if TextUntilNul(refresh.metric[:]) == "score" { metric = "level" }
valid = BuildFriendStatsPath("inbe", practice, metric, path[:])
output = refresh.average[:]
}
if !valid {
@@ -142,7 +143,7 @@ PollSocialRefresh :: (refresh: *SocialRefresh) -> bool {
}
// Wim Hof ranks average holds and meditation average time as well.
has_average: s32 = 0
if TextUntilNul(refresh.practice[:]) == "whm" ||
if TextUntilNul(refresh.metric[:]) == "score" || TextUntilNul(refresh.practice[:]) == "whm" ||
TextUntilNul(refresh.practice[:]) == "meditation" {
has_average = 1
}
+32 -36
View File
@@ -120,8 +120,9 @@ def application(profile, label, import_source=None, size=(900, 720)):
command("xdotool", "windowsize", window, str(size[0]), str(size[1]))
command("xdotool", "windowfocus", window)
time.sleep(1.5)
# Fresh profiles can show the first-run Lumi guide over the editor.
tap(window, size[0] // 2 + 112, 114)
if driver.find(label="Close", role="button", visible=True):
driver.press(label="Close", role="button")
driver.wait_gone(label="Close", role="button")
yield window
assert app.poll() is None, "Diary crashed"
finally:
@@ -159,21 +160,22 @@ with tempfile.TemporaryDirectory(prefix="inbe-diary-ui-") as temporary:
capture(window, "saved")
# Typing within a moment of another change joins its undo step.
time.sleep(1.2)
tap(window, 700, 86) # Insert current time.
driver.wait_gone(contains="Achievement unlocked", timeout=20)
driver.press(label="Insert time", role="button")
wait_for_text(entry, lambda text: "**" in text, "Time insertion was not saved")
with_time = json.loads(entry.read_text())["text"]
tap(window, 556, 86) # Undo.
driver.press(label="Undo")
wait_for_text(entry, lambda text: text == "A saved Diary entry", "Undo did not restore the entry")
tap(window, 604, 86) # Redo.
driver.press(label="Redo")
wait_for_text(entry, lambda text: text == with_time, "Redo did not restore the time")
tap(window, 652, 86) # Spelling needs a signed-in account.
driver.press(label="Correct spelling")
time.sleep(0.5)
capture(window, "spelling-without-account")
assert json.loads(entry.read_text())["text"] == with_time, "Spelling changed the entry without an account"
# The photo button adds the picked photo to the account's photo
# library, under the day it was added, and embeds its place there on
# its own line at the caret, which is at the entry's end.
tap(window, 748, 86)
driver.press(label="Attach photo")
wait_for_text(entry, lambda text: "](photos/" in text, "A picked photo was not embedded")
digest = hashlib.sha256(picked.read_bytes()).hexdigest()
place = time.strftime("photos/%Y/%m/%d/") + digest + ".jpg"
@@ -223,12 +225,12 @@ with tempfile.TemporaryDirectory(prefix="inbe-diary-ui-") as temporary:
settled = ink_bottom(OUTPUT / "typed.png", box)
assert max(typed_rows) <= settled + 2, f"A second caret showed under the typed line: {typed_rows} > {settled}"
saved = json.loads(entry.read_text())
tap(window, 288, 86) # Calendar.
driver.press(label="Calendar")
capture(window, "calendar")
with application(profile, "restart") as window:
capture(window, "restored")
assert json.loads(entry.read_text()) == saved
tap(window, 748, 34) # Next day saves before changing selection.
driver.press(label="›")
capture(window, "today-limit")
assert list((profile / "diary").glob("*/????-??-??.json")) == [entry]
assert json.loads(entry.read_text()) == saved
@@ -305,12 +307,13 @@ with tempfile.TemporaryDirectory(prefix="inbe-diary-ui-") as temporary:
red = red_pixels(OUTPUT / f"sage-{dark}-inline.png")
assert len(red) > 20000, "Photo not drawn inside the entry at phone scale"
assert phone_entry.read_text() == stored, "Viewing the day rewrote its entry"
# The day's gallery opens from its row, closed when the day opens.
# The icon opens a separate day gallery without resizing the entry.
driver.wait(label="Show gallery")
assert not driver.find(label="A photo", role="image"), "The gallery was open when the day opened"
driver.press(label="Show gallery")
driver.wait(label="Hide gallery")
driver.wait(label="A photo", role="image")
capture(window, f"sage-{dark}-day-gallery")
# The entry's Diary file and its library photo are one picture,
# listed once; a tap embeds the library's.
assert len(driver.find(label="A photo", role="image")) == 1, "The gallery listed a photo twice"
@@ -330,7 +333,6 @@ with tempfile.TemporaryDirectory(prefix="inbe-diary-ui-") as temporary:
wait_for_text(phone_entry, lambda text: text == saved_photo["text"], "Redo did not restore the tapped photo")
# Another day opens with its gallery closed, and so does this one
# when it opens again.
driver.press(label="Hide gallery")
driver.wait(label="Show gallery")
driver.press(label="Show gallery")
driver.press(label="‹")
@@ -343,16 +345,15 @@ with tempfile.TemporaryDirectory(prefix="inbe-diary-ui-") as temporary:
# A day with more photos than the gallery shows at once and an entry
# longer than its box, with large photos between its lines. The wheel
# over the entry scrolls it, over its photos too, and the page around it
# stays, and a sideways swipe leaves it; the gallery's photos show whole
# above its scrollbar; the wheel, a sideways swipe and a drag move the
# gallery sideways, a drag does not embed the photo it starts on, and a
# stays, and a sideways swipe leaves it. The separate gallery scrolls
# vertically; a drag does not embed the photo it starts on, and a
# tap on a photo scrolled into view embeds it.
many_source = profile / "many-source"
many_source.mkdir()
many_names = [f"many-{index:02d}.png" for index in range(12)]
many_names = [f"many-{index:02d}.png" for index in range(24)]
lines = []
for index, name in enumerate(many_names):
Image.new("RGB", (400, 300), (20 * index, 140, 220 - 15 * index)).save(many_source / name)
Image.new("RGB", (400, 300), ((29 * index) % 256, 40 + (7 * index) % 180, 220 - (5 * index) % 200)).save(many_source / name)
lines += [f"Line {index} of a long day" for _ in range(3)]
if index < 4:
lines.append(f"![Photo {index}](diary:{name})")
@@ -360,7 +361,7 @@ with tempfile.TemporaryDirectory(prefix="inbe-diary-ui-") as temporary:
(many_source / entry.name).write_text(json.dumps(dict(original, text=many_text, photos=[
dict(file=name, name=f"Photo {index}") for index, name in enumerate(many_names)])))
many = profile / "many-photos"
with application(many, "many-photos", many_source) as window:
with application(many, "many-photos", many_source, size=(390, 640)) as window:
many_entry = next((many / "diary").glob("*/" + entry.name))
deadline = time.monotonic() + 20
while not all(library_has(many, hashlib.sha256((many_source / name).read_bytes()).hexdigest())
@@ -414,35 +415,30 @@ with tempfile.TemporaryDirectory(prefix="inbe-diary-ui-") as temporary:
def tiles():
return sorted((node for node in driver.find(role="image") if node["label"].startswith("Photo ")),
key=lambda node: node["x"])
key=lambda node: (node["y"], node["x"]))
assert not driver.find(role="text_area"), "The gallery still shares the entry's viewport"
strip = [node for node in driver.tree() if node["kind"] == "scroll" and node["key"] == 290302][0]
shown = tiles()
assert len(shown) == 12, [node["label"] for node in shown]
assert shown[-1]["x"] + shown[-1]["width"] > strip["x"] + strip["width"], "The gallery fits its row"
# The gallery's scrollbar sits under its photos, not over them.
assert shown[0]["visible_height"] == shown[0]["height"], \
f"The scrollbar covers the photos: {shown[0]['visible_height']} of {shown[0]['height']} show"
first_x = shown[0]["x"]
capture(window, "day-gallery-grid")
assert len(shown) == len(many_names), [node["label"] for node in shown]
assert shown[-1]["y"] + shown[-1]["height"] > strip["y"] + strip["height"], "The grid has no scrollable rows"
assert shown[0]["visible_height"] == shown[0]["height"], "The first grid row is clipped"
first_y = shown[0]["y"]
over_strip = (strip["x"] + strip["width"] / 2, strip["y"] + strip["height"] / 2)
wheel(over_strip, -1.0, 2)
assert tiles()[0]["x"] < first_x, "The wheel did not move the gallery sideways"
assert tiles()[0]["y"] < first_y, "The wheel did not move the gallery down"
wheel(over_strip, 1.0, 4)
assert tiles()[0]["x"] == first_x, "The wheel did not move the gallery back"
# A sideways swipe to the right shows the photos further right.
wheel(over_strip, 1.0, 2, sideways=True)
assert tiles()[0]["x"] < first_x, "A sideways swipe did not move the gallery toward its end"
wheel(over_strip, -1.0, 4, sideways=True)
assert tiles()[0]["x"] == first_x, "A sideways swipe did not move the gallery back"
assert tiles()[0]["y"] == first_y, "The wheel did not move the gallery back"
before_drag = json.loads(many_entry.read_text())["text"]
driver.drag((over_strip[0] + 150, over_strip[1]), (over_strip[0] - 150, over_strip[1]))
driver.drag((over_strip[0], over_strip[1] + 150), (over_strip[0], over_strip[1] - 150))
driver.wait_idle(frames=3, timeout=3)
assert tiles()[0]["x"] < first_x - 100, "A drag did not move the gallery"
assert tiles()[0]["y"] < first_y - 100, "A drag did not move the gallery"
time.sleep(0.5)
assert json.loads(many_entry.read_text())["text"] == before_drag, "A drag embedded a photo"
wheel(over_strip, -3.0, 20)
last = tiles()[-1]
assert last["visible"] and last["visible_x"] + last["visible_width"] <= strip["x"] + strip["width"], \
assert last["visible"] and last["visible_y"] + last["visible_height"] <= strip["y"] + strip["height"], \
"The wheel did not reach the gallery's end"
driver.press(label=last["label"])
number = int(last["label"].split()[-1])
@@ -451,5 +447,5 @@ with tempfile.TemporaryDirectory(prefix="inbe-diary-ui-") as temporary:
print("Standalone Diary: native editing, delayed save, time insertion, undo, redo, spelling without an account, a picked photo in the photo library and inside the entry, text typed right after the photo, one caret while typing, calendar, restart and day navigation passed")
print("Harmony import: text and photo bytes copied, originals preserved, symlinks skipped and existing entries retained")
print("Diary photos: older photo lists inside the entry and in the photo library, a missing file, no writes on viewing, the gallery dropdown closed on every day it opens, each picture listed once, a tapped photo embedded and undone, and restart at phone width in light/dark sage passed")
print("Diary scrolling: the wheel scrolls a long entry through its photos and back without moving the page, a sideways swipe leaves it, and the wheel, a sideways swipe and a drag move a full gallery, whose photos show whole above its scrollbar, where a drag embeds nothing and a tap on a photo scrolled into view embeds it")
print("Diary photos: older photo lists inside the entry and in the photo library, a missing file, no writes on viewing, the separate day gallery closed on every day it opens, each picture listed once, a tapped photo embedded and undone, and restart at phone width in light/dark sage passed")
print("Diary scrolling: the wheel scrolls a long entry through its photos and back without moving the page, a sideways swipe leaves it, and the wheel and a vertical drag move the separate gallery grid, where a drag embeds nothing and a tap on a photo scrolled into view embeds it")
+91
View File
@@ -0,0 +1,91 @@
#!/usr/bin/env python3
"""Exercise release integrity and replacement of a running desktop binary."""
import hashlib
import importlib.util
import io
from pathlib import Path
import shutil
import subprocess
import tempfile
import unittest
from unittest.mock import patch
spec = importlib.util.spec_from_file_location(
"desktop_update", Path(__file__).resolve().parents[1] / "scripts/update-desktop.py")
updater = importlib.util.module_from_spec(spec)
spec.loader.exec_module(updater)
class DesktopUpdateTest(unittest.TestCase):
def test_corrupt_download_is_rejected(self):
artifact = {"url": "https://github.com/waozixyz/breeze/releases/download/v1.2.3/inbe.deb",
"size": 4, "sha256": hashlib.sha256(b"good").hexdigest()}
with tempfile.TemporaryDirectory() as temporary:
with patch.object(updater, "open_url", return_value=io.BytesIO(b"evil")):
with self.assertRaisesRegex(ValueError, "SHA-256"):
updater.download(artifact, Path(temporary) / "inbe.deb")
def test_artifact_cannot_point_to_another_repository(self):
manifest = {"version": "1.2.3", "channels": {"deb-amd64": {
"url": "https://github.com/another/project/releases/download/v1.2.3/inbe_1.2.3_amd64.deb",
"sha256": "a" * 64, "size": 10}}}
with patch.object(updater.platform, "machine", return_value="x86_64"):
with self.assertRaisesRegex(ValueError, "outside"):
updater.artifact_for(manifest)
def test_package_install_preserves_running_process_and_backup(self):
with tempfile.TemporaryDirectory() as temporary:
root = Path(temporary)
prefix = root / "installed"
executable = prefix / "bin/breeze"
executable.parent.mkdir(parents=True)
shutil.copy2(shutil.which("sleep"), executable)
original_digest = updater.digest(executable)
process = subprocess.Popen([str(executable), "60"])
try:
package_root = root / "package"
control = package_root / "DEBIAN/control"
control.parent.mkdir(parents=True)
control.parent.chmod(0o755)
control.write_text("Package: inbe\nVersion: 1.2.3\nArchitecture: all\n"
"Maintainer: Waozi <[email protected]>\nDescription: update fixture\n")
for name in updater.FILES:
destination = package_root / "usr" / name
destination.parent.mkdir(parents=True, exist_ok=True)
destination.write_text("fixture")
shutil.copy2(shutil.which("true"), package_root / "usr/bin/breeze")
(package_root / "usr" / updater.FILES[-1]).write_text(
'<component><releases><release version="1.2.3"/></releases></component>')
package = root / "inbe.deb"
subprocess.run(["dpkg-deb", "--build", "--root-owner-group", str(package_root), str(package)],
check=True, stdout=subprocess.DEVNULL)
backup = updater.install_package(package, prefix, root / "backup", "1.2.3")
self.assertIsNone(process.poll())
self.assertEqual(updater.digest(backup / "bin/breeze"), original_digest)
subprocess.run([str(executable)], check=True, timeout=5)
self.assertEqual(updater.installed_version(prefix), (1, 2, 3))
with self.assertRaisesRegex(ValueError, "metadata"):
updater.install_package(package, prefix, root / "backup", "1.2.4")
self.assertEqual(updater.installed_version(prefix), (1, 2, 3))
finally:
process.terminate()
process.wait()
def test_newer_installed_version_is_preserved(self):
with tempfile.TemporaryDirectory() as temporary:
prefix = Path(temporary) / "prefix"
metadata = prefix / updater.FILES[-1]
metadata.parent.mkdir(parents=True)
metadata.write_text('<component><releases><release version="9.0.0"/></releases></component>')
manifest = b'{"version":"1.2.3","channels":{}}'
with patch.object(updater, "open_url", return_value=io.BytesIO(manifest)):
with patch.object(updater, "artifact_for", return_value={}):
with patch.object(updater, "download") as download:
updater.update(prefix, Path(temporary) / "backup")
download.assert_not_called()
if __name__ == "__main__":
unittest.main()
+37
View File
@@ -1,4 +1,5 @@
#import "entity/dew_model"
#import "entity/dew_play"
// Real account keys, authentication and persistence; only HTTP is synthetic.
#import, file "../src/storage/dew.zi";
#import, file "../src/storage/practice_unlocks.zi";
@@ -21,6 +22,7 @@
#import, file "../src/storage/sync_state.zi";
#import, file "../src/storage/storage_settings.zi";
#import, file "../src/app/text_buffers.zi";
#import, file "../src/platform/dew_payment.zi";
owner: AccountKeys;
response_status: s32 = 200;
@@ -40,6 +42,9 @@ gift_balance: s64;
// Answers a gift as if for another request, which settles nothing.
gift_reply_foreign: bool;
last_gift_body: [256]u8;
play_requests: s32;
last_play_body: [512]u8;
TestPlayPurchase :: "{\"ready\":true,\"package\":\"xyz.waozi.inbe\",\"error\":\"\",\"products\":[],\"purchases\":[{\"product\":\"dew_500\",\"token\":\"abcdefghijklmnop.Token-1_2\",\"order\":\"GPA.1\"}]}"
TestFriend :: "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb"
TestAddress :: "8aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"
@@ -125,6 +130,12 @@ FakeStart :: (context: *void, request: HttpRequest, output: []u8) -> bool {
check_true("unlocks are read with an authenticated GET", request.method == "GET" && request.body.count == 0)
return AppCopyText("{\"unlocks\":[{\"product\":\"inbe.practice.taichi\",\"receipt_id\":\"r1\",\"created_at\":1}],\"products\":[{\"product\":\"inbe.practice.taichi\",\"price_units\":1000000,\"regular_price_units\":10000000,\"trial_until\":1807801200}]}", output)
}
if request.url == "https://api.waozi.xyz/api/v1/tokens/purchases/google/verify" {
play_requests += 1
check_true("Google Play purchases are sent with an authenticated POST", request.method == "POST")
unused AppCopyText(request.body, last_play_body[:])
return AppCopyText("{\"credited\":true}", output)
}
if request.url == "https://api.waozi.xyz/api/v1/tokens/gifts" {
gift_requests += 1
check_true("gifts are sent with an authenticated POST", request.method == "POST")
@@ -422,6 +433,32 @@ Check :: () -> s32 {
Finish()
check_true("a refused request is not repeated", dew_gift_notice == "dew_gift_failed" && dew_gift_attempt[0] == cast(u8)0)
response_status = 200
// The Google Play edition sends each purchase Play lists to the node, and
// Play forgets it only once the node has credited its Dew.
check_true("other editions sell no Dew through Google Play", !dew_play.enabled && DewTopUpAvailable())
dew_play.enabled = true
check_true("the Play edition tops up once Google Play answers", !DewTopUpAvailable())
unused AppCopyText(TestPlayPurchase, dew_play.state[:])
response_status = 503
DewTick(false, 200.0)
check_true("a Google Play purchase goes to the node", dew_operation.active && dew_action == DewPlayCredit)
Finish()
check_int("one Google Play verify request", play_requests, 1)
check_true("the verify request names the package, pack and token", TextUntilNul(last_play_body[:]) ==
"{\"app_id\":\"entity\",\"package_name\":\"xyz.waozi.inbe\",\"product_id\":\"dew_500\",\"purchase_token\":\"abcdefghijklmnop.Token-1_2\"}")
check_true("an uncredited purchase stays with Play and waits", TextUntilNul(dew_play.status[:]) == "failed" &&
dew_play.wait > 0 && dew_play.state[0] == #char "{" && !dew_operation.active)
DewTick(false, 201.0)
check_true("the waiting purchase is not sent at once", !dew_operation.active && play_requests == 1)
response_status = 200
dew_play.wait = 1
DewTick(false, 202.0)
Finish()
check_int("the purchase is sent again", play_requests, 2)
check_true("a credited purchase is done", TextUntilNul(dew_play.status[:]) == "credited" &&
dew_play.state[0] == cast(u8)0 && !dew_operation.active)
dew_play = .{}
storage_set_setting_text("sync_public_id", "another-account")
DewContext()
check_true("account change clears the old balance", !dew_account.known && dew_address[0] == cast(u8)0)
+34 -1
View File
@@ -65,5 +65,38 @@ with contextlib.ExitStack() as stack:
assert driver.find(label="Wallet", role="button", visible=False)
assert "frame rejected" not in log_path.read_text()
assert process.poll() is None, "Top-up test app exited unexpectedly"
stop(process)
print("Dew top-up: one quote, consistent balance conversion, and deposit controls passed")
for scene in ("dew_play_wait", "dew_play_packs"):
case = Path(stack.enter_context(tempfile.TemporaryDirectory(dir=OUTPUT, prefix=scene + "-")))
driver = UiDriver(case / "driver")
environment.update(driver.environment())
environment.update(APP_DATA_ROOT=str(case), INBE_SCREENSHOT_DATA_ROOT=str(case))
case_log_path = OUTPUT / (scene + ".log")
case_log = stack.enter_context(case_log_path.open("w"))
process = subprocess.Popen([str(BINARY), "--screenshot", str(OUTPUT / (scene + ".png")),
"--screenshot-scene", scene, "--screenshot-width", "480",
"--screenshot-height", "900"], cwd=ROOT, env=environment,
stdout=case_log, stderr=subprocess.STDOUT)
stack.callback(stop, process)
driver.attach(process, case_log_path)
if scene == "dew_play_wait":
driver.wait(contains="Google Play purchases are not available", role="text")
driver.press(label="Retry", role="button")
driver.wait(contains="Loading Google Play prices", role="text")
else:
for amount in (10, 100, 500, 1000, 5000):
driver.wait(contains=str(amount) + " Dew", role="button", visible=False)
small = driver.wait(contains="10 Dew", role="button", visible=False)
assert small["detail"] == "$0.72", small
for amount, price, percent in ((100, "$6.90", 4), (500, "$33.00", 8),
(1000, "$63.00", 12), (5000, "$300.00", 16)):
button = driver.wait(contains=f"{amount} Dew", role="button", visible=False)
assert button["detail"] == f"{price} · −{percent}%", button
driver.wait(contains="Savings per Dew compared with the 10 Dew pack.", role="text", visible=False)
assert not driver.find(contains="Loading Google Play prices", role="text")
(OUTPUT / (scene + "-tree.json")).write_text(json.dumps(driver.tree(), indent=2) + "\n")
assert "frame rejected" not in case_log_path.read_text()
stop(process)
print("Dew top-up: quote, deposit controls, Play packs, loading timeout and Retry passed")
+36 -7
View File
@@ -16,6 +16,7 @@ OUTPUT = ROOT / "build/entity-profile-ui-test"
OUTPUT.mkdir(parents=True, exist_ok=True)
BINARY = Path(sys.argv[1]).resolve()
FRIENDS_ONLY = "--friends-only" in sys.argv[2:]
IDENTITY_ONLY = "--identity-only" in sys.argv[2:]
DESKTOP_ENV = ("DISPLAY", "WAYLAND_DISPLAY", "XAUTHORITY", "DBUS_SESSION_BUS_ADDRESS",
"SESSION_MANAGER", "GDK_DISPLAY")
assert all(not os.environ.get(key) for key in DESKTOP_ENV), "Inherited desktop environment"
@@ -87,7 +88,7 @@ with contextlib.ExitStack() as stack:
assert account["x"] + account["width"] <= settings["x"], "Profile is not left of Settings"
driver.press(focus_id=6792, role="button")
driver.wait(label="Change picture", role="button")
if not FRIENDS_ONLY:
if not FRIENDS_ONLY and not IDENTITY_ONLY:
driver.wait(label="Dew balance", role="text")
assert not driver.find(label="Dew balance", role="button"), "Dew is still a separate shortcut"
assert not driver.find(label="Name", role="text_field"), "Removed Name field is visible"
@@ -102,8 +103,12 @@ with contextlib.ExitStack() as stack:
with sqlite3.connect(profile / "inbe.db") as database:
user = database.execute("SELECT user_id FROM settings WHERE key='sync_public_id' "
"AND value=? LIMIT 1", (owner,)).fetchone()[0]
# The navigation preview disables sync. Enable its fixture account so
# the shared Profile can show Dew; the proxy above keeps it offline.
for key, value in (("profile_display_name", "Existing desktop name"),
("profile_intention", "Existing private intention")):
("profile_intention", "Existing private intention"),
("sync_enabled", "1"),
("sync_server_url", "https://api.waozi.xyz")):
database.execute("INSERT INTO settings(user_id,key,value,updated_at) VALUES(?,?,?,2) "
"ON CONFLICT(user_id,key) DO UPDATE SET value=excluded.value,"
"updated_at=excluded.updated_at", (user, key, value))
@@ -115,13 +120,30 @@ with contextlib.ExitStack() as stack:
if not FRIENDS_ONLY:
with application("edit"):
open_profile()
driver.press(label="Public ID", role="button")
driver.wait(label=owner, role="text")
driver.press(label=owner, role="button")
copied = subprocess.check_output(["xclip", "-o", "-selection", "clipboard"],
env=environment, text=True, timeout=5)
assert copied == owner, "Entity's public ID did not reach the system clipboard"
assert display.poll() is None and Path(f"/proc/{display.pid}/exe").resolve().name == "Xvfb"
window = subprocess.check_output(["xdotool", "search", "--onlyvisible", "--pid", str(driver.process.pid)],
env=environment, text=True, timeout=5).splitlines()[0]
assert subprocess.check_output(["xdotool", "getwindowpid", window],
env=environment, text=True, timeout=5).strip() == str(driver.process.pid)
subprocess.run(["import", "-window", window, str(OUTPUT / "public-id.png")], env=environment, check=True)
driver.press(label="Done", role="button")
if IDENTITY_ONLY:
assert credentials() == before, "Showing and copying an ID changed account keys"
print("Entity public ID: full dialog, QR composition, native clipboard and account preservation passed")
sys.exit(0)
driver.wait(label="Manage data", role="button")
for label in ("Today", "Active days", "Sessions"):
driver.wait(label=label, role="text", visible=False)
assert not driver.find(label="Progress", role="button"), "Activity still uses a separate row"
driver.press(label="Change picture", role="button")
driver.wait(label="Profile picture", role="button")
driver.press(label="Profile picture", role="button", index=1)
driver.wait(focus_id=76401, role="button")
driver.press(focus_id=76401, role="button")
deadline = time.monotonic() + 15
while time.monotonic() < deadline:
if shared.exists() and json.loads(shared.read_text()).get("picture") == 1:
@@ -134,13 +156,12 @@ with contextlib.ExitStack() as stack:
assert document["owner_id"] == owner, "Entity used a different account"
assert credentials() == before, "Editing Entity changed Inbe account keys"
assert not (Path(environment["ENTITY_DATA"]) / "account.key").exists(), "Entity made another account"
driver.press(label="Done", role="button")
driver.wait(label="Dew balance", role="text")
with application("restart"):
open_profile()
driver.press(label="Change picture", role="button")
pictures = driver.find(label="Profile picture", role="button", visible=True)
assert len(pictures) > 1 and pictures[1].get("selected"), "Picture edit was lost after restart"
selected = driver.wait(focus_id=76401, role="button")
assert selected.get("selected"), "Picture edit was lost after restart"
assert credentials() == before, "Restart changed Inbe account keys"
assert json.loads(shared.read_text())["owner_id"] == owner
@@ -156,6 +177,14 @@ with contextlib.ExitStack() as stack:
with application("friends") as process:
open_profile()
driver.press(label="Friends", role="button")
field = driver.wait(focus_id=810, role="text_field")
driver.press(focus_id=810, role="text_field")
driver.type("@soft_keyboard_friend")
assert driver.wait(focus_id=810, role="text_field")["value"] == "@soft_keyboard_friend", "Friends discarded typed text"
driver.key("backspace")
assert driver.wait(focus_id=810, role="text_field")["value"] == "@soft_keyboard_frien", "Friends discarded edits"
assert not [node for node in driver.find(label="Friends", role="text", visible=True)
if node["y"] > 80], "Duplicate Friends heading remains in the page"
rows = [driver.wait(label="@" + name, role="button") for name in ("willow", "river", "fern")]
for row in rows:
picture = driver.wait(label=row["label"], role="image")
+10 -4
View File
@@ -26,6 +26,8 @@ OUTPUT.mkdir(parents=True, exist_ok=True)
parser = argparse.ArgumentParser()
parser.add_argument("binary")
parser.add_argument("--layout", choices=("all", "desktop", "mobile"), default="all")
parser.add_argument("--guide-only", action="store_true",
help="Check the single Apps guide step with a fresh profile")
parser.add_argument("--drag-only", action="store_true")
parser.add_argument("--views-only", action="store_true")
parser.add_argument("--root-bundle", type=Path, help="Exercise an older root with the native launcher")
@@ -771,10 +773,13 @@ with contextlib.ExitStack() as stack:
wait_setting(profile, "language_setup_done", 1, log.read_text())
driver.wait(label="Pinned")
assert settings(profile).get("launcher_guide_seen", "0") == "0"
for step in range(1, 4):
driver.wait(label=f"Step {step} of 3")
key(window, "Right", lambda: not driver.find(label=f"Step {step} of 3", visible=True))
driver.wait(contains="This is Apps.", role="text")
assert not driver.find(contains="trash icon", role="text")
key(window, "Right", lambda: settings(profile).get("launcher_guide_seen") == "1")
wait_setting(profile, "launcher_guide_seen", 1, "Apps guide did not finish")
if arguments.guide_only:
print("Apps guide: one screen, one step, no obsolete trash instructions, completion saved")
raise SystemExit(0)
# The existing update question appears after the guide and
# remembers its answer, without another connection dialog.
driver.wait(label="Don't allow", role="button")
@@ -789,7 +794,8 @@ with contextlib.ExitStack() as stack:
# Practice is the third pinned card in the same grid as the rest.
pinned, more, tree = cards()
assert [card["label"] for card in pinned] == ["Lumi", "Habits", "Practice"], pinned
assert [round(card["x"]) for card in pinned] == [round(card["x"]) for card in more[:len(pinned)]], \
shared_columns = min(len(pinned), len(more))
assert [round(card["x"]) for card in pinned[:shared_columns]] == [round(card["x"]) for card in more[:shared_columns]], \
"Pinned and More apps cards use different columns"
press(pinned[2])
wait_setting(profile, "apps_setup_done", 1, log.read_text())
+6
View File
@@ -13,6 +13,12 @@ VerifyCatalog :: (code: string) -> bool {
if !active.found || !english.found {
return false
}
// Root packages also update older wrappers whose guide still requests
// these messages. They must retain translated text in every catalog.
if LocaleText("launcher_guide_manage") == "launcher_guide_manage" ||
LocaleText("launcher_guide_profile") == "launcher_guide_profile" {
return false
}
// Compare every shipped key against the uncached parser. This catches
// collisions, multiline values, Unicode, and language switch invalidation.
cursor: s32 = 0
+3
View File
@@ -232,3 +232,6 @@ fr practice_kind_yoga
id practice_kind_yoga
it practice_kind_yoga
pt practice_kind_yoga
de leaderboard_level
fr leaderboard_score
id leaderboard_level
Loaded 100 of 109 files, more files were not shown because too many files have changed in this diff. Show more