Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0afc5867d1 | ||
|
|
ac19ebafaf | ||
|
|
f7e09e709c | ||
|
|
b46306d1e3 | ||
|
|
cee04c12a4 | ||
|
|
4e2c52b4c9 | ||
|
|
cdd6c86d0c | ||
|
|
b0f844c1c7 | ||
|
|
15d89c91e1 | ||
|
|
113d8dafdc | ||
|
|
8e06d7a84c | ||
|
|
025557456c | ||
|
|
0f314013f2 | ||
|
|
458596eefc | ||
|
|
18e0db51c5 | ||
|
|
1c12568e0e | ||
|
|
6084ea547b | ||
|
|
b76c150489 | ||
|
|
75a1146475 | ||
|
|
b2ab5d05ae | ||
|
|
477339273d | ||
|
|
341b340683 | ||
|
|
3dea8b7233 | ||
|
|
df906829d9 | ||
|
|
b945252c5c | ||
|
|
a256864bc0 | ||
|
|
7d2bd40c73 | ||
|
|
b31f55d49f | ||
|
|
b95a57f1c8 | ||
|
|
d21ce9f94b | ||
|
|
9c7daca4f6 | ||
|
|
445b4dfbd2 | ||
|
|
b5615a4e01 | ||
|
|
0a33736986 | ||
|
|
f2d7ce5b6f | ||
|
|
96d09ced6f | ||
|
|
5235b51cbb | ||
|
|
fc64f7729f |
No files matched your search
@@ -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()
|
||||
|
||||
@@ -1,5 +1,29 @@
|
||||
# Changelog
|
||||
|
||||
## [2.1.60] - 2026-10-29
|
||||
|
||||
- Hide apps from the library and restore them through Edit.
|
||||
- Use one simple reorder grip to the left of app icons in list and grid views.
|
||||
- Unify Profile rows and put sent friend requests beside names with a cancel action.
|
||||
|
||||
## [2.1.59] - 2026-10-28
|
||||
|
||||
- Keep habits, practices, session counts and game progress free of storage charges, even when account storage is full.
|
||||
- Count custom notes, Diary and media toward storage, and keep progress syncing past queued uploads that need more space.
|
||||
|
||||
## [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.
|
||||
|
||||
@@ -1,5 +1,25 @@
|
||||
# Changelog
|
||||
|
||||
## [1.3.24] - 2026-10-29
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.60.
|
||||
|
||||
## [1.3.23] - 2026-10-28
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.59.
|
||||
|
||||
## [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.
|
||||
|
||||
@@ -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
@@ -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()
|
||||
}
|
||||
@@ -1,5 +1,21 @@
|
||||
# Changelog
|
||||
|
||||
## [1.3.14] - 2026-10-29
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.60.
|
||||
|
||||
## [1.3.13] - 2026-10-28
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.59.
|
||||
|
||||
## [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,5 +1,29 @@
|
||||
# Changelog
|
||||
|
||||
## [2.1.61] - 2026-10-29
|
||||
|
||||
- Bring Lumi 1.5.26, Habits 1.3.14, Practices 1.6.8, Lists 1.1.27, Diary 1.3.24 and Leaderboard 1.0.28 for Inner Breeze 2.1.60.
|
||||
|
||||
## [2.1.60] - 2026-10-28
|
||||
|
||||
- Bring Lumi 1.5.25, Habits 1.3.13, Practices 1.6.7, Lists 1.1.26, Diary 1.3.23 and Leaderboard 1.0.27 for Inner Breeze 2.1.59.
|
||||
|
||||
## [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.
|
||||
|
||||
@@ -1,5 +1,21 @@
|
||||
# Changelog
|
||||
|
||||
## [1.0.28] - 2026-10-29
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.60.
|
||||
|
||||
## [1.0.27] - 2026-10-28
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.59.
|
||||
|
||||
## [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.
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -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()
|
||||
}
|
||||
@@ -1,5 +1,21 @@
|
||||
# Changelog
|
||||
|
||||
## [1.1.27] - 2026-10-29
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.60.
|
||||
|
||||
## [1.1.26] - 2026-10-28
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.59.
|
||||
|
||||
## [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,5 +1,21 @@
|
||||
# Changelog
|
||||
|
||||
## [1.5.26] - 2026-10-29
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.60.
|
||||
|
||||
## [1.5.25] - 2026-10-28
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.59.
|
||||
|
||||
## [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 +1,21 @@
|
||||
# Changelog
|
||||
|
||||
## [1.6.8] - 2026-10-29
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.60.
|
||||
|
||||
## [1.6.7] - 2026-10-28
|
||||
|
||||
- Maintenance release for Inner Breeze 2.1.59.
|
||||
|
||||
## [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.
|
||||
|
||||
+25
-24
@@ -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.55",
|
||||
"sequence": 52,
|
||||
"version": "2.1.61",
|
||||
"sequence": 58,
|
||||
"bundled": true,
|
||||
"host_api": 39,
|
||||
"release": "2.1.55"
|
||||
"host_api": 40,
|
||||
"release": "2.1.60"
|
||||
},
|
||||
"habits": {
|
||||
"id": "inbe.habits",
|
||||
"version": "1.3.10",
|
||||
"sequence": 33,
|
||||
"version": "1.3.14",
|
||||
"sequence": 37,
|
||||
"bundled": true,
|
||||
"host_api": 38,
|
||||
"oldest_host_api": 30,
|
||||
"release": "2.1.55"
|
||||
"release": "2.1.60"
|
||||
},
|
||||
"practices": {
|
||||
"id": "inbe.practices",
|
||||
"version": "1.6.4",
|
||||
"sequence": 33,
|
||||
"version": "1.6.8",
|
||||
"sequence": 37,
|
||||
"bundled": true,
|
||||
"host_api": 37,
|
||||
"oldest_host_api": 31,
|
||||
"release": "2.1.55"
|
||||
"release": "2.1.60"
|
||||
},
|
||||
"lists": {
|
||||
"id": "inbe.lists",
|
||||
"version": "1.1.23",
|
||||
"sequence": 31,
|
||||
"version": "1.1.27",
|
||||
"sequence": 35,
|
||||
"bundled": true,
|
||||
"host_api": 27,
|
||||
"release": "2.1.55"
|
||||
"release": "2.1.60"
|
||||
},
|
||||
"diary": {
|
||||
"id": "inbe.diary",
|
||||
"version": "1.3.19",
|
||||
"sequence": 36,
|
||||
"version": "1.3.24",
|
||||
"sequence": 41,
|
||||
"bundled": true,
|
||||
"host_api": 21,
|
||||
"release": "2.1.55"
|
||||
"release": "2.1.60"
|
||||
},
|
||||
"lumi": {
|
||||
"id": "inbe.lumi",
|
||||
"version": "1.5.22",
|
||||
"sequence": 40,
|
||||
"version": "1.5.26",
|
||||
"sequence": 44,
|
||||
"bundled": true,
|
||||
"host_api": 20,
|
||||
"release": "2.1.55"
|
||||
"release": "2.1.60"
|
||||
},
|
||||
"leaderboard": {
|
||||
"id": "inbe.leaderboard",
|
||||
"version": "1.0.24",
|
||||
"sequence": 25,
|
||||
"version": "1.0.28",
|
||||
"sequence": 29,
|
||||
"bundled": true,
|
||||
"host_api": 25,
|
||||
"release": "2.1.55"
|
||||
"host_api": 40,
|
||||
"release": "2.1.60",
|
||||
"oldest_host_api": 40
|
||||
}
|
||||
},
|
||||
"node_apps": {
|
||||
|
||||
Binary file not shown.
Binary file not shown.
+5
-1
@@ -340,7 +340,11 @@ saved data and bundled package; the plus button adds it back immediately.
|
||||
Settings is fixed last and is absent
|
||||
from the editable list. Existing
|
||||
profiles retain their selection and saved sidebar order.
|
||||
Each app appears once, with active shortcuts in sidebar order and hidden apps
|
||||
The Apps library normally omits apps hidden with Edit → Hide app. Edit shows
|
||||
all hidden apps again with Show app so they can be restored. Hiding removes
|
||||
the app's pinned shortcut but keeps its package and saved data. Visibility is
|
||||
saved per app in the current account's device settings, including node offers.
|
||||
Each app appears once, with pinned apps in sidebar order and the remaining apps
|
||||
after them. The list shows icons, names and controls without status paragraphs.
|
||||
|
||||
## Practice content and narration
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -69,8 +69,8 @@ android {
|
||||
minSdk 21
|
||||
targetSdk 36
|
||||
testInstrumentationRunner "android.test.InstrumentationTestRunner"
|
||||
versionCode 192
|
||||
versionName "2.1.55"
|
||||
versionCode 197
|
||||
versionName "2.1.60"
|
||||
manifestPlaceholders = [
|
||||
inbeAppLabel: "Inner Breeze",
|
||||
inbeUsesCleartextTraffic: "false"
|
||||
|
||||
@@ -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.
|
||||
@@ -0,0 +1,2 @@
|
||||
- Keep habits, practices, session counts and game progress free of storage charges, even when account storage is full.
|
||||
- Count custom notes, Diary and media toward storage, and keep progress syncing past queued uploads that need more space.
|
||||
@@ -0,0 +1,3 @@
|
||||
- Hide apps from the library and restore them through Edit.
|
||||
- Use one simple reorder grip to the left of app icons in list and grid views.
|
||||
- Unify Profile rows and put sent friend requests beside names with a cancel action.
|
||||
+84
-6
@@ -3082,6 +3082,14 @@ Před připojením tohoto účtu vyberte právě uloženou šifrovanou zálohu a
|
||||
Ahoj, jsem Lumi a všechno ti tu ukážu! Tohle jsou Aplikace. Napiš sem název a najdi aplikaci, pak ji klepnutím na její kartu otevřeš.
|
||||
---
|
||||
|
||||
[launcher_guide_manage]
|
||||
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.
|
||||
---
|
||||
|
||||
[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.
|
||||
@@ -3107,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ě
|
||||
---
|
||||
@@ -3257,7 +3271,7 @@ Doručení do schránky vývojáře není potvrzeno. Vaše zpětná vazba zůst
|
||||
---
|
||||
|
||||
[sync_storage_full]
|
||||
Synchronizační uzel nemá místo pro tyto změny, proto se nesynchronizují. Vypni pro něj nahrávání fotek v Profil › Data.
|
||||
Úložiště je plné. Základní sledování pokračuje; poznámky, deník a média potřebují místo.
|
||||
---
|
||||
|
||||
[profile_node_storage_title]
|
||||
@@ -3265,7 +3279,7 @@ Synchronizační uzel nemá místo pro tyto změny, proto se nesynchronizují. V
|
||||
---
|
||||
|
||||
[profile_node_storage_hint]
|
||||
Místo, které tvůj účet zabírá na každém uzlu, se kterým se synchronizuješ.
|
||||
Poznámky, deník a média zabírají úložiště. Návyky, cvičení a pokrok jsou zdarma.
|
||||
---
|
||||
|
||||
[profile_node_storage_active]
|
||||
@@ -3285,19 +3299,19 @@ Využito %s · bez limitu
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full]
|
||||
Téměř plné. Až se zaplní, změny se sem přestanou synchronizovat.
|
||||
Téměř plné. Základní sledování pokračuje; poznámky, deník a média potřebují volné místo.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full_media]
|
||||
Téměř plné. Nejrychleji ho plní fotky; vypni nahrávání fotek, aby se záznamy dál synchronizovaly.
|
||||
Téměř plné. Základní sledování pokračuje; poznámky, deník a média potřebují volné místo.
|
||||
---
|
||||
|
||||
[profile_node_storage_full]
|
||||
Pro nejnovější změny není místo, proto se do tohoto uzlu nesynchronizují.
|
||||
Úložiště je plné. Základní sledování pokračuje; poznámky, deník a média potřebují místo.
|
||||
---
|
||||
|
||||
[profile_node_storage_full_media]
|
||||
Pro nejnovější změny není místo, proto se do tohoto uzlu nesynchronizují. Vypni níže nahrávání fotek, aby se synchronizovalo vše ostatní.
|
||||
Úložiště je plné. Základní sledování pokračuje. Nahrávání fotek můžete vypnout níže.
|
||||
---
|
||||
|
||||
[profile_node_storage_photos]
|
||||
@@ -5209,6 +5223,10 @@ Adresu Monero se nepodařilo získat. Zkus to znovu.
|
||||
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…
|
||||
---
|
||||
@@ -7523,3 +7541,63 @@ 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
|
||||
---
|
||||
|
||||
[launcher_hide_app]
|
||||
Skrýt aplikaci
|
||||
---
|
||||
|
||||
[launcher_show_app]
|
||||
Zobrazit aplikaci
|
||||
---
|
||||
+84
-6
@@ -3076,6 +3076,14 @@ Wähle die gerade gespeicherte verschlüsselte Sicherung aus, um sie vor dem Ver
|
||||
Hallo, ich bin Lumi und zeige dir alles! Das hier ist Apps. Gib hier einen Namen ein, um eine App zu finden, und tippe auf ihre Karte, um sie zu öffnen.
|
||||
---
|
||||
|
||||
[launcher_guide_manage]
|
||||
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.
|
||||
---
|
||||
|
||||
[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.
|
||||
@@ -3101,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
|
||||
---
|
||||
@@ -3251,7 +3265,7 @@ Die Zustellung an den Entwicklereingang ist nicht bestätigt. Dein Feedback blei
|
||||
---
|
||||
|
||||
[sync_storage_full]
|
||||
Der Sync-Knoten hat keinen Platz für diese Änderungen, daher werden sie nicht synchronisiert. Schalte den Foto-Upload für ihn unter Profil › Daten aus.
|
||||
Der Speicher ist voll. Die grundlegende Erfassung läuft weiter; Notizen, Tagebuch und Medien brauchen Platz.
|
||||
---
|
||||
|
||||
[profile_node_storage_title]
|
||||
@@ -3259,7 +3273,7 @@ Knotenspeicher
|
||||
---
|
||||
|
||||
[profile_node_storage_hint]
|
||||
Speicher, den dein Konto auf jedem Knoten belegt, mit dem du synchronisierst.
|
||||
Notizen, Tagebuch und Medien belegen Speicher. Gewohnheiten, Übungen und Fortschritt sind kostenlos.
|
||||
---
|
||||
|
||||
[profile_node_storage_active]
|
||||
@@ -3279,19 +3293,19 @@ Die Nutzung erscheint nach der nächsten Synchronisierung mit diesem Knoten.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full]
|
||||
Fast voll. Ist er voll, werden Änderungen hier nicht mehr synchronisiert.
|
||||
Fast voll. Die grundlegende Erfassung läuft weiter; Notizen, Tagebuch und Medien brauchen freien Platz.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full_media]
|
||||
Fast voll. Fotos füllen ihn am schnellsten; schalte den Foto-Upload aus, damit deine Einträge weiter synchronisiert werden.
|
||||
Fast voll. Die grundlegende Erfassung läuft weiter; Notizen, Tagebuch und Medien brauchen freien Platz.
|
||||
---
|
||||
|
||||
[profile_node_storage_full]
|
||||
Kein Platz für die neuesten Änderungen, daher werden sie nicht mit diesem Knoten synchronisiert.
|
||||
Der Speicher ist voll. Die grundlegende Erfassung läuft weiter; Notizen, Tagebuch und Medien brauchen Platz.
|
||||
---
|
||||
|
||||
[profile_node_storage_full_media]
|
||||
Kein Platz für die neuesten Änderungen, daher werden sie nicht mit diesem Knoten synchronisiert. Schalte unten den Foto-Upload aus, damit alles andere synchronisiert wird.
|
||||
Der Speicher ist voll. Die grundlegende Erfassung läuft weiter. Das Hochladen von Fotos kannst du unten ausschalten.
|
||||
---
|
||||
|
||||
[profile_node_storage_photos]
|
||||
@@ -5203,6 +5217,10 @@ Die Monero-Adresse konnte nicht abgerufen werden. Versuche es erneut.
|
||||
%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…
|
||||
---
|
||||
@@ -7517,3 +7535,63 @@ 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
|
||||
---
|
||||
|
||||
[launcher_hide_app]
|
||||
App ausblenden
|
||||
---
|
||||
|
||||
[launcher_show_app]
|
||||
App einblenden
|
||||
---
|
||||
+84
-6
@@ -3100,6 +3100,14 @@ Select the encrypted backup you just saved to verify it before connecting this a
|
||||
Hi, I'm Lumi, and I'll be your guide! This is Apps. Type here to find an app, then tap its card to open it.
|
||||
---
|
||||
|
||||
[launcher_guide_manage]
|
||||
Drag the apps you love into Pinned to keep them one tap away, in any order. The trash icon removes an app but keeps its data, and Install brings it back.
|
||||
---
|
||||
|
||||
[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.
|
||||
@@ -3125,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
|
||||
---
|
||||
@@ -3275,7 +3289,7 @@ Delivery to the developer inbox is not confirmed. Your feedback is saved on this
|
||||
---
|
||||
|
||||
[sync_storage_full]
|
||||
The sync node has no room for these changes, so they are not syncing. Turn off photo upload for it in Profile › Data.
|
||||
Storage is full. Basic tracking continues; notes, Diary and media need space.
|
||||
---
|
||||
|
||||
[profile_node_storage_title]
|
||||
@@ -3283,7 +3297,7 @@ Node storage
|
||||
---
|
||||
|
||||
[profile_node_storage_hint]
|
||||
Space your account uses on each node you sync with.
|
||||
Notes, Diary and media use storage. Habits, practices and progress are free.
|
||||
---
|
||||
|
||||
[profile_node_storage_active]
|
||||
@@ -3303,19 +3317,19 @@ Usage appears after the next sync with this node.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full]
|
||||
Almost full. Changes stop syncing here when it is full.
|
||||
Almost full. Basic tracking continues; notes, Diary and media need available space.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full_media]
|
||||
Almost full. Photos fill it fastest; turn off photo upload to keep your entries syncing.
|
||||
Almost full. Basic tracking continues; notes, Diary and media need available space.
|
||||
---
|
||||
|
||||
[profile_node_storage_full]
|
||||
No room for the latest changes, so they are not syncing to this node.
|
||||
Storage is full. Basic tracking continues; notes, Diary and media need space.
|
||||
---
|
||||
|
||||
[profile_node_storage_full_media]
|
||||
No room for the latest changes, so they are not syncing to this node. Turn off photo upload below to sync everything else.
|
||||
Storage is full. Basic tracking continues. You can turn off photo upload below.
|
||||
---
|
||||
|
||||
[profile_node_storage_photos]
|
||||
@@ -5227,6 +5241,10 @@ Could not get your Monero address. Try again.
|
||||
Buy %s Dew
|
||||
---
|
||||
|
||||
[profile_dew_play_comparison]
|
||||
Savings per Dew compared with the 10 Dew pack.
|
||||
---
|
||||
|
||||
[profile_dew_play_loading]
|
||||
Loading Google Play prices…
|
||||
---
|
||||
@@ -7541,3 +7559,63 @@ 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
|
||||
---
|
||||
|
||||
[launcher_hide_app]
|
||||
Hide app
|
||||
---
|
||||
|
||||
[launcher_show_app]
|
||||
Show app
|
||||
---
|
||||
+84
-6
@@ -3076,6 +3076,14 @@ Selecciona la copia cifrada que acabas de guardar para verificarla antes de cone
|
||||
¡Hola, soy Lumi y seré tu guía! Esto es Aplicaciones. Escribe aquí para buscar una app y toca su tarjeta para abrirla.
|
||||
---
|
||||
|
||||
[launcher_guide_manage]
|
||||
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.
|
||||
---
|
||||
|
||||
[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.
|
||||
@@ -3101,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
|
||||
---
|
||||
@@ -3251,7 +3265,7 @@ No se ha confirmado la entrega al buzón del desarrollador. Tus comentarios est
|
||||
---
|
||||
|
||||
[sync_storage_full]
|
||||
El nodo de sincronización no tiene espacio para estos cambios, así que no se sincronizan. Desactiva la subida de fotos para él en Perfil › Datos.
|
||||
El almacenamiento está lleno. El seguimiento básico continúa; las notas, el Diario y los archivos multimedia necesitan espacio.
|
||||
---
|
||||
|
||||
[profile_node_storage_title]
|
||||
@@ -3259,7 +3273,7 @@ Almacenamiento en nodos
|
||||
---
|
||||
|
||||
[profile_node_storage_hint]
|
||||
Espacio que usa tu cuenta en cada nodo con el que sincronizas.
|
||||
Las notas, el Diario y los archivos multimedia usan almacenamiento. Los hábitos, las prácticas y el progreso no consumen espacio.
|
||||
---
|
||||
|
||||
[profile_node_storage_active]
|
||||
@@ -3279,19 +3293,19 @@ El uso aparecerá tras la próxima sincronización con este nodo.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full]
|
||||
Casi lleno. Cuando se llene, los cambios dejarán de sincronizarse aquí.
|
||||
Casi lleno. El seguimiento básico continúa; las notas, el Diario y los archivos multimedia necesitan espacio disponible.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full_media]
|
||||
Casi lleno. Las fotos lo llenan más rápido; desactiva la subida de fotos para que tus entradas sigan sincronizándose.
|
||||
Casi lleno. El seguimiento básico continúa; las notas, el Diario y los archivos multimedia necesitan espacio disponible.
|
||||
---
|
||||
|
||||
[profile_node_storage_full]
|
||||
No hay espacio para los últimos cambios, así que no se sincronizan con este nodo.
|
||||
El almacenamiento está lleno. El seguimiento básico continúa; las notas, el Diario y los archivos multimedia necesitan espacio.
|
||||
---
|
||||
|
||||
[profile_node_storage_full_media]
|
||||
No hay espacio para los últimos cambios, así que no se sincronizan con este nodo. Desactiva abajo la subida de fotos para sincronizar todo lo demás.
|
||||
El almacenamiento está lleno. El seguimiento básico continúa. Puedes desactivar la subida de fotos abajo.
|
||||
---
|
||||
|
||||
[profile_node_storage_photos]
|
||||
@@ -5203,6 +5217,10 @@ No se pudo obtener tu dirección de Monero. Inténtalo de nuevo.
|
||||
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…
|
||||
---
|
||||
@@ -7517,3 +7535,63 @@ 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
|
||||
---
|
||||
|
||||
[launcher_hide_app]
|
||||
Ocultar aplicación
|
||||
---
|
||||
|
||||
[launcher_show_app]
|
||||
Mostrar aplicación
|
||||
---
|
||||
+84
-6
@@ -3064,6 +3064,14 @@ Sélectionnez la sauvegarde chiffrée que vous venez d’enregistrer pour la vé
|
||||
Coucou, je suis Lumi et je vais te faire visiter ! Voici l’écran Applications. Saisis un nom ici pour trouver une app, puis touche sa carte pour l’ouvrir.
|
||||
---
|
||||
|
||||
[launcher_guide_manage]
|
||||
Fais glisser tes apps préférées dans Épinglées 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.
|
||||
---
|
||||
|
||||
[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.
|
||||
@@ -3089,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
|
||||
---
|
||||
@@ -3239,7 +3253,7 @@ La livraison à la boîte du développeur n’est pas confirmée. Votre retour r
|
||||
---
|
||||
|
||||
[sync_storage_full]
|
||||
Le nœud de synchronisation n’a pas de place pour ces modifications, elles ne se synchronisent donc pas. Désactive l’envoi de photos pour ce nœud dans Profil › Données.
|
||||
Le stockage est plein. Le suivi de base continue ; les notes, le Journal et les médias ont besoin de place.
|
||||
---
|
||||
|
||||
[profile_node_storage_title]
|
||||
@@ -3247,7 +3261,7 @@ Stockage des nœuds
|
||||
---
|
||||
|
||||
[profile_node_storage_hint]
|
||||
Espace utilisé par ton compte sur chaque nœud avec lequel tu synchronises.
|
||||
Les notes, le Journal et les médias utilisent le stockage. Les habitudes, les pratiques et la progression sont gratuites.
|
||||
---
|
||||
|
||||
[profile_node_storage_active]
|
||||
@@ -3267,19 +3281,19 @@ L’utilisation s’affichera après la prochaine synchronisation avec ce nœud.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full]
|
||||
Presque plein. Une fois plein, les modifications ne s’y synchronisent plus.
|
||||
Presque plein. Le suivi de base continue ; les notes, le Journal et les médias ont besoin de place disponible.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full_media]
|
||||
Presque plein. Les photos le remplissent le plus vite ; désactive l’envoi de photos pour que tes entrées continuent à se synchroniser.
|
||||
Presque plein. Le suivi de base continue ; les notes, le Journal et les médias ont besoin de place disponible.
|
||||
---
|
||||
|
||||
[profile_node_storage_full]
|
||||
Pas de place pour les dernières modifications, elles ne se synchronisent donc pas avec ce nœud.
|
||||
Le stockage est plein. Le suivi de base continue ; les notes, le Journal et les médias ont besoin de place.
|
||||
---
|
||||
|
||||
[profile_node_storage_full_media]
|
||||
Pas de place pour les dernières modifications, elles ne se synchronisent donc pas avec ce nœud. Désactive l’envoi de photos ci-dessous pour synchroniser tout le reste.
|
||||
Le stockage est plein. Le suivi de base continue. Vous pouvez désactiver l’envoi de photos ci-dessous.
|
||||
---
|
||||
|
||||
[profile_node_storage_photos]
|
||||
@@ -5191,6 +5205,10 @@ Impossible de récupérer votre adresse Monero. Réessayez.
|
||||
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…
|
||||
---
|
||||
@@ -7505,3 +7523,63 @@ 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
|
||||
---
|
||||
|
||||
[launcher_hide_app]
|
||||
Masquer l’application
|
||||
---
|
||||
|
||||
[launcher_show_app]
|
||||
Afficher l’application
|
||||
---
|
||||
+84
-6
@@ -3065,6 +3065,14 @@ Pilih cadangan terenkripsi yang baru Anda simpan untuk memverifikasinya sebelum
|
||||
Hai, aku Lumi, dan aku akan jadi pemandumu! Ini layar Aplikasi. Ketik di sini untuk mencari aplikasi, lalu ketuk kartunya untuk membukanya.
|
||||
---
|
||||
|
||||
[launcher_guide_manage]
|
||||
Seret aplikasi favoritmu ke Disematkan agar selalu dekat, dengan urutan sesukamu. Ikon tempat sampah menghapus aplikasi tapi datanya tetap tersimpan, dan Pasang mengembalikannya.
|
||||
---
|
||||
|
||||
[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.
|
||||
@@ -3090,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
|
||||
---
|
||||
@@ -3240,7 +3254,7 @@ Pengiriman ke kotak masuk pengembang belum terkonfirmasi. Masukanmu tersimpan di
|
||||
---
|
||||
|
||||
[sync_storage_full]
|
||||
Simpul sinkronisasi tidak punya ruang untuk perubahan ini, jadi perubahan tidak disinkronkan. Matikan unggahan foto untuk simpul ini di Profil › Data.
|
||||
Penyimpanan penuh. Pelacakan dasar tetap berjalan; catatan, Buku Harian, dan media memerlukan ruang.
|
||||
---
|
||||
|
||||
[profile_node_storage_title]
|
||||
@@ -3248,7 +3262,7 @@ Penyimpanan simpul
|
||||
---
|
||||
|
||||
[profile_node_storage_hint]
|
||||
Ruang yang dipakai akunmu di setiap simpul yang kamu sinkronkan.
|
||||
Catatan, Buku Harian, dan media menggunakan penyimpanan. Kebiasaan, latihan, dan kemajuan tidak dihitung.
|
||||
---
|
||||
|
||||
[profile_node_storage_active]
|
||||
@@ -3268,19 +3282,19 @@ Penggunaan muncul setelah sinkronisasi berikutnya dengan simpul ini.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full]
|
||||
Hampir penuh. Setelah penuh, perubahan berhenti disinkronkan ke sini.
|
||||
Hampir penuh. Pelacakan dasar tetap berjalan; catatan, Buku Harian, dan media memerlukan ruang kosong.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full_media]
|
||||
Hampir penuh. Foto paling cepat mengisinya; matikan unggahan foto agar catatanmu tetap tersinkron.
|
||||
Hampir penuh. Pelacakan dasar tetap berjalan; catatan, Buku Harian, dan media memerlukan ruang kosong.
|
||||
---
|
||||
|
||||
[profile_node_storage_full]
|
||||
Tidak ada ruang untuk perubahan terbaru, jadi tidak disinkronkan ke simpul ini.
|
||||
Penyimpanan penuh. Pelacakan dasar tetap berjalan; catatan, Buku Harian, dan media memerlukan ruang.
|
||||
---
|
||||
|
||||
[profile_node_storage_full_media]
|
||||
Tidak ada ruang untuk perubahan terbaru, jadi tidak disinkronkan ke simpul ini. Matikan unggahan foto di bawah agar semua yang lain tersinkron.
|
||||
Penyimpanan penuh. Pelacakan dasar tetap berjalan. Anda dapat menonaktifkan unggahan foto di bawah.
|
||||
---
|
||||
|
||||
[profile_node_storage_photos]
|
||||
@@ -5192,6 +5206,10 @@ Alamat Monero tidak dapat diambil. Coba lagi.
|
||||
Beli %s Dew
|
||||
---
|
||||
|
||||
[profile_dew_play_comparison]
|
||||
Penghematan per Dew dibandingkan dengan paket 10 Dew.
|
||||
---
|
||||
|
||||
[profile_dew_play_loading]
|
||||
Memuat harga Google Play…
|
||||
---
|
||||
@@ -7506,3 +7524,63 @@ 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
|
||||
---
|
||||
|
||||
[launcher_hide_app]
|
||||
Sembunyikan aplikasi
|
||||
---
|
||||
|
||||
[launcher_show_app]
|
||||
Tampilkan aplikasi
|
||||
---
|
||||
+84
-6
@@ -3065,6 +3065,14 @@ Seleziona il backup cifrato appena salvato per verificarlo prima di collegare qu
|
||||
Ciao, sono Lumi e ti farò da guida! Questa è la schermata App. Scrivi qui per trovare un'app, poi tocca la sua scheda per aprirla.
|
||||
---
|
||||
|
||||
[launcher_guide_manage]
|
||||
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.
|
||||
---
|
||||
|
||||
[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.
|
||||
@@ -3090,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
|
||||
---
|
||||
@@ -3240,7 +3254,7 @@ La consegna alla casella dello sviluppatore non è confermata. Il tuo feedback r
|
||||
---
|
||||
|
||||
[sync_storage_full]
|
||||
Il nodo di sincronizzazione non ha spazio per queste modifiche, quindi non vengono sincronizzate. Disattiva il caricamento delle foto per questo nodo in Profilo › Dati.
|
||||
Lo spazio è pieno. Il monitoraggio di base continua; note, Diario e contenuti multimediali richiedono spazio.
|
||||
---
|
||||
|
||||
[profile_node_storage_title]
|
||||
@@ -3248,7 +3262,7 @@ Spazio sui nodi
|
||||
---
|
||||
|
||||
[profile_node_storage_hint]
|
||||
Spazio usato dal tuo account su ogni nodo con cui sincronizzi.
|
||||
Note, Diario e contenuti multimediali occupano spazio. Abitudini, pratiche e progressi sono gratuiti.
|
||||
---
|
||||
|
||||
[profile_node_storage_active]
|
||||
@@ -3268,19 +3282,19 @@ L’utilizzo apparirà dopo la prossima sincronizzazione con questo nodo.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full]
|
||||
Quasi pieno. Quando sarà pieno, le modifiche smetteranno di sincronizzarsi qui.
|
||||
Quasi pieno. Il monitoraggio di base continua; note, Diario e contenuti multimediali richiedono spazio disponibile.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full_media]
|
||||
Quasi pieno. Le foto lo riempiono più in fretta; disattiva il caricamento delle foto per continuare a sincronizzare le voci.
|
||||
Quasi pieno. Il monitoraggio di base continua; note, Diario e contenuti multimediali richiedono spazio disponibile.
|
||||
---
|
||||
|
||||
[profile_node_storage_full]
|
||||
Non c’è spazio per le ultime modifiche, quindi non vengono sincronizzate con questo nodo.
|
||||
Lo spazio è pieno. Il monitoraggio di base continua; note, Diario e contenuti multimediali richiedono spazio.
|
||||
---
|
||||
|
||||
[profile_node_storage_full_media]
|
||||
Non c’è spazio per le ultime modifiche, quindi non vengono sincronizzate con questo nodo. Disattiva qui sotto il caricamento delle foto per sincronizzare tutto il resto.
|
||||
Lo spazio è pieno. Il monitoraggio di base continua. Puoi disattivare il caricamento delle foto qui sotto.
|
||||
---
|
||||
|
||||
[profile_node_storage_photos]
|
||||
@@ -5192,6 +5206,10 @@ Impossibile recuperare il tuo indirizzo Monero. Riprova.
|
||||
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…
|
||||
---
|
||||
@@ -7506,3 +7524,63 @@ 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
|
||||
---
|
||||
|
||||
[launcher_hide_app]
|
||||
Nascondi app
|
||||
---
|
||||
|
||||
[launcher_show_app]
|
||||
Mostra app
|
||||
---
|
||||
+84
-6
@@ -3061,6 +3061,14 @@ Telegram アカウント
|
||||
こんにちは、Lumiです!わたしが案内しますね。ここは「アプリ」の画面です。ここに名前を入力してアプリを探し、カードをタップすると開けます。
|
||||
---
|
||||
|
||||
[launcher_guide_manage]
|
||||
お気に入りのアプリを「ピン留め」にドラッグすると、好きな順番ですぐに開けます。ごみ箱アイコンでアプリを削除してもデータは残り、「インストール」で元に戻せます。
|
||||
---
|
||||
|
||||
[launcher_guide_profile]
|
||||
プロフィールは上部の設定の隣にあります。名前をタップして開き、アプリをタップしてここに戻れます。
|
||||
---
|
||||
|
||||
|
||||
[lumi_guide_chat]
|
||||
ここでわたしとお話しします。リストへの追加、習慣のチェック、練習の開始、日記の記入などを頼んでください。スラッシュを入力すると、できることが全部見られます。
|
||||
@@ -3086,6 +3094,12 @@ Telegram アカウント
|
||||
[diary_guide_write]
|
||||
ここに好きなだけ書いてください。上のボタンで元に戻す、やり直す、スペルの確認、時刻や写真の追加ができます。
|
||||
---
|
||||
[leaderboard_score]
|
||||
得点
|
||||
---
|
||||
[leaderboard_level]
|
||||
レベル
|
||||
---
|
||||
[leaderboard_levels]
|
||||
レベル
|
||||
---
|
||||
@@ -3236,7 +3250,7 @@ Lumiに相談
|
||||
---
|
||||
|
||||
[sync_storage_full]
|
||||
同期ノードにこれらの変更を保存する空きがないため、同期されていません。プロフィール › データで、このノードへの写真のアップロードをオフにしてください。
|
||||
ストレージがいっぱいです。基本の記録は続けられます。メモ、日記、メディアには空き容量が必要です。
|
||||
---
|
||||
|
||||
[profile_node_storage_title]
|
||||
@@ -3244,7 +3258,7 @@ Lumiに相談
|
||||
---
|
||||
|
||||
[profile_node_storage_hint]
|
||||
同期している各ノードで、このアカウントが使っている容量です。
|
||||
メモ、日記、メディアがストレージを使用します。習慣、練習、進捗は使用量に含まれません。
|
||||
---
|
||||
|
||||
[profile_node_storage_active]
|
||||
@@ -3264,19 +3278,19 @@ Lumiに相談
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full]
|
||||
残りわずかです。いっぱいになると、ここへの変更は同期されなくなります。
|
||||
もうすぐいっぱいです。基本の記録は続けられます。メモ、日記、メディアには空き容量が必要です。
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full_media]
|
||||
残りわずかです。写真がいちばん容量を使います。写真のアップロードをオフにすると、日記は同期され続けます。
|
||||
もうすぐいっぱいです。基本の記録は続けられます。メモ、日記、メディアには空き容量が必要です。
|
||||
---
|
||||
|
||||
[profile_node_storage_full]
|
||||
最新の変更を保存する空きがないため、このノードへ同期されていません。
|
||||
ストレージがいっぱいです。基本の記録は続けられます。メモ、日記、メディアには空き容量が必要です。
|
||||
---
|
||||
|
||||
[profile_node_storage_full_media]
|
||||
最新の変更を保存する空きがないため、このノードへ同期されていません。下で写真のアップロードをオフにすると、ほかのデータは同期されます。
|
||||
ストレージがいっぱいです。基本の記録は続けられます。下で写真のアップロードをオフにできます。
|
||||
---
|
||||
|
||||
[profile_node_storage_photos]
|
||||
@@ -5188,6 +5202,10 @@ Moneroアドレスを取得できませんでした。もう一度お試しく
|
||||
%s Dewを購入
|
||||
---
|
||||
|
||||
[profile_dew_play_comparison]
|
||||
10 Dew パックと比べた Dew あたりの割引です。
|
||||
---
|
||||
|
||||
[profile_dew_play_loading]
|
||||
Google Playの価格を読み込んでいます…
|
||||
---
|
||||
@@ -7502,3 +7520,63 @@ 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]
|
||||
アプリを移動
|
||||
---
|
||||
|
||||
[launcher_hide_app]
|
||||
アプリを非表示
|
||||
---
|
||||
|
||||
[launcher_show_app]
|
||||
アプリを表示
|
||||
---
|
||||
+84
-6
@@ -3071,6 +3071,14 @@ Telegram 계정
|
||||
안녕하세요, 저는 Lumi예요. 제가 안내해 드릴게요! 여기는 앱 화면이에요. 여기에 이름을 입력해 앱을 찾고, 카드를 탭하면 열 수 있어요.
|
||||
---
|
||||
|
||||
[launcher_guide_manage]
|
||||
좋아하는 앱을 고정된 앱으로 끌어다 놓으면 원하는 순서대로 바로 열 수 있어요. 휴지통 아이콘은 앱을 삭제하지만 데이터는 남겨 두고, 설치를 누르면 다시 돌아와요.
|
||||
---
|
||||
|
||||
[launcher_guide_profile]
|
||||
프로필은 상단 설정 옆에 있어요. 이름을 눌러 열고, 앱을 눌러 여기로 돌아오세요.
|
||||
---
|
||||
|
||||
|
||||
[lumi_guide_chat]
|
||||
여기서 저와 이야기해요. 목록에 추가하기, 습관 체크하기, 연습 시작하기, 일기 쓰기를 부탁해 보세요. 슬래시를 입력하면 제가 할 수 있는 모든 걸 볼 수 있어요.
|
||||
@@ -3096,6 +3104,12 @@ Telegram 계정
|
||||
[diary_guide_write]
|
||||
여기에 마음껏 써 보세요. 위의 버튼으로 실행 취소와 다시 실행, 맞춤법 검사, 시간이나 사진 추가를 할 수 있어요.
|
||||
---
|
||||
[leaderboard_score]
|
||||
점수
|
||||
---
|
||||
[leaderboard_level]
|
||||
레벨
|
||||
---
|
||||
[leaderboard_levels]
|
||||
레벨
|
||||
---
|
||||
@@ -3246,7 +3260,7 @@ Lumi에게 요청
|
||||
---
|
||||
|
||||
[sync_storage_full]
|
||||
동기화 노드에 이 변경 사항을 저장할 공간이 없어 동기화되지 않습니다. 프로필 › 데이터에서 이 노드의 사진 업로드를 끄세요.
|
||||
저장 공간이 가득 찼습니다. 기본 기록은 계속할 수 있으며 메모, 일기, 미디어에는 공간이 필요합니다.
|
||||
---
|
||||
|
||||
[profile_node_storage_title]
|
||||
@@ -3254,7 +3268,7 @@ Lumi에게 요청
|
||||
---
|
||||
|
||||
[profile_node_storage_hint]
|
||||
동기화하는 각 노드에서 계정이 사용하는 공간입니다.
|
||||
메모, 일기, 미디어는 저장 공간을 사용합니다. 습관, 연습, 진행 상황은 사용량에 포함되지 않습니다.
|
||||
---
|
||||
|
||||
[profile_node_storage_active]
|
||||
@@ -3274,19 +3288,19 @@ Lumi에게 요청
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full]
|
||||
거의 가득 찼습니다. 가득 차면 이곳으로 변경 사항이 동기화되지 않습니다.
|
||||
저장 공간이 거의 가득 찼습니다. 기본 기록은 계속할 수 있으며 메모, 일기, 미디어에는 여유 공간이 필요합니다.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full_media]
|
||||
거의 가득 찼습니다. 사진이 가장 빨리 채웁니다. 사진 업로드를 끄면 일기는 계속 동기화됩니다.
|
||||
저장 공간이 거의 가득 찼습니다. 기본 기록은 계속할 수 있으며 메모, 일기, 미디어에는 여유 공간이 필요합니다.
|
||||
---
|
||||
|
||||
[profile_node_storage_full]
|
||||
최신 변경 사항을 저장할 공간이 없어 이 노드로 동기화되지 않습니다.
|
||||
저장 공간이 가득 찼습니다. 기본 기록은 계속할 수 있으며 메모, 일기, 미디어에는 공간이 필요합니다.
|
||||
---
|
||||
|
||||
[profile_node_storage_full_media]
|
||||
최신 변경 사항을 저장할 공간이 없어 이 노드로 동기화되지 않습니다. 아래에서 사진 업로드를 끄면 나머지는 모두 동기화됩니다.
|
||||
저장 공간이 가득 찼습니다. 기본 기록은 계속할 수 있습니다. 아래에서 사진 업로드를 끌 수 있습니다.
|
||||
---
|
||||
|
||||
[profile_node_storage_photos]
|
||||
@@ -5198,6 +5212,10 @@ Monero 주소를 가져오지 못했습니다. 다시 시도하세요.
|
||||
%s Dew 구매
|
||||
---
|
||||
|
||||
[profile_dew_play_comparison]
|
||||
10 Dew 팩과 비교한 Dew당 할인율입니다.
|
||||
---
|
||||
|
||||
[profile_dew_play_loading]
|
||||
Google Play 가격을 불러오는 중…
|
||||
---
|
||||
@@ -7512,3 +7530,63 @@ 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]
|
||||
앱 이동
|
||||
---
|
||||
|
||||
[launcher_hide_app]
|
||||
앱 숨기기
|
||||
---
|
||||
|
||||
[launcher_show_app]
|
||||
앱 표시
|
||||
---
|
||||
+84
-6
@@ -3074,6 +3074,14 @@ Selecione a cópia de segurança criptografada que acabou de salvar para verific
|
||||
Oi, eu sou a Lumi e vou te mostrar tudo por aqui! Esta é a tela de Aplicativos. Digite aqui para encontrar um app e toque no cartão dele para abrir.
|
||||
---
|
||||
|
||||
[launcher_guide_manage]
|
||||
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.
|
||||
---
|
||||
|
||||
[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.
|
||||
@@ -3099,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
|
||||
---
|
||||
@@ -3249,7 +3263,7 @@ A entrega na caixa de entrada do programador não está confirmada. O teu coment
|
||||
---
|
||||
|
||||
[sync_storage_full]
|
||||
O nó de sincronização não tem espaço para estas alterações, por isso elas não estão sendo sincronizadas. Desative o envio de fotos para ele em Perfil › Dados.
|
||||
O armazenamento está cheio. O acompanhamento básico continua; notas, Diário e mídia precisam de espaço.
|
||||
---
|
||||
|
||||
[profile_node_storage_title]
|
||||
@@ -3257,7 +3271,7 @@ Armazenamento nos nós
|
||||
---
|
||||
|
||||
[profile_node_storage_hint]
|
||||
Espaço que sua conta usa em cada nó com que você sincroniza.
|
||||
Notas, Diário e mídia usam armazenamento. Hábitos, práticas e progresso não consomem espaço.
|
||||
---
|
||||
|
||||
[profile_node_storage_active]
|
||||
@@ -3277,19 +3291,19 @@ O uso aparece após a próxima sincronização com este nó.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full]
|
||||
Quase cheio. Quando encher, as alterações deixam de ser sincronizadas aqui.
|
||||
Quase cheio. O acompanhamento básico continua; notas, Diário e mídia precisam de espaço disponível.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full_media]
|
||||
Quase cheio. As fotos o enchem mais rápido; desative o envio de fotos para continuar sincronizando suas entradas.
|
||||
Quase cheio. O acompanhamento básico continua; notas, Diário e mídia precisam de espaço disponível.
|
||||
---
|
||||
|
||||
[profile_node_storage_full]
|
||||
Não há espaço para as alterações mais recentes, por isso elas não estão sendo sincronizadas com este nó.
|
||||
O armazenamento está cheio. O acompanhamento básico continua; notas, Diário e mídia precisam de espaço.
|
||||
---
|
||||
|
||||
[profile_node_storage_full_media]
|
||||
Não há espaço para as alterações mais recentes, por isso elas não estão sendo sincronizadas com este nó. Desative abaixo o envio de fotos para sincronizar todo o resto.
|
||||
O armazenamento está cheio. O acompanhamento básico continua. Você pode desativar o envio de fotos abaixo.
|
||||
---
|
||||
|
||||
[profile_node_storage_photos]
|
||||
@@ -5201,6 +5215,10 @@ Não foi possível obter seu endereço Monero. Tente novamente.
|
||||
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…
|
||||
---
|
||||
@@ -7515,3 +7533,63 @@ 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
|
||||
---
|
||||
|
||||
[launcher_hide_app]
|
||||
Ocultar aplicativo
|
||||
---
|
||||
|
||||
[launcher_show_app]
|
||||
Mostrar aplicativo
|
||||
---
|
||||
+84
-6
@@ -3070,6 +3070,14 @@ Lumi остаётся без сети, пока вы не примете её у
|
||||
Привет, я Lumi, и я всё тебе покажу! Это экран «Приложения». Введи здесь название, чтобы найти приложение, и нажми на его карточку, чтобы открыть.
|
||||
---
|
||||
|
||||
[launcher_guide_manage]
|
||||
Перетащи любимые приложения в «Закреплённые», чтобы они всегда были под рукой, в любом порядке. Значок корзины удаляет приложение, но сохраняет его данные, а «Установить» возвращает его.
|
||||
---
|
||||
|
||||
[launcher_guide_profile]
|
||||
Ваш профиль находится вверху рядом с настройками. Нажмите на имя, чтобы открыть его, или на «Приложения», чтобы вернуться сюда.
|
||||
---
|
||||
|
||||
|
||||
[lumi_guide_chat]
|
||||
Здесь мы разговариваем. Попроси меня добавить что-то в список, отметить привычку, начать практику или написать в дневник. Набери косую черту, чтобы увидеть всё, что я умею.
|
||||
@@ -3095,6 +3103,12 @@ Lumi остаётся без сети, пока вы не примете её у
|
||||
[diary_guide_write]
|
||||
Пиши здесь сколько хочешь. Кнопки сверху отменяют и повторяют, проверяют орфографию и добавляют время или фото.
|
||||
---
|
||||
[leaderboard_score]
|
||||
Очки
|
||||
---
|
||||
[leaderboard_level]
|
||||
Уровень
|
||||
---
|
||||
[leaderboard_levels]
|
||||
Уровни
|
||||
---
|
||||
@@ -3245,7 +3259,7 @@ Lumi остаётся без сети, пока вы не примете её у
|
||||
---
|
||||
|
||||
[sync_storage_full]
|
||||
На узле синхронизации нет места для этих изменений, поэтому они не синхронизируются. Отключите загрузку фото для этого узла в разделе Профиль › Данные.
|
||||
Хранилище заполнено. Основной учёт продолжается; для заметок, дневника и медиа нужно место.
|
||||
---
|
||||
|
||||
[profile_node_storage_title]
|
||||
@@ -3253,7 +3267,7 @@ Lumi остаётся без сети, пока вы не примете её у
|
||||
---
|
||||
|
||||
[profile_node_storage_hint]
|
||||
Сколько места ваш аккаунт занимает на каждом узле, с которым вы синхронизируетесь.
|
||||
Заметки, дневник и медиа занимают хранилище. Привычки, практики и прогресс не учитываются в его использовании.
|
||||
---
|
||||
|
||||
[profile_node_storage_active]
|
||||
@@ -3273,19 +3287,19 @@ Lumi остаётся без сети, пока вы не примете её у
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full]
|
||||
Почти заполнено. Когда место закончится, изменения перестанут синхронизироваться сюда.
|
||||
Почти заполнено. Основной учёт продолжается; для заметок, дневника и медиа нужно свободное место.
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full_media]
|
||||
Почти заполнено. Быстрее всего место занимают фото; отключите загрузку фото, чтобы записи продолжали синхронизироваться.
|
||||
Почти заполнено. Основной учёт продолжается; для заметок, дневника и медиа нужно свободное место.
|
||||
---
|
||||
|
||||
[profile_node_storage_full]
|
||||
Для последних изменений нет места, поэтому они не синхронизируются с этим узлом.
|
||||
Хранилище заполнено. Основной учёт продолжается; для заметок, дневника и медиа нужно место.
|
||||
---
|
||||
|
||||
[profile_node_storage_full_media]
|
||||
Для последних изменений нет места, поэтому они не синхронизируются с этим узлом. Отключите ниже загрузку фото, чтобы синхронизировалось всё остальное.
|
||||
Хранилище заполнено. Основной учёт продолжается. Ниже можно отключить загрузку фотографий.
|
||||
---
|
||||
|
||||
[profile_node_storage_photos]
|
||||
@@ -5197,6 +5211,10 @@ Lumi остаётся без сети, пока вы не примете её у
|
||||
Купить %s Dew
|
||||
---
|
||||
|
||||
[profile_dew_play_comparison]
|
||||
Экономия на каждом Dew по сравнению с набором из 10 Dew.
|
||||
---
|
||||
|
||||
[profile_dew_play_loading]
|
||||
Загружаем цены Google Play…
|
||||
---
|
||||
@@ -7511,3 +7529,63 @@ 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]
|
||||
Переместить приложение
|
||||
---
|
||||
|
||||
[launcher_hide_app]
|
||||
Скрыть приложение
|
||||
---
|
||||
|
||||
[launcher_show_app]
|
||||
Показать приложение
|
||||
---
|
||||
+84
-6
@@ -3076,6 +3076,14 @@ Telegram 账号
|
||||
你好,我是 Lumi,由我带你四处看看!这里是应用页面。在这里输入名称来查找应用,点按卡片即可打开。
|
||||
---
|
||||
|
||||
[launcher_guide_manage]
|
||||
把喜欢的应用拖到已固定里,按你喜欢的顺序排好,随时一点就开。垃圾桶图标会移除应用,但保留它的数据,点安装就能找回来。
|
||||
---
|
||||
|
||||
[launcher_guide_profile]
|
||||
个人资料位于顶部设置旁边。点击你的名字即可打开,点击应用即可返回这里。
|
||||
---
|
||||
|
||||
|
||||
[lumi_guide_chat]
|
||||
我们在这里聊天。你可以让我往清单里加东西、勾选习惯、开始练习,或者写日记。输入一个斜杠,就能看到我能做的所有事。
|
||||
@@ -3101,6 +3109,12 @@ Telegram 账号
|
||||
[diary_guide_write]
|
||||
在这里想写多少就写多少。上方的按钮可以撤销和重做、检查拼写,还能加上时间或照片。
|
||||
---
|
||||
[leaderboard_score]
|
||||
得分
|
||||
---
|
||||
[leaderboard_level]
|
||||
关卡
|
||||
---
|
||||
[leaderboard_levels]
|
||||
关卡
|
||||
---
|
||||
@@ -3251,7 +3265,7 @@ Daochi 节点
|
||||
---
|
||||
|
||||
[sync_storage_full]
|
||||
同步节点没有空间保存这些更改,因此无法同步。请在“个人资料 › 数据”中关闭该节点的照片上传。
|
||||
存储空间已满。基本记录仍可继续;笔记、日记和图片和视频需要空间。
|
||||
---
|
||||
|
||||
[profile_node_storage_title]
|
||||
@@ -3259,7 +3273,7 @@ Daochi 节点
|
||||
---
|
||||
|
||||
[profile_node_storage_hint]
|
||||
你的账户在每个同步节点上占用的空间。
|
||||
笔记、日记和图片和视频占用存储空间。习惯、练习和进度不计入用量。
|
||||
---
|
||||
|
||||
[profile_node_storage_active]
|
||||
@@ -3279,19 +3293,19 @@ Daochi 节点
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full]
|
||||
即将用完。用完后,更改将不再同步到这里。
|
||||
存储空间即将用完。基本记录仍可继续;笔记、日记和图片和视频需要可用空间。
|
||||
---
|
||||
|
||||
[profile_node_storage_nearly_full_media]
|
||||
即将用完。照片占用空间最快;关闭照片上传可让日记继续同步。
|
||||
存储空间即将用完。基本记录仍可继续;笔记、日记和图片和视频需要可用空间。
|
||||
---
|
||||
|
||||
[profile_node_storage_full]
|
||||
没有空间保存最新的更改,因此无法同步到此节点。
|
||||
存储空间已满。基本记录仍可继续;笔记、日记和图片和视频需要空间。
|
||||
---
|
||||
|
||||
[profile_node_storage_full_media]
|
||||
没有空间保存最新的更改,因此无法同步到此节点。在下方关闭照片上传后,其他内容会继续同步。
|
||||
存储空间已满。基本记录仍可继续。你可以在下方关闭照片上传。
|
||||
---
|
||||
|
||||
[profile_node_storage_photos]
|
||||
@@ -5203,6 +5217,10 @@ Dew不足,请先充值。
|
||||
购买 %s Dew
|
||||
---
|
||||
|
||||
[profile_dew_play_comparison]
|
||||
与 10 Dew 礼包相比,每个 Dew 的价格折扣。
|
||||
---
|
||||
|
||||
[profile_dew_play_loading]
|
||||
正在加载Google Play价格…
|
||||
---
|
||||
@@ -7517,3 +7535,63 @@ 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]
|
||||
移动应用
|
||||
---
|
||||
|
||||
[launcher_hide_app]
|
||||
隐藏应用
|
||||
---
|
||||
|
||||
[launcher_show_app]
|
||||
显示应用
|
||||
---
|
||||
+1
-1
@@ -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
|
||||
|
||||
|
||||
@@ -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
@@ -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,5 +1,5 @@
|
||||
Package: inbe.waozi
|
||||
Version: 2.1.55
|
||||
Version: 2.1.60
|
||||
Architecture: arm64
|
||||
Maintainer: Waozi <[email protected]>
|
||||
Click-Version: 0.4
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<binary>inbe</binary>
|
||||
</provides>
|
||||
<releases>
|
||||
<release version="2.1.55" date="2026-10-27"/>
|
||||
<release version="2.1.60" date="2026-10-29"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.1"/>
|
||||
</component>
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "inbe",
|
||||
"title": "Inner Breeze",
|
||||
"version": "2.1.55",
|
||||
"version": "2.1.60",
|
||||
"architecture": "arm64",
|
||||
"framework": "ubuntu-sdk-20.04",
|
||||
"description": "Syncable breathing, meditation, and habit practice app.",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"manifest_version": 3,
|
||||
"name": "Inner Breeze",
|
||||
"short_name": "Inbe",
|
||||
"version": "2.1.55",
|
||||
"version": "2.1.60",
|
||||
"description": "Breathing, meditation, habit tracking, and encrypted sync.",
|
||||
"permissions": [
|
||||
"contextMenus"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<binary>inbe</binary>
|
||||
</provides>
|
||||
<releases>
|
||||
<release version="2.1.55" date="2026-10-27"/>
|
||||
<release version="2.1.60" date="2026-10-29"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.1"/>
|
||||
</component>
|
||||
@@ -22,7 +22,7 @@
|
||||
<binary>inbe</binary>
|
||||
</provides>
|
||||
<releases>
|
||||
<release version="2.1.55" date="2026-10-27"/>
|
||||
<release version="2.1.60" date="2026-10-29"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.1"/>
|
||||
</component>
|
||||
@@ -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.55'
|
||||
version: '2.1.60'
|
||||
license: BSD-3-Clause
|
||||
base: core22
|
||||
confinement: strict
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
@@ -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"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"schema": 2,
|
||||
"version": "2.1.59",
|
||||
"app_tree": "fb709fa1319a47c1d0652264e21708fad97e97733996428baef92ad0b9e2ca4e",
|
||||
"source_commit": "4e2c52b4c91aafdca0aaae90f8bf7d6a3377052d",
|
||||
"uncommitted": [],
|
||||
"apk": {
|
||||
"sha256": "7c6c1a72b109a781830ed92d42c667ef15a56b990bd5cfb90e88a83df0e658e5",
|
||||
"package": "xyz.waozi.inbe.verification",
|
||||
"version_code": 196,
|
||||
"version_name": "2.1.59"
|
||||
},
|
||||
"device": {
|
||||
"model": "moto e6 play",
|
||||
"android": "9"
|
||||
},
|
||||
"practice": {
|
||||
"name": "Wim Hof",
|
||||
"seconds": 59.85,
|
||||
"frames": 3456,
|
||||
"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-29T01:40:14+00:00"
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
{
|
||||
"schema": 2,
|
||||
"version": "2.1.60",
|
||||
"app_tree": "7a0554ed3a810f0450cf2f0db8c1e73b79891da52102b5e21a0442cc4975c3a4",
|
||||
"source_commit": "ac19ebafaf83b62674d0523d5d4a3dc0697eaacf",
|
||||
"uncommitted": [],
|
||||
"apk": {
|
||||
"sha256": "9fbe5ac64cc2a3982baeb1a1cfe535487cc9f78fbccd394701246f9be8575340",
|
||||
"package": "xyz.waozi.inbe.verification",
|
||||
"version_code": 197,
|
||||
"version_name": "2.1.60"
|
||||
},
|
||||
"device": {
|
||||
"model": "moto e6 play",
|
||||
"android": "9"
|
||||
},
|
||||
"practice": {
|
||||
"name": "Wim Hof",
|
||||
"seconds": 59.68,
|
||||
"frames": 3446,
|
||||
"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-29T08:05:33+00:00"
|
||||
}
|
||||
@@ -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
@@ -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
|
||||
|
||||
@@ -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
@@ -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):
|
||||
|
||||
@@ -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()
|
||||
+16
-6
@@ -1,4 +1,5 @@
|
||||
#import, file "app_types.zi";
|
||||
#import, file "app_properties.zi";
|
||||
#import, file "route_types.zi";
|
||||
#import, file "../core/types.zi";
|
||||
#import, file "app_route_state.zi";
|
||||
@@ -90,14 +91,16 @@ app_launcher_update_drag :: (app: *InnerBreeze, point: Vector2) {
|
||||
// Only the explicit handle captures a drag. The card retains its ordinary
|
||||
// click and scroll gestures, even after another app has been moved.
|
||||
app_launcher_drag_handle :: (app: *InnerBreeze, card: ButtonProps,
|
||||
route: s32, vertical: bool) {
|
||||
route: s32, vertical: bool, key: u64) {
|
||||
if !app.launcher_editing { return }
|
||||
key := card.key
|
||||
node := TreeSubmitted(app.ui.session, TreeCurrentParent(app.ui.session), key, WidgetKindButton)
|
||||
TreeSetLabel(app.ui.session, node, LocaleText("launcher_move_app"))
|
||||
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 +109,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
|
||||
}
|
||||
@@ -353,6 +356,9 @@ app_draw_launcher :: (app: *InnerBreeze, dock_drawn: bool) {
|
||||
// Favorite order is account-owned. The shared module filters and groups
|
||||
// these entries, including native routes and undownloaded offers alike.
|
||||
for index: cast(s32)0..app.launcher_favorite_count - 1 {
|
||||
if !app.launcher_editing && AppPropertiesHidden(LauncherRouteName(app.launcher_favorites[index])) {
|
||||
continue
|
||||
}
|
||||
launcher_screen_routes[count] = app.launcher_favorites[index]
|
||||
count += 1
|
||||
}
|
||||
@@ -361,12 +367,16 @@ app_draw_launcher :: (app: *InnerBreeze, dock_drawn: bool) {
|
||||
for route: routes {
|
||||
if app_launcher_is_favorite(app, route) ||
|
||||
(AppNavNodeSlot(route) >= 0 && !app_nav_route_available(app, route)) { continue }
|
||||
if !app.launcher_editing && AppPropertiesHidden(LauncherRouteName(route)) {
|
||||
continue
|
||||
}
|
||||
more_catalog[more_catalog_count] = route
|
||||
more_catalog_count += 1
|
||||
}
|
||||
for offer: cast(s32)0..NodeAppOfferCount() - 1 {
|
||||
name := NodeAppOfferName(offer)
|
||||
if NodeAppOfferShown(offer) && NodeAppSlotFor(name) < 0 {
|
||||
if NodeAppOfferShown(offer) && NodeAppSlotFor(name) < 0 &&
|
||||
(app.launcher_editing || !AppPropertiesHidden(name)) {
|
||||
more_catalog[more_catalog_count] = -offer - 2
|
||||
more_catalog_count += 1
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
#import "button_widget"
|
||||
#import "control_props"
|
||||
// Native launcher policy around the shared Apps cards and menus. Routes,
|
||||
// account preferences and deferred mutations remain owned by Inbe.
|
||||
Controller :: #import "apps/controller";
|
||||
@@ -206,9 +208,12 @@ 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.
|
||||
handle := group.owner.launcher_editing && card.key == Rules.AppCardKey(TextUntilNul(entry.id[:]))
|
||||
if !handle { continue }
|
||||
// Editing exposes an explicit handle; the card keeps its own gestures.
|
||||
tile_key := Rules.AppCardKey(TextUntilNul(entry.id[:]))
|
||||
reorder_key := Rules.AppReorderKey(TextUntilNul(entry.id[:]))
|
||||
tile_button := card.key == tile_key
|
||||
reorder_button := card.key == reorder_key
|
||||
if !group.owner.launcher_editing || (!tile_button && !reorder_button) { continue }
|
||||
item := entry.route
|
||||
if item < 0 {
|
||||
for offer: cast(s32)0..NodeAppOfferCount() - 1 {
|
||||
@@ -218,10 +223,35 @@ 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)
|
||||
if reorder_button {
|
||||
tile := TreeSubmitted(group.owner.ui.session, TreeCurrentParent(group.owner.ui.session), tile_key, WidgetKindButton)
|
||||
if tile >= 0 {
|
||||
tile_card := card
|
||||
tile_card.key = tile_key
|
||||
tile_card.bounds = TreeNodeAt(group.owner.ui.session, tile).bounds
|
||||
app_launcher_drag_handle(group.owner, tile_card, item, group.owner.launcher_grid_view, reorder_key)
|
||||
}
|
||||
break
|
||||
}
|
||||
name := LauncherLibraryName(item)
|
||||
hidden := AppPropertiesHidden(name)
|
||||
visibility: ButtonProps
|
||||
visibility.key = card.key + cast(u64)30
|
||||
visibility.label = LocaleText(ifx hidden then "launcher_show_app" else "launcher_hide_app")
|
||||
visibility.icon_only = true
|
||||
visibility.icon_shape = ifx hidden then "S1.8rr:M3 12Q12 1 21 12Q12 23 3 12ZM15 12A3 3 0 1 1 9 12A3 3 0 1 1 15 12" else "S1.8rr:M3 12Q12 1 21 12Q12 23 3 12ZM3 3L21 21"
|
||||
visibility.selected = hidden
|
||||
visibility.emphasis = cast(ButtonEmphasis)ButtonEmphasis.ButtonEmphasisSoft
|
||||
visibility.bounds = Rectangle.{card.bounds.x + card.bounds.width - cast(float32)AppScale(44),
|
||||
card.bounds.y, cast(float32)AppScale(44), cast(float32)AppScale(44)}
|
||||
if Button(group.owner.ui.session, visibility) != 0 && AppPropertiesSetHidden(name, !hidden) {
|
||||
if !hidden && item >= 0 && app_launcher_is_favorite(group.owner, item) {
|
||||
group.owner.launcher_favorite_count = LauncherToggleFavorite(
|
||||
group.owner.launcher_favorites[:], group.owner.launcher_favorite_count, item)
|
||||
app_launcher_pins_changed(group.owner)
|
||||
}
|
||||
app_block_current_click(group.owner)
|
||||
}
|
||||
break
|
||||
}
|
||||
return called
|
||||
@@ -409,13 +439,15 @@ LauncherAppCatalogEntry :: (group: *LauncherAppGroup, bytes: *Vec(u8), route: s3
|
||||
LauncherAppQuoted(bytes, "icon_choice", AppPropertiesIcon(app_name))
|
||||
}
|
||||
favorite := route >= 0 && app_launcher_is_favorite(group.owner, route)
|
||||
BuilderPrint(bytes, ",\"hidden\":%", AppPropertiesHidden(
|
||||
ifx route >= 0 then LauncherRouteName(route) else NodeAppOfferName(offer)))
|
||||
// A blocked frame's actions are rejected in LauncherAppDrain. Marking the
|
||||
// cards disabled for that one frame changed the catalog twice whenever
|
||||
// Apps opened, and each change re-parses it in the Apps controller:
|
||||
// about 0.4 s on a slow phone.
|
||||
BuilderPrint(bytes, ",\"installed\":%,\"favorite\":%,\"bytes\":%,\"actions\":[\"open\"",
|
||||
BuilderPrint(bytes, ",\"installed\":%,\"favorite\":%,\"reorderable\":%,\"bytes\":%,\"actions\":[\"open\"",
|
||||
ifx installed then "true" else "false", ifx favorite then "true" else "false",
|
||||
size)
|
||||
group.owner.launcher_editing, size)
|
||||
if installed {
|
||||
if !builtin { BuilderPrint(bytes, ",\"uninstall\"") }
|
||||
BuilderPrint(bytes, ",\"%\"", ifx favorite then "unpin" else "pin")
|
||||
@@ -503,8 +535,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)
|
||||
|
||||
@@ -137,3 +137,17 @@ AppPropertiesSaveSeen :: (name: string, digest: string) -> bool {
|
||||
unused CopyCString(digest, app_properties[index].seen[:])
|
||||
return true
|
||||
}
|
||||
|
||||
// Hiding changes only launcher visibility; packages and saved data remain.
|
||||
AppPropertiesHidden :: (name: string) -> bool {
|
||||
value: [8]u8
|
||||
AppPropertiesRead("app_hidden_", name, value[:])
|
||||
return TextUntilNul(value[:]) == "1"
|
||||
}
|
||||
|
||||
AppPropertiesSetHidden :: (name: string, hidden: bool) -> bool {
|
||||
if name.count == 0 || name.count >= 32 {
|
||||
return false
|
||||
}
|
||||
return AppPropertiesStore("app_hidden_", name, ifx hidden then "1" else "0")
|
||||
}
|
||||
+14
-2
@@ -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) {
|
||||
|
||||
+31
-8
@@ -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
|
||||
@@ -109,6 +110,7 @@ SyncCoordinator :: struct {
|
||||
social_refresh_running: s32
|
||||
remote_sync_due: s32
|
||||
retry_requested: bool
|
||||
storage_recovery_attempted: bool
|
||||
}
|
||||
|
||||
SyncWorkerArgs :: struct {
|
||||
@@ -185,6 +187,14 @@ sync_unlock :: () {
|
||||
|
||||
app_sync_record_result :: (result: s32) {
|
||||
SettingsStoreInt("sync_last_result", result)
|
||||
// A refused mixed upload gets one fresh attempt with the node's full
|
||||
// state, which selects free tracking ahead of pending custom content.
|
||||
if result == SYNC_STORAGE_FULL && !g_sync.storage_recovery_attempted {
|
||||
g_sync.storage_recovery_attempted = true
|
||||
g_sync.retry_requested = true
|
||||
} else if result == SYNC_OK {
|
||||
g_sync.storage_recovery_attempted = false
|
||||
}
|
||||
if retry_is_temporary(result) && AppSyncNodeFailover() {
|
||||
g_sync.dirty_sync_at = GetTime() + 1.0
|
||||
}
|
||||
@@ -254,6 +264,7 @@ app_clear_disconnected_sync_work :: () {
|
||||
g_sync.remote_sync_due = 0
|
||||
g_sync.retry_requested = false
|
||||
g_sync.social_retry_at = 0.0
|
||||
g_sync.storage_recovery_attempted = false
|
||||
g_sync.social_retry_attempt = 0
|
||||
g_sync.social_refresh_pending = 0
|
||||
SocialQueueClear()
|
||||
@@ -402,7 +413,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 +444,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 +510,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 +895,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 +935,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
|
||||
}
|
||||
@@ -1166,6 +1183,12 @@ app_auto_sync :: (app: *InnerBreeze) -> s32 {
|
||||
}
|
||||
now = GetTime()
|
||||
g_sync.last_input_at = now
|
||||
// New local work must get an attempt even while old charged content
|
||||
// waits for space. Repeated refusals without new work still stop.
|
||||
if SettingsReadInt("sync_last_result", SYNC_OK) == SYNC_STORAGE_FULL {
|
||||
g_sync.storage_recovery_attempted = false
|
||||
g_sync.retry_requested = true
|
||||
}
|
||||
due = now + sync_input_quiet_seconds
|
||||
if g_sync.dirty_sync_at <= 0.0 || due < g_sync.dirty_sync_at {
|
||||
g_sync.dirty_sync_at = due
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -1088,7 +1088,7 @@ setup_screenshot_scene :: (app: *InnerBreeze, request: *ScreenshotRequest) {
|
||||
unused AppCopyText("{\"ready\":false,\"products\":[],\"purchases\":[]}", dew_play.state[:])
|
||||
profile_play_prices_deadline = GetTime() + 0.5
|
||||
} else {
|
||||
unused AppCopyText("{\"ready\":true,\"products\":[{\"id\":\"dew_100\",\"price\":\"$6.99\"},{\"id\":\"dew_500\",\"price\":\"$32.99\"},{\"id\":\"dew_1000\",\"price\":\"$62.99\"},{\"id\":\"dew_5000\",\"price\":\"$304.99\"}],\"purchases\":[]}", dew_play.state[:])
|
||||
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" {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -2,7 +2,10 @@
|
||||
// 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 :: "a4c32798cb17c56ffe052cd5a35ba800df82674fdf851ab79b00720455d13398"
|
||||
|
||||
// Existing collections keep the controller from before the reorder gutter.
|
||||
AppsControllerBeforeReorderGutter :: "a1b56259e0b8581188459cc366736feacda3969b2db3055e8425a81065b065e1"
|
||||
|
||||
// Existing collections keep the controller from before shared saved records.
|
||||
AppsControllerBeforeSharedRecords :: "a99851fc40d67a8ca820841722ce2ddde5ca51844e0778c4762681570c488289"
|
||||
@@ -23,3 +26,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,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
|
||||
@@ -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
|
||||
}
|
||||
@@ -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") ||
|
||||
|
||||
@@ -496,6 +496,8 @@ NodeTreeStart :: (runner: *NodeAppRunner, bytes: string, verified: string,
|
||||
unused AppHostTrustHarness(host, AppsControllerBeforeSmallCovers)
|
||||
unused AppHostTrustHarness(host, AppsControllerBeforeDownload)
|
||||
unused AppHostTrustHarness(host, AppsControllerBeforeSeparateDownloads)
|
||||
unused AppHostTrustHarness(host, AppsControllerBeforeInstalledDownloads)
|
||||
unused AppHostTrustHarness(host, AppsControllerBeforeReorderGutter)
|
||||
platform := AppPlatform.{.context = cast(*void)runner, .allows = NodeTreeAllows, .call = NodeTreeCall,
|
||||
.widgets = NodeTreeWidgets, .save = NodeTreeSave, .state = NodeTreeState,
|
||||
.effect = NodeTreeEffect, .bundle = NodeChildBundle,
|
||||
|
||||
@@ -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,7 +3,7 @@ PackageBundledVersion :: (index: s32) -> string {
|
||||
if index < 0 || index >= 7 {
|
||||
return ""
|
||||
}
|
||||
versions: [7]string = .["2.1.55", "1.1.23", "1.3.10", "1.6.4", "1.3.19", "1.5.22", "1.0.24"]
|
||||
versions: [7]string = .["2.1.61", "1.1.27", "1.3.14", "1.6.8", "1.3.24", "1.5.26", "1.0.28"]
|
||||
return versions[index]
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ PackageBundledSequence :: (index: s32) -> s32 {
|
||||
if index < 0 || index >= 7 {
|
||||
return 0
|
||||
}
|
||||
sequences: [7]s32 = .[52, 31, 33, 33, 36, 40, 25]
|
||||
sequences: [7]s32 = .[58, 35, 37, 37, 41, 44, 29]
|
||||
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
@@ -3,7 +3,7 @@
|
||||
|
||||
#define APP_VERSION_MAJOR 2
|
||||
#define APP_VERSION_MINOR 1
|
||||
#define APP_VERSION_PATCH 55
|
||||
#define APP_VERSION_STRING "2.1.55"
|
||||
#define APP_VERSION_PATCH 60
|
||||
#define APP_VERSION_STRING "2.1.60"
|
||||
|
||||
#endif
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
// Generated by update_version.sh from CHANGELOG.md. Do not edit by hand.
|
||||
VersionMajor :: 2
|
||||
VersionMinor :: 1
|
||||
VersionPatch :: 55
|
||||
VersionString :: "2.1.55"
|
||||
VersionPatch :: 60
|
||||
VersionString :: "2.1.60"
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
#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";
|
||||
@@ -539,8 +540,9 @@ ProfileTopUpPlayContent :: (app: *InnerBreeze, x: s32, y: *s32, width: s32, draw
|
||||
billing: PlayBillingState
|
||||
unused PlayBillingRead(TextUntilNul(dew_play.state[:]), *billing)
|
||||
busy := dew_operation.active || TextUntilNul(dew_play.status[:]) == "verifying"
|
||||
packs: [4]string = .["dew_100", "dew_500", "dew_1000", "dew_5000"]
|
||||
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 {
|
||||
@@ -559,11 +561,24 @@ ProfileTopUpPlayContent :: (app: *InnerBreeze, x: s32, y: *s32, width: s32, draw
|
||||
arguments: [1]FormatArg = .[FormatArg.{.text = pack[4:], .is_text = true}]
|
||||
unused FormatTemplate(LocaleText("profile_dew_play_pack"), arguments[:], label[:])
|
||||
price := TextUntilNul(product.price[:])
|
||||
if ProfileDewButton(app, TextUntilNul(label[:]), x, y, width, busy, draw, 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)
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
+43
-23
@@ -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()
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
@@ -19,6 +19,7 @@ Habits :: #import, file "storage_habits.zi";
|
||||
#import, file "sync_state.zi";
|
||||
#import, file "storage_settings.zi";
|
||||
#import, file "sync_record_crypto.zi";
|
||||
#import, file "sync_storage_usage.zi";
|
||||
#import, file "storage_json_sql.zi";
|
||||
#import, file "sync_apply.zi";
|
||||
#import, file "sync_page_store.zi";
|
||||
@@ -55,6 +56,13 @@ BuildStoredSyncPayload :: (user_id_hash: string, public_key_hex: string, maximum
|
||||
if maximum_records > 0 && storage_meta_int64(STORAGE_SYNC_BACKFILL_KEY, 0) == 0 {
|
||||
storage_enqueue_all_sync_state()
|
||||
}
|
||||
if maximum_records > 0 && storage_meta_int64("sync_storage_notes_v1", 0) == 0 {
|
||||
if exec_sql("INSERT INTO sync_outbox(entity_type,entity_id,local_date,queued_at) SELECT 'session',id,0,updated_at FROM sessions WHERE user_id=(SELECT id FROM users LIMIT 1) ON CONFLICT(entity_type,entity_id,local_date) DO NOTHING") == 0 ||
|
||||
exec_sql("INSERT INTO sync_outbox(entity_type,entity_id,local_date,queued_at) SELECT 'habit_entry',id,0,updated_at FROM habit_entries WHERE user_id=(SELECT id FROM users LIMIT 1) ON CONFLICT(entity_type,entity_id,local_date) DO NOTHING") == 0 {
|
||||
return null
|
||||
}
|
||||
storage_set_meta_int64("sync_storage_notes_v1", 1)
|
||||
}
|
||||
// A node set not to store photos must not receive them from any queue.
|
||||
if storage_withhold_node_media() == 0 {
|
||||
return null
|
||||
@@ -87,9 +95,9 @@ BuildStoredSyncPayload :: (user_id_hash: string, public_key_hex: string, maximum
|
||||
if batch_limit > 64 && db_select_int64_text("SELECT EXISTS(SELECT 1 FROM sync_outbox WHERE entity_type='cell_record')", 0) != 0 {
|
||||
batch_limit = 64
|
||||
}
|
||||
through_seq = 0
|
||||
if maximum_records > 0 {
|
||||
through_seq = storage_sync_outbox_batch_seq(batch_limit)
|
||||
through_seq = storage_prepare_upload_receipts(batch_limit)
|
||||
if through_seq < 0 {
|
||||
return null
|
||||
}
|
||||
if storage_sync_records_download_first() {
|
||||
through_seq = 0
|
||||
@@ -243,7 +251,12 @@ ApplyStoredSyncResponse :: (response_json: string, page: *SyncPageState) -> s32
|
||||
if exec_sql("SAVEPOINT sync_apply") == 0 {
|
||||
return 0
|
||||
}
|
||||
storage_clear_uploaded_outbox(storage_state_handle().pending_sync_outbox_seq)
|
||||
if storage_state_handle().pending_sync_outbox_seq > 0 &&
|
||||
exec_sql("DELETE FROM sync_outbox WHERE seq IN (SELECT seq FROM sync_upload_receipts)") == 0 {
|
||||
exec_sql("ROLLBACK TO sync_apply")
|
||||
exec_sql("RELEASE sync_apply")
|
||||
return 0
|
||||
}
|
||||
if storage_apply_sync_records(response_json) == 0 || (page != null && !SaveStoredSyncPage(storage_get_setting_text("sync_server_url"), page)) {
|
||||
exec_sql("ROLLBACK TO sync_apply")
|
||||
exec_sql("RELEASE sync_apply")
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#import "text"
|
||||
#import "vec"
|
||||
#import, file "storage_settings.zi";
|
||||
#import, file "storage_core.zi";
|
||||
#import, file "sync_nodes.zi";
|
||||
#import, file "db.zi";
|
||||
#import, file "sql_query.zi";
|
||||
@@ -172,6 +173,23 @@ SyncRecordPackageSequence :: (response: string) {
|
||||
// A successful sync replaces the node's report and clears a full state.
|
||||
SyncNodeStorageRecordResponse :: (address: string, response: string) {
|
||||
SyncRecordPackageSequence(response)
|
||||
// A node may upgrade after this device. Refresh mixed records once it
|
||||
// advertises note accounting, including records just downloaded there.
|
||||
capabilities := FieldAt(response, 0, "server_capabilities")
|
||||
count := ArrayCount(response, capabilities)
|
||||
for index: cast(s32)0..count - 1 {
|
||||
capability: [64]u8
|
||||
length := ReadStringText(response, ElementAt(response, capabilities, index), capability[:])
|
||||
if length > 0 && TextFromBytes(capability[:length]) == "basic-storage-free-v1" {
|
||||
key := SyncNodeStorageKey(address, "basic_storage_v1")
|
||||
defer { PackageFree(key) }
|
||||
if key.count > 0 && storage_get_setting_text(key) != "1" {
|
||||
storage_set_meta_int64("sync_storage_notes_v1", 0)
|
||||
storage_set_setting_text(key, "1")
|
||||
}
|
||||
break
|
||||
}
|
||||
}
|
||||
storage: SyncNodeStorage
|
||||
if !SyncNodeStorageFromJson(response, *storage) {
|
||||
return
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
#import, file "storage_core.zi";
|
||||
#import, file "storage_settings.zi";
|
||||
#import, file "sync_record_codec.zi";
|
||||
#import, file "sync_storage_usage.zi";
|
||||
#import, file "sync_collections.zi";
|
||||
#import, file "entity_records.zi";
|
||||
#import, file "../apps/package_files.zi";
|
||||
@@ -274,6 +275,13 @@ storage_append_encrypted_record_json :: (json: *StorageJsonBuilder, key: *u8, co
|
||||
}
|
||||
storage_json_builder_append_text(json, ",")
|
||||
storage_json_builder_key_value_text(json, "content_hash", AppTextFromCString(*content_hash[0], ACCOUNT_PUBLIC_ID_HEX_SIZE))
|
||||
note_bytes := storage_sync_note_bytes(collection,
|
||||
AppTextFromCString(plain.data, cast(s32)(plain.len + 1)))
|
||||
if note_bytes >= 0 {
|
||||
// Charge UTF-8 note bytes, excluding encryption and structural fields.
|
||||
record_bytes := collection.count + record_id.count + key_id.count + 24 + sealed_len * 2 + 64
|
||||
storage_json_append_int_field(json, "free_bytes", record_bytes - note_bytes)
|
||||
}
|
||||
storage_json_builder_append_text(json, ",\"schema_version\":1")
|
||||
storage_json_builder_append_text(json, "}")
|
||||
ok = json.ok
|
||||
@@ -389,8 +397,8 @@ storage_append_encrypted_records_json :: (json: *StorageJsonBuilder, through_seq
|
||||
if storage_db_handle() == null {
|
||||
json.ok = 0
|
||||
} else {
|
||||
sql_cx13: [98] u8
|
||||
AppCopyText("SELECT seq,entity_type,entity_id,local_date,queued_at FROM sync_outbox WHERE seq<=?1 ORDER BY seq", sql_cx13[:])
|
||||
sql_cx13: [256] u8
|
||||
AppCopyText("SELECT seq,entity_type,entity_id,local_date,queued_at FROM sync_outbox WHERE seq<=?1 AND seq IN (SELECT seq FROM sync_upload_receipts) ORDER BY seq", sql_cx13[:])
|
||||
if SqlitePrepare(storage_db_handle(), *sql_cx13[0], -1, *stmt, null) == SQLITE_OK {
|
||||
SqliteBindInt64(stmt, 1, through_seq)
|
||||
while true {
|
||||
|
||||
@@ -0,0 +1,92 @@
|
||||
// Storage charges custom notes, not the structured fields around them.
|
||||
#import, file "sqlite.zi";
|
||||
#import, file "db.zi";
|
||||
#import, file "state.zi";
|
||||
#import, file "sql_query.zi";
|
||||
#import "text_buffer"
|
||||
#import, file "storage_settings.zi";
|
||||
#import, file "sync_node_storage.zi";
|
||||
#import, file "storage_core.zi";
|
||||
#import, file "../app/text_buffers.zi";
|
||||
|
||||
// -1 means this is ordinary content, whose complete encrypted record counts.
|
||||
storage_sync_note_bytes :: (collection: string, plain: string) -> s64 {
|
||||
query: string
|
||||
if collection == "private.inbe.v1.sessions" {
|
||||
query = "SELECT LENGTH(CAST(COALESCE(json_extract(?1,'$.note'),'') AS BLOB))+LENGTH(CAST(COALESCE(json_extract(?1,'$.tags'),'') AS BLOB))"
|
||||
} else if collection == "private.inbe.v1.habit-entries" {
|
||||
query = "SELECT COALESCE(SUM(LENGTH(CAST(json_extract(value,'$.value') AS BLOB))),0) FROM json_each(COALESCE(NULLIF(json_extract(?1,'$.answers'),''),'[]')) WHERE json_extract(value,'$.type')='text'"
|
||||
} else {
|
||||
return -1
|
||||
}
|
||||
statement: *void
|
||||
if SqlitePrepareText(storage_db_handle(), query, -1, *statement, null) != SQLITE_OK {
|
||||
return -1
|
||||
}
|
||||
defer { SqliteFinalize(statement) }
|
||||
bind_text(statement, 1, plain)
|
||||
if SqliteStep(statement) != SQLITE_ROW {
|
||||
return -1
|
||||
}
|
||||
return SqliteColumnInt64(statement, 0)
|
||||
}
|
||||
|
||||
// Select free tracking before charged uploads. Receipts name only records
|
||||
// actually submitted, so a full Diary cannot hold later progress behind it.
|
||||
StorageFreeOutboxSQL :: #string SQL_END
|
||||
SELECT o.seq FROM sync_outbox o WHERE
|
||||
o.entity_type IN ('habit','habit_day','habit_setting','habit_change','habit_reward','habit_coin','app_preference','app_order','app_install')
|
||||
OR (o.entity_type='entity_record' AND (o.entity_id GLOB 'entity.game-progress.*' OR o.entity_id GLOB 'entity.profile.*'))
|
||||
OR (o.entity_type='cell_record' AND o.entity_id GLOB 'cell.achievement.*')
|
||||
OR (o.entity_type='session' AND EXISTS(SELECT 1 FROM sessions s WHERE s.id=o.entity_id AND s.user_id=(SELECT id FROM users LIMIT 1) AND (s.deleted_at>0 OR (s.note='' AND s.tags=''))))
|
||||
OR (o.entity_type='habit_entry' AND EXISTS(SELECT 1 FROM habit_entries e WHERE e.id=o.entity_id AND e.user_id=(SELECT id FROM users LIMIT 1) AND (e.deleted_at>0 OR NOT EXISTS(SELECT 1 FROM json_each(CASE WHEN json_valid(e.answers) THEN e.answers ELSE '[]' END) a WHERE json_extract(a.value,'$.type')='text' AND COALESCE(json_extract(a.value,'$.value'),'')<>''))))
|
||||
SQL_END;
|
||||
|
||||
storage_prepare_upload_receipts :: (limit: s32) -> s64 {
|
||||
if exec_sql("CREATE TEMP TABLE IF NOT EXISTS sync_upload_receipts(seq INTEGER PRIMARY KEY)") == 0 ||
|
||||
exec_sql("DELETE FROM sync_upload_receipts") == 0 {
|
||||
return -1
|
||||
}
|
||||
if limit <= 0 {
|
||||
return 0
|
||||
}
|
||||
query: [4096]u8
|
||||
unused AppCopyText("INSERT INTO sync_upload_receipts SELECT seq FROM (", query[:])
|
||||
storage := SyncNodeStorageRead(storage_get_setting_text("sync_server_url"))
|
||||
if storage.full {
|
||||
unused AppAppendText(StorageFreeOutboxSQL, query[:])
|
||||
} else {
|
||||
unused AppAppendText("SELECT seq FROM sync_outbox", query[:])
|
||||
}
|
||||
unused AppAppendText(") ORDER BY seq LIMIT ?1", query[:])
|
||||
statement: *void
|
||||
if SqlitePrepareText(storage_db_handle(), TextUntilNul(query[:]), -1, *statement, null) != SQLITE_OK {
|
||||
return -1
|
||||
}
|
||||
unused SqliteBindInt64(statement, 1, cast(s64)limit)
|
||||
step := SqliteStep(statement)
|
||||
SqliteFinalize(statement)
|
||||
if step != SQLITE_DONE {
|
||||
return -1
|
||||
}
|
||||
if db_select_int64_text("SELECT COUNT(*) FROM sync_upload_receipts", 0) == 0 {
|
||||
// A numeric edit to an entry with an unchanged note can still fit.
|
||||
// Try mixed tracking separately so a queued photo cannot reject it.
|
||||
fallback := "INSERT INTO sync_upload_receipts SELECT seq FROM sync_outbox ORDER BY seq LIMIT ?1"
|
||||
if storage.full {
|
||||
fallback = "INSERT INTO sync_upload_receipts SELECT seq FROM sync_outbox ORDER BY CASE WHEN entity_type IN ('session','habit_entry') THEN 0 ELSE 1 END,queued_at DESC,seq DESC LIMIT ?1"
|
||||
limit = 1
|
||||
}
|
||||
if SqlitePrepareText(storage_db_handle(), fallback,
|
||||
-1, *statement, null) != SQLITE_OK {
|
||||
return -1
|
||||
}
|
||||
unused SqliteBindInt64(statement, 1, cast(s64)limit)
|
||||
step = SqliteStep(statement)
|
||||
SqliteFinalize(statement)
|
||||
if step != SQLITE_DONE {
|
||||
return -1
|
||||
}
|
||||
}
|
||||
return db_select_int64_text("SELECT COALESCE(MAX(seq),0) FROM sync_upload_receipts", 0)
|
||||
}
|
||||
+32
-36
@@ -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"")
|
||||
@@ -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")
|
||||
@@ -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()
|
||||
@@ -85,8 +85,15 @@ with contextlib.ExitStack() as stack:
|
||||
driver.press(label="Retry", role="button")
|
||||
driver.wait(contains="Loading Google Play prices", role="text")
|
||||
else:
|
||||
for amount in (100, 500, 1000, 5000):
|
||||
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()
|
||||
|
||||
@@ -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")
|
||||
|
||||
+69
-11
@@ -26,11 +26,14 @@ 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")
|
||||
parser.add_argument("--measure", action="store_true", help="Measure cold Apps opens in disposable profiles")
|
||||
parser.add_argument("--dock-only", action="store_true")
|
||||
parser.add_argument("--visibility-only", action="store_true")
|
||||
parser.add_argument("--properties-only", action="store_true",
|
||||
help="Rename an app and change its icon in Apps › Properties")
|
||||
parser.add_argument("--profile-navigation-only", action="store_true",
|
||||
@@ -187,7 +190,7 @@ with contextlib.ExitStack() as stack:
|
||||
# Each section's shared Apps group sits inside the page's scroll.
|
||||
grid = [node for node in tree if node["kind"] == "button"
|
||||
and under(tree, node, "scroll") and not under(tree, node, "navigation_bar")
|
||||
and node["label"] not in ("Install", "Download", "App options", "Move app")]
|
||||
and node["label"] not in ("Install", "Download", "App options", "Move app", "Hide app", "Show app")]
|
||||
divider = [node for node in tree if node["kind"] == "separator" and under(tree, node, "scroll")]
|
||||
more_top = divider[0]["y"] if divider else float("inf")
|
||||
pinned = [node for node in grid if node["y"] < more_top]
|
||||
@@ -397,9 +400,9 @@ with contextlib.ExitStack() as stack:
|
||||
assert 0 not in active_pins, "Legacy Profile pin was not removed"
|
||||
if width == 390 and placement == 4 and not pinned:
|
||||
capture(window, name)
|
||||
reveal_action("Connect Account")
|
||||
driver.press(label="Connect Account", role="button")
|
||||
driver.wait(contains="Create", role="button")
|
||||
reveal_action("Import Account Key")
|
||||
driver.press(label="Import Account Key", role="button")
|
||||
driver.wait(label="Choose key file", role="button")
|
||||
one_header("Profile")
|
||||
driver.press(label="Back", role="button")
|
||||
driver.wait(label="Change picture", role="button", visible=False)
|
||||
@@ -407,9 +410,9 @@ with contextlib.ExitStack() as stack:
|
||||
for label in ("Today", "Active days", "Sessions"):
|
||||
driver.wait(label=label, role="text", visible=False)
|
||||
assert not driver.find(label="Activity", role="button"), "Inline Activity still has a route"
|
||||
reveal_action("Manage data")
|
||||
driver.press(label="Manage data", role="button")
|
||||
one_header("Data")
|
||||
reveal_action("Friends")
|
||||
driver.press(label="Friends", role="button")
|
||||
one_header("Friends")
|
||||
driver.press(label="Back", role="button")
|
||||
driver.wait(label="Change picture", role="button", visible=False)
|
||||
one_header("Profile")
|
||||
@@ -417,7 +420,7 @@ with contextlib.ExitStack() as stack:
|
||||
driver.wait(label="Pinned")
|
||||
assert not driver.find(role="title_bar", visible=True)
|
||||
print(f"{name}: one header and complete Back stack passed", flush=True)
|
||||
print("Profile: one header, Account/Data Back stack, inline Activity, pinned/unpinned, saved top/bottom/side navigation passed")
|
||||
print("Profile: one header, account import/Friends Back stack, inline Activity, pinned/unpinned, saved top/bottom/side navigation passed")
|
||||
|
||||
if arguments.profile_identity_only:
|
||||
with tempfile.TemporaryDirectory(prefix="inbe-profile-identity-") as temporary:
|
||||
@@ -513,6 +516,12 @@ with contextlib.ExitStack() as stack:
|
||||
wait_setting(profile, "launcher_grid_view", 1)
|
||||
pinned, more, tree = cards()
|
||||
assert all(abs(card["height"] - 88) <= 1 for card in pinned + more), cards()
|
||||
handles = driver.find(label="Move app", role="button", visible=True)
|
||||
for card in pinned + more:
|
||||
matches = [node for node in handles
|
||||
if abs(node["y"] - card["y"]) < 2
|
||||
and abs(node["x"] + node["width"] - card["x"]) < 2]
|
||||
assert len(matches) == 1, (card, matches)
|
||||
if width > 500:
|
||||
assert abs(pinned[0]["y"] - pinned[1]["y"]) < 1 and pinned[1]["x"] > pinned[0]["x"], pinned
|
||||
capture(window, f"views-{width}-grid")
|
||||
@@ -674,7 +683,7 @@ with contextlib.ExitStack() as stack:
|
||||
print("Fitted dock: 3–5 pins, narrow windows, zoom, top/bottom and both rails passed")
|
||||
raise SystemExit(0)
|
||||
|
||||
if arguments.properties_only:
|
||||
if arguments.properties_only or arguments.visibility_only:
|
||||
with tempfile.TemporaryDirectory(prefix="inbe-properties-") as temporary:
|
||||
profile = Path(temporary)
|
||||
user = None
|
||||
@@ -691,6 +700,46 @@ with contextlib.ExitStack() as stack:
|
||||
def labels():
|
||||
return [item["label"] for item in navigation()]
|
||||
|
||||
if arguments.visibility_only:
|
||||
def card_names():
|
||||
pinned, more, _ = cards()
|
||||
return [node["label"] for node in pinned + more]
|
||||
|
||||
def visibility_action(label, action):
|
||||
pinned, more, tree = cards()
|
||||
card = next(node for node in pinned + more if node["label"] == label)
|
||||
buttons = [node for node in tree if node["label"] == action
|
||||
and card["x"] <= node["x"] < card["x"] + card["width"]
|
||||
and card["y"] <= node["y"] < card["y"] + card["height"]]
|
||||
assert len(buttons) == 1, (card, buttons)
|
||||
press(buttons[0])
|
||||
|
||||
with application(profile, "visibility", width=390, height=844):
|
||||
open_apps()
|
||||
installed_before = {key: value for key, value in settings(profile).items()
|
||||
if key.startswith("app_used_")}
|
||||
driver.press(label="Edit apps", role="button")
|
||||
driver.wait(label="Done", role="button")
|
||||
visibility_action("Habits", "Hide app")
|
||||
wait_setting(profile, "app_hidden_habits", "1")
|
||||
assert "Habits" in card_names(), "Edit must keep hidden apps reachable"
|
||||
driver.press(label="Done", role="button")
|
||||
wait_for(lambda: "Habits" not in card_names(), "Hidden app remains in Apps")
|
||||
assert "Habits" not in labels(), "Hidden app remains pinned"
|
||||
with application(profile, "visibility-restart", width=390, height=844):
|
||||
open_apps()
|
||||
assert "Habits" not in card_names(), "Restart lost hidden state"
|
||||
driver.press(label="Edit apps", role="button")
|
||||
driver.wait(label="Done", role="button")
|
||||
visibility_action("Habits", "Show app")
|
||||
wait_setting(profile, "app_hidden_habits", "0")
|
||||
driver.press(label="Done", role="button")
|
||||
wait_for(lambda: "Habits" in card_names(), "Restored app is missing")
|
||||
assert {key: value for key, value in settings(profile).items()
|
||||
if key.startswith("app_used_")} == installed_before, "Hiding changed app installation"
|
||||
print("Launcher visibility: Edit, hide, restart and restore passed")
|
||||
raise SystemExit(0)
|
||||
|
||||
def open_properties(label):
|
||||
pinned, more, tree = cards()
|
||||
card = next(card for card in pinned + more if card["label"] == label)
|
||||
@@ -775,6 +824,9 @@ with contextlib.ExitStack() as stack:
|
||||
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 +841,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())
|
||||
@@ -907,6 +960,8 @@ with contextlib.ExitStack() as stack:
|
||||
assert favorites(profile) == [11, 1, 2], "Restart changed personal pins"
|
||||
assert settings(profile)["language_setup_done"] == "1"
|
||||
assert [item["label"] for item in navigation()] == ["Diary", "Habits", "Practice", "Apps"]
|
||||
if arguments.drag_only:
|
||||
continue
|
||||
with application(profile, name + "-manage", width, height) as (window, log):
|
||||
open_apps()
|
||||
with database(profile) as db:
|
||||
@@ -955,4 +1010,7 @@ with contextlib.ExitStack() as stack:
|
||||
open_profile(log)
|
||||
assert favorites(profile) == []
|
||||
check_profile_navigation()
|
||||
print("Launcher: first-run voice question, desktop defaults, clean sections, click/hold/drag, profile and persistence passed")
|
||||
if arguments.drag_only:
|
||||
print("Launcher: click/hold/scroll, edit-only reorder, saved order and Profile navigation passed")
|
||||
else:
|
||||
print("Launcher: first-run voice question, desktop defaults, clean sections, click/hold/drag, profile and persistence passed")
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
@@ -75,7 +75,8 @@ chess_you_lost
|
||||
chess_you_resigned
|
||||
chess_you_won
|
||||
chess_your_move
|
||||
elist_refresh
|
||||
elist_share_detail
|
||||
elist_no_friends
|
||||
elist_accepted
|
||||
launcher_guide_manage
|
||||
launcher_guide_profile
|
||||
@@ -6,7 +6,9 @@ import json
|
||||
import os
|
||||
from pathlib import Path
|
||||
import re
|
||||
import shutil
|
||||
import sqlite3
|
||||
import struct
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
@@ -18,8 +20,24 @@ from ui_driver import UiDriver
|
||||
ROOT = Path(__file__).resolve().parents[1]
|
||||
sys.path.insert(0, str(ROOT / 'scripts'))
|
||||
from practice_content import bundle_assets
|
||||
sys.path.insert(0, str(ROOT.parent / 'shovey/tests'))
|
||||
from inbe_apps import open_arcade
|
||||
|
||||
def open_arcade(driver):
|
||||
driver.press(label='Apps', role='button')
|
||||
if not driver.find(label='Arcade', role='button', visible=True):
|
||||
driver.press(label='Find an app', role='text_field')
|
||||
driver.type('Arcade')
|
||||
driver.press(label='Arcade', role='button')
|
||||
deadline = time.monotonic() + 60
|
||||
while driver.find(label='Find an app', role='text_field', visible=True):
|
||||
assert time.monotonic() < deadline, 'Arcade did not open: ' + driver.text()
|
||||
cancel = driver.find(label='Cancel', role='button', visible=True)
|
||||
if cancel:
|
||||
downloads = driver.find(label='Download', role='button', visible=True)
|
||||
nearest = min(range(len(downloads)), key=lambda at: abs(downloads[at]['y'] - cancel[0]['y']))
|
||||
driver.press(label='Download', role='button', index=nearest)
|
||||
elif driver.find(label='Ready to open', role='text', visible=True):
|
||||
driver.press(label='Open', role='button')
|
||||
time.sleep(.1)
|
||||
|
||||
BINARY, CATALOG = (Path(value).resolve() for value in sys.argv[1:3])
|
||||
BUNDLE = Path(sys.argv[3]).resolve() if len(sys.argv) > 3 else ROOT / 'build/inbe-full.zx'
|
||||
@@ -32,14 +50,74 @@ catalog_assets = bundle_assets(CATALOG.read_bytes())
|
||||
catalog = json.loads(catalog_assets['assets/apps/catalog.json'])
|
||||
assert catalog['id'] == 'inbe.arcade'
|
||||
assert all(entry['bundle'] not in catalog_assets for entry in catalog['children'])
|
||||
controller_digest = hashlib.sha256(catalog_assets[catalog['harness']]).hexdigest()
|
||||
host_controller = bundle_assets(BUNDLE.read_bytes())['assets/apps/apps.zx']
|
||||
assert controller_digest == hashlib.sha256(host_controller).hexdigest(), 'Catalog uses another controller'
|
||||
controller_digest = hashlib.sha256(host_controller).hexdigest()
|
||||
if catalog['harness'] in catalog_assets:
|
||||
assert controller_digest == hashlib.sha256(catalog_assets[catalog['harness']]).hexdigest(), 'Catalog uses another controller'
|
||||
classic = next(entry for entry in catalog['children'] if entry['expected_id'] == 'shovey')
|
||||
payloads = CATALOG.with_suffix('.games')
|
||||
game = (payloads / (classic['sha256'] + '.zx')).read_bytes()
|
||||
assert hashlib.sha256(game).hexdigest() == classic['sha256']
|
||||
requests = []
|
||||
updated_game = None
|
||||
updated_digest = None
|
||||
|
||||
|
||||
def rewrite_assets(source, destination, replacements=None, additions=None):
|
||||
"""Keep executable sections intact while streaming fixture resource changes."""
|
||||
replacements = replacements or {}
|
||||
additions = additions or {}
|
||||
with source.open('rb') as incoming, destination.open('wb') as outgoing:
|
||||
def number():
|
||||
return struct.unpack('<I', incoming.read(4))[0]
|
||||
|
||||
def skip_text():
|
||||
incoming.seek(number(), 1)
|
||||
|
||||
assert incoming.read(8) == b'ZX\0\0\x1a\0\0\0'
|
||||
skip_text(); skip_text()
|
||||
for _ in range(number()):
|
||||
skip_text(); skip_text()
|
||||
for _ in range(number()):
|
||||
for _ in range(7):
|
||||
skip_text()
|
||||
incoming.seek(8, 1); skip_text(); incoming.seek(4, 1)
|
||||
for _ in range(number()):
|
||||
for _ in range(3):
|
||||
skip_text()
|
||||
incoming.seek(number(), 1)
|
||||
count_at = incoming.tell()
|
||||
count = number()
|
||||
incoming.seek(0)
|
||||
outgoing.write(incoming.read(count_at))
|
||||
incoming.seek(4, 1)
|
||||
outgoing.write(struct.pack('<I', count + len(additions)))
|
||||
for _ in range(count):
|
||||
name = incoming.read(number())
|
||||
length = number()
|
||||
outgoing.write(struct.pack('<I', len(name)) + name)
|
||||
replacement = replacements.get(name.decode())
|
||||
if replacement is not None:
|
||||
outgoing.write(struct.pack('<I', len(replacement)) + replacement)
|
||||
incoming.seek(length, 1)
|
||||
else:
|
||||
outgoing.write(struct.pack('<I', length))
|
||||
remaining = length
|
||||
while remaining:
|
||||
block = incoming.read(min(remaining, 65536))
|
||||
assert block, 'Truncated fixture bundle'
|
||||
outgoing.write(block)
|
||||
remaining -= len(block)
|
||||
assert incoming.read(1) == b''
|
||||
for name, content in additions.items():
|
||||
encoded = name.encode()
|
||||
outgoing.write(struct.pack('<I', len(encoded)) + encoded)
|
||||
outgoing.write(struct.pack('<I', len(content)) + content)
|
||||
|
||||
|
||||
def digest_file(path):
|
||||
with path.open('rb') as source:
|
||||
return hashlib.file_digest(source, 'sha256').hexdigest()
|
||||
identities = dict(binary=str(BINARY), runtime_bundle=str(BUNDLE), catalog=str(CATALOG),
|
||||
binary_sha256=hashlib.sha256(BINARY.read_bytes()).hexdigest(),
|
||||
runtime_bundle_sha256=hashlib.sha256(BUNDLE.read_bytes()).hexdigest(),
|
||||
@@ -52,19 +130,24 @@ class Handler(http.server.BaseHTTPRequestHandler):
|
||||
def do_GET(self):
|
||||
requests.append(self.path)
|
||||
wanted = '/api/v2/packages/inbe.arcade/' + classic['sha256'] + '.zx'
|
||||
if self.path != wanted:
|
||||
upgrade = updated_digest and self.path == '/api/v2/packages/inbe.arcade/' + updated_digest + '.zx'
|
||||
if self.path != wanted and not upgrade:
|
||||
self.send_error(404)
|
||||
return
|
||||
# The first response has the correct length and a deliberately bad hash.
|
||||
body = game if len(requests) > 1 else game[:-1] + bytes([game[-1] ^ 1])
|
||||
self.send_response(200)
|
||||
self.send_header('Content-Length', str(len(body)))
|
||||
self.send_header('Content-Length', str(updated_game.stat().st_size if upgrade else len(game)))
|
||||
self.end_headers()
|
||||
try:
|
||||
for start in range(0, len(body), 65536):
|
||||
self.wfile.write(body[start:start + 65536])
|
||||
self.wfile.flush()
|
||||
time.sleep(.02)
|
||||
if upgrade:
|
||||
with updated_game.open('rb') as source:
|
||||
shutil.copyfileobj(source, self.wfile, 65536)
|
||||
else:
|
||||
body = game if len(requests) > 1 else game[:-1] + bytes([game[-1] ^ 1])
|
||||
for start in range(0, len(body), 65536):
|
||||
self.wfile.write(body[start:start + 65536])
|
||||
self.wfile.flush()
|
||||
time.sleep(.02)
|
||||
except (BrokenPipeError, ConnectionResetError):
|
||||
pass
|
||||
|
||||
@@ -84,6 +167,14 @@ def stop(process):
|
||||
|
||||
with contextlib.ExitStack() as stack:
|
||||
profile = Path(stack.enter_context(tempfile.TemporaryDirectory(prefix='child-download-', dir=OUTPUT)))
|
||||
active_catalog = profile / 'arcade.zx'
|
||||
rewrite_assets(CATALOG, active_catalog,
|
||||
replacements={'assets/apps/catalog.json': json.dumps(catalog).encode()})
|
||||
if 'art' in catalog:
|
||||
cache = profile / 'packages'
|
||||
cache.mkdir()
|
||||
art_digest = catalog['art']['sha256']
|
||||
shutil.copyfile(payloads / (art_digest + '.zx'), cache / ('child-inbe.arcade-' + art_digest + '.zx'))
|
||||
audio = profile / 'alsa.conf'
|
||||
audio.write_text('pcm.!default { type null }\n')
|
||||
server = http.server.ThreadingHTTPServer(('127.0.0.1', 0), Handler)
|
||||
@@ -98,9 +189,10 @@ with contextlib.ExitStack() as stack:
|
||||
env.pop(key, None)
|
||||
env.update(driver.environment())
|
||||
env.update(APP_DATA_ROOT=str(profile), APP_NO_TRAY='1', YUE_DESKTOP_RECOVERY='0',
|
||||
INBE_NODE_APP_FILE=str(CATALOG),
|
||||
INBE_NODE_APP_FILE=str(active_catalog),
|
||||
INBE_LOCAL_PACKAGE_ORIGIN='http://127.0.0.1:' + str(server.server_port),
|
||||
NO_PROXY='127.0.0.1', SDL_VIDEODRIVER='x11', LIBGL_ALWAYS_SOFTWARE='1',
|
||||
NO_PROXY='127.0.0.1', http_proxy='http://127.0.0.1:9', https_proxy='http://127.0.0.1:9',
|
||||
SDL_VIDEODRIVER='x11', LIBGL_ALWAYS_SOFTWARE='1',
|
||||
LP_NUM_THREADS='2', ALSA_CONFIG_PATH=str(audio))
|
||||
display_log = stack.enter_context((OUTPUT / 'display.log').open('w'))
|
||||
display = subprocess.Popen(['Xvfb', ':975', '-noreset', '-displayfd', '1',
|
||||
@@ -175,11 +267,11 @@ with contextlib.ExitStack() as stack:
|
||||
# Discovery continues after the first painted frame. The catalog must
|
||||
# stay open while its declared games are still absent.
|
||||
time.sleep(1)
|
||||
assert driver.find(label='Play', role='button', visible=True), driver.text()
|
||||
driver.press(label='Play', role='button')
|
||||
assert driver.find(label='Download', role='button', visible=True), driver.text()
|
||||
driver.press(label='Download', role='button', index=0)
|
||||
driver.wait(role='modal')
|
||||
assert not requests, 'Opening the dialog downloaded before consent'
|
||||
driver.press(label='Download', role='button')
|
||||
driver.press(label='Download', role='button', index=len(driver.find(label='Download', role='button', visible=True)) - 1)
|
||||
wait_for_download('Download failed')
|
||||
assert not driver.find(contains='Level 1 / ', visible=True), 'Corrupt bytes opened'
|
||||
driver.press(label='Try again', role='button')
|
||||
@@ -191,12 +283,52 @@ with contextlib.ExitStack() as stack:
|
||||
with application('offline-restart'):
|
||||
open_arcade(driver)
|
||||
driver.wait_idle(frames=4)
|
||||
driver.press(label='Play', role='button')
|
||||
driver.press(label=classic['title'], role='button', index=0)
|
||||
wait_for_download('Level 1 / ')
|
||||
assert len(requests) == count, 'Restart downloaded the cached game again'
|
||||
|
||||
# An updated root catalog retains the installed identity, even when the
|
||||
# game has a new exact digest. Only that game's update may be downloaded.
|
||||
updated_game = profile / 'updated-game.zx'
|
||||
rewrite_assets(payloads / (classic['sha256'] + '.zx'), updated_game,
|
||||
additions={'assets/' + classic['expected_id'] + '/test-update.txt': b'updated game fixture'})
|
||||
updated_digest = digest_file(updated_game)
|
||||
updated_catalog = json.loads(json.dumps(catalog))
|
||||
updated_child = next(entry for entry in updated_catalog['children'] if entry['id'] == classic['id'])
|
||||
updated_child.update(sha256=updated_digest, bytes=updated_game.stat().st_size, version='999.0.1')
|
||||
rewrite_assets(CATALOG, active_catalog,
|
||||
replacements={'assets/apps/catalog.json': json.dumps(updated_catalog).encode()})
|
||||
with sqlite3.connect(profile / 'inbe.db') as db:
|
||||
db.execute("UPDATE settings SET value='1' WHERE user_id=? AND key='package_updates_allowed'", (user,))
|
||||
save_identity = hashlib.sha256(('local-development\n' + classic['id']).encode()).hexdigest()
|
||||
save_key = 'nested.' + save_identity + '.test_progress'
|
||||
save_value = '{"level":7,"score":420}'
|
||||
db.execute('INSERT INTO settings(user_id,key,value,updated_at) VALUES(?,?,?,1)',
|
||||
(user, save_key, save_value))
|
||||
with application('catalog-update'):
|
||||
open_arcade(driver)
|
||||
deadline = time.monotonic() + 60
|
||||
while len(requests) == count and time.monotonic() < deadline:
|
||||
driver.wait_idle(frames=2)
|
||||
time.sleep(.05)
|
||||
assert requests[count:] == ['/api/v2/packages/inbe.arcade/' + updated_digest + '.zx'], requests
|
||||
driver.wait(label='App options', role='button', timeout=60)
|
||||
driver.press(label=classic['title'], role='button', index=0)
|
||||
wait_for_download('Level 1 / ')
|
||||
assert not driver.find(role='modal', visible=True), 'Installed game required installation again'
|
||||
count = len(requests)
|
||||
with application('updated-offline-restart'):
|
||||
open_arcade(driver)
|
||||
driver.press(label=classic['title'], role='button', index=0)
|
||||
wait_for_download('Level 1 / ')
|
||||
assert len(requests) == count, 'Updated cached game downloaded on restart'
|
||||
with sqlite3.connect(profile / 'inbe.db') as db:
|
||||
assert db.execute('SELECT value FROM settings WHERE user_id=? AND key=?',
|
||||
(user, save_key)).fetchone() == (save_value,), 'Saved game record changed during update'
|
||||
|
||||
(OUTPUT / 'result.json').write_text(json.dumps(dict(
|
||||
passed=True, **identities, requests=requests, percentages=percentages,
|
||||
corrupt_payload_rejected=True, automatic_open=True, offline_restart=True), indent=2) + '\n')
|
||||
corrupt_payload_rejected=True, automatic_open=True, offline_restart=True,
|
||||
installed_game_update=True, updated_offline_restart=True), indent=2) + '\n')
|
||||
|
||||
print('Separate game download: visible progress, corruption rejection, retry, automatic open and offline restart passed')
|
||||
print('Arcade local tests passed: download consent, corruption rejection, retry, installed catalog update, saved progress and offline restarts.')
|
||||
@@ -100,6 +100,19 @@ class PhoneCheckGateTest(unittest.TestCase):
|
||||
self.assertEqual(phone.adb.call_args_list, [mock.call("get-state")])
|
||||
phone.shell.assert_not_called()
|
||||
|
||||
def test_practice_failure_still_closes_the_owned_app(self):
|
||||
phone = mock.Mock()
|
||||
phone.host = "local"
|
||||
phone.adb.side_effect = [b"device\n", b"Success\n"]
|
||||
phone.pid.side_effect = ["", "4321", ""]
|
||||
phone.screenshot.side_effect = RuntimeError("fixture screenshot failed")
|
||||
with mock.patch.object(phone_check, "apk_identity", return_value={"package": "fixture.debug"}), \
|
||||
mock.patch.object(phone_check.time, "sleep"):
|
||||
with self.assertRaisesRegex(RuntimeError, "fixture screenshot failed"):
|
||||
phone_check.check(phone, self.root / "candidate.apk", 60, self.root)
|
||||
self.assertEqual(phone.shell.call_args, mock.call("am", "force-stop", "fixture.debug"))
|
||||
self.assertEqual(phone.pid.call_args, mock.call("fixture.debug"))
|
||||
|
||||
def test_missing_process_is_empty_but_adb_failure_is_not_ignored(self):
|
||||
phone = phone_check.Phone("local", "Fixture")
|
||||
with mock.patch.object(phone, "shell", side_effect=subprocess.CalledProcessError(
|
||||
|
||||
@@ -14,5 +14,7 @@ Answer :: () -> s32 {
|
||||
ProfilePictureSelected(999) != 41 { return 6 }
|
||||
if ProfilePictureFromRemote(1) != 42 || ProfilePictureFromRemote(11) != 65 ||
|
||||
ProfilePictureFromRemote(126) != 126 || ProfilePictureFromRemote(999) != 0 { return 7 }
|
||||
if ProfilePictureFromRemote(62) != 62 || ProfilePictureFromRemote(63) != 63 ||
|
||||
ProfilePictureFromRemote(64) != 64 { return 8 }
|
||||
return 42
|
||||
}
|
||||
@@ -7,6 +7,7 @@
|
||||
#import, file "../src/storage/data.zi";
|
||||
#import, file "../src/storage/state.zi";
|
||||
#import, file "../src/storage/db.zi";
|
||||
#import, file "../src/storage/sql_query.zi";
|
||||
#import, file "../src/storage/session_mood.zi";
|
||||
#import, file "../src/storage/storage_core.zi";
|
||||
#import, file "../src/storage/sync_outbox.zi";
|
||||
@@ -14,6 +15,7 @@
|
||||
#import, file "../src/storage/sync_state.zi";
|
||||
#import, file "../src/storage/storage_settings.zi";
|
||||
#import, file "../src/storage/entity_service.zi";
|
||||
#import, file "../src/storage/game_scores.zi";
|
||||
#import, file "../src/storage/sync_collections.zi";
|
||||
#import, file "../src/storage/sync_record_crypto.zi";
|
||||
#import, file "../src/storage/sync_exchange.zi";
|
||||
@@ -44,6 +46,7 @@
|
||||
#import, file "../src/apps/catalog.zi";
|
||||
#import, file "../src/storage/sync_nodes.zi";
|
||||
#import, file "../src/storage/sync_node_storage.zi";
|
||||
#import, file "../src/storage/sync_storage_usage.zi";
|
||||
#import, file "../src/storage/media_records.zi";
|
||||
#import, file "../src/storage/entity_records.zi";
|
||||
#import, file "../src/storage/entity_record_crypto.zi";
|
||||
@@ -2522,10 +2525,71 @@ test_entity_level_service :: () {
|
||||
storage_close()
|
||||
}
|
||||
|
||||
test_game_score_upgrade :: () {
|
||||
root := make_root("game-score-upgrade")
|
||||
check_true("open older game-score fixture", storage_init(root) != 0)
|
||||
storage_set_setting_text(GAME_SCORES_SETTING, "arcade\tarcade.shovey\tShovey\tlevels\t28\n")
|
||||
game_scores_loaded = false
|
||||
GameScoresLoad()
|
||||
check_int("older five-field score survives", game_score_count, 1)
|
||||
check_true("older puzzle score retains its levels", game_scores[0].value == 28 && !game_scores[0].run)
|
||||
check_true("Wurm best run is accepted", GameScoreReport("arcade", "xyz.waozi.wurm", "Apfelwurm", "run 58 1234"))
|
||||
check_true("invalid Wurm best run is rejected", !GameScoreReport("arcade", "xyz.waozi.wurm", "Apfelwurm", "run -1 1234"))
|
||||
game_scores_loaded = false
|
||||
GameScoresLoad()
|
||||
check_int("upgraded scores preserve both games", game_score_count, 2)
|
||||
check_true("old puzzle score survives new run serialization", game_scores[0].value == 28 && !game_scores[0].run)
|
||||
check_true("Wurm level and score survive reload", game_scores[1].run && game_scores[1].level == 58 && game_scores[1].value == 1234)
|
||||
check_true("Wurm uses the shared two-column metrics", GameScoreMetric("xyz.waozi.wurm", 0) == "score" && GameScoreMetric("xyz.waozi.wurm", 1) == "level")
|
||||
game_scores_loaded = false
|
||||
storage_close()
|
||||
}
|
||||
|
||||
test_storage_note_accounting :: () {
|
||||
root := make_root("sync-note-accounting")
|
||||
check_true("init quota accounting db", storage_init(root) != 0)
|
||||
set_account()
|
||||
storage_set_setting_text("sync_server_url", "https://api.waozi.xyz")
|
||||
check_true("session numbers have no charge", storage_sync_note_bytes(
|
||||
"private.inbe.v1.sessions", "{\"note\":\"\",\"tags\":\"\",\"rounds\":[{\"seconds\":999}]}") == 0)
|
||||
check_true("notes count UTF-8 bytes", storage_sync_note_bytes(
|
||||
"private.inbe.v1.sessions", "{\"note\":\"é日\",\"tags\":\"x\"}") == 6)
|
||||
check_true("numeric habit answers remain free", storage_sync_note_bytes(
|
||||
"private.inbe.v1.habit-entries", "{\"answers\":\"[{\\\"type\\\":\\\"number\\\",\\\"value\\\":\\\"12345\\\"}]\"}") == 0)
|
||||
check_true("only custom habit answers count", storage_sync_note_bytes(
|
||||
"private.inbe.v1.habit-entries", "{\"answers\":\"[{\\\"type\\\":\\\"number\\\",\\\"value\\\":\\\"12345\\\"},{\\\"type\\\":\\\"text\\\",\\\"value\\\":\\\"é日\\\"}]\"}") == 5)
|
||||
check_true("Diary keeps its full charge", storage_sync_note_bytes(
|
||||
LegacyPrivateAppsCollection, "{}") == -1)
|
||||
storage_set_meta_int64(STORAGE_SYNC_BACKFILL_KEY, 1)
|
||||
storage_set_meta_int64("sync_storage_notes_v1", 1)
|
||||
check_true("prepare tracking fixture", exec_sql("INSERT INTO habits(id,user_id,name,color_r,color_g,color_b,sync_mode,sync_activity,counter_enabled,sort_order,deleted_at,updated_at) VALUES('free-habit',(SELECT id FROM users LIMIT 1),'Basic tracking',10,20,30,0,0,1,1,0,1782300000)") != 0)
|
||||
exec_sql("DELETE FROM sync_outbox")
|
||||
check_true("queue charged Diary first", BundledAppRecordWrite("cell.diary.file.pending", "keep this pending"))
|
||||
unused storage_enqueue_sync_habit("free-habit")
|
||||
check_true("mark node full", SyncNodeStorageRecordFull("https://api.waozi.xyz",
|
||||
"{\"code\":\"storage_full\",\"account_storage\":{\"used_bytes\":100,\"limit_bytes\":1}}"))
|
||||
check_true("build free progress above quota", build_payload())
|
||||
check_true("later progress bypasses Diary", contains(payload(), "private.inbe.v1.habits") && !contains(payload(), "cell.diary.file.pending"))
|
||||
check_true("acknowledge free upload", storage_apply_sync_response_json(
|
||||
"{\"protocol_version\":6,\"server_version\":1,\"server_clock\":1,\"changes\":{\"encrypted_records\":[]}}") != 0)
|
||||
check_true("charged Diary remains queued", db_select_int64_text("SELECT COUNT(*) FROM sync_outbox WHERE entity_id='cell.diary.file.pending'", 0) == 1)
|
||||
check_true("only submitted tracking is acknowledged", db_select_int64_text("SELECT COUNT(*) FROM sync_outbox WHERE entity_id='free-habit'", 0) == 0)
|
||||
SyncNodeStorageRecordResponse("https://api.waozi.xyz",
|
||||
"{\"server_capabilities\":[\"basic-storage-free-v1\"]}")
|
||||
check_true("a newly upgraded node refreshes existing notes", storage_meta_int64("sync_storage_notes_v1", 1) == 0)
|
||||
storage_set_meta_int64("sync_storage_notes_v1", 1)
|
||||
SyncNodeStorageRecordResponse("https://api.waozi.xyz",
|
||||
"{\"server_capabilities\":[\"basic-storage-free-v1\"]}")
|
||||
check_true("node policy refresh only runs once", storage_meta_int64("sync_storage_notes_v1", 0) == 1)
|
||||
storage_close()
|
||||
}
|
||||
|
||||
#program_export
|
||||
Check :: () -> s32 {
|
||||
guard := support_begin("/tmp/inbe-storage-sync-zi-test/")
|
||||
if guard != 0 { return guard }
|
||||
test_storage_note_accounting()
|
||||
test_game_score_upgrade()
|
||||
test_practice_session_details()
|
||||
test_node_cursors()
|
||||
test_record_page_storage()
|
||||
|
||||
@@ -28,6 +28,9 @@ static int requests;
|
||||
int32_t ConnectionRequests(void) { return requests; }
|
||||
int32_t app_request_sync(void *app) { (void)app; requests++; return 1; }
|
||||
void app_reload_after_import(void *app, int32_t settings) { (void)app; (void)settings; }
|
||||
int32_t app_web_storage_flush_critical(int32_t timeout_ms, int32_t log_success) {
|
||||
(void)timeout_ms; (void)log_success; return 1;
|
||||
}
|
||||
int main(void) {
|
||||
int result = Check();
|
||||
if (result) fprintf(stderr, "Sync connection checks failed: %d\n", result);
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
#import, file "../src/app/sync_retry.zi";
|
||||
#import, file "../src/app/app_types.zi";
|
||||
#import, file "../src/storage/sync_status.zi";
|
||||
#import, file "../src/storage/sync_result.zi";
|
||||
using SyncResult;
|
||||
#import, file "background_audio_stub.zi";
|
||||
|
||||
// Host state the C side provides: the clock, the account switch, and the
|
||||
@@ -115,6 +117,17 @@ Answer :: () -> s32 {
|
||||
// A payload that could not be built retries on its schedule, Sync now
|
||||
// tries at once, and the old failure is not reported as a success.
|
||||
app: InnerBreeze
|
||||
app_sync_record_result(SYNC_STORAGE_FULL)
|
||||
if !g_sync.retry_requested || !app_sync_retry_ready(SYNC_STORAGE_FULL, now) { return 60 }
|
||||
g_sync.retry_requested = false
|
||||
app_sync_record_result(SYNC_STORAGE_FULL)
|
||||
if g_sync.retry_requested || app_sync_retry_ready(SYNC_STORAGE_FULL, now) { return 61 }
|
||||
if app_auto_sync(*app) == 0 || !g_sync.retry_requested { return 62 }
|
||||
g_sync.retry_requested = false
|
||||
app_sync_record_result(SYNC_STORAGE_FULL)
|
||||
if !g_sync.retry_requested { return 63 }
|
||||
g_sync.retry_requested = false
|
||||
app_sync_record_result(SYNC_OK)
|
||||
app_sync_record_result(3)
|
||||
if app_sync_retry_ready(3, now) { return 30 }
|
||||
if app_auto_sync(*app) == 0 || g_sync.retry_requested { return 31 }
|
||||
|
||||
+4
-4
@@ -6,8 +6,8 @@ IDI_APP_ICON ICON "inbe.ico"
|
||||
IDI_NOTIFICATION_ICON ICON "inbe.ico"
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 2,1,55,0
|
||||
PRODUCTVERSION 2,1,55,0
|
||||
FILEVERSION 2,1,60,0
|
||||
PRODUCTVERSION 2,1,60,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
@@ -24,11 +24,11 @@ BEGIN
|
||||
BEGIN
|
||||
VALUE "CompanyName", "waozi"
|
||||
VALUE "FileDescription", "Inner Breeze"
|
||||
VALUE "FileVersion", "2.1.55"
|
||||
VALUE "FileVersion", "2.1.60"
|
||||
VALUE "InternalName", "breeze"
|
||||
VALUE "OriginalFilename", "breeze-windows-x86_64.exe"
|
||||
VALUE "ProductName", "Inner Breeze"
|
||||
VALUE "ProductVersion", "2.1.55"
|
||||
VALUE "ProductVersion", "2.1.60"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
||||
+39
-39
@@ -20,7 +20,7 @@
|
||||
},
|
||||
{
|
||||
"commit": "1cb9df183089a77c8a16448a556186f30b261a98",
|
||||
"dependencies": {"kryon": "pee7ee3a59c41c82b"},
|
||||
"dependencies": {"kryon": "p678dfe3877859170"},
|
||||
"id": "p1b13dda539ed2a39",
|
||||
"name": "Kss",
|
||||
"ref": "master",
|
||||
@@ -28,28 +28,19 @@
|
||||
},
|
||||
{
|
||||
"commit": "bad2caaa84ef3eae61e40c99bf572d2b060d0ca2",
|
||||
"dependencies": {"kryon": "pee7ee3a59c41c82b"},
|
||||
"dependencies": {"kryon": "p678dfe3877859170"},
|
||||
"id": "p20eb23d3e6db3711",
|
||||
"name": "Game2D",
|
||||
"ref": "master",
|
||||
"url": "https://github.com/kryonlabs/game2d.git"
|
||||
},
|
||||
{
|
||||
"commit": "b1e4ed4b0f7283e2b7a8ae7740f283d5729b3b04",
|
||||
"dependencies": {"crypto": "pc23fbf455e97614d", "kryon": "pee7ee3a59c41c82b"},
|
||||
"id": "p4158fd507db6061e",
|
||||
"name": "Apps",
|
||||
"ref": "b1e4ed4b0f7283e2b7a8ae7740f283d5729b3b04",
|
||||
"url": "https://github.com/waozixyz/apps.git"
|
||||
},
|
||||
{
|
||||
"commit": "e1f480f382d9443c4412133b55948374c77a5c21",
|
||||
"dependencies": {},
|
||||
"id": "p4b0a50b49959e674",
|
||||
"name": "liboqs",
|
||||
"ref": "main",
|
||||
"source": true,
|
||||
"url": "https://github.com/open-quantum-safe/liboqs.git"
|
||||
"commit": "d420622f7f530b573d28f52ca5fbebbaa9c3cc24",
|
||||
"dependencies": {"daochi_client": "pf7b24c15869d6839", "kryon": "p678dfe3877859170", "monocypher": "p809b4d31a48625a3", "qrcode": "p0dfa70137405b096"},
|
||||
"id": "p2d0aef8034912fe3",
|
||||
"name": "Entity",
|
||||
"ref": "master",
|
||||
"url": "https://github.com/waozixyz/entity.git"
|
||||
},
|
||||
{
|
||||
"commit": "fafa2cea97d0cb379d832086ba45a989fa6f9c8e",
|
||||
@@ -60,9 +51,17 @@
|
||||
"source": true,
|
||||
"url": "https://github.com/raysan5/raylib.git"
|
||||
},
|
||||
{
|
||||
"commit": "2839954d916c614e562d6c25c448928923d4190b",
|
||||
"dependencies": {"raylib": "p5a77c9c35110e925"},
|
||||
"id": "p678dfe3877859170",
|
||||
"name": "kryon",
|
||||
"ref": "master",
|
||||
"url": "https://github.com/kryonlabs/kryon.git"
|
||||
},
|
||||
{
|
||||
"commit": "22d2ddbdc236796953c905a05a2cebf5ab1b4ff3",
|
||||
"dependencies": {"liboqs": "p4b0a50b49959e674"},
|
||||
"dependencies": {"liboqs": "pecdb097af6ab16f7"},
|
||||
"id": "p7098ac9cd92f7e5f",
|
||||
"name": "Oqs",
|
||||
"ref": "master",
|
||||
@@ -87,16 +86,16 @@
|
||||
"url": "https://github.com/waozixyz/practices.git"
|
||||
},
|
||||
{
|
||||
"commit": "25d9f649c43a8de44a5fea602d2835e33e6ca999",
|
||||
"dependencies": {"crypto": "pc23fbf455e97614d", "oqs": "p7098ac9cd92f7e5f"},
|
||||
"id": "p9972fcdd2d5ba999",
|
||||
"name": "DaochiClient",
|
||||
"ref": "master",
|
||||
"url": "https://github.com/ziranlang/daochi-client.git"
|
||||
"commit": "becce9220e092d33b26a2ec106b93e43714f3946",
|
||||
"dependencies": {"crypto": "pc23fbf455e97614d", "kryon": "p678dfe3877859170"},
|
||||
"id": "p9c41020c62c76410",
|
||||
"name": "Apps",
|
||||
"ref": "becce9220e092d33b26a2ec106b93e43714f3946",
|
||||
"url": "https://github.com/waozixyz/apps.git"
|
||||
},
|
||||
{
|
||||
"commit": "3f888653b6b97010163d824c4cc72476be3214f3",
|
||||
"dependencies": {"kryon": "pee7ee3a59c41c82b"},
|
||||
"dependencies": {"kryon": "p678dfe3877859170"},
|
||||
"id": "pab5377a2950368a2",
|
||||
"name": "plot",
|
||||
"ref": "master",
|
||||
@@ -110,14 +109,6 @@
|
||||
"ref": "master",
|
||||
"url": "https://github.com/ziranlang/crypto.git"
|
||||
},
|
||||
{
|
||||
"commit": "224a08fe845cc277255af68b7c3c27ecfa0f2cc0",
|
||||
"dependencies": {"daochi_client": "p9972fcdd2d5ba999", "kryon": "pee7ee3a59c41c82b", "monocypher": "p809b4d31a48625a3", "qrcode": "p0dfa70137405b096"},
|
||||
"id": "pd2e439f031fa79fe",
|
||||
"name": "Entity",
|
||||
"ref": "master",
|
||||
"url": "https://github.com/waozixyz/entity.git"
|
||||
},
|
||||
{
|
||||
"commit": "9ef1a3a130450d603abd029772422abd40cfcde0",
|
||||
"dependencies": {},
|
||||
@@ -145,16 +136,25 @@
|
||||
"url": "https://github.com/sqlite/sqlite.git"
|
||||
},
|
||||
{
|
||||
"commit": "8897684d02ae608cd9693b46905bcc17b2f142ed",
|
||||
"dependencies": {"raylib": "p5a77c9c35110e925"},
|
||||
"id": "pee7ee3a59c41c82b",
|
||||
"name": "kryon",
|
||||
"commit": "4778aa5044bf119c30df54219fa89357080af27f",
|
||||
"dependencies": {},
|
||||
"id": "pecdb097af6ab16f7",
|
||||
"name": "liboqs",
|
||||
"ref": "main",
|
||||
"source": true,
|
||||
"url": "https://github.com/open-quantum-safe/liboqs.git"
|
||||
},
|
||||
{
|
||||
"commit": "e948c3f280e2e3fa3ef7317dfaca27bd36a4900b",
|
||||
"dependencies": {"crypto": "pc23fbf455e97614d", "oqs": "p7098ac9cd92f7e5f"},
|
||||
"id": "pf7b24c15869d6839",
|
||||
"name": "DaochiClient",
|
||||
"ref": "master",
|
||||
"url": "https://github.com/kryonlabs/kryon.git"
|
||||
"url": "https://github.com/ziranlang/daochi-client.git"
|
||||
}
|
||||
],
|
||||
"root": {
|
||||
"dependencies": {"apps": "p4158fd507db6061e", "crypto": "pc23fbf455e97614d", "curl": "pd4bcd11b7d623073", "daochi_client": "p9972fcdd2d5ba999", "entity": "pd2e439f031fa79fe", "game2d": "p20eb23d3e6db3711", "kryon": "pee7ee3a59c41c82b", "kss": "p1b13dda539ed2a39", "liboqs": "p4b0a50b49959e674", "mingcute": "pe1027b9d16704793", "monocypher": "p809b4d31a48625a3", "oqs": "p7098ac9cd92f7e5f", "plot": "pab5377a2950368a2", "practices": "p9079dde0fcc11248", "qrcode": "p0dfa70137405b096", "rini": "p09fa77e94b0dfc6c", "sqlite": "peaa43c4b7ef72edf"},
|
||||
"dependencies": {"apps": "p9c41020c62c76410", "crypto": "pc23fbf455e97614d", "curl": "pd4bcd11b7d623073", "daochi_client": "pf7b24c15869d6839", "entity": "p2d0aef8034912fe3", "game2d": "p20eb23d3e6db3711", "kryon": "p678dfe3877859170", "kss": "p1b13dda539ed2a39", "liboqs": "pecdb097af6ab16f7", "mingcute": "pe1027b9d16704793", "monocypher": "p809b4d31a48625a3", "oqs": "p7098ac9cd92f7e5f", "plot": "pab5377a2950368a2", "practices": "p9079dde0fcc11248", "qrcode": "p0dfa70137405b096", "rini": "p09fa77e94b0dfc6c", "sqlite": "peaa43c4b7ef72edf"},
|
||||
"name": "Inbe"
|
||||
},
|
||||
"toolchain": {
|
||||
|
||||
+1
-1
@@ -74,7 +74,7 @@ ref = "master"
|
||||
|
||||
[dependencies.apps]
|
||||
git = "https://github.com/waozixyz/apps.git"
|
||||
ref = "b1e4ed4b0f7283e2b7a8ae7740f283d5729b3b04"
|
||||
ref = "becce9220e092d33b26a2ec106b93e43714f3946"
|
||||
|
||||
# The practices' pictures, course data and recordings (scripts/practice_media.py).
|
||||
[dependencies.practices]
|
||||
|
||||
Reference in new issue
Block a user