Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f7eec1888c | ||
|
|
8e38e2a6f4 | ||
|
|
3575ba97f0 | ||
|
|
4479ef83e2 | ||
|
|
0e17c333d5 | ||
|
|
f4e3522523 | ||
|
|
bfd8d552d2 | ||
|
|
e3cbeda015 | ||
|
|
1c242eac02 | ||
|
|
3220a032df | ||
|
|
7b6a7aa9db | ||
|
|
c36d80a247 | ||
|
|
eedcbdc38e | ||
|
|
d1307b06f4 | ||
|
|
61f6e2ca41 | ||
|
|
43d9fabfbc | ||
|
|
48ef3929fc | ||
|
|
02774c652c | ||
|
|
8c692e51e5 | ||
|
|
00faaf7e93 | ||
|
|
ac8400e57c | ||
|
|
6eedd34bb0 | ||
|
|
00603e09bb | ||
|
|
9c3cf327b2 | ||
|
|
ebcb99e944 | ||
|
|
ca763d9183 | ||
|
|
c89f5e9b09 | ||
|
|
1d373214f2 | ||
|
|
ca6747894a | ||
|
|
7337178a2b | ||
|
|
c238bc5bd3 | ||
|
|
197fc01897 | ||
|
|
68622fbab8 | ||
|
|
49f929c3f4 | ||
|
|
61f016831d | ||
|
|
90fbe0f049 | ||
|
|
9b25bd887d | ||
|
|
6764286c22 | ||
|
|
8cbb34a62c | ||
|
|
33082cebf4 | ||
|
|
64c1b6b7db | ||
|
|
7e84a69098 | ||
|
|
727eaa1f72 | ||
|
|
0d1a7c12f8 | ||
|
|
e50f8d1e7b | ||
|
|
0024cd84ef | ||
|
|
2c673ada7f |
No files matched your search
@@ -101,7 +101,7 @@ jobs:
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
repository: kryonlabs/daochi
|
||||
ref: 51902c57c537724cf4c083227f5da6c50e24ba39
|
||||
ref: 902230435fba6f64f5067afab551410456fb57d0
|
||||
path: .test-server
|
||||
submodules: recursive
|
||||
|
||||
@@ -159,6 +159,7 @@ jobs:
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
|
||||
|
||||
- name: Build Chrome Extension ZIP
|
||||
run: |
|
||||
@@ -225,6 +226,7 @@ jobs:
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
|
||||
|
||||
- name: Build Firefox Add-on ZIP
|
||||
run: |
|
||||
|
||||
@@ -114,6 +114,7 @@ jobs:
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
|
||||
|
||||
- name: Build Web ZIP
|
||||
run: |
|
||||
@@ -175,6 +176,7 @@ jobs:
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
|
||||
|
||||
- name: Build Chrome Extension ZIP
|
||||
run: |
|
||||
@@ -236,6 +238,7 @@ jobs:
|
||||
echo "EM_CONFIG=$HOME/emsdk/.emscripten" >> "$GITHUB_ENV"
|
||||
echo "INBE_NODE_BIN=$(dirname "$(command -v node)")" >> "$GITHUB_ENV"
|
||||
echo "$HOME/emsdk/upstream/emscripten" >> "$GITHUB_PATH"
|
||||
bash scripts/ensure-emscripten-zlib.sh "$HOME/emsdk/upstream/emscripten/embuilder"
|
||||
|
||||
- name: Build Firefox Add-on ZIP
|
||||
run: |
|
||||
@@ -846,12 +849,6 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Checkout Kryon Appcast Tool
|
||||
run: |
|
||||
set -euo pipefail
|
||||
git submodule update --init --depth 1 vendor/kryon
|
||||
test -f vendor/kryon/scripts/make_appcast.py
|
||||
|
||||
- name: Download Release Artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
@@ -954,7 +951,7 @@ jobs:
|
||||
echo "no release artifacts found for the appcast"
|
||||
exit 1
|
||||
fi
|
||||
python3 vendor/kryon/scripts/make_appcast.py \
|
||||
python3 scripts/make_appcast.py \
|
||||
--version "$VERSION" \
|
||||
--base-url "$BASE" \
|
||||
--notes-url "https://github.com/waozixyz/inbe/releases/tag/$TAG" \
|
||||
|
||||
@@ -1,4 +1,31 @@
|
||||
# Changelog
|
||||
## [2.0.4] - 2026-09-21
|
||||
### Changed
|
||||
- The account screen shows the connected alias, automatic sync progress, and counts for habits, history days, sessions, friends, lists, and list items.
|
||||
- Habits show a distinct mark for days completed through a practice session.
|
||||
- Importing an account key offers Merge or Replace before changing local data, with clear details about each choice.
|
||||
- Profile offers Connect Account, and the sync screen offers Import .key when no account is connected.
|
||||
|
||||
### Fixed
|
||||
- Restoring an existing account now retrieves its username, friends, habits, history, and sessions from the complete account data.
|
||||
- Lists and their items now sync across devices, including completed items and changes made on another device.
|
||||
- Sync status shows the current upload or restore step instead of staying on a generic syncing message.
|
||||
- Connecting an account starts automatic sync without leaving a stale status message behind.
|
||||
|
||||
## [2.0.3] - 2026-09-20
|
||||
### Fixed
|
||||
- Web and browser builds can connect to compatible custom sync servers when you choose one.
|
||||
- Browser extensions no longer request access to the Inner Breeze website.
|
||||
- Chrome break reminders now follow the app's settings and Rest Now action.
|
||||
|
||||
## [2.0.2] - 2026-09-20
|
||||
### Fixed
|
||||
- Habit editor section headings and reminder details now align with their rows.
|
||||
|
||||
## [2.0.1] - 2026-09-20
|
||||
### Fixed
|
||||
- Existing installations reset navigation once to show Lists, Habits, Practice, and Settings in that order. Changes made afterward are kept.
|
||||
|
||||
## [2.0.0] - 2026-09-19
|
||||
### Changed
|
||||
- Added cat, sea turtle, and crescent moon profile pictures in place of three similar tree choices.
|
||||
@@ -80,7 +107,7 @@
|
||||
|
||||
## [1.9.16] - 2026-08-29
|
||||
### Changed
|
||||
- Sync now speaks Ksync protocol v5 compatibility mode while keeping existing secure synced data usable.
|
||||
- Sync remains compatible with existing secure account keys and synced data.
|
||||
|
||||
### Fixed
|
||||
- Fixed web sync key import stability in Firefox.
|
||||
|
||||
@@ -211,10 +211,15 @@ KRYON_RUNTIME_KRY := $(sort $(wildcard $(KRYON_DIR)/runtime/*.kry))
|
||||
KRYON_RUNTIME_C := $(patsubst $(KRYON_DIR)/%.kry,$(KRYON_GENERATED_SRC_DIR)/%.c,$(KRYON_RUNTIME_KRY))
|
||||
KRYON_RUNTIME_H := $(KRYON_RUNTIME_C:.c=.h)
|
||||
KRYON_RUNTIME_STAMP := $(KRYON_GENERATED_SRC_DIR)/runtime/.fresh
|
||||
# Inbe does not host a terminal paste stream, so it has no clipboard protocol callbacks.
|
||||
KRYON_UI_KRY := $(filter-out $(KRYON_DIR)/src/ui/clipboard_protocol.kry,$(sort $(wildcard $(KRYON_DIR)/src/ui/*.kry)))
|
||||
KRYON_UI_C := $(patsubst $(KRYON_DIR)/src/ui/%.kry,$(KRYON_GENERATED_SRC_DIR)/ui/%.c,$(KRYON_UI_KRY))
|
||||
KRYON_UI_H := $(KRYON_UI_C:.c=.h)
|
||||
KRYON_UI_STAMP := $(KRYON_GENERATED_SRC_DIR)/ui/.fresh
|
||||
KRYON_ICON_ASSETS_C := $(KRYON_GENERATED_SRC_DIR)/ui/ui_icon_assets.c
|
||||
KRYON_ICON_NAMES_C := $(KRYON_GENERATED_SRC_DIR)/ui/ui_icon_names.c
|
||||
KRYON_ICON_TYPES_H := $(KRYON_GENERATED_INCLUDE_DIR)/ui_icon_types.h
|
||||
KRYON_SRCS := $(filter-out $(KRYON_DIR)/src/ui/ui_icon_assets.c $(KRYON_DIR)/src/ui/ui_icon_names.c,$(shell find $(KRYON_DIR)/src -type f -name '*.c' | LC_ALL=C sort)) $(KRYON_ICON_ASSETS_C) $(KRYON_ICON_NAMES_C) $(KRYON_RUNTIME_C)
|
||||
KRYON_SRCS := $(filter-out $(KRYON_DIR)/src/ui/ui_icon_assets.c $(KRYON_DIR)/src/ui/ui_icon_names.c,$(shell find $(KRYON_DIR)/src -type f -name '*.c' | LC_ALL=C sort)) $(KRYON_ICON_ASSETS_C) $(KRYON_ICON_NAMES_C) $(KRYON_RUNTIME_C) $(KRYON_UI_C)
|
||||
KRYON_SYNC_ICONS := $(KRYON_DIR)/scripts/sync-icons.sh
|
||||
WEB_SHARED_ICON_SHEETS := platforms language tiles
|
||||
KRYON_LIBDRAW_SRCS := $(filter $(KRYON_DIR)/src/backend/libdraw_%.c,$(KRYON_SRCS))
|
||||
@@ -229,7 +234,7 @@ KRYON_WEB_SRCS := $(KRYON_SRCS)
|
||||
KRYON_WEB_SRCS := $(filter-out $(KRYON_DIR)/src/backend/dom_%.c,$(KRYON_WEB_SRCS))
|
||||
KRYON_WINDOWS_SRCS := $(filter-out $(KRYON_DIR)/src/file_dialog/file_dialog.c,$(KRYON_SRCS))
|
||||
KRYON_CLICK_SRCS := $(filter-out $(KRYON_DIR)/src/file_dialog/file_dialog.c,$(KRYON_SRCS))
|
||||
KRYON_INCLUDE := -I$(KRYON_GENERATED_INCLUDE_DIR) -I$(KRYON_GENERATED_SRC_DIR) -I$(KRYON_DIR)/include -I$(KRYON_DIR)/vendor/monocypher/src -I$(KRYON_DIR)/vendor/monocypher/src/optional
|
||||
KRYON_INCLUDE := -I$(KRYON_GENERATED_INCLUDE_DIR) -I$(KRYON_GENERATED_SRC_DIR) -I$(KRYON_DIR)/include -I$(KRYON_DIR)/src/ui -I$(KRYON_DIR)/src/platform -I$(KRYON_DIR)/src/backend -I$(KRYON_GENERATED_SRC_DIR)/runtime -I$(KRYON_DIR)/vendor/utf8proc -DUTF8PROC_STATIC -I$(KRYON_DIR)/vendor/monocypher/src -I$(KRYON_DIR)/vendor/monocypher/src/optional
|
||||
KRYON_SYNC_ACCOUNT_C := $(KRYON_DIR)/src/sync/sync_account.c
|
||||
KRYON_SYNC_CRYPTO_C := $(KRYON_DIR)/src/sync/sync_crypto.c $(KRYON_DIR)/src/sync/monocypher.c $(KRYON_DIR)/src/sync/monocypher_ed25519.c
|
||||
KRYON_SYNC_C := $(KRYON_DIR)/src/sync/sync.c
|
||||
@@ -591,6 +596,17 @@ $(KRYON_RUNTIME_STAMP): Makefile $(K2C) $(KRYON_RUNTIME_KRY)
|
||||
$(KRYON_RUNTIME_C) $(KRYON_RUNTIME_H): $(KRYON_RUNTIME_STAMP)
|
||||
@test -f $@
|
||||
|
||||
# Kryon's .kry-backed UI modules generate the public ui/*.h headers that the
|
||||
# retained handwritten src/ui/*.c host services include, plus the generated
|
||||
# implementations for the migrated widgets. Mirror kryon's own --root src pass.
|
||||
$(KRYON_UI_STAMP): Makefile $(K2C) $(KRYON_UI_KRY) $(KRYON_RUNTIME_STAMP)
|
||||
mkdir -p $(dir $@)
|
||||
$(K2C) --no-main --root $(abspath $(KRYON_DIR)/src) -o $(abspath $(KRYON_GENERATED_SRC_DIR)) $(abspath $(KRYON_UI_KRY))
|
||||
touch $@
|
||||
|
||||
$(KRYON_UI_C) $(KRYON_UI_H): $(KRYON_UI_STAMP)
|
||||
@test -f $@
|
||||
|
||||
$(KRY_GEN_STAMP): Makefile $(K2C) $(KRY_SRCS) $(SYNC_RETRY_HEADER) $(STORAGE_LAYOUT_HEADER) $(KRYON_RUNTIME_STAMP) | build-laws
|
||||
rm -rf $(KRY_GEN_DIR)
|
||||
mkdir -p $(KRY_GEN_DIR)
|
||||
@@ -812,11 +828,11 @@ embedded-image-assets-check: $(EMBEDDED_ASSETS_C)
|
||||
|
||||
.PHONY: habits-cards-ui-test
|
||||
habits-cards-ui-test: $(TARGET)
|
||||
xvfb-run -a bash tests/habits_cards_ui_test.sh "$(abspath $(TARGET))"
|
||||
bash tests/habits_cards_ui_test.sh "$(abspath $(TARGET))"
|
||||
|
||||
.PHONY: lists-ui-test
|
||||
lists-ui-test: $(TARGET)
|
||||
xvfb-run -a bash tests/lists_ui_test.sh "$(abspath $(TARGET))"
|
||||
bash tests/lists_ui_test.sh "$(abspath $(TARGET))"
|
||||
|
||||
.PHONY: storage-literals-check
|
||||
storage-literals-check:
|
||||
@@ -878,7 +894,7 @@ $(STORAGE_PATHS_TEST): tests/storage_paths_test.c $(STORAGE_CORE_SRCS) $(KRY_GEN
|
||||
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections \
|
||||
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/practices -Isrc/practices/whm -Isrc/practices/meditation -Isrc/storage -Isrc/platform/android -Isrc/third_party $(KRYON_INCLUDE) -I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src $(SQLITE_INCLUDE) \
|
||||
-o $@ \
|
||||
tests/storage_paths_test.c $(STORAGE_CORE_SRCS) $(KRYON_DIR)/src/kry_std/kry_archive.c $(KRYON_DIR)/src/ui/ui_inspect.c $(KRY_GEN_DIR)/src/storage/storage_sessions.c $(KRY_GEN_DIR)/src/storage/storage_elist.c $(KRY_GEN_DIR)/src/storage/sync_review.c $(KRY_GEN_DIR)/src/storage/db.c $(KRY_GEN_DIR)/src/storage/import.c $(KRY_GEN_DIR)/src/storage/data.c $(KRY_GEN_DIR)/src/habits/habit_model.c $(KRY_GEN_DIR)/src/habits/habit_sessions.c $(SQLITE_SRC) \
|
||||
tests/storage_paths_test.c $(STORAGE_CORE_SRCS) $(KRYON_DIR)/src/kry_std/kry_archive.c $(KRY_GEN_DIR)/src/storage/storage_sessions.c $(KRY_GEN_DIR)/src/storage/storage_elist.c $(KRY_GEN_DIR)/src/storage/sync_review.c $(KRY_GEN_DIR)/src/storage/db.c $(KRY_GEN_DIR)/src/storage/import.c $(KRY_GEN_DIR)/src/storage/data.c $(KRY_GEN_DIR)/src/habits/habit_model.c $(KRY_GEN_DIR)/src/habits/habit_sessions.c $(SQLITE_SRC) \
|
||||
-Wl,--gc-sections $(NATIVE_SYSTEM_LDLIBS)
|
||||
|
||||
$(LOCALE_KEYS_TEST): tests/locale_keys_test.c $(LOCALE_FILES) | $(TEST_BIN_DIR)
|
||||
@@ -932,12 +948,13 @@ $(FONT_GLYPH_COVERAGE_TEST): tests/font_glyph_coverage_test.c $(FONT_FILES) $(LO
|
||||
-o $@ \
|
||||
tests/font_glyph_coverage_test.c
|
||||
|
||||
$(APP_BOTTOM_NAV_TEST): tests/app_bottom_nav_test.c src/app/app_nav.h src/app/app.h $(KRY_GEN_DIR)/src/app/app_nav.c $(KRY_GEN_DIR)/src/app/customize_nav.c $(KRY_GEN_DIR)/src/widgets/bottom_nav.c $(KRYON_DIR)/include/ui_tree.h $(KRYON_DIR)/src/core/app_shell.c $(KRYON_DIR)/include/app_shell.h | $(TEST_BIN_DIR)
|
||||
$(APP_BOTTOM_NAV_TEST): tests/app_bottom_nav_test.c src/app/app_nav.h src/app/app.kry $(KRY_GEN_DIR)/src/app/app.h $(KRY_GEN_DIR)/src/app/app_nav.c $(KRY_GEN_DIR)/src/app/customize_nav.c $(KRY_GEN_DIR)/src/widgets/bottom_nav.c $(KRYON_DIR)/include/ui_tree_props.generated.h $(KRYON_GENERATED_SRC_DIR)/ui/app_shell_layout.c $(KRYON_GENERATED_SRC_DIR)/ui/app_shell_route.c $(KRYON_DIR)/include/ui_app_shell_props.generated.h $(SQLITE_AMALGAMATION_H) | $(TEST_BIN_DIR)
|
||||
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE \
|
||||
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/storage -Isrc/platform/android $(KRYON_INCLUDE) -I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src $(SQLITE_INCLUDE) \
|
||||
-o $@ \
|
||||
tests/app_bottom_nav_test.c $(KRY_GEN_DIR)/src/app/metrics.c \
|
||||
$(KRYON_DIR)/src/core/app_shell.c \
|
||||
$(KRYON_GENERATED_SRC_DIR)/ui/app_shell_layout.c \
|
||||
$(KRYON_GENERATED_SRC_DIR)/ui/app_shell_route.c \
|
||||
$(KRY_GEN_DIR)/src/app/customize_nav.c \
|
||||
$(KRY_GEN_DIR)/src/widgets/bottom_nav.c
|
||||
|
||||
@@ -946,31 +963,31 @@ test: elist-screen-test
|
||||
elist-screen-test: $(TEST_BIN_DIR)/elist_screen_test
|
||||
$<
|
||||
|
||||
$(TEST_BIN_DIR)/elist_screen_test: tests/elist_screen_test.c $(KRY_GEN_DIR)/src/screens/elist_screen.c src/app/app.h | $(TEST_BIN_DIR)
|
||||
$(TEST_BIN_DIR)/elist_screen_test: tests/elist_screen_test.c $(KRY_GEN_DIR)/src/screens/elist_screen.c src/app/app.kry $(KRY_GEN_DIR)/src/app/app.h | $(TEST_BIN_DIR)
|
||||
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE -ffunction-sections -fdata-sections \
|
||||
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/storage -Isrc/platform/android $(KRYON_INCLUDE) -I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src $(SQLITE_INCLUDE) \
|
||||
-Wl,--gc-sections -o $@ tests/elist_screen_test.c $(KRY_GEN_DIR)/src/app/metrics.c
|
||||
|
||||
$(TEST_BIN_DIR)/habit_form_test: tests/habit_form_test.c $(KRY_GEN_DIR)/src/screens/habits/edit.c src/app/app.h | $(TEST_BIN_DIR)
|
||||
$(TEST_BIN_DIR)/habit_form_test: tests/habit_form_test.c $(KRY_GEN_DIR)/src/screens/habits/edit.c src/app/app.kry $(KRY_GEN_DIR)/src/app/app.h $(SQLITE_AMALGAMATION_H) | $(TEST_BIN_DIR)
|
||||
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE -ffunction-sections -fdata-sections \
|
||||
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/storage -Isrc/platform/android $(KRYON_INCLUDE) -I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src \
|
||||
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/storage -Isrc/platform/android $(KRYON_INCLUDE) -I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src $(SQLITE_INCLUDE) \
|
||||
-Wl,--gc-sections -o $@ tests/habit_form_test.c $(KRY_GEN_DIR)/src/app/metrics.c $(KRY_GEN_DIR)/src/screens/habits/edit.c
|
||||
|
||||
$(TEST_BIN_DIR)/practice_carousel_test: tests/practice_carousel_test.c $(KRY_GEN_DIR)/src/screens/practice_screen.c src/app/app.h | $(TEST_BIN_DIR)
|
||||
$(TEST_BIN_DIR)/practice_carousel_test: tests/practice_carousel_test.c $(KRY_GEN_DIR)/src/screens/practice_screen.c src/app/app.kry $(KRY_GEN_DIR)/src/app/app.h | $(TEST_BIN_DIR)
|
||||
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE -ffunction-sections -fdata-sections \
|
||||
$(APP_INCLUDE) $(SQLITE_INCLUDE) \
|
||||
-Wl,--gc-sections -o $@ tests/practice_carousel_test.c
|
||||
|
||||
$(HABIT_MODEL_TEST): tests/habit_model_test.c $(KRY_GEN_DIR)/src/habits/habit_model.c src/screens/habits_screen.h src/screens/habits/habits.h | $(TEST_BIN_DIR)
|
||||
$(HABIT_MODEL_TEST): tests/habit_model_test.c $(KRY_GEN_DIR)/src/habits/habit_model.c src/screens/habits_screen.h src/screens/habits/habits.h $(SQLITE_AMALGAMATION_H) | $(TEST_BIN_DIR)
|
||||
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE \
|
||||
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/storage -Isrc/platform/android $(KRYON_INCLUDE) -I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src \
|
||||
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/storage -Isrc/platform/android $(KRYON_INCLUDE) -I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src $(SQLITE_INCLUDE) \
|
||||
-o $@ \
|
||||
tests/habit_model_test.c \
|
||||
$(KRY_GEN_DIR)/src/habits/habit_model.c
|
||||
|
||||
$(HABIT_SESSIONS_TEST): tests/habit_sessions_test.c $(KRY_GEN_DIR)/src/habits/habit_sessions.c $(KRY_GEN_DIR)/src/habits/habit_model.c src/screens/habits_screen.h src/screens/habits/habits.h | $(TEST_BIN_DIR)
|
||||
$(HABIT_SESSIONS_TEST): tests/habit_sessions_test.c $(KRY_GEN_DIR)/src/habits/habit_sessions.c $(KRY_GEN_DIR)/src/habits/habit_model.c src/screens/habits_screen.h src/screens/habits/habits.h $(SQLITE_AMALGAMATION_H) | $(TEST_BIN_DIR)
|
||||
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE \
|
||||
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/storage -Isrc/platform/android $(KRYON_INCLUDE) -I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src \
|
||||
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/storage -Isrc/platform/android $(KRYON_INCLUDE) -I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src $(SQLITE_INCLUDE) \
|
||||
-o $@ \
|
||||
tests/habit_sessions_test.c \
|
||||
$(KRY_GEN_DIR)/src/habits/habit_sessions.c \
|
||||
@@ -983,7 +1000,7 @@ $(BREATH_TIMING_TEST): tests/breath_timing_test.c $(KRY_GEN_DIR)/src/core/breath
|
||||
tests/breath_timing_test.c \
|
||||
$(KRY_GEN_DIR)/src/core/breath_engine.c
|
||||
|
||||
$(TEST_BIN_DIR)/session_results_test: tests/session_results_test.c $(KRY_GEN_DIR)/src/practices/session_results.c $(KRY_GEN_DIR)/src/practices/meditation/meditation_session.c src/app/app.h | $(TEST_BIN_DIR)
|
||||
$(TEST_BIN_DIR)/session_results_test: tests/session_results_test.c $(KRY_GEN_DIR)/src/practices/session_results.c $(KRY_GEN_DIR)/src/practices/meditation/meditation_session.c src/app/app.kry $(KRY_GEN_DIR)/src/app/app.h | $(TEST_BIN_DIR)
|
||||
$(CC) -Wall -Wextra -std=c99 -D_DEFAULT_SOURCE -ffunction-sections -fdata-sections \
|
||||
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/storage -Isrc/platform/android -Isrc/third_party $(KRYON_INCLUDE) $(SQLITE_INCLUDE) -I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src \
|
||||
-o $@ tests/session_results_test.c $(KRY_GEN_DIR)/src/practices/session_results.c $(KRY_GEN_DIR)/src/practices/meditation/meditation_session.c -Wl,--gc-sections
|
||||
@@ -1004,7 +1021,7 @@ $(ACTIVITY_MONITOR_TEST): tests/activity_monitor_test.c $(KRYON_DIR)/src/platfor
|
||||
$(KRYON_DIR)/src/platform/kry_activity_monitor.c \
|
||||
$(if $(filter linux,$(NATIVE_PLATFORM)),-ldl,)
|
||||
|
||||
$(FRAME_PACING_TEST): tests/frame_pacing_test.c $(KRY_GEN_DIR)/src/app/app_frame_pacing.c src/app/app_frame_pacing.kry src/app/app.h | $(TEST_BIN_DIR)
|
||||
$(FRAME_PACING_TEST): tests/frame_pacing_test.c $(KRY_GEN_DIR)/src/app/app_frame_pacing.c src/app/app_frame_pacing.kry src/app/app.kry $(KRY_GEN_DIR)/src/app/app.h | $(TEST_BIN_DIR)
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) \
|
||||
-Isrc -Isrc/app -Isrc/core -Isrc/screens -Isrc/screens/settings -Isrc/storage -Isrc/platform/android $(KRYON_INCLUDE) -I$(KRY_GEN_DIR) -I$(KRY_GEN_DIR)/src $(SQLITE_INCLUDE) \
|
||||
-Wl,--gc-sections -o $@ tests/frame_pacing_test.c $(KRY_GEN_DIR)/src/app/app_frame_pacing.c
|
||||
@@ -1020,7 +1037,7 @@ FORCE:
|
||||
$(EMBEDDED_ASSETS_C): Makefile $(EMBEDDED_ASSET_FILES) $(KRYON_DIR)/scripts/embed-assets.sh | $(BUILD_OBJ_DIR)
|
||||
sh $(KRYON_DIR)/scripts/embed-assets.sh $@ $(EMBEDDED_ASSET_FILES)
|
||||
|
||||
$(KRYON_ICON_ASSETS_C) $(KRYON_ICON_NAMES_C) $(KRYON_ICON_TYPES_H): $(KRYON_ICON_FILES) $(KRYON_DIR)/scripts/embed-icon-sheets.py $(KRYON_DIR)/include/ui_icons.h | $(BUILD_OBJ_DIR)
|
||||
$(KRYON_ICON_ASSETS_C) $(KRYON_ICON_NAMES_C) $(KRYON_ICON_TYPES_H): $(KRYON_ICON_FILES) $(KRYON_DIR)/scripts/embed-icon-sheets.py | $(BUILD_OBJ_DIR)
|
||||
cd $(KRYON_DIR) && python3 scripts/embed-icon-sheets.py "$(KRYON_ICON_DIR)" \
|
||||
"$(abspath $(KRYON_ICON_ASSETS_C))" \
|
||||
--types-output "$(abspath $(KRYON_ICON_TYPES_H))" \
|
||||
|
||||
@@ -5,7 +5,7 @@ Text.muted {
|
||||
foreground: muted;
|
||||
}
|
||||
Text.selected-navigation {
|
||||
foreground: accent-ink;
|
||||
foreground: text;
|
||||
}
|
||||
Text.circle-ink {
|
||||
foreground: #171022;
|
||||
|
||||
@@ -1,6 +1,35 @@
|
||||
# Inbe source ownership
|
||||
|
||||
Product behavior is maintained in `.kry`: application setup and rendering,
|
||||
## Remaining migration work (2026-09-20)
|
||||
|
||||
This section records the committed migration state, not a shipped or fully
|
||||
verified one. Kryon `master` is clean at `6f141648` with the UI `.kry` moves and
|
||||
the round records committed; Inbe `vendor/kryon` is pinned to the migration
|
||||
commit `8f1a8608` and Inbe's migration is committed as `64c1b6b`. Inbe's
|
||||
`make native` and contract gates pass at that revision; screenshots and
|
||||
Android/Plan 9/web checks have not run. Kryon's source-level and Button evidence
|
||||
checklist is in
|
||||
[the upstream UI migration plan](../../kryon/plan/UI_MIGRATION_REMAINING.md).
|
||||
|
||||
| Area | Current state | What closes it |
|
||||
|---|---|---|
|
||||
| App UI contract | `src/app/app.h` still has handwritten declarations for screen, widget, route, audio, and presentation functions implemented in `.kry`. `app_fwd.h`, `app_internal.h`, `app_nav.h`, screen/practice headers, and platform headers also need declaration-by-declaration review. | Move UI records and callable contracts into `.kry`, consume k2c-generated headers, and delete redundant handwritten UI declarations without introducing compatibility headers. Keep genuine OS/FFI contracts only. Build all maintained callers after removal. |
|
||||
| Native C boundary | `src/platform/main_host.c`, `src/app/app_web_bridge.c`, `src/platform/android/{android_device.c,android_insets.c,android_share.c}`, Plan 9 entry/SQLite/import adapters, and `src/storage/storage_json_builder.c` remain. | Audit every branch for UI, lifecycle, theme, and data policy. Move any remaining product decision to `.kry`; document the OS/JNI/JS/SQLite/C-varargs effect left in C. Preserve the checked JSON builder failure contract. |
|
||||
| Platform UI moves | Screenshot scenes/capture, startup and icon selection, Android lifecycle/share title, Plan 9 app loop and music fallback, and style tokens now have `.kry` owners. | Generate and build the changed sources on each supported path; check screenshot parity, icon installation, Android pause/resume/share, Plan 9 startup/music fallback, and style persistence. The Plan 9 `entry.c` must remain a process adapter only. |
|
||||
| KSS ownership | `assets/styles/inbe.kss` supplies product presentation and `src/app/app_style.kry` supplies style behavior, but the current generated boundary and all live theme callers have not been reverified. | Review each hardcoded presentation choice and theme getter use, migrate reusable style choices upstream where necessary, then verify light/dark style switching and no-style fallback without changing the accepted appearance. |
|
||||
| UI test ownership | UI shell checks exist; `tests/app_bottom_nav_test.c`, `frame_pacing_test.c`, `font_locale_test.c`, `screenshot_scene_test.sh`, and other C/UI fixtures still need ownership review. | Move UI behavior/assertions into `.kry` tests where the language can express them, leaving shell/C only for narrow host setup or process checks. Ensure the test graph compiles the generated modules; record exact results. |
|
||||
| Background notification policy | Desktop tray, Chrome worker, and Android indicator/session code carry committed edits for the rule that no background activity continues without a visible indicator. | Verify close/minimize/reopen, indicator loss, permission denial, Android foreground service and Chrome worker behavior on their actual targets. Confirm no timer or notification survives an absent indicator; record platform evidence. |
|
||||
| Vendor and delivery | Kryon is committed on upstream `master` and Inbe's clean `vendor/kryon` gitlink is `8f1a8608`; the parent commit `64c1b6b` is clean. | Done: pointer moved by commit and no vendor source edits. Keep the pointer moving only to clean upstream commits. |
|
||||
|
||||
Verification requires separate user approval for each test and each Bend law.
|
||||
After approval, Inbe's `make build-laws` is mandatory for native, web, and
|
||||
Windows builds; `make clean-text-api-check button-api-check` covers the UI API
|
||||
guards. Native checks need omega's SDL pkg-config path, and display/input
|
||||
checks must run on a private Xvfb/Xephyr display with inherited display
|
||||
variables scrubbed. Record Android, Plan 9, web, and Windows separately;
|
||||
unavailable toolchains or devices stay unverified.
|
||||
|
||||
Most product behavior is maintained in `.kry`: application setup and rendering,
|
||||
practice and habit rules, account/sync orchestration, database policy, audio
|
||||
selection, desktop tray menus, screenshot scenes, and browser actions.
|
||||
`app/app_types.kry` owns the application records and enums. C declarations are
|
||||
@@ -27,8 +56,21 @@ startup calls the same `.kry` application setup on each platform.
|
||||
|
||||
## Native boundary
|
||||
|
||||
The remaining C handles platform integration: window setup/frame submission,
|
||||
Android JNI and insets, browser JavaScript interop, and Plan 9 system adapters.
|
||||
The frame loop, startup choices, screenshot scenes, native Android session
|
||||
state transitions and debug practice decisions, and Plan 9 window loop are
|
||||
authored in `.kry`.
|
||||
The remaining C handles OS window calls, Android JNI conversion and synchronized
|
||||
event handoff, browser JavaScript interop, and Plan 9 process entry and system
|
||||
adapters. Plan 9's music playback, status, and unavailable control behavior are authored in
|
||||
`platform/plan9/meditation_music.kry`; the Plan 9 C music stub has been removed.
|
||||
The desktop icon asset is selected in `platform/app_host.kry`; the native host
|
||||
only decodes and installs it.
|
||||
These latest moves still require native, Android, and Plan 9 verification.
|
||||
Android Java still owns notification permission, indicator observation, and
|
||||
foreground-service effects. The session pause/resume and background-timer
|
||||
decision is in `platform/android/android_lifecycle.kry`.
|
||||
Android share-sheet titles are selected by `.kry` callers; the JNI adapter
|
||||
receives the title with the data it shares.
|
||||
`storage_json_builder.c` contains only the C varargs bridge; buffer growth,
|
||||
escaping, failure state, and timestamp serialization live in `storage/json.kry`.
|
||||
The checked JSON builder is retained because the current Kryon JSON emitter
|
||||
|
||||
@@ -53,8 +53,8 @@ android {
|
||||
applicationId "xyz.waozi.inbe"
|
||||
minSdk 21
|
||||
targetSdk 36
|
||||
versionCode 124
|
||||
versionName "2.0.0"
|
||||
versionCode 128
|
||||
versionName "2.0.4"
|
||||
manifestPlaceholders = [
|
||||
inbeAppLabel: "Inner Breeze",
|
||||
inbeUsesCleartextTraffic: "false"
|
||||
|
||||
@@ -57,7 +57,15 @@ list(REMOVE_ITEM KRYON_SOURCES "${KRYON_DIR}/src/ui/ui_icon_names.c")
|
||||
list(FILTER KRYON_SOURCES EXCLUDE REGEX "${KRYON_DIR}/src/backend/.*")
|
||||
list(FILTER KRYON_SOURCES EXCLUDE REGEX "${KRYON_DIR}/src/platform/plan9/.*")
|
||||
list(APPEND KRYON_SOURCES
|
||||
"${KRYON_DIR}/src/backend/kry_backend.c"
|
||||
"${KRYON_DIR}/src/backend/kry_backend_draw.c"
|
||||
"${KRYON_DIR}/src/backend/kry_dpi.c"
|
||||
"${KRYON_DIR}/src/backend/kry_event_wait.c"
|
||||
"${KRYON_DIR}/src/backend/kry_icon_atlas.c"
|
||||
"${KRYON_DIR}/src/backend/kry_layer_texture.c"
|
||||
"${KRYON_DIR}/src/backend/kry_style_build_mode.c"
|
||||
"${KRYON_DIR}/src/backend/kry_ui_platform.c"
|
||||
"${KRYON_DIR}/src/backend/kry_unicode.c"
|
||||
"${KRYON_DIR}/src/backend/kry_image.c"
|
||||
"${KRYON_DIR}/src/backend/kry_image_decode.c"
|
||||
"${KRYON_DIR}/src/backend/kry_input.c"
|
||||
@@ -166,6 +174,29 @@ add_custom_command(
|
||||
)
|
||||
add_custom_target(kryon_runtime_generated DEPENDS ${KRYON_RUNTIME_GENERATED_C})
|
||||
list(APPEND KRYON_SOURCES ${KRYON_RUNTIME_GENERATED_C})
|
||||
# Kryon's .kry-backed UI modules generate the public ui/*.h headers that the
|
||||
# retained handwritten src/ui/*.c host services include, plus the generated
|
||||
# implementations for the migrated widgets. Mirrors the root Makefile's
|
||||
# KRYON_UI pass (k2c --no-main --root kryon/src), which runs after the
|
||||
# runtime pass.
|
||||
set(KRYON_UI_GEN_DIR "${CMAKE_BINARY_DIR}/kryon/generated-ui")
|
||||
file(GLOB KRYON_UI_MODULE_FILES CONFIGURE_DEPENDS
|
||||
"${KRYON_DIR}/src/ui/*.kry")
|
||||
set(KRYON_UI_GENERATED_C)
|
||||
foreach(kryon_module_file ${KRYON_UI_MODULE_FILES})
|
||||
file(RELATIVE_PATH kryon_module "${KRYON_DIR}/src" "${kryon_module_file}")
|
||||
string(REGEX REPLACE "\\.kry$" ".c" kryon_module_c "${kryon_module}")
|
||||
list(APPEND KRYON_UI_GENERATED_C "${KRYON_UI_GEN_DIR}/${kryon_module_c}")
|
||||
endforeach()
|
||||
add_custom_command(
|
||||
OUTPUT ${KRYON_UI_GENERATED_C}
|
||||
COMMAND "${KRYON_K2C}" --no-main --root "${KRYON_DIR}/src" -o "${KRYON_UI_GEN_DIR}" ${KRYON_UI_MODULE_FILES}
|
||||
DEPENDS "${KRYON_K2C}" ${KRYON_UI_MODULE_FILES} ${KRYON_RUNTIME_GENERATED_C}
|
||||
WORKING_DIRECTORY "${KRYON_DIR}"
|
||||
VERBATIM
|
||||
)
|
||||
add_custom_target(kryon_ui_generated DEPENDS ${KRYON_UI_GENERATED_C})
|
||||
list(APPEND KRYON_SOURCES ${KRYON_UI_GENERATED_C})
|
||||
add_custom_target(app_kry_generated DEPENDS
|
||||
${APP_KRY_GENERATED_SOURCES}
|
||||
${APP_KRY_GENERATED_HEADERS}
|
||||
@@ -307,7 +338,7 @@ add_library(main SHARED
|
||||
"${NATIVE_APP_GLUE_DIR}/android_native_app_glue.c"
|
||||
)
|
||||
add_dependencies(main app_kry_generated kryon_raylib_generated
|
||||
kryon_runtime_generated app_build_laws)
|
||||
kryon_runtime_generated kryon_ui_generated app_build_laws)
|
||||
|
||||
file(GLOB_RECURSE KRYON_ICON_FILES CONFIGURE_DEPENDS "${KRYON_DIR}/icons/*.png" "${KRYON_DIR}/icons/*.json")
|
||||
add_custom_command(
|
||||
@@ -317,7 +348,7 @@ add_custom_command(
|
||||
"${KRYON_ICON_ASSETS_C}"
|
||||
--types-output "${KRYON_ICON_TYPES_H}"
|
||||
--names-output "${KRYON_ICON_NAMES_C}"
|
||||
DEPENDS "${KRYON_DIR}/scripts/embed-icon-sheets.py" "${KRYON_DIR}/include/ui_icons.h" ${KRYON_ICON_FILES}
|
||||
DEPENDS "${KRYON_DIR}/scripts/embed-icon-sheets.py" ${KRYON_ICON_FILES}
|
||||
WORKING_DIRECTORY "${KRYON_DIR}"
|
||||
VERBATIM)
|
||||
add_custom_target(kryon_icon_assets_generated DEPENDS "${KRYON_ICON_ASSETS_C}" "${KRYON_ICON_NAMES_C}" "${KRYON_ICON_TYPES_H}")
|
||||
@@ -328,6 +359,10 @@ target_include_directories(main PRIVATE
|
||||
"${KRYON_ICON_GENERATED_INCLUDE_DIR}"
|
||||
"${KRYON_DIR}/include"
|
||||
"${KRYON_DIR}/src"
|
||||
"${KRYON_DIR}/src/ui"
|
||||
"${KRYON_DIR}/src/platform"
|
||||
"${KRYON_DIR}/src/backend"
|
||||
"${KRYON_DIR}/vendor/utf8proc"
|
||||
"${KRYON_DIR}/vendor/monocypher/src"
|
||||
"${KRYON_DIR}/vendor/monocypher/src/optional"
|
||||
"${SRC_DIR}"
|
||||
@@ -345,6 +380,8 @@ target_include_directories(main PRIVATE
|
||||
"${APP_KRY_GEN_DIR}"
|
||||
"${APP_KRY_GEN_DIR}/src"
|
||||
"${KRYON_RUNTIME_GEN_DIR}"
|
||||
"${KRYON_RUNTIME_GEN_DIR}/runtime"
|
||||
"${KRYON_UI_GEN_DIR}"
|
||||
"${NATIVE_APP_GLUE_DIR}"
|
||||
"${SQLITE_BUILD_DIR}"
|
||||
)
|
||||
@@ -354,6 +391,7 @@ target_compile_definitions(main PRIVATE
|
||||
ANDROID_BUILD=1
|
||||
_DEFAULT_SOURCE
|
||||
_GNU_SOURCE
|
||||
UTF8PROC_STATIC
|
||||
_FILE_OFFSET_BITS=64
|
||||
MG_TLS=MG_TLS_BUILTIN
|
||||
MG_ENABLE_EPOLL=0
|
||||
|
||||
@@ -68,7 +68,6 @@ public class MainActivity extends NativeActivity {
|
||||
private boolean activityPaused = false;
|
||||
private boolean windowFocused = true;
|
||||
private boolean backgroundExecutionActive = false;
|
||||
private boolean autoPausedForLifecycle = false;
|
||||
private boolean notificationPermissionRequestInFlight = false;
|
||||
private int lastDeleteRepeatCount = -1;
|
||||
private int pendingImportKind = 0;
|
||||
@@ -78,6 +77,14 @@ public class MainActivity extends NativeActivity {
|
||||
private boolean pendingDebugDonationReminder = false;
|
||||
private int pendingDebugDonationReminderRetries = 0;
|
||||
private final Handler mainHandler = new Handler(Looper.getMainLooper());
|
||||
private final Runnable checkSessionIndicator = new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
if (backgroundExecutionActive) {
|
||||
syncLifecycleState("indicator check");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
private native void nativeSetInsets(int left, int top, int right, int bottom, int imeBottom,
|
||||
int cutoutLeft, int cutoutTop, int cutoutRight, int cutoutBottom);
|
||||
@@ -85,10 +92,7 @@ public class MainActivity extends NativeActivity {
|
||||
private native void nativeSetSystemDark(int dark);
|
||||
private native void nativeSetOrientation(int orientation);
|
||||
private native void nativeWakeLockReady();
|
||||
private native void nativeSetBackgroundActive(boolean active);
|
||||
private native int nativeGetPlayInBackground();
|
||||
private native int nativePauseSession();
|
||||
private native void nativeResumeSession();
|
||||
private native int nativeSyncLifecycleState(boolean paused, boolean indicatorVisible);
|
||||
private native void nativeImportSelectedFile(int kind, String path);
|
||||
private native void nativeImportCancelled(int kind);
|
||||
private native void nativeRuntimeAssetDownloadSucceeded(long handle, long bytes, int httpStatus);
|
||||
@@ -683,8 +687,12 @@ public class MainActivity extends NativeActivity {
|
||||
}
|
||||
|
||||
public void acquireWakeLock() {
|
||||
Log.d(TAG, "Starting session foreground service");
|
||||
requestNotificationPermissionIfNeeded();
|
||||
if (!SessionForegroundService.canShowIndicator(this)) {
|
||||
Log.w(TAG, "Session indicator unavailable; background service not started");
|
||||
return;
|
||||
}
|
||||
Log.d(TAG, "Starting session foreground service");
|
||||
Intent intent = new Intent(this, SessionForegroundService.class);
|
||||
intent.setAction(SessionForegroundService.ACTION_START);
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
@@ -696,9 +704,7 @@ public class MainActivity extends NativeActivity {
|
||||
|
||||
public void releaseWakeLock() {
|
||||
Log.d(TAG, "Stopping session foreground service");
|
||||
Intent intent = new Intent(this, SessionForegroundService.class);
|
||||
intent.setAction(SessionForegroundService.ACTION_STOP);
|
||||
startService(intent);
|
||||
stopService(new Intent(this, SessionForegroundService.class));
|
||||
}
|
||||
|
||||
public void updateSessionNotification(final String statusText) {
|
||||
@@ -984,34 +990,27 @@ public class MainActivity extends NativeActivity {
|
||||
}
|
||||
|
||||
private void syncLifecycleState(String reason) {
|
||||
int playInBackground = nativeGetPlayInBackground();
|
||||
boolean shouldRunInBackground = playInBackground != 0 && activityPaused;
|
||||
boolean indicatorVisible = SessionForegroundService.hasVisibleIndicator(this);
|
||||
backgroundExecutionActive = nativeSyncLifecycleState(activityPaused, indicatorVisible) != 0;
|
||||
|
||||
Log.d(TAG, reason + ": play_in_background=" + playInBackground
|
||||
+ " activityPaused=" + activityPaused
|
||||
Log.d(TAG, reason + ": activityPaused=" + activityPaused
|
||||
+ " indicatorVisible=" + indicatorVisible
|
||||
+ " windowFocused=" + windowFocused
|
||||
+ " backgroundActive=" + backgroundExecutionActive);
|
||||
|
||||
if (backgroundExecutionActive != shouldRunInBackground) {
|
||||
nativeSetBackgroundActive(shouldRunInBackground);
|
||||
backgroundExecutionActive = shouldRunInBackground;
|
||||
if (activityPaused && !backgroundExecutionActive) {
|
||||
stopService(new Intent(this, SessionForegroundService.class));
|
||||
}
|
||||
|
||||
if (playInBackground == 0) {
|
||||
if (activityPaused && !autoPausedForLifecycle) {
|
||||
autoPausedForLifecycle = nativePauseSession() != 0;
|
||||
} else if (!activityPaused && autoPausedForLifecycle) {
|
||||
nativeResumeSession();
|
||||
autoPausedForLifecycle = false;
|
||||
}
|
||||
} else if (autoPausedForLifecycle) {
|
||||
nativeResumeSession();
|
||||
autoPausedForLifecycle = false;
|
||||
mainHandler.removeCallbacks(checkSessionIndicator);
|
||||
if (backgroundExecutionActive) {
|
||||
mainHandler.postDelayed(checkSessionIndicator, 2000);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onPause() {
|
||||
NotificationPresence.setActivityVisible(false);
|
||||
super.onPause();
|
||||
activityPaused = true;
|
||||
syncLifecycleState("onPause");
|
||||
@@ -1020,6 +1019,7 @@ public class MainActivity extends NativeActivity {
|
||||
@Override
|
||||
protected void onResume() {
|
||||
super.onResume();
|
||||
NotificationPresence.setActivityVisible(true);
|
||||
activityPaused = false;
|
||||
configureSystemBars();
|
||||
nativeInvalidateGraphicsResources();
|
||||
@@ -1060,6 +1060,8 @@ public class MainActivity extends NativeActivity {
|
||||
|
||||
@Override
|
||||
protected void onDestroy() {
|
||||
NotificationPresence.setActivityVisible(false);
|
||||
mainHandler.removeCallbacks(checkSessionIndicator);
|
||||
super.onDestroy();
|
||||
Log.d(TAG, "onDestroy called - releasing wake lock");
|
||||
allowScreenOff();
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
package xyz.waozi.inbe;
|
||||
|
||||
import android.content.Context;
|
||||
|
||||
/** Process-local presence. A push delivery in a new process starts as absent. */
|
||||
final class NotificationPresence {
|
||||
private static volatile boolean activityVisible;
|
||||
|
||||
private NotificationPresence() {
|
||||
}
|
||||
|
||||
static void setActivityVisible(boolean visible) {
|
||||
activityVisible = visible;
|
||||
}
|
||||
|
||||
static boolean canPostPush(Context context) {
|
||||
return activityVisible || SessionForegroundService.hasVisibleIndicator(context);
|
||||
}
|
||||
}
|
||||
@@ -25,6 +25,10 @@ public class PushServiceImpl extends PushService {
|
||||
|
||||
@Override
|
||||
public void onMessage(PushMessage message, String instance) {
|
||||
if (!NotificationPresence.canPostPush(this)) {
|
||||
Log.d(TAG, "Ignoring push without a visible app or session indicator");
|
||||
return;
|
||||
}
|
||||
String text = new String(message.getContent());
|
||||
String title = "Inner Breeze";
|
||||
String body = text;
|
||||
@@ -85,6 +89,9 @@ public class PushServiceImpl extends PushService {
|
||||
.setContentText(body)
|
||||
.setAutoCancel(true)
|
||||
.setContentIntent(pi);
|
||||
if (!NotificationPresence.canPostPush(this)) {
|
||||
return;
|
||||
}
|
||||
nm.notify(NOTIFICATION_ID, b.build());
|
||||
}
|
||||
}
|
||||
@@ -11,6 +11,7 @@ import android.content.pm.ServiceInfo;
|
||||
import android.os.Build;
|
||||
import android.os.IBinder;
|
||||
import android.os.PowerManager;
|
||||
import android.service.notification.StatusBarNotification;
|
||||
import android.util.Log;
|
||||
|
||||
public class SessionForegroundService extends Service {
|
||||
@@ -20,16 +21,16 @@ public class SessionForegroundService extends Service {
|
||||
private static final String CHANNEL_ID = "active_session";
|
||||
private static final int NOTIFICATION_ID = 3001;
|
||||
private static String currentStatusText = "";
|
||||
private static SessionForegroundService activeService = null;
|
||||
private static volatile SessionForegroundService activeService = null;
|
||||
|
||||
private PowerManager.WakeLock wakeLock = null;
|
||||
private boolean foregroundActive = false;
|
||||
private volatile boolean foregroundActive = false;
|
||||
|
||||
@Override
|
||||
public void onCreate() {
|
||||
super.onCreate();
|
||||
activeService = this;
|
||||
ensureNotificationChannel();
|
||||
ensureNotificationChannel(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -60,6 +61,11 @@ public class SessionForegroundService extends Service {
|
||||
}
|
||||
|
||||
private void startSession() {
|
||||
if (!canShowIndicator(this)) {
|
||||
Log.w(TAG, "Session indicator unavailable; refusing background service");
|
||||
stopSelf();
|
||||
return;
|
||||
}
|
||||
currentStatusText = "";
|
||||
Notification notification = buildNotification();
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||
@@ -102,6 +108,56 @@ public class SessionForegroundService extends Service {
|
||||
}
|
||||
}
|
||||
|
||||
static boolean hasVisibleIndicator(Context context) {
|
||||
SessionForegroundService service = activeService;
|
||||
if (service == null || !service.foregroundActive) {
|
||||
return false;
|
||||
}
|
||||
|
||||
NotificationManager manager = notificationManagerWithVisibleChannel(context);
|
||||
if (manager == null) {
|
||||
return false;
|
||||
}
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
|
||||
try {
|
||||
for (StatusBarNotification notification : manager.getActiveNotifications()) {
|
||||
if (notification.getId() == NOTIFICATION_ID) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
} catch (RuntimeException error) {
|
||||
Log.w(TAG, "Could not confirm session indicator", error);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
// Older Android releases cannot confirm that the posted indicator is
|
||||
// visible, so they cannot authorize background session execution.
|
||||
return false;
|
||||
}
|
||||
|
||||
static boolean canShowIndicator(Context context) {
|
||||
ensureNotificationChannel(context);
|
||||
return notificationManagerWithVisibleChannel(context) != null;
|
||||
}
|
||||
|
||||
private static NotificationManager notificationManagerWithVisibleChannel(Context context) {
|
||||
NotificationManager manager =
|
||||
(NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
if (manager == null) {
|
||||
return null;
|
||||
}
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N && !manager.areNotificationsEnabled()) {
|
||||
return null;
|
||||
}
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O) {
|
||||
NotificationChannel channel = manager.getNotificationChannel(CHANNEL_ID);
|
||||
if (channel == null || channel.getImportance() == NotificationManager.IMPORTANCE_NONE) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
return manager;
|
||||
}
|
||||
|
||||
private void stopForegroundCompat() {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
stopForeground(STOP_FOREGROUND_REMOVE);
|
||||
@@ -179,20 +235,20 @@ public class SessionForegroundService extends Service {
|
||||
return builder.build();
|
||||
}
|
||||
|
||||
private void ensureNotificationChannel() {
|
||||
private static void ensureNotificationChannel(Context context) {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.O) {
|
||||
return;
|
||||
}
|
||||
|
||||
NotificationManager manager =
|
||||
(NotificationManager)getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
(NotificationManager)context.getSystemService(Context.NOTIFICATION_SERVICE);
|
||||
if (manager == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
NotificationChannel channel = new NotificationChannel(
|
||||
CHANNEL_ID,
|
||||
getApplicationInfo().loadLabel(getPackageManager()),
|
||||
context.getApplicationInfo().loadLabel(context.getPackageManager()),
|
||||
NotificationManager.IMPORTANCE_LOW
|
||||
);
|
||||
manager.createNotificationChannel(channel);
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
Fixed
|
||||
---
|
||||
- Existing installations reset navigation once to show Lists, Habits, Practice, and Settings in that order. Changes made afterward are kept.
|
||||
@@ -0,0 +1,3 @@
|
||||
Fixed
|
||||
---
|
||||
- Habit editor section headings and reminder details now align with their rows.
|
||||
@@ -0,0 +1,4 @@
|
||||
Fixed
|
||||
---
|
||||
- Web and browser builds can connect to compatible custom sync servers when you choose one.
|
||||
- Browser extensions no longer request access to the Inner Breeze website.
|
||||
@@ -0,0 +1,12 @@
|
||||
Changed
|
||||
---
|
||||
- The account screen shows the connected alias, automatic sync progress, and counts for habits, history days, sessions, friends, lists, and list items.
|
||||
- Habits show a distinct mark for days completed through a practice session.
|
||||
- Importing an account key offers Merge or Replace before changing local data, with clear details about each choice.
|
||||
- Profile offers Connect Account, and the sync screen offers Import .key when no account is connected.
|
||||
Fixed
|
||||
---
|
||||
- Restoring an existing account now retrieves its username, friends, habits, history, and sessions from the complete account data.
|
||||
- Lists and their items now sync across devices, including completed items and changes made on another device.
|
||||
- Sync status shows the current upload or restore step instead of staying on a generic syncing message.
|
||||
- Connecting an account starts automatic sync without leaving a stale status message behind.
|
||||
@@ -1,3 +1,3 @@
|
||||
Changed
|
||||
---
|
||||
- Move shared Ksync sync protocol code into Flint and simplify Inbe sync client wiring.
|
||||
- Improve the shared sync protocol and simplify Inbe sync client wiring.
|
||||
@@ -620,7 +620,7 @@ Ukončit
|
||||
Účet
|
||||
---
|
||||
[sync_create_account_button]
|
||||
Vytvořit účet
|
||||
Vytvořit nový účet
|
||||
---
|
||||
[sync_account_created]
|
||||
Účet vytvořen
|
||||
@@ -628,6 +628,9 @@ Vytvořit účet
|
||||
[sync_account_create_failed]
|
||||
Účet se nepodařilo vytvořit
|
||||
---
|
||||
[sync_connect_account_button]
|
||||
Připojit účet
|
||||
---
|
||||
[sync_import_key_button]
|
||||
Importovat soubor .key
|
||||
---
|
||||
@@ -652,12 +655,6 @@ Veřejné ID zkopírováno
|
||||
[sync_backup_key_button]
|
||||
Zálohovat klíč
|
||||
---
|
||||
[sync_remote_label]
|
||||
Vzdálený server
|
||||
---
|
||||
[sync_connect_button]
|
||||
Připojit
|
||||
---
|
||||
[sync_server_url_invalid]
|
||||
Použijte https:// nebo loopback jako localhost:8080
|
||||
---
|
||||
@@ -680,7 +677,7 @@ Keeping local data
|
||||
Sync review failed
|
||||
---
|
||||
[sync_no_account]
|
||||
Před připojením vytvořte účet
|
||||
Zatím není připojen žádný účet
|
||||
---
|
||||
[sync_backup_warning]
|
||||
Uložte tento soukromý klíč někam, kde jej máte pod kontrolou. Kdokoli s ním může převzít tento účet.
|
||||
@@ -719,13 +716,16 @@ Odhlásit se
|
||||
Odhlášeno. Místní data zůstávají na tomto zařízení.
|
||||
---
|
||||
[sync_account_switch_title]
|
||||
Vymazat místní data?
|
||||
Zvolte způsob připojení
|
||||
---
|
||||
[sync_account_switch_message]
|
||||
Toto zařízení obsahuje data z jiného synchronizačního účtu. Před použitím tohoto účtu vymažte místní data.
|
||||
V tomto zařízení byla nalezena místní data. Nahrazení je smaže a obnoví tento účet. Sloučení je zachová a zkombinuje obě sady dat.
|
||||
---
|
||||
[sync_account_switch_merge_button]
|
||||
Sloučit a připojit
|
||||
---
|
||||
[sync_account_switch_clear_button]
|
||||
Vymazat a použít účet
|
||||
Nahradit a připojit
|
||||
---
|
||||
[sync_account_switch_cancelled]
|
||||
Změna účtu zrušena
|
||||
@@ -1863,8 +1863,11 @@ Synchronizace tohoto profilu je připravena.
|
||||
[profile_account_sync_title]
|
||||
Účet a synchronizace
|
||||
---
|
||||
[profile_account_connected_body]
|
||||
Správa připojeného účtu a automatické synchronizace
|
||||
---
|
||||
[profile_account_sync_body]
|
||||
Vytvořit účet nebo importovat klíč
|
||||
Vytvořte nový účet nebo importujte existující soubor .key
|
||||
---
|
||||
[profile_data_management_title]
|
||||
Data
|
||||
@@ -1892,9 +1895,6 @@ Synchronizace…
|
||||
[sync_retry_waiting]
|
||||
Připojení selhalo. Automaticky se opakuje.
|
||||
|
||||
---
|
||||
[sync_retry_button]
|
||||
Zkusit znovu
|
||||
---
|
||||
[app_icon_label]
|
||||
Ikona aplikace
|
||||
@@ -1920,3 +1920,47 @@ Skrýt dokončené
|
||||
[guide_title]
|
||||
Rychlý průvodce
|
||||
---
|
||||
---
|
||||
[sync_connected_as]
|
||||
Připojeno jako %s
|
||||
---
|
||||
[sync_everything_up_to_date]
|
||||
Vše je aktuální
|
||||
---
|
||||
[sync_step_account_connected]
|
||||
Účet připojen
|
||||
---
|
||||
[sync_step_data_restored]
|
||||
Data obnovena
|
||||
---
|
||||
[sync_step_automatic_on]
|
||||
Automatická synchronizace zapnuta
|
||||
---
|
||||
[sync_history_days_label]
|
||||
Dny historie
|
||||
---
|
||||
[sync_now_button]
|
||||
Synchronizovat nyní
|
||||
---
|
||||
[sync_progress_uploading]
|
||||
Odesílání %lld místních položek…
|
||||
---
|
||||
[sync_progress_securing]
|
||||
Zabezpečování položek: %lld z %lld…
|
||||
---
|
||||
[sync_progress_restoring]
|
||||
Obnovování dat účtu…
|
||||
---
|
||||
[sync_progress_friends]
|
||||
Obnovování přátel…
|
||||
---
|
||||
[sync_remote_label]
|
||||
Synchronizační server
|
||||
---
|
||||
---
|
||||
[sync_lists_label]
|
||||
Seznamy
|
||||
---
|
||||
[sync_list_items_label]
|
||||
Položky
|
||||
---
|
||||
@@ -620,7 +620,7 @@ Beenden
|
||||
Konto
|
||||
---
|
||||
[sync_create_account_button]
|
||||
Konto erstellen
|
||||
Neues Konto erstellen
|
||||
---
|
||||
[sync_account_created]
|
||||
Konto erstellt
|
||||
@@ -628,6 +628,9 @@ Konto erstellt
|
||||
[sync_account_create_failed]
|
||||
Konto konnte nicht erstellt werden
|
||||
---
|
||||
[sync_connect_account_button]
|
||||
Konto verbinden
|
||||
---
|
||||
[sync_import_key_button]
|
||||
.key-Datei importieren
|
||||
---
|
||||
@@ -652,12 +655,6 @@ ID kopieren
|
||||
[sync_backup_key_button]
|
||||
Schlüssel sichern
|
||||
---
|
||||
[sync_remote_label]
|
||||
Server
|
||||
---
|
||||
[sync_connect_button]
|
||||
Verbinden
|
||||
---
|
||||
[sync_server_url_invalid]
|
||||
Nutze https:// oder Loopback wie localhost:8080
|
||||
---
|
||||
@@ -680,7 +677,7 @@ Keeping local data
|
||||
Sync review failed
|
||||
---
|
||||
[sync_no_account]
|
||||
Erstelle ein Konto, bevor du dich verbindest
|
||||
Noch kein Konto verbunden
|
||||
---
|
||||
[sync_backup_warning]
|
||||
Speichere diesen privaten Schlüssel an einem Ort, den du kontrollierst. Jeder mit diesem Schlüssel kann dieses Konto übernehmen.
|
||||
@@ -719,13 +716,16 @@ Abmelden
|
||||
Abgemeldet. Lokale Daten bleiben auf diesem Gerät.
|
||||
---
|
||||
[sync_account_switch_title]
|
||||
Lokale Daten löschen?
|
||||
Verbindungsmethode wählen
|
||||
---
|
||||
[sync_account_switch_message]
|
||||
Dieses Gerät enthält Daten eines anderen Sync-Kontos. Lösche lokale Daten, bevor du dieses Konto verwendest.
|
||||
Auf diesem Gerät wurden lokale Daten gefunden. Ersetzen löscht sie und stellt dieses Konto wieder her. Zusammenführen behält sie und kombiniert beide Datensätze.
|
||||
---
|
||||
[sync_account_switch_merge_button]
|
||||
Zusammenführen und verbinden
|
||||
---
|
||||
[sync_account_switch_clear_button]
|
||||
Löschen und Konto verwenden
|
||||
Ersetzen und verbinden
|
||||
---
|
||||
[sync_account_switch_cancelled]
|
||||
Kontowechsel abgebrochen
|
||||
@@ -1863,8 +1863,11 @@ Die Synchronisierung für dieses Profil ist bereit.
|
||||
[profile_account_sync_title]
|
||||
Konto und Synchronisierung
|
||||
---
|
||||
[profile_account_connected_body]
|
||||
Verbundenes Konto und automatische Synchronisierung verwalten
|
||||
---
|
||||
[profile_account_sync_body]
|
||||
Konto erstellen oder Schlüssel importieren
|
||||
Neues Konto erstellen oder eine vorhandene .key-Datei importieren
|
||||
---
|
||||
[profile_data_management_title]
|
||||
Daten
|
||||
@@ -1892,9 +1895,6 @@ Synchronisierung läuft…
|
||||
[sync_retry_waiting]
|
||||
Verbindung fehlgeschlagen. Automatischer neuer Versuch.
|
||||
|
||||
---
|
||||
[sync_retry_button]
|
||||
Erneut versuchen
|
||||
---
|
||||
[app_icon_label]
|
||||
App-Symbol
|
||||
@@ -1920,3 +1920,47 @@ Erledigte ausblenden
|
||||
[guide_title]
|
||||
Kurzanleitung
|
||||
---
|
||||
---
|
||||
[sync_connected_as]
|
||||
Verbunden als %s
|
||||
---
|
||||
[sync_everything_up_to_date]
|
||||
Alles ist auf dem neuesten Stand
|
||||
---
|
||||
[sync_step_account_connected]
|
||||
Konto verbunden
|
||||
---
|
||||
[sync_step_data_restored]
|
||||
Daten wiederhergestellt
|
||||
---
|
||||
[sync_step_automatic_on]
|
||||
Automatische Synchronisierung aktiv
|
||||
---
|
||||
[sync_history_days_label]
|
||||
Verlaufstage
|
||||
---
|
||||
[sync_now_button]
|
||||
Jetzt synchronisieren
|
||||
---
|
||||
[sync_progress_uploading]
|
||||
Lokale Elemente werden gesendet: %lld…
|
||||
---
|
||||
[sync_progress_securing]
|
||||
Elemente werden geschützt: %lld von %lld…
|
||||
---
|
||||
[sync_progress_restoring]
|
||||
Kontodaten werden wiederhergestellt…
|
||||
---
|
||||
[sync_progress_friends]
|
||||
Freunde werden wiederhergestellt…
|
||||
---
|
||||
[sync_remote_label]
|
||||
Synchronisierungsserver
|
||||
---
|
||||
---
|
||||
[sync_lists_label]
|
||||
Listen
|
||||
---
|
||||
[sync_list_items_label]
|
||||
Einträge
|
||||
---
|
||||
@@ -32,13 +32,16 @@ Sessions
|
||||
Create an account to sync and protect your progress.
|
||||
---
|
||||
[profile_sync_ready_body]
|
||||
Sync is ready for this profile.
|
||||
Syncing automatically.
|
||||
---
|
||||
[profile_account_sync_title]
|
||||
Account & sync
|
||||
---
|
||||
[profile_account_connected_body]
|
||||
Manage your connected account and automatic sync
|
||||
---
|
||||
[profile_account_sync_body]
|
||||
Create account or import key
|
||||
Create a new account or import an existing .key file
|
||||
---
|
||||
[profile_data_management_title]
|
||||
Data
|
||||
@@ -860,7 +863,7 @@ Break Settings...
|
||||
Account
|
||||
---
|
||||
[sync_create_account_button]
|
||||
Create Account
|
||||
Create New Account
|
||||
---
|
||||
[sync_account_created]
|
||||
Account created
|
||||
@@ -868,8 +871,11 @@ Account created
|
||||
[sync_account_create_failed]
|
||||
Could not create account
|
||||
---
|
||||
[sync_connect_account_button]
|
||||
Connect Account
|
||||
---
|
||||
[sync_import_key_button]
|
||||
Import .key File
|
||||
Import .key
|
||||
---
|
||||
[sync_import_key_dialog_title]
|
||||
Import Account Key
|
||||
@@ -928,12 +934,6 @@ Alias unavailable or remote failed
|
||||
[sync_backup_key_button]
|
||||
Backup Key
|
||||
---
|
||||
[sync_remote_label]
|
||||
Remote
|
||||
---
|
||||
[sync_connect_button]
|
||||
Connect
|
||||
---
|
||||
[sync_server_url_invalid]
|
||||
Use https:// or loopback like localhost:8080
|
||||
---
|
||||
@@ -956,7 +956,7 @@ Keeping local data
|
||||
Sync review failed
|
||||
---
|
||||
[sync_no_account]
|
||||
Create an account before connecting
|
||||
No account connected yet
|
||||
---
|
||||
[sync_backup_warning]
|
||||
Save this private key somewhere you control. Anyone with it can claim this account.
|
||||
@@ -995,13 +995,16 @@ Log out
|
||||
Logged out. Local data stays on this device.
|
||||
---
|
||||
[sync_account_switch_title]
|
||||
Clear local data?
|
||||
Choose how to connect
|
||||
---
|
||||
[sync_account_switch_message]
|
||||
This device has data from another sync account. Clear local data before using this account.
|
||||
Local data was found on this device. Replace deletes it and restores this account. Merge keeps it and combines both sets of data.
|
||||
---
|
||||
[sync_account_switch_merge_button]
|
||||
Merge and Connect
|
||||
---
|
||||
[sync_account_switch_clear_button]
|
||||
Clear and Use Account
|
||||
Replace and Connect
|
||||
---
|
||||
[sync_account_switch_cancelled]
|
||||
Account switch cancelled
|
||||
@@ -1891,9 +1894,6 @@ Syncing…
|
||||
[sync_retry_waiting]
|
||||
Connection failed. Retrying automatically.
|
||||
|
||||
---
|
||||
[sync_retry_button]
|
||||
Retry
|
||||
---
|
||||
[app_icon_label]
|
||||
App icon
|
||||
@@ -1919,3 +1919,47 @@ Hide completed
|
||||
[guide_title]
|
||||
Quick guide
|
||||
---
|
||||
---
|
||||
[sync_connected_as]
|
||||
Connected as %s
|
||||
---
|
||||
[sync_everything_up_to_date]
|
||||
Everything is up to date
|
||||
---
|
||||
[sync_step_account_connected]
|
||||
Account connected
|
||||
---
|
||||
[sync_step_data_restored]
|
||||
Data restored
|
||||
---
|
||||
[sync_step_automatic_on]
|
||||
Automatic sync on
|
||||
---
|
||||
[sync_history_days_label]
|
||||
History days
|
||||
---
|
||||
[sync_now_button]
|
||||
Sync now
|
||||
---
|
||||
[sync_progress_uploading]
|
||||
Uploading %lld local items…
|
||||
---
|
||||
[sync_progress_securing]
|
||||
Securing %lld of %lld items…
|
||||
---
|
||||
[sync_progress_restoring]
|
||||
Restoring account data…
|
||||
---
|
||||
[sync_progress_friends]
|
||||
Restoring friends…
|
||||
---
|
||||
[sync_remote_label]
|
||||
Sync server
|
||||
---
|
||||
---
|
||||
[sync_lists_label]
|
||||
Lists
|
||||
---
|
||||
[sync_list_items_label]
|
||||
Items
|
||||
---
|
||||
@@ -317,7 +317,19 @@ Omitir
|
||||
Aceptar
|
||||
---
|
||||
[retry_button]
|
||||
Reintentar
|
||||
Sincronizar ahora
|
||||
---
|
||||
[sync_progress_uploading]
|
||||
Enviando %lld elementos locales…
|
||||
---
|
||||
[sync_progress_securing]
|
||||
Protegiendo %lld de %lld elementos…
|
||||
---
|
||||
[sync_progress_restoring]
|
||||
Restaurando los datos de la cuenta…
|
||||
---
|
||||
[sync_progress_friends]
|
||||
Restaurando amigos…
|
||||
---
|
||||
[audio_import_music_button]
|
||||
Importar música
|
||||
@@ -620,7 +632,7 @@ Salir
|
||||
Cuenta
|
||||
---
|
||||
[sync_create_account_button]
|
||||
Crear cuenta
|
||||
Crear nueva cuenta
|
||||
---
|
||||
[sync_account_created]
|
||||
Cuenta creada
|
||||
@@ -628,6 +640,9 @@ Cuenta creada
|
||||
[sync_account_create_failed]
|
||||
No se pudo crear la cuenta
|
||||
---
|
||||
[sync_connect_account_button]
|
||||
Conectar cuenta
|
||||
---
|
||||
[sync_import_key_button]
|
||||
Importar archivo .key
|
||||
---
|
||||
@@ -652,12 +667,6 @@ ID público copiado
|
||||
[sync_backup_key_button]
|
||||
Respaldar clave
|
||||
---
|
||||
[sync_remote_label]
|
||||
Remoto
|
||||
---
|
||||
[sync_connect_button]
|
||||
Conectar
|
||||
---
|
||||
[sync_server_url_invalid]
|
||||
Usa https:// o loopback como localhost:8080
|
||||
---
|
||||
@@ -680,7 +689,7 @@ Keeping local data
|
||||
Sync review failed
|
||||
---
|
||||
[sync_no_account]
|
||||
Crea una cuenta antes de conectar
|
||||
Aún no hay ninguna cuenta conectada
|
||||
---
|
||||
[sync_backup_warning]
|
||||
Guarda esta clave privada en un lugar que controles. Cualquiera con ella puede reclamar esta cuenta.
|
||||
@@ -719,13 +728,16 @@ Cerrar sesión
|
||||
Sesión cerrada. Los datos locales permanecen en este dispositivo.
|
||||
---
|
||||
[sync_account_switch_title]
|
||||
¿Borrar datos locales?
|
||||
Elige cómo conectar
|
||||
---
|
||||
[sync_account_switch_message]
|
||||
Este dispositivo tiene datos de otra cuenta de sincronización. Borra los datos locales antes de usar esta cuenta.
|
||||
Se encontraron datos locales en este dispositivo. Reemplazar los elimina y restaura esta cuenta. Combinar los conserva y une ambos conjuntos de datos.
|
||||
---
|
||||
[sync_account_switch_merge_button]
|
||||
Combinar y conectar
|
||||
---
|
||||
[sync_account_switch_clear_button]
|
||||
Borrar y usar cuenta
|
||||
Reemplazar y conectar
|
||||
---
|
||||
[sync_account_switch_cancelled]
|
||||
Cambio de cuenta cancelado
|
||||
@@ -1858,13 +1870,16 @@ Sesiones
|
||||
Crea una cuenta para sincronizar y proteger tu progreso.
|
||||
---
|
||||
[profile_sync_ready_body]
|
||||
La sincronización está lista para este perfil.
|
||||
Sincronizando automáticamente.
|
||||
---
|
||||
[profile_account_sync_title]
|
||||
Cuenta y sincronización
|
||||
---
|
||||
[profile_account_connected_body]
|
||||
Gestiona tu cuenta conectada y la sincronización automática
|
||||
---
|
||||
[profile_account_sync_body]
|
||||
Crear cuenta o importar clave
|
||||
Crea una cuenta nueva o importa un archivo .key existente
|
||||
---
|
||||
[profile_data_management_title]
|
||||
Datos
|
||||
@@ -1892,9 +1907,6 @@ Sincronizando…
|
||||
[sync_retry_waiting]
|
||||
Error de conexión. Se reintentará automáticamente.
|
||||
|
||||
---
|
||||
[sync_retry_button]
|
||||
Reintentar
|
||||
---
|
||||
[app_icon_label]
|
||||
Icono de la aplicación
|
||||
@@ -1920,3 +1932,35 @@ Ocultar completados
|
||||
[guide_title]
|
||||
Guía rápida
|
||||
---
|
||||
---
|
||||
[sync_connected_as]
|
||||
Conectado como %s
|
||||
---
|
||||
[sync_everything_up_to_date]
|
||||
Todo está actualizado
|
||||
---
|
||||
[sync_step_account_connected]
|
||||
Cuenta conectada
|
||||
---
|
||||
[sync_step_data_restored]
|
||||
Datos restaurados
|
||||
---
|
||||
[sync_step_automatic_on]
|
||||
Sincronización automática activada
|
||||
---
|
||||
[sync_history_days_label]
|
||||
Días del historial
|
||||
---
|
||||
[sync_now_button]
|
||||
Sincronizar ahora
|
||||
---
|
||||
[sync_remote_label]
|
||||
Servidor de sincronización
|
||||
---
|
||||
---
|
||||
[sync_lists_label]
|
||||
Listas
|
||||
---
|
||||
[sync_list_items_label]
|
||||
Elementos
|
||||
---
|
||||
@@ -317,7 +317,7 @@ Ignorer
|
||||
OK
|
||||
---
|
||||
[retry_button]
|
||||
Réessayer
|
||||
Synchroniser
|
||||
---
|
||||
[audio_import_music_button]
|
||||
Importer de la musique
|
||||
@@ -620,7 +620,7 @@ Quitter
|
||||
Compte
|
||||
---
|
||||
[sync_create_account_button]
|
||||
Créer un compte
|
||||
Créer un nouveau compte
|
||||
---
|
||||
[sync_account_created]
|
||||
Compte créé
|
||||
@@ -628,6 +628,9 @@ Compte créé
|
||||
[sync_account_create_failed]
|
||||
Impossible de créer le compte
|
||||
---
|
||||
[sync_connect_account_button]
|
||||
Connecter un compte
|
||||
---
|
||||
[sync_import_key_button]
|
||||
Importer un fichier .key
|
||||
---
|
||||
@@ -688,12 +691,6 @@ Alias indisponible ou échec distant
|
||||
[sync_backup_key_button]
|
||||
Sauvegarder la clé
|
||||
---
|
||||
[sync_remote_label]
|
||||
Distant
|
||||
---
|
||||
[sync_connect_button]
|
||||
Connecter
|
||||
---
|
||||
[sync_server_url_invalid]
|
||||
Utilisez https:// ou une boucle locale comme localhost:8080
|
||||
---
|
||||
@@ -716,7 +713,7 @@ Keeping local data
|
||||
Sync review failed
|
||||
---
|
||||
[sync_no_account]
|
||||
Créez un compte avant de vous connecter
|
||||
Aucun compte connecté pour l'instant
|
||||
---
|
||||
[sync_backup_warning]
|
||||
Enregistrez cette clé privée dans un endroit que vous contrôlez. Toute personne qui la possède peut revendiquer ce compte.
|
||||
@@ -755,13 +752,16 @@ Se déconnecter
|
||||
Déconnecté. Les données locales restent sur cet appareil.
|
||||
---
|
||||
[sync_account_switch_title]
|
||||
Effacer les données locales ?
|
||||
Choisir le mode de connexion
|
||||
---
|
||||
[sync_account_switch_message]
|
||||
Cet appareil contient des données d’un autre compte de synchronisation. Effacez les données locales avant d’utiliser ce compte.
|
||||
Des données locales ont été trouvées sur cet appareil. Remplacer les supprime et restaure ce compte. Fusionner les conserve et combine les deux ensembles de données.
|
||||
---
|
||||
[sync_account_switch_merge_button]
|
||||
Fusionner et connecter
|
||||
---
|
||||
[sync_account_switch_clear_button]
|
||||
Effacer et utiliser le compte
|
||||
Remplacer et connecter
|
||||
---
|
||||
[sync_account_switch_cancelled]
|
||||
Changement de compte annulé
|
||||
@@ -1858,13 +1858,16 @@ Séances
|
||||
Créez un compte pour synchroniser et protéger votre progression.
|
||||
---
|
||||
[profile_sync_ready_body]
|
||||
La synchronisation est prête pour ce profil.
|
||||
Synchronisation automatique.
|
||||
---
|
||||
[profile_account_sync_title]
|
||||
Compte et synchronisation
|
||||
---
|
||||
[profile_account_connected_body]
|
||||
Gérez votre compte connecté et la synchronisation automatique
|
||||
---
|
||||
[profile_account_sync_body]
|
||||
Créer un compte ou importer une clé
|
||||
Créez un compte ou importez un fichier .key existant
|
||||
---
|
||||
[profile_data_management_title]
|
||||
Données
|
||||
@@ -1892,9 +1895,6 @@ Synchronisation…
|
||||
[sync_retry_waiting]
|
||||
Échec de connexion. Nouvelle tentative automatique.
|
||||
|
||||
---
|
||||
[sync_retry_button]
|
||||
Réessayer
|
||||
---
|
||||
[app_icon_label]
|
||||
Icône de l’application
|
||||
@@ -1920,3 +1920,47 @@ Masquer les éléments terminés
|
||||
[guide_title]
|
||||
Guide rapide
|
||||
---
|
||||
---
|
||||
[sync_connected_as]
|
||||
Connecté en tant que %s
|
||||
---
|
||||
[sync_everything_up_to_date]
|
||||
Tout est à jour
|
||||
---
|
||||
[sync_step_account_connected]
|
||||
Compte connecté
|
||||
---
|
||||
[sync_step_data_restored]
|
||||
Données restaurées
|
||||
---
|
||||
[sync_step_automatic_on]
|
||||
Synchronisation automatique activée
|
||||
---
|
||||
[sync_history_days_label]
|
||||
Jours d’historique
|
||||
---
|
||||
[sync_now_button]
|
||||
Synchroniser maintenant
|
||||
---
|
||||
[sync_progress_uploading]
|
||||
Envoi de %lld éléments locaux…
|
||||
---
|
||||
[sync_progress_securing]
|
||||
Sécurisation de %lld éléments sur %lld…
|
||||
---
|
||||
[sync_progress_restoring]
|
||||
Restauration des données du compte…
|
||||
---
|
||||
[sync_progress_friends]
|
||||
Restauration des amis…
|
||||
---
|
||||
[sync_remote_label]
|
||||
Serveur de synchronisation
|
||||
---
|
||||
---
|
||||
[sync_lists_label]
|
||||
Listes
|
||||
---
|
||||
[sync_list_items_label]
|
||||
Éléments
|
||||
---
|
||||
@@ -317,7 +317,19 @@ Lewati
|
||||
OK
|
||||
---
|
||||
[retry_button]
|
||||
Coba lagi
|
||||
Sinkronkan sekarang
|
||||
---
|
||||
[sync_progress_uploading]
|
||||
Mengirim %lld item lokal…
|
||||
---
|
||||
[sync_progress_securing]
|
||||
Mengamankan %lld dari %lld item…
|
||||
---
|
||||
[sync_progress_restoring]
|
||||
Memulihkan data akun…
|
||||
---
|
||||
[sync_progress_friends]
|
||||
Memulihkan teman…
|
||||
---
|
||||
[audio_import_music_button]
|
||||
Impor musik
|
||||
@@ -620,7 +632,7 @@ Keluar
|
||||
Akun
|
||||
---
|
||||
[sync_create_account_button]
|
||||
Buat akun
|
||||
Buat akun baru
|
||||
---
|
||||
[sync_account_created]
|
||||
Akun dibuat
|
||||
@@ -628,6 +640,9 @@ Akun dibuat
|
||||
[sync_account_create_failed]
|
||||
Tidak dapat membuat akun
|
||||
---
|
||||
[sync_connect_account_button]
|
||||
Hubungkan akun
|
||||
---
|
||||
[sync_import_key_button]
|
||||
Impor file .key
|
||||
---
|
||||
@@ -652,12 +667,6 @@ ID publik disalin
|
||||
[sync_backup_key_button]
|
||||
Cadangkan kunci
|
||||
---
|
||||
[sync_remote_label]
|
||||
Jarak jauh
|
||||
---
|
||||
[sync_connect_button]
|
||||
Hubungkan
|
||||
---
|
||||
[sync_server_url_invalid]
|
||||
Gunakan https:// atau loopback seperti localhost:8080
|
||||
---
|
||||
@@ -680,7 +689,7 @@ Keeping local data
|
||||
Sync review failed
|
||||
---
|
||||
[sync_no_account]
|
||||
Buat akun sebelum menghubungkan
|
||||
Belum ada akun yang terhubung
|
||||
---
|
||||
[sync_backup_warning]
|
||||
Simpan kunci pribadi ini di tempat yang Anda kendalikan. Siapa pun yang memilikinya dapat mengambil akun ini.
|
||||
@@ -719,13 +728,16 @@ Keluar
|
||||
Sudah keluar. Data lokal tetap ada di perangkat ini.
|
||||
---
|
||||
[sync_account_switch_title]
|
||||
Hapus data lokal?
|
||||
Pilih cara menghubungkan
|
||||
---
|
||||
[sync_account_switch_message]
|
||||
Perangkat ini memiliki data dari akun sinkronisasi lain. Hapus data lokal sebelum memakai akun ini.
|
||||
Data lokal ditemukan di perangkat ini. Ganti akan menghapusnya dan memulihkan akun ini. Gabungkan akan menyimpannya dan menggabungkan kedua kumpulan data.
|
||||
---
|
||||
[sync_account_switch_merge_button]
|
||||
Gabungkan dan hubungkan
|
||||
---
|
||||
[sync_account_switch_clear_button]
|
||||
Hapus dan pakai akun
|
||||
Ganti dan hubungkan
|
||||
---
|
||||
[sync_account_switch_cancelled]
|
||||
Pergantian akun dibatalkan
|
||||
@@ -1858,13 +1870,16 @@ Sesi
|
||||
Buat akun untuk menyinkronkan dan melindungi kemajuan Anda.
|
||||
---
|
||||
[profile_sync_ready_body]
|
||||
Sinkronisasi siap untuk profil ini.
|
||||
Menyinkronkan otomatis.
|
||||
---
|
||||
[profile_account_sync_title]
|
||||
Akun dan sinkronisasi
|
||||
---
|
||||
[profile_account_connected_body]
|
||||
Kelola akun terhubung dan sinkronisasi otomatis
|
||||
---
|
||||
[profile_account_sync_body]
|
||||
Buat akun atau impor kunci
|
||||
Buat akun baru atau impor file .key yang sudah ada
|
||||
---
|
||||
[profile_data_management_title]
|
||||
Data
|
||||
@@ -1892,9 +1907,6 @@ Menyinkronkan…
|
||||
[sync_retry_waiting]
|
||||
Koneksi gagal. Mencoba lagi secara otomatis.
|
||||
|
||||
---
|
||||
[sync_retry_button]
|
||||
Coba lagi
|
||||
---
|
||||
[app_icon_label]
|
||||
Ikon aplikasi
|
||||
@@ -1920,3 +1932,35 @@ Sembunyikan yang selesai
|
||||
[guide_title]
|
||||
Panduan singkat
|
||||
---
|
||||
---
|
||||
[sync_connected_as]
|
||||
Terhubung sebagai %s
|
||||
---
|
||||
[sync_everything_up_to_date]
|
||||
Semuanya sudah terbaru
|
||||
---
|
||||
[sync_step_account_connected]
|
||||
Akun terhubung
|
||||
---
|
||||
[sync_step_data_restored]
|
||||
Data dipulihkan
|
||||
---
|
||||
[sync_step_automatic_on]
|
||||
Sinkronisasi otomatis aktif
|
||||
---
|
||||
[sync_history_days_label]
|
||||
Hari riwayat
|
||||
---
|
||||
[sync_now_button]
|
||||
Sinkronkan sekarang
|
||||
---
|
||||
[sync_remote_label]
|
||||
Server sinkronisasi
|
||||
---
|
||||
---
|
||||
[sync_lists_label]
|
||||
Daftar
|
||||
---
|
||||
[sync_list_items_label]
|
||||
Item
|
||||
---
|
||||
@@ -1,5 +1,5 @@
|
||||
[results_write_failed]
|
||||
Impossibile salvare le modifiche. Riprova.
|
||||
Impossibile salvare le modifiche. Sincronizza.
|
||||
---
|
||||
[app_title]
|
||||
Inner Breeze
|
||||
@@ -620,7 +620,7 @@ Esci
|
||||
Profilo
|
||||
---
|
||||
[sync_create_account_button]
|
||||
Crea account
|
||||
Crea nuovo account
|
||||
---
|
||||
[sync_account_created]
|
||||
Account creato
|
||||
@@ -628,6 +628,9 @@ Account creato
|
||||
[sync_account_create_failed]
|
||||
Impossibile creare l’account
|
||||
---
|
||||
[sync_connect_account_button]
|
||||
Connetti account
|
||||
---
|
||||
[sync_import_key_button]
|
||||
Importa file .key
|
||||
---
|
||||
@@ -652,12 +655,6 @@ ID pubblico copiato
|
||||
[sync_backup_key_button]
|
||||
Backup chiave
|
||||
---
|
||||
[sync_remote_label]
|
||||
Remoto
|
||||
---
|
||||
[sync_connect_button]
|
||||
Connetti
|
||||
---
|
||||
[sync_server_url_invalid]
|
||||
Usa https:// o loopback come localhost:8080
|
||||
---
|
||||
@@ -680,7 +677,7 @@ Keeping local data
|
||||
Sync review failed
|
||||
---
|
||||
[sync_no_account]
|
||||
Crea un account prima di connetterti
|
||||
Nessun account ancora connesso
|
||||
---
|
||||
[sync_backup_warning]
|
||||
Salva questa chiave privata in un luogo che controlli. Chiunque la possieda può rivendicare questo account.
|
||||
@@ -719,13 +716,16 @@ Esci
|
||||
Disconnesso. I dati locali restano su questo dispositivo.
|
||||
---
|
||||
[sync_account_switch_title]
|
||||
Cancellare i dati locali?
|
||||
Scegli come connetterti
|
||||
---
|
||||
[sync_account_switch_message]
|
||||
Questo dispositivo contiene dati di un altro account di sincronizzazione. Cancella i dati locali prima di usare questo account.
|
||||
Sono stati trovati dati locali su questo dispositivo. Sostituisci li elimina e ripristina questo account. Unisci li conserva e combina entrambi i gruppi di dati.
|
||||
---
|
||||
[sync_account_switch_merge_button]
|
||||
Unisci e connetti
|
||||
---
|
||||
[sync_account_switch_clear_button]
|
||||
Cancella e usa account
|
||||
Sostituisci e connetti
|
||||
---
|
||||
[sync_account_switch_cancelled]
|
||||
Cambio account annullato
|
||||
@@ -1858,13 +1858,16 @@ Sessioni
|
||||
Crea un account per sincronizzare e proteggere i tuoi progressi.
|
||||
---
|
||||
[profile_sync_ready_body]
|
||||
La sincronizzazione è pronta per questo profilo.
|
||||
Sincronizzazione automatica.
|
||||
---
|
||||
[profile_account_sync_title]
|
||||
Account e sincronizzazione
|
||||
---
|
||||
[profile_account_connected_body]
|
||||
Gestisci l’account connesso e la sincronizzazione automatica
|
||||
---
|
||||
[profile_account_sync_body]
|
||||
Crea account o importa chiave
|
||||
Crea un nuovo account o importa un file .key esistente
|
||||
---
|
||||
[profile_data_management_title]
|
||||
Dati
|
||||
@@ -1892,9 +1895,6 @@ Sincronizzazione…
|
||||
[sync_retry_waiting]
|
||||
Connessione non riuscita. Nuovo tentativo automatico.
|
||||
|
||||
---
|
||||
[sync_retry_button]
|
||||
Riprova
|
||||
---
|
||||
[app_icon_label]
|
||||
Icona dell’app
|
||||
@@ -1920,3 +1920,47 @@ Nascondi completati
|
||||
[guide_title]
|
||||
Guida rapida
|
||||
---
|
||||
---
|
||||
[sync_connected_as]
|
||||
Connesso come %s
|
||||
---
|
||||
[sync_everything_up_to_date]
|
||||
Tutto è aggiornato
|
||||
---
|
||||
[sync_step_account_connected]
|
||||
Account connesso
|
||||
---
|
||||
[sync_step_data_restored]
|
||||
Dati ripristinati
|
||||
---
|
||||
[sync_step_automatic_on]
|
||||
Sincronizzazione automatica attiva
|
||||
---
|
||||
[sync_history_days_label]
|
||||
Giorni nella cronologia
|
||||
---
|
||||
[sync_now_button]
|
||||
Sincronizza ora
|
||||
---
|
||||
[sync_progress_uploading]
|
||||
Invio di %lld elementi locali…
|
||||
---
|
||||
[sync_progress_securing]
|
||||
Protezione di %lld elementi su %lld…
|
||||
---
|
||||
[sync_progress_restoring]
|
||||
Ripristino dei dati dell'account…
|
||||
---
|
||||
[sync_progress_friends]
|
||||
Ripristino degli amici…
|
||||
---
|
||||
[sync_remote_label]
|
||||
Server di sincronizzazione
|
||||
---
|
||||
---
|
||||
[sync_lists_label]
|
||||
Liste
|
||||
---
|
||||
[sync_list_items_label]
|
||||
Elementi
|
||||
---
|
||||
@@ -317,7 +317,7 @@ Finish
|
||||
OK
|
||||
---
|
||||
[retry_button]
|
||||
再試行
|
||||
同期する
|
||||
---
|
||||
[audio_import_music_button]
|
||||
音楽をインポート
|
||||
@@ -622,7 +622,7 @@ Inner Breezeを実行したままにしますか?
|
||||
アカウント
|
||||
---
|
||||
[sync_create_account_button]
|
||||
アカウントを作成
|
||||
新しいアカウントを作成
|
||||
---
|
||||
[sync_account_created]
|
||||
アカウントを作成しました
|
||||
@@ -630,6 +630,9 @@ Inner Breezeを実行したままにしますか?
|
||||
[sync_account_create_failed]
|
||||
アカウントを作成できませんでした
|
||||
---
|
||||
[sync_connect_account_button]
|
||||
アカウントに接続
|
||||
---
|
||||
[sync_import_key_button]
|
||||
.keyファイルをインポート
|
||||
---
|
||||
@@ -654,12 +657,6 @@ IDをコピー
|
||||
[sync_backup_key_button]
|
||||
キーをバックアップ
|
||||
---
|
||||
[sync_remote_label]
|
||||
リモート
|
||||
---
|
||||
[sync_connect_button]
|
||||
接続
|
||||
---
|
||||
[sync_server_url_invalid]
|
||||
https:// または localhost:8080 のようなループバックを使用してください
|
||||
---
|
||||
@@ -682,7 +679,7 @@ Keeping local data
|
||||
Sync review failed
|
||||
---
|
||||
[sync_no_account]
|
||||
接続する前にアカウントを作成してください
|
||||
まだアカウントが接続されていません
|
||||
---
|
||||
[sync_backup_warning]
|
||||
この秘密キーは自分で管理できる場所に保存してください。これを持つ人は誰でもこのアカウントを取得できます。
|
||||
@@ -721,13 +718,16 @@ Sync review failed
|
||||
ログアウトしました。ローカルデータはこの端末に残ります。
|
||||
---
|
||||
[sync_account_switch_title]
|
||||
ローカルデータをクリアしますか?
|
||||
接続方法を選択
|
||||
---
|
||||
[sync_account_switch_message]
|
||||
この端末には別の同期アカウントのデータがあります。このアカウントを使う前にローカルデータをクリアしてください。
|
||||
この端末にローカルデータがあります。置き換えると削除してこのアカウントを復元します。統合すると保持したまま両方のデータをまとめます。
|
||||
---
|
||||
[sync_account_switch_merge_button]
|
||||
統合して接続
|
||||
---
|
||||
[sync_account_switch_clear_button]
|
||||
クリアしてアカウントを使用
|
||||
置き換えて接続
|
||||
---
|
||||
[sync_account_switch_cancelled]
|
||||
アカウントの切り替えをキャンセルしました
|
||||
@@ -1865,8 +1865,11 @@ Dismiss forever
|
||||
[profile_account_sync_title]
|
||||
アカウントと同期
|
||||
---
|
||||
[profile_account_connected_body]
|
||||
接続済みアカウントと自動同期を管理
|
||||
---
|
||||
[profile_account_sync_body]
|
||||
アカウントを作成または鍵をインポート
|
||||
新しいアカウントを作成するか、既存の.keyファイルをインポートしてください
|
||||
---
|
||||
[profile_data_management_title]
|
||||
データ
|
||||
@@ -1894,9 +1897,6 @@ Dismiss forever
|
||||
[sync_retry_waiting]
|
||||
接続に失敗しました。自動的に再試行します。
|
||||
|
||||
---
|
||||
[sync_retry_button]
|
||||
再試行
|
||||
---
|
||||
[app_icon_label]
|
||||
アプリアイコン
|
||||
@@ -1922,3 +1922,47 @@ Dismiss forever
|
||||
[guide_title]
|
||||
クイックガイド
|
||||
---
|
||||
---
|
||||
[sync_connected_as]
|
||||
%s として接続中
|
||||
---
|
||||
[sync_everything_up_to_date]
|
||||
すべて最新です
|
||||
---
|
||||
[sync_step_account_connected]
|
||||
アカウント接続済み
|
||||
---
|
||||
[sync_step_data_restored]
|
||||
データ復元済み
|
||||
---
|
||||
[sync_step_automatic_on]
|
||||
自動同期オン
|
||||
---
|
||||
[sync_history_days_label]
|
||||
履歴の日数
|
||||
---
|
||||
[sync_now_button]
|
||||
今すぐ同期
|
||||
---
|
||||
[sync_progress_uploading]
|
||||
ローカル項目を %lld 件送信中…
|
||||
---
|
||||
[sync_progress_securing]
|
||||
%lld / %lld 件を保護中…
|
||||
---
|
||||
[sync_progress_restoring]
|
||||
アカウントデータを復元中…
|
||||
---
|
||||
[sync_progress_friends]
|
||||
友達を復元中…
|
||||
---
|
||||
[sync_remote_label]
|
||||
同期サーバー
|
||||
---
|
||||
---
|
||||
[sync_lists_label]
|
||||
リスト
|
||||
---
|
||||
[sync_list_items_label]
|
||||
項目
|
||||
---
|
||||
@@ -620,7 +620,7 @@ Inner Breeze를 계속 실행할까요?
|
||||
계정
|
||||
---
|
||||
[sync_create_account_button]
|
||||
계정 만들기
|
||||
새 계정 만들기
|
||||
---
|
||||
[sync_account_created]
|
||||
계정 생성됨
|
||||
@@ -628,6 +628,9 @@ Inner Breeze를 계속 실행할까요?
|
||||
[sync_account_create_failed]
|
||||
계정을 만들 수 없음
|
||||
---
|
||||
[sync_connect_account_button]
|
||||
계정 연결
|
||||
---
|
||||
[sync_import_key_button]
|
||||
.key 파일 가져오기
|
||||
---
|
||||
@@ -652,12 +655,6 @@ ID 복사
|
||||
[sync_backup_key_button]
|
||||
키 백업
|
||||
---
|
||||
[sync_remote_label]
|
||||
원격
|
||||
---
|
||||
[sync_connect_button]
|
||||
연결
|
||||
---
|
||||
[sync_server_url_invalid]
|
||||
https:// 또는 localhost:8080 같은 루프백을 사용하세요
|
||||
---
|
||||
@@ -680,7 +677,7 @@ Keeping local data
|
||||
Sync review failed
|
||||
---
|
||||
[sync_no_account]
|
||||
연결하기 전에 계정을 만드세요
|
||||
아직 연결된 계정이 없습니다
|
||||
---
|
||||
[sync_backup_warning]
|
||||
이 개인 키를 직접 관리하는 곳에 저장하세요. 이 키를 가진 사람은 누구나 이 계정을 가져갈 수 있습니다.
|
||||
@@ -719,13 +716,16 @@ Sync review failed
|
||||
로그아웃되었습니다. 로컬 데이터는 이 기기에 남아 있습니다.
|
||||
---
|
||||
[sync_account_switch_title]
|
||||
로컬 데이터를 지울까요?
|
||||
연결 방법 선택
|
||||
---
|
||||
[sync_account_switch_message]
|
||||
이 기기에 다른 동기화 계정의 데이터가 있습니다. 이 계정을 사용하기 전에 로컬 데이터를 지우세요.
|
||||
이 기기에서 로컬 데이터를 찾았습니다. 바꾸기는 로컬 데이터를 삭제하고 이 계정을 복원합니다. 병합은 로컬 데이터를 유지하고 두 데이터 세트를 합칩니다.
|
||||
---
|
||||
[sync_account_switch_merge_button]
|
||||
병합하고 연결
|
||||
---
|
||||
[sync_account_switch_clear_button]
|
||||
지우고 계정 사용
|
||||
바꾸고 연결
|
||||
---
|
||||
[sync_account_switch_cancelled]
|
||||
계정 전환이 취소되었습니다
|
||||
@@ -1858,13 +1858,16 @@ Dismiss forever
|
||||
계정을 만들어 진행 상황을 동기화하고 보호하세요.
|
||||
---
|
||||
[profile_sync_ready_body]
|
||||
이 프로필의 동기화가 준비되었습니다.
|
||||
자동으로 동기화 중입니다.
|
||||
---
|
||||
[profile_account_sync_title]
|
||||
계정 및 동기화
|
||||
---
|
||||
[profile_account_connected_body]
|
||||
연결된 계정과 자동 동기화 관리
|
||||
---
|
||||
[profile_account_sync_body]
|
||||
계정 만들기 또는 키 가져오기
|
||||
새 계정을 만들거나 기존 .key 파일을 가져오세요
|
||||
---
|
||||
[profile_data_management_title]
|
||||
데이터
|
||||
@@ -1892,9 +1895,6 @@ Dismiss forever
|
||||
[sync_retry_waiting]
|
||||
연결에 실패했습니다. 자동으로 다시 시도합니다.
|
||||
|
||||
---
|
||||
[sync_retry_button]
|
||||
다시 시도
|
||||
---
|
||||
[app_icon_label]
|
||||
앱 아이콘
|
||||
@@ -1920,3 +1920,47 @@ Dismiss forever
|
||||
[guide_title]
|
||||
빠른 안내
|
||||
---
|
||||
---
|
||||
[sync_connected_as]
|
||||
%s(으)로 연결됨
|
||||
---
|
||||
[sync_everything_up_to_date]
|
||||
모든 항목이 최신 상태입니다
|
||||
---
|
||||
[sync_step_account_connected]
|
||||
계정 연결됨
|
||||
---
|
||||
[sync_step_data_restored]
|
||||
데이터 복원됨
|
||||
---
|
||||
[sync_step_automatic_on]
|
||||
자동 동기화 켜짐
|
||||
---
|
||||
[sync_history_days_label]
|
||||
기록 일수
|
||||
---
|
||||
[sync_now_button]
|
||||
지금 동기화
|
||||
---
|
||||
[sync_progress_uploading]
|
||||
로컬 항목 %lld개 전송 중…
|
||||
---
|
||||
[sync_progress_securing]
|
||||
항목 %lld/%lld개 보호 중…
|
||||
---
|
||||
[sync_progress_restoring]
|
||||
계정 데이터 복원 중…
|
||||
---
|
||||
[sync_progress_friends]
|
||||
친구 복원 중…
|
||||
---
|
||||
[sync_remote_label]
|
||||
동기화 서버
|
||||
---
|
||||
---
|
||||
[sync_lists_label]
|
||||
목록
|
||||
---
|
||||
[sync_list_items_label]
|
||||
항목
|
||||
---
|
||||
@@ -317,7 +317,19 @@ Pular
|
||||
OK
|
||||
---
|
||||
[retry_button]
|
||||
Tentar novamente
|
||||
Sincronizar agora
|
||||
---
|
||||
[sync_progress_uploading]
|
||||
Enviando %lld itens locais…
|
||||
---
|
||||
[sync_progress_securing]
|
||||
Protegendo %lld de %lld itens…
|
||||
---
|
||||
[sync_progress_restoring]
|
||||
Restaurando os dados da conta…
|
||||
---
|
||||
[sync_progress_friends]
|
||||
Restaurando amigos…
|
||||
---
|
||||
[audio_import_music_button]
|
||||
Importar música
|
||||
@@ -620,7 +632,7 @@ Sair
|
||||
Conta
|
||||
---
|
||||
[sync_create_account_button]
|
||||
Criar conta
|
||||
Criar nova conta
|
||||
---
|
||||
[sync_account_created]
|
||||
Conta criada
|
||||
@@ -628,6 +640,9 @@ Conta criada
|
||||
[sync_account_create_failed]
|
||||
Não foi possível criar a conta
|
||||
---
|
||||
[sync_connect_account_button]
|
||||
Conectar conta
|
||||
---
|
||||
[sync_import_key_button]
|
||||
Importar arquivo .key
|
||||
---
|
||||
@@ -652,12 +667,6 @@ ID público copiado
|
||||
[sync_backup_key_button]
|
||||
Fazer backup da chave
|
||||
---
|
||||
[sync_remote_label]
|
||||
Remoto
|
||||
---
|
||||
[sync_connect_button]
|
||||
Conectar
|
||||
---
|
||||
[sync_server_url_invalid]
|
||||
Use https:// ou loopback como localhost:8080
|
||||
---
|
||||
@@ -680,7 +689,7 @@ Keeping local data
|
||||
Sync review failed
|
||||
---
|
||||
[sync_no_account]
|
||||
Crie uma conta antes de conectar
|
||||
Nenhuma conta conectada ainda
|
||||
---
|
||||
[sync_backup_warning]
|
||||
Salve esta chave privada em um local que você controla. Qualquer pessoa com ela pode reivindicar esta conta.
|
||||
@@ -719,13 +728,16 @@ Sair
|
||||
Sessão encerrada. Os dados locais permanecem neste dispositivo.
|
||||
---
|
||||
[sync_account_switch_title]
|
||||
Limpar dados locais?
|
||||
Escolha como conectar
|
||||
---
|
||||
[sync_account_switch_message]
|
||||
Este dispositivo tem dados de outra conta de sincronização. Limpe os dados locais antes de usar esta conta.
|
||||
Foram encontrados dados locais neste dispositivo. Substituir os exclui e restaura esta conta. Mesclar os mantém e combina os dois conjuntos de dados.
|
||||
---
|
||||
[sync_account_switch_merge_button]
|
||||
Mesclar e conectar
|
||||
---
|
||||
[sync_account_switch_clear_button]
|
||||
Limpar e usar conta
|
||||
Substituir e conectar
|
||||
---
|
||||
[sync_account_switch_cancelled]
|
||||
Troca de conta cancelada
|
||||
@@ -1858,13 +1870,16 @@ Sessões
|
||||
Crie uma conta para sincronizar e proteger seu progresso.
|
||||
---
|
||||
[profile_sync_ready_body]
|
||||
A sincronização está pronta para este perfil.
|
||||
Sincronizando automaticamente.
|
||||
---
|
||||
[profile_account_sync_title]
|
||||
Conta e sincronização
|
||||
---
|
||||
[profile_account_connected_body]
|
||||
Gerencie sua conta conectada e a sincronização automática
|
||||
---
|
||||
[profile_account_sync_body]
|
||||
Criar conta ou importar chave
|
||||
Crie uma nova conta ou importe um arquivo .key existente
|
||||
---
|
||||
[profile_data_management_title]
|
||||
Dados
|
||||
@@ -1892,9 +1907,6 @@ Sincronizando…
|
||||
[sync_retry_waiting]
|
||||
Falha na conexão. Tentando novamente automaticamente.
|
||||
|
||||
---
|
||||
[sync_retry_button]
|
||||
Tentar novamente
|
||||
---
|
||||
[app_icon_label]
|
||||
Ícone do aplicativo
|
||||
@@ -1920,3 +1932,35 @@ Ocultar concluídos
|
||||
[guide_title]
|
||||
Guia rápido
|
||||
---
|
||||
---
|
||||
[sync_connected_as]
|
||||
Conectado como %s
|
||||
---
|
||||
[sync_everything_up_to_date]
|
||||
Tudo está atualizado
|
||||
---
|
||||
[sync_step_account_connected]
|
||||
Conta conectada
|
||||
---
|
||||
[sync_step_data_restored]
|
||||
Dados restaurados
|
||||
---
|
||||
[sync_step_automatic_on]
|
||||
Sincronização automática ativada
|
||||
---
|
||||
[sync_history_days_label]
|
||||
Dias no histórico
|
||||
---
|
||||
[sync_now_button]
|
||||
Sincronizar agora
|
||||
---
|
||||
[sync_remote_label]
|
||||
Servidor de sincronização
|
||||
---
|
||||
---
|
||||
[sync_lists_label]
|
||||
Listas
|
||||
---
|
||||
[sync_list_items_label]
|
||||
Itens
|
||||
---
|
||||
@@ -320,7 +320,7 @@ Finish
|
||||
OK
|
||||
---
|
||||
[retry_button]
|
||||
Повторить
|
||||
Синхронизировать
|
||||
---
|
||||
[audio_import_music_button]
|
||||
Импортировать музыку
|
||||
@@ -620,7 +620,7 @@ Trocador
|
||||
Аккаунт
|
||||
---
|
||||
[sync_create_account_button]
|
||||
Создать аккаунт
|
||||
Создать новый аккаунт
|
||||
---
|
||||
[sync_account_created]
|
||||
Аккаунт создан
|
||||
@@ -628,8 +628,11 @@ Trocador
|
||||
[sync_account_create_failed]
|
||||
Не удалось создать аккаунт
|
||||
---
|
||||
[sync_connect_account_button]
|
||||
Подключить аккаунт
|
||||
---
|
||||
[sync_import_key_button]
|
||||
Импорт .key файла
|
||||
Импортировать файл .key
|
||||
---
|
||||
[sync_import_key_dialog_title]
|
||||
Импорт ключа аккаунта
|
||||
@@ -652,12 +655,6 @@ Trocador
|
||||
[sync_backup_key_button]
|
||||
Резервная копия ключа
|
||||
---
|
||||
[sync_remote_label]
|
||||
Сервер
|
||||
---
|
||||
[sync_connect_button]
|
||||
Подключить
|
||||
---
|
||||
[sync_server_url_invalid]
|
||||
Используйте https:// или loopback, например localhost:8080
|
||||
---
|
||||
@@ -680,7 +677,7 @@ Keeping local data
|
||||
Sync review failed
|
||||
---
|
||||
[sync_no_account]
|
||||
Создайте аккаунт перед подключением
|
||||
Аккаунт ещё не подключён
|
||||
---
|
||||
[sync_backup_warning]
|
||||
Сохраните этот приватный ключ там, где только вы им управляете. Любой, у кого он есть, сможет получить доступ к аккаунту.
|
||||
@@ -719,13 +716,16 @@ Sync review failed
|
||||
Выполнен выход. Локальные данные остаются на этом устройстве.
|
||||
---
|
||||
[sync_account_switch_title]
|
||||
Очистить локальные данные?
|
||||
Выберите способ подключения
|
||||
---
|
||||
[sync_account_switch_message]
|
||||
На этом устройстве есть данные другого аккаунта синхронизации. Очистите локальные данные перед использованием этого аккаунта.
|
||||
На этом устройстве найдены локальные данные. Замена удалит их и восстановит этот аккаунт. Объединение сохранит их и совместит оба набора данных.
|
||||
---
|
||||
[sync_account_switch_merge_button]
|
||||
Объединить и подключить
|
||||
---
|
||||
[sync_account_switch_clear_button]
|
||||
Очистить и использовать аккаунт
|
||||
Заменить и подключить
|
||||
---
|
||||
[sync_account_switch_cancelled]
|
||||
Смена аккаунта отменена
|
||||
@@ -1863,8 +1863,11 @@ Dismiss forever
|
||||
[profile_account_sync_title]
|
||||
Учётная запись и синхронизация
|
||||
---
|
||||
[profile_account_connected_body]
|
||||
Управляйте подключённым аккаунтом и автоматической синхронизацией
|
||||
---
|
||||
[profile_account_sync_body]
|
||||
Создать учётную запись или импортировать ключ
|
||||
Создайте новый аккаунт или импортируйте существующий файл .key
|
||||
---
|
||||
[profile_data_management_title]
|
||||
Данные
|
||||
@@ -1892,9 +1895,6 @@ Dismiss forever
|
||||
[sync_retry_waiting]
|
||||
Ошибка подключения. Повторная попытка выполняется автоматически.
|
||||
|
||||
---
|
||||
[sync_retry_button]
|
||||
Повторить
|
||||
---
|
||||
[app_icon_label]
|
||||
Значок приложения
|
||||
@@ -1920,3 +1920,47 @@ Dismiss forever
|
||||
[guide_title]
|
||||
Краткое руководство
|
||||
---
|
||||
---
|
||||
[sync_connected_as]
|
||||
Подключено как %s
|
||||
---
|
||||
[sync_everything_up_to_date]
|
||||
Все данные актуальны
|
||||
---
|
||||
[sync_step_account_connected]
|
||||
Аккаунт подключён
|
||||
---
|
||||
[sync_step_data_restored]
|
||||
Данные восстановлены
|
||||
---
|
||||
[sync_step_automatic_on]
|
||||
Автосинхронизация включена
|
||||
---
|
||||
[sync_history_days_label]
|
||||
Дней в истории
|
||||
---
|
||||
[sync_now_button]
|
||||
Синхронизировать сейчас
|
||||
---
|
||||
[sync_progress_uploading]
|
||||
Отправка локальных элементов: %lld…
|
||||
---
|
||||
[sync_progress_securing]
|
||||
Защита элементов: %lld из %lld…
|
||||
---
|
||||
[sync_progress_restoring]
|
||||
Восстановление данных аккаунта…
|
||||
---
|
||||
[sync_progress_friends]
|
||||
Восстановление друзей…
|
||||
---
|
||||
[sync_remote_label]
|
||||
Сервер синхронизации
|
||||
---
|
||||
---
|
||||
[sync_lists_label]
|
||||
Списки
|
||||
---
|
||||
[sync_list_items_label]
|
||||
Элементы
|
||||
---
|
||||
@@ -1,5 +1,5 @@
|
||||
[results_write_failed]
|
||||
无法保存更改,请重试。
|
||||
无法保存更改,请立即同步。
|
||||
---
|
||||
[app_title]
|
||||
内息清风
|
||||
@@ -620,7 +620,7 @@ Trocador
|
||||
账户
|
||||
---
|
||||
[sync_create_account_button]
|
||||
创建账户
|
||||
创建新账户
|
||||
---
|
||||
[sync_account_created]
|
||||
账户已创建
|
||||
@@ -628,6 +628,9 @@ Trocador
|
||||
[sync_account_create_failed]
|
||||
无法创建账户
|
||||
---
|
||||
[sync_connect_account_button]
|
||||
连接账户
|
||||
---
|
||||
[sync_import_key_button]
|
||||
导入 .key 文件
|
||||
---
|
||||
@@ -652,12 +655,6 @@ Trocador
|
||||
[sync_backup_key_button]
|
||||
备份密钥
|
||||
---
|
||||
[sync_remote_label]
|
||||
远程
|
||||
---
|
||||
[sync_connect_button]
|
||||
连接
|
||||
---
|
||||
[sync_server_url_invalid]
|
||||
请使用 https:// 或 localhost:8080 这样的回环地址
|
||||
---
|
||||
@@ -680,7 +677,7 @@ Keeping local data
|
||||
Sync review failed
|
||||
---
|
||||
[sync_no_account]
|
||||
连接前请先创建账户
|
||||
尚未连接任何账户
|
||||
---
|
||||
[sync_backup_warning]
|
||||
请将此私钥保存到你可控制的位置。任何拥有它的人都可以认领此账户。
|
||||
@@ -719,13 +716,16 @@ Sync review failed
|
||||
已退出登录。本地数据仍保留在此设备上。
|
||||
---
|
||||
[sync_account_switch_title]
|
||||
清除本地数据?
|
||||
选择连接方式
|
||||
---
|
||||
[sync_account_switch_message]
|
||||
此设备包含另一个同步账户的数据。使用此账户前请先清除本地数据。
|
||||
此设备上有本地数据。替换会删除本地数据并恢复此账户;合并会保留本地数据并合并两组数据。
|
||||
---
|
||||
[sync_account_switch_merge_button]
|
||||
合并并连接
|
||||
---
|
||||
[sync_account_switch_clear_button]
|
||||
清除并使用账户
|
||||
替换并连接
|
||||
---
|
||||
[sync_account_switch_cancelled]
|
||||
已取消切换账户
|
||||
@@ -1863,8 +1863,11 @@ Dismiss forever
|
||||
[profile_account_sync_title]
|
||||
账户与同步
|
||||
---
|
||||
[profile_account_connected_body]
|
||||
管理已连接的账户和自动同步
|
||||
---
|
||||
[profile_account_sync_body]
|
||||
创建账户或导入密钥
|
||||
创建新账户或导入现有的 .key 文件
|
||||
---
|
||||
[profile_data_management_title]
|
||||
数据
|
||||
@@ -1892,9 +1895,6 @@ Dismiss forever
|
||||
[sync_retry_waiting]
|
||||
连接失败,将自动重试。
|
||||
|
||||
---
|
||||
[sync_retry_button]
|
||||
重试
|
||||
---
|
||||
[app_icon_label]
|
||||
应用图标
|
||||
@@ -1920,3 +1920,47 @@ Dismiss forever
|
||||
[guide_title]
|
||||
快速指南
|
||||
---
|
||||
---
|
||||
[sync_connected_as]
|
||||
已连接为 %s
|
||||
---
|
||||
[sync_everything_up_to_date]
|
||||
所有内容均为最新
|
||||
---
|
||||
[sync_step_account_connected]
|
||||
账户已连接
|
||||
---
|
||||
[sync_step_data_restored]
|
||||
数据已恢复
|
||||
---
|
||||
[sync_step_automatic_on]
|
||||
自动同步已开启
|
||||
---
|
||||
[sync_history_days_label]
|
||||
历史天数
|
||||
---
|
||||
[sync_now_button]
|
||||
立即同步
|
||||
---
|
||||
[sync_progress_uploading]
|
||||
正在发送 %lld 个本地项目…
|
||||
---
|
||||
[sync_progress_securing]
|
||||
正在保护 %lld/%lld 个项目…
|
||||
---
|
||||
[sync_progress_restoring]
|
||||
正在恢复账户数据…
|
||||
---
|
||||
[sync_progress_friends]
|
||||
正在恢复好友…
|
||||
---
|
||||
[sync_remote_label]
|
||||
同步服务器
|
||||
---
|
||||
---
|
||||
[sync_lists_label]
|
||||
清单
|
||||
---
|
||||
[sync_list_items_label]
|
||||
项目
|
||||
---
|
||||
@@ -13,10 +13,9 @@ ROOT=/sys/src/inbe
|
||||
|
||||
list=$ROOT/build/plan9/generated-c-files.txt
|
||||
gensrc=`{cat $list | grep -v -e 'storage/import.c' -e 'meditation/meditation_music.c' -e '/src/main.c' -e '/platform/app_host.c'}
|
||||
appsrc=src/platform/plan9/main.c \
|
||||
appsrc=src/platform/plan9/entry.c \
|
||||
src/platform/plan9/sqlite3_stub.c \
|
||||
src/platform/plan9/storage_import_stub.c \
|
||||
src/platform/plan9/meditation_music_stub.c \
|
||||
src/app/app_web_bridge.c \
|
||||
src/storage/storage_json_builder.c
|
||||
hostsrc=build/plan9/app_embedded_assets.c
|
||||
|
||||
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 101 KiB |
|
After Width: | Height: | Size: 115 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 116 KiB |
|
After Width: | Height: | Size: 119 KiB |
|
After Width: | Height: | Size: 78 KiB |
|
After Width: | Height: | Size: 81 KiB |
|
After Width: | Height: | Size: 901 KiB |
|
After Width: | Height: | Size: 901 KiB |
|
After Width: | Height: | Size: 3.7 MiB |
|
After Width: | Height: | Size: 121 KiB |
|
After Width: | Height: | Size: 145 KiB |
|
After Width: | Height: | Size: 96 KiB |
|
After Width: | Height: | Size: 247 KiB |
|
After Width: | Height: | Size: 901 KiB |
|
After Width: | Height: | Size: 344 KiB |
|
After Width: | Height: | Size: 148 KiB |
@@ -0,0 +1,11 @@
|
||||
Android debug build: armeabi-v7a, successful.
|
||||
Device: Moto E6 Play, Android API 28.
|
||||
Sky cradle (#5) is enabled by default.
|
||||
Ink and air (#3) selected through the Appearance modal.
|
||||
Exactly one launcher entry after each change.
|
||||
Ink and air persisted across force-stop and relaunch.
|
||||
Sky cradle restored through the modal.
|
||||
Adaptive launcher background: #E6F1FA.
|
||||
In-app previews: transparent RGBA.
|
||||
Modal touch coordinates corrected for display scaling.
|
||||
Locale, glyph coverage, button API, text API, vendor cleanliness, and diff whitespace checks passed.
|
||||
|
After Width: | Height: | Size: 3.5 MiB |
|
After Width: | Height: | Size: 3.5 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 1.4 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 1.1 MiB |
|
After Width: | Height: | Size: 2.7 MiB |
@@ -0,0 +1,31 @@
|
||||
# Slider proposal
|
||||
|
||||
Status: visual proposals only, generated with the built-in image tool. No slider redesign has been implemented.
|
||||
|
||||
## Findings
|
||||
|
||||
- Inbe `draw_scale_row` shifts slider bounds right by the minus-button width and gap. This also shifts the label, whereas other settings labels use the full row's left edge.
|
||||
- Kryon's `SliderLabelTextPaintFor` positions the label above the supplied bounds using font size plus a gap. The header therefore lacks space owned by the widget's layout.
|
||||
- `SliderCellTextPaintFor` vertically centers the numeric value in the cell, placing it across the track. A foreground suitable for the background can have poor contrast against the filled track.
|
||||
- Inbe passes the stored integer scale in tenths with `%d`, displaying `10`. It computes a separate effective DPI multiplier string but does not use it. The proposed user-facing value is the preference multiplier, `1.0×`, independent of device density.
|
||||
|
||||
## Recommendation
|
||||
|
||||
Use proposal 01 with the precise alignment shown in `recommended.png`: no additional card, label top-left at the settings margin, current value top-right, track and optional step buttons below. The image-generation outputs are illustrative; actual geometry and tick count must be deterministic in code.
|
||||
|
||||
## Core implementation plan
|
||||
|
||||
1. Extend the existing `Slider(SliderProps)` surface, not an Inbe-specific replacement. Core layout measures the entire header, interaction row, and optional supporting text inside its bounds.
|
||||
2. Keep the header aligned to the outer widget bounds; inset only the track when optional decrement/increment controls are present. Default slider label inset should not silently inherit button padding.
|
||||
3. Use measured text line height, wrap long labels, reserve value width, and grow the overall component height. Define behavior for narrow widths and right-to-left layout.
|
||||
4. Give label, displayed value, value indicator, track, active track, thumb, and focus state independent semantic style roles. Use on-surface text for the header; pair an optional chip's background with its own contrasting foreground.
|
||||
5. Format display/accessibility values separately from storage. Scale settings use 0.5×–2.5× in 0.1× increments while retaining integer-tenths storage. Do not change the applied scale during drag; preserve the current commit-on-release behavior.
|
||||
6. Preserve keyboard adjustment, disabled state, touch capture, cancellation, and accessibility semantics. Proposed minimum interaction targets are 48 dp; visible track/thumb need not fill that area.
|
||||
7. Keep layout decisions in shared Kryon runtime code and drawing in the relevant backend. Validate native/Go parity, all supported styles, dark/light palettes, narrow screens, large text, pointer endpoints, and long translations.
|
||||
8. Implement and commit in canonical Kryon master first, then update Inbe's clean vendor pointer and simplify its row layout. Never edit the vendored runtime.
|
||||
|
||||
Optional proposal 03 adds a selected/dragging value indicator and discrete tick marks. Material's official slider documentation supports formatted value labels and discrete steps; the exact spacing in these mockups is a proposal, not a quoted specification.
|
||||
|
||||
Reference: https://github.com/material-components/material-components-android/blob/master/docs/components/Slider.md
|
||||
|
||||
Prompts: `prompt.md` and `detail-prompt.md`. Images: `comparison.png` and `recommended.png`.
|
||||
|
After Width: | Height: | Size: 1.4 MiB |
@@ -0,0 +1,13 @@
|
||||
# Recommended Android detail
|
||||
|
||||
Mode: built-in image generation.
|
||||
|
||||
Use case: ui-mockup. Generate a precise high-fidelity Android settings design proposal, landscape comparison image with TWO enlarged flat screen crops side by side, DARK MODE and LIGHT MODE. Title "Recommended — aligned header". Inner Breeze Appearance settings, restrained classic Material 3 look, lavender accent. This is a proposed core Kryon Slider widget layout. Absolutely NO enclosing slider card, NO extra border/container around slider section, NO indent of slider label. All setting labels share exactly one vertical left alignment line.
|
||||
Two panels show exactly same geometry and content, dark near-black #141218 on left, warm nearwhite #FFFBFE right, rounded dropdown outlines, classic round slider thumb. Each has centered topbar title "Appearance" with back arrow. Vertical form, NOT horizontal label/dropdown pairs:
|
||||
"Style" at x=panelLeft+24, then full-width dropdown "Material" below it.
|
||||
32dp below dropdown begins slider header: "Scale factor" at x=panelLeft+24, value "1.0×" at right edge x=panelRight-24. Text clear, readable on background. Label and value SAME BASELINE. Header is inside overall slider component bounds, never floating outside.
|
||||
12dp space then 48dp high interaction row: circular minus button at left, horizontal track in middle, plus button at right. Thin rounded6dp track with circular20dp thumb exactly25% along track since range0.5×..2.5× and value1.0×. Dark mode lavender filled segment and thumb, muted dark-purple remaining track; light mode rich-purple filled segment and thumb, pale-purple remaining track. No digits or letters on track. No glows, no gradients, no shiny highlights. Small range endpoint labels "0.5×" and "2.5×" beneath track at its left/right ends.
|
||||
32dp gap then "Navigation position" aligned x=panelLeft+24, full-width dropdown "Automatic" below.
|
||||
32dp gap then "Mode" aligned same x, full-width dropdown "Follow device" below.
|
||||
Bottom of image separate design annotation strip with four concise notes: "One left edge for every label"; "Value above, never on the track"; "48 dp interaction targets"; "Height grows with wrapped labels".
|
||||
A faint dashed vertical annotation guide outside the labels in each panel visually verifies all labels including Scale factor share exact left edge. No enclosing slider rectangle. Crisp typography, faithful implementable flat UI. Do not show phone hardware, statusbar, app logo, unrelated controls, or navigationbar. Avoid extra decorations. The left and right panels are flat realistic screen crops with ample whitespace around board title.
|
||||
@@ -0,0 +1,12 @@
|
||||
# Slider comparison board
|
||||
|
||||
Mode: built-in image generation. One board comparing three proposals.
|
||||
|
||||
Use case: ui-mockup.
|
||||
Create one detailed, polished design comparison board for Inner Breeze Android settings, proposing a reusable Kryon Material slider. Landscape high-resolution board, three equal columns, excellent precise typography, generous spacing. This is an implementable UI design proposal, not artwork, not a futuristic dashboard. Heading "Scale factor — three slider proposals". Small subtitle "Shared Kryon widget · Android". Background warm pale gray, dark near-black purple UI panels and matching light-mode panels. Lavender primary #CBAAFF in dark mode with dark ink #281442 on lavender chips; dark purple #6750A4 in light mode. No glows, glossy effects, 3D, shadows beyond subtle standard surfaces.
|
||||
Each column has numbered title, large cropped Android Appearance settings preview with Style dropdown above and Navigation position below for alignment context, a matching small light-mode component preview, then a dragging/focus state component and concise annotation footer. Setting labels at same left margin throughout each preview. Slider label ALWAYS in its own header row, inside the component, above track, flush left with Style and Navigation position; value at far right of same header. Minus/plus controls in row below header, must never shift header to right. NO text printed on any track. Rounded horizontal track and round thumb, plausible classic Material 3 treatment. Common range 0.5× to 2.5×, default 1.0× means thumb exactly one-quarter across track; 1.5× means halfway. Readable values and spacious layout.
|
||||
Column1 title "01 / Clear header" tag "Recommended". Header "Scale factor" left and plain lavender "1.0×" right. Below: neutral circular minus button, continuous thin lavender filled track with circular thumb at25%, muted unfilled track, neutral circular plus button. Tiny endpoint text below 0.5× left and 2.5× right aligned with track endpoints. Light version same geometry dark-purple accents. State sample label "Keyboard focus" showing thin focus ring around thumb, header1.0×. Footer annotations "Label aligned to settings edge", "Value stays above the track", "48 dp touch targets".
|
||||
Column2 title "02 / Value chip". Same layout, but value1.0× in small softly lavender filled noneditable pill on header right, very dark purple text within; label remains left. Track slightly thicker rounded8dp, circular thumb at25%, minus/plus in neutral outlined circular controls. Matching light mode. State sample "Dragging" header chip1.5×, thumb halfway, modest state halo, no bubble. Footer annotations "Strong value contrast", "Stable header while dragging", "No value text on the fill".
|
||||
Column3 title "03 / Discrete feedback". Same aligned header, plain1.0× right, thin track with subtle discrete ticks at equal steps, minus/plus below header aligned on row. Matching light mode. State sample "Dragging" header1.5× and tiny dark-ink-on-lavender value bubble1.5× above halfway thumb, reserved vertical space so bubble NEVER overlaps label/header. Footer annotations "0.1× steps", "Bubble only during interaction", "Header remains readable".
|
||||
Bottom horizontal specification strip with title "Proposed core layout" and three clearly separated notes "Header → 12 dp gap → 48 dp interaction row", "Wrap long labels; grow height", "Theme label, value, track and thumb independently".
|
||||
All listed dimensions are proposed design choices, not a claim of exact official Material specification. Prioritize clear realistic enlarged components over full phone mockups. Text must be sharp, exact, not tiny; every column must show visibly distinct but related slider designs. No logos needed.
|
||||
|
After Width: | Height: | Size: 1.2 MiB |
@@ -12,11 +12,10 @@
|
||||
"storage"
|
||||
],
|
||||
"host_permissions": [
|
||||
"https://api.waozi.xyz/*",
|
||||
"https://inbe.waozi.xyz/*"
|
||||
"https://api.waozi.xyz/*"
|
||||
],
|
||||
"content_security_policy": {
|
||||
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; connect-src 'self' https://api.waozi.xyz wss://api.waozi.xyz https://inbe.waozi.xyz; object-src 'self'"
|
||||
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; connect-src 'self' https: wss: http: ws:; object-src 'self'"
|
||||
},
|
||||
"icons": {
|
||||
"16": "icons/icon-16.png",
|
||||
|
||||
@@ -8,6 +8,7 @@ const TICK_ALARM = "inbe-break-tick";
|
||||
const STORAGE_CONFIG = "inbeBreakConfig";
|
||||
const STORAGE_STATE = "inbeBreakState";
|
||||
const MAX_ELAPSED_S = 300;
|
||||
const visiblePages = new Set();
|
||||
|
||||
const practiceUrls = {
|
||||
whm: `${appUrl}?inbe_launch=start-practice&practice=whm`,
|
||||
@@ -134,6 +135,7 @@ function notificationIdFor(type) {
|
||||
}
|
||||
|
||||
async function showBreakNotification(type, state, config, forced) {
|
||||
if (!forced && visiblePages.size === 0) return;
|
||||
const timer = config.timers[type];
|
||||
const timerState = state.timers[type];
|
||||
const buttons = [];
|
||||
@@ -152,6 +154,7 @@ async function showBreakNotification(type, state, config, forced) {
|
||||
timerState.notificationId = id;
|
||||
timerState.buttonActions = buttonActions;
|
||||
await storageSet({ [STORAGE_STATE]: state });
|
||||
if (!forced && visiblePages.size === 0) return;
|
||||
await chrome.notifications.create(id, {
|
||||
type: "basic",
|
||||
iconUrl: "icons/icon-128.png",
|
||||
@@ -161,17 +164,39 @@ async function showBreakNotification(type, state, config, forced) {
|
||||
requireInteraction: true,
|
||||
buttons,
|
||||
});
|
||||
if (!forced && visiblePages.size === 0)
|
||||
await chrome.notifications.clear(id);
|
||||
}
|
||||
|
||||
async function scheduleBreakAlarm(config) {
|
||||
if (!config.enabled) {
|
||||
if (!config.enabled || visiblePages.size === 0) {
|
||||
await chrome.alarms.clear(TICK_ALARM);
|
||||
await chrome.action.setBadgeText({ text: "" });
|
||||
for (const type of BREAK_TYPES)
|
||||
await chrome.notifications.clear(notificationIdFor(type));
|
||||
return;
|
||||
}
|
||||
await chrome.alarms.create(TICK_ALARM, { periodInMinutes: 1 });
|
||||
if (visiblePages.size === 0) {
|
||||
await chrome.alarms.clear(TICK_ALARM);
|
||||
return;
|
||||
}
|
||||
await chrome.action.setBadgeText({ text: "BR" });
|
||||
await chrome.action.setBadgeBackgroundColor({ color: "#2c7388" });
|
||||
if (visiblePages.size === 0)
|
||||
await chrome.action.setBadgeText({ text: "" });
|
||||
}
|
||||
|
||||
async function stopAutomaticBreaks() {
|
||||
if (visiblePages.size !== 0) return;
|
||||
await storageSet({
|
||||
[STORAGE_STATE]: {
|
||||
lastTickMs: 0,
|
||||
timers: BREAK_TYPES.map(() => defaultTimerState()),
|
||||
},
|
||||
});
|
||||
const data = await storageGet([STORAGE_CONFIG]);
|
||||
await scheduleBreakAlarm(normalizeConfig(data[STORAGE_CONFIG]));
|
||||
}
|
||||
|
||||
async function saveConfig(config) {
|
||||
@@ -219,6 +244,10 @@ async function tickBreaks(nowMs = Date.now()) {
|
||||
const config = normalizeConfig(data[STORAGE_CONFIG]);
|
||||
const state = normalizeState(data[STORAGE_STATE]);
|
||||
|
||||
if (visiblePages.size === 0) {
|
||||
await stopAutomaticBreaks();
|
||||
return state;
|
||||
}
|
||||
if (!config.enabled) {
|
||||
await scheduleBreakAlarm(config);
|
||||
return state;
|
||||
@@ -228,6 +257,10 @@ async function tickBreaks(nowMs = Date.now()) {
|
||||
? clampInt((nowMs - state.lastTickMs) / 1000, 60, 1, MAX_ELAPSED_S)
|
||||
: 60;
|
||||
const idleState = await chrome.idle.queryState(Math.max(60, Math.ceil(elapsedS)));
|
||||
if (visiblePages.size === 0) {
|
||||
await stopAutomaticBreaks();
|
||||
return state;
|
||||
}
|
||||
const active = idleState === "active";
|
||||
state.lastTickMs = nowMs;
|
||||
|
||||
@@ -235,7 +268,13 @@ async function tickBreaks(nowMs = Date.now()) {
|
||||
if (stepTimer(config.timers[type], state.timers[type], elapsedS, active, nowMs))
|
||||
await showBreakNotification(type, state, config, false);
|
||||
}
|
||||
if (visiblePages.size === 0) {
|
||||
await stopAutomaticBreaks();
|
||||
return state;
|
||||
}
|
||||
await storageSet({ [STORAGE_STATE]: state });
|
||||
if (visiblePages.size === 0)
|
||||
await stopAutomaticBreaks();
|
||||
return state;
|
||||
}
|
||||
|
||||
@@ -247,9 +286,9 @@ async function requestBreakNow(type) {
|
||||
|
||||
if (!config.enabled)
|
||||
config.enabled = true;
|
||||
await showBreakNotification(safeType, state, config, true);
|
||||
await storageSet({ [STORAGE_CONFIG]: config, [STORAGE_STATE]: state });
|
||||
await scheduleBreakAlarm(config);
|
||||
await showBreakNotification(safeType, state, config, true);
|
||||
}
|
||||
|
||||
async function applyNotificationAction(notificationId, buttonIndex) {
|
||||
@@ -307,6 +346,20 @@ chrome.runtime.onStartup.addListener(async () => {
|
||||
await scheduleBreakAlarm(normalizeConfig(data[STORAGE_CONFIG]));
|
||||
});
|
||||
|
||||
chrome.runtime.onConnect.addListener((port) => {
|
||||
if (port.name !== "inbe-visible-page") return;
|
||||
visiblePages.add(port);
|
||||
storageGet([STORAGE_CONFIG]).then((data) =>
|
||||
scheduleBreakAlarm(normalizeConfig(data[STORAGE_CONFIG]))
|
||||
).catch((error) => console.error("Inner Breeze break activation failed:", error));
|
||||
port.onDisconnect.addListener(() => {
|
||||
visiblePages.delete(port);
|
||||
if (visiblePages.size === 0)
|
||||
stopAutomaticBreaks().catch((error) =>
|
||||
console.error("Inner Breeze break stop failed:", error));
|
||||
});
|
||||
});
|
||||
|
||||
chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
|
||||
if (!message || typeof message.type !== "string")
|
||||
return false;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
Package: inbe.waozi
|
||||
Version: 2.0.0
|
||||
Version: 2.0.4
|
||||
Architecture: arm64
|
||||
Maintainer: Waozi <[email protected]>
|
||||
Click-Version: 0.4
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
<binary>inbe</binary>
|
||||
</provides>
|
||||
<releases>
|
||||
<release version="2.0.0" date="2026-09-19"/>
|
||||
<release version="2.0.4" date="2026-09-21"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.1"/>
|
||||
</component>
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "inbe",
|
||||
"title": "Inner Breeze",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.4",
|
||||
"architecture": "arm64",
|
||||
"framework": "ubuntu-sdk-20.04",
|
||||
"description": "Syncable breathing, meditation, and habit practice app.",
|
||||
|
||||
@@ -2,17 +2,16 @@
|
||||
"manifest_version": 3,
|
||||
"name": "Inner Breeze",
|
||||
"short_name": "Inbe",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.4",
|
||||
"description": "Breathing, meditation, habit tracking, and encrypted sync.",
|
||||
"permissions": [
|
||||
"contextMenus"
|
||||
],
|
||||
"host_permissions": [
|
||||
"https://api.waozi.xyz/*",
|
||||
"https://inbe.waozi.xyz/*"
|
||||
"https://api.waozi.xyz/*"
|
||||
],
|
||||
"content_security_policy": {
|
||||
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; connect-src 'self' https://api.waozi.xyz wss://api.waozi.xyz https://inbe.waozi.xyz; object-src 'self'"
|
||||
"extension_pages": "script-src 'self' 'wasm-unsafe-eval'; connect-src 'self' https: wss: http: ws:; object-src 'self'"
|
||||
},
|
||||
"icons": {
|
||||
"16": "icons/icon-16.png",
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<binary>inbe</binary>
|
||||
</provides>
|
||||
<releases>
|
||||
<release version="2.0.0" date="2026-09-19"/>
|
||||
<release version="2.0.4" date="2026-09-21"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.1"/>
|
||||
</component>
|
||||
@@ -22,7 +22,7 @@
|
||||
<binary>inbe</binary>
|
||||
</provides>
|
||||
<releases>
|
||||
<release version="2.0.0" date="2026-09-19"/>
|
||||
<release version="2.0.4" date="2026-09-21"/>
|
||||
</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.0.0'
|
||||
version: '2.0.4'
|
||||
license: BSD-3-Clause
|
||||
base: core22
|
||||
confinement: strict
|
||||
|
||||
@@ -26,6 +26,7 @@ const chrome = {
|
||||
},
|
||||
onInstalled: event("runtime.onInstalled"),
|
||||
onStartup: event("runtime.onStartup"),
|
||||
onConnect: event("runtime.onConnect"),
|
||||
onMessage: event("runtime.onMessage"),
|
||||
},
|
||||
storage: {
|
||||
@@ -127,8 +128,20 @@ assert.ok(tabs.some((tab) => tab.url === "chrome-extension://inbe/index.html"));
|
||||
|
||||
await api.requestBreakNow(1);
|
||||
assert.equal(storage.inbeBreakConfig.enabled, true);
|
||||
assert.ok(notifications.some((entry) => entry.id === "inbe-break-1"));
|
||||
assert.equal(chrome.action.badgeText, "BR");
|
||||
assert.ok(notifications.some((entry) => entry.id === "inbe-break-1" && entry.options));
|
||||
assert.equal(chrome.action.badgeText, "", "manual break does not start a hidden alarm");
|
||||
|
||||
let disconnectVisiblePage;
|
||||
events["runtime.onConnect"][0]({
|
||||
name: "inbe-visible-page",
|
||||
onDisconnect: {
|
||||
addListener(listener) {
|
||||
disconnectVisiblePage = listener;
|
||||
},
|
||||
},
|
||||
});
|
||||
await new Promise((resolve) => setImmediate(resolve));
|
||||
assert.equal(chrome.action.badgeText, "BR", "visible page enables automatic breaks");
|
||||
|
||||
storage.inbeBreakConfig = api.normalizeConfig({
|
||||
enabled: true,
|
||||
@@ -141,11 +154,28 @@ storage.inbeBreakConfig = api.normalizeConfig({
|
||||
storage.inbeBreakState = api.normalizeState({ lastTickMs: 1000 });
|
||||
idleState = "active";
|
||||
await api.tickBreaks(61000);
|
||||
assert.ok(notifications.some((entry) => entry.id === "inbe-break-0" && entry.options.buttons.length === 2));
|
||||
assert.ok(notifications.some((entry) =>
|
||||
entry.id === "inbe-break-0" && entry.options && entry.options.buttons.length === 2));
|
||||
|
||||
await api.applyNotificationAction("inbe-break-0", 0);
|
||||
assert.ok(storage.inbeBreakState.timers[0].snoozeUntilMs > Date.now(), "postpone stores snooze deadline");
|
||||
|
||||
disconnectVisiblePage();
|
||||
await new Promise((resolve) => setImmediate(resolve));
|
||||
assert.equal(chrome.action.badgeText, "", "closing the page stops the indicator");
|
||||
assert.ok(alarms.some((entry) => entry.name === "inbe-break-tick" && entry.clear));
|
||||
const notificationCount = notifications.filter((entry) => entry.options).length;
|
||||
await api.tickBreaks(122000);
|
||||
assert.equal(notifications.filter((entry) => entry.options).length, notificationCount,
|
||||
"closed page cannot receive automatic reminders");
|
||||
assert.equal(storage.inbeBreakState.lastTickMs, 0, "closed page resets the timer");
|
||||
|
||||
events["runtime.onConnect"][0]({
|
||||
name: "inbe-visible-page",
|
||||
onDisconnect: { addListener() {} },
|
||||
});
|
||||
await new Promise((resolve) => setImmediate(resolve));
|
||||
|
||||
storage.inbeBreakState = api.normalizeState({
|
||||
lastTickMs: 1000,
|
||||
timers: [{ activeS: 80, idleS: 0 }],
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { spawn } from "node:child_process";
|
||||
import { accessSync, constants, existsSync, mkdtempSync, readFileSync, rmSync } from "node:fs";
|
||||
import { createServer } from "node:http";
|
||||
import { tmpdir } from "node:os";
|
||||
import { join, resolve } from "node:path";
|
||||
|
||||
@@ -193,6 +194,15 @@ async function main() {
|
||||
assert.ok(existsSync(join(extensionRoot, "index.html")), "missing built extension page");
|
||||
|
||||
const chromium = resolveChromium();
|
||||
const syncServer = createServer((request, response) => {
|
||||
response.writeHead(200, {
|
||||
"Access-Control-Allow-Origin": "*",
|
||||
"Content-Type": "text/plain",
|
||||
});
|
||||
response.end(request.url === "/sync-probe" ? "custom sync server reachable" : "unexpected path");
|
||||
});
|
||||
await new Promise((resolveReady) => syncServer.listen(0, "127.0.0.1", resolveReady));
|
||||
const syncServerPort = syncServer.address().port;
|
||||
const stderrLines = [];
|
||||
const args = [
|
||||
"--headless=new",
|
||||
@@ -261,6 +271,10 @@ async function main() {
|
||||
const readyState = await waitForPageReady(cdp, page);
|
||||
assert.ok(readyState.href.includes("chrome-extension://"));
|
||||
|
||||
const customServerResponse = await evaluate(cdp, page,
|
||||
`fetch('http://127.0.0.1:${syncServerPort}/sync-probe').then((response) => response.text())`, true);
|
||||
assert.equal(customServerResponse, "custom sync server reachable");
|
||||
|
||||
const pageExports = JSON.parse(await evaluate(cdp, page, `(() => {
|
||||
Module._app_web_test_enable_extension_breaks(60);
|
||||
return JSON.stringify({
|
||||
@@ -297,6 +311,7 @@ async function main() {
|
||||
if (cdp) cdp.close();
|
||||
chrome.kill("SIGTERM");
|
||||
await delay(250);
|
||||
await new Promise((resolveClosed) => syncServer.close(resolveClosed));
|
||||
rmSync(userDataDir, { recursive: true, force: true });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
embuilder=${1:-embuilder}
|
||||
for attempt in 1 2 3; do
|
||||
if "$embuilder" build zlib; then
|
||||
exit 0
|
||||
fi
|
||||
if [ "$attempt" -eq 3 ]; then
|
||||
echo "Emscripten zlib port could not be fetched after 3 attempts" >&2
|
||||
exit 1
|
||||
fi
|
||||
sleep $((attempt * 10))
|
||||
done
|
||||
@@ -238,8 +238,11 @@ EOF
|
||||
fi
|
||||
|
||||
set +e
|
||||
INBE_DATA_ROOT="$data_root" xvfb-run -a -s "-screen 0 ${width}x${height}x24" \
|
||||
"$BIN" \
|
||||
env -u DISPLAY -u WAYLAND_DISPLAY -u SESSION_MANAGER \
|
||||
-u DBUS_SESSION_BUS_ADDRESS INBE_DATA_ROOT="$data_root" \
|
||||
xvfb-run -a -s "-screen 0 ${width}x${height}x24" \
|
||||
env -u WAYLAND_DISPLAY -u SESSION_MANAGER -u DBUS_SESSION_BUS_ADDRESS \
|
||||
SDL_VIDEODRIVER=x11 "$BIN" \
|
||||
--screenshot "$output" \
|
||||
--screenshot-scene "$scene" \
|
||||
--screenshot-width "$width" \
|
||||
|
||||
@@ -0,0 +1,104 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Generate the Inbe appcast for a release.
|
||||
|
||||
The release workflow publishes appcast.json next to its artifacts:
|
||||
|
||||
scripts/make_appcast.py \
|
||||
--version "$VERSION" \
|
||||
--base-url "https://github.com/OWNER/APP/releases/download/v$VERSION" \
|
||||
--notes-url "https://github.com/OWNER/APP/releases/tag/v$VERSION" \
|
||||
--changelog CHANGELOG.md \
|
||||
--out build/release/appcast.json \
|
||||
--channel appimage=build/release/linux/app-linux-x86_64.AppImage \
|
||||
--channel windows=build/release/windows/app-windows.zip
|
||||
|
||||
Each --channel becomes {url, sha256, size} in the document; the URL is
|
||||
base-url/ plus the file's basename. Notes are the version's CHANGELOG.md
|
||||
section, collapsed to one line and capped at 400 chars. Channels with a
|
||||
missing file are skipped, an error when the flag is --channel-required.
|
||||
"""
|
||||
|
||||
import argparse
|
||||
import datetime
|
||||
import hashlib
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
|
||||
|
||||
def changelog_notes(path, version, limit=400):
|
||||
try:
|
||||
text = open(path, encoding="utf-8").read()
|
||||
except OSError:
|
||||
return ""
|
||||
match = re.search(
|
||||
r"^## \[" + re.escape(version) + r"\].*?\n(.*?)(?=^## \[|\Z)",
|
||||
text, re.S | re.M)
|
||||
if match is None:
|
||||
return ""
|
||||
return " ".join(match.group(1).split())[:limit]
|
||||
|
||||
|
||||
def channel_entry(base_url, rel_path):
|
||||
with open(rel_path, "rb") as f:
|
||||
data = f.read()
|
||||
return {
|
||||
"url": base_url.rstrip("/") + "/" + os.path.basename(rel_path),
|
||||
"sha256": hashlib.sha256(data).hexdigest(),
|
||||
"size": len(data),
|
||||
}
|
||||
|
||||
|
||||
def main():
|
||||
parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
|
||||
parser.add_argument("--version", required=True)
|
||||
parser.add_argument("--base-url", required=True,
|
||||
help="release download URL prefix")
|
||||
parser.add_argument("--notes-url", default="",
|
||||
help="release page URL (defaults to base-url's tag)")
|
||||
parser.add_argument("--changelog", default="CHANGELOG.md")
|
||||
parser.add_argument("--out", required=True)
|
||||
parser.add_argument("--channel", action="append", default=[],
|
||||
metavar="NAME=PATH", dest="channels",
|
||||
help="release artifact for a channel (repeatable)")
|
||||
parser.add_argument("--channel-required", action="store_true",
|
||||
help="fail when a named channel has no artifact")
|
||||
args = parser.parse_args()
|
||||
|
||||
channels = {}
|
||||
for item in args.channels:
|
||||
name, _, path = item.partition("=")
|
||||
if not name or not path:
|
||||
parser.error("--channel wants NAME=PATH, got %r" % item)
|
||||
if not os.path.isfile(path):
|
||||
if args.channel_required:
|
||||
sys.exit("missing artifact for channel %s: %s" % (name, path))
|
||||
print("skipping channel %s (no artifact)" % name)
|
||||
continue
|
||||
channels[name] = channel_entry(args.base_url, path)
|
||||
if not channels:
|
||||
sys.exit("no channel artifacts found")
|
||||
|
||||
notes_url = args.notes_url
|
||||
if not notes_url:
|
||||
# derive ".../releases/download/vX" -> ".../releases/tag/vX"
|
||||
head, sep, tail = args.base_url.rstrip("/").partition("/download/")
|
||||
notes_url = head + "/tag/" + tail if sep else head
|
||||
|
||||
appcast = {
|
||||
"version": args.version,
|
||||
"date": datetime.date.today().isoformat(),
|
||||
"notes": changelog_notes(args.changelog, args.version),
|
||||
"notes_url": notes_url,
|
||||
"channels": channels,
|
||||
}
|
||||
with open(args.out, "w", encoding="utf-8") as f:
|
||||
json.dump(appcast, f, indent=2)
|
||||
f.write("\n")
|
||||
print("wrote %s" % args.out)
|
||||
print(json.dumps(appcast, indent=2))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
@@ -7,9 +7,9 @@
|
||||
#
|
||||
# Covered cases (the "closing windows in different inbe modes" matrix):
|
||||
# 1. startup main window maps on a fresh profile
|
||||
# 2. close-keep close action = keep running -> window hides, app lives
|
||||
# 3. close-ask close action = ask -> prompt modal -> Quit -> app exits
|
||||
# 4. close-ask-keep close action = ask -> prompt -> Keep running -> hidden
|
||||
# 2. close-keep no tray icon -> close exits, even with Keep running set
|
||||
# 3. close-ask no tray icon -> close exits without a hidden process
|
||||
# 4. startup-hidden no tray icon -> app stays visible; minimize exits
|
||||
#
|
||||
# Requirements: xvfb-run/Xvfb, xfwm4, xdotool, xwininfo (x11-utils), sqlite3.
|
||||
# The user's session and data are never touched. Break HUD dragging needs a
|
||||
@@ -32,8 +32,9 @@ for tool in xvfb-run Xvfb xfwm4 xdotool xwininfo sqlite3; do
|
||||
done
|
||||
|
||||
if [ -z "${INBE_DESKTOP_WINDOW_TEST_XVFB:-}" ]; then
|
||||
exec xvfb-run -a -s "-screen 0 $GEOMETRY" \
|
||||
env INBE_DESKTOP_WINDOW_TEST_XVFB=1 "$0" "$@"
|
||||
exec env -u DISPLAY -u WAYLAND_DISPLAY -u SESSION_MANAGER \
|
||||
-u DBUS_SESSION_BUS_ADDRESS xvfb-run -a -s "-screen 0 $GEOMETRY" \
|
||||
env -u WAYLAND_DISPLAY INBE_DESKTOP_WINDOW_TEST_XVFB=1 "$0" "$@"
|
||||
fi
|
||||
|
||||
DISPLAY_TEST=${DISPLAY:?xvfb-run did not set DISPLAY}
|
||||
@@ -55,8 +56,16 @@ say() { printf '%s\n' "$*"; }
|
||||
ok() { PASS=$((PASS + 1)); say "PASS: $1"; }
|
||||
bad() { FAIL=$((FAIL + 1)); say "FAIL: $1"; }
|
||||
|
||||
XD() { DISPLAY="$DISPLAY_TEST" xdotool "$@" 2>/dev/null; }
|
||||
XW() { DISPLAY="$DISPLAY_TEST" xwininfo "$@" 2>/dev/null; }
|
||||
XD() { env -u WAYLAND_DISPLAY DISPLAY="$DISPLAY_TEST" xdotool "$@" 2>/dev/null; }
|
||||
XW() { env -u WAYLAND_DISPLAY DISPLAY="$DISPLAY_TEST" xwininfo "$@" 2>/dev/null; }
|
||||
|
||||
capture_visual() { # $1 = capture name
|
||||
[ -n "${INBE_VISUAL_OUTPUT_DIR:-}" ] || return 0
|
||||
mkdir -p "$INBE_VISUAL_OUTPUT_DIR"
|
||||
env -u WAYLAND_DISPLAY DISPLAY="$DISPLAY_TEST" \
|
||||
xwd -root -silent -out "$WORK/$1.xwd"
|
||||
convert "$WORK/$1.xwd" "$INBE_VISUAL_OUTPUT_DIR/$1.png"
|
||||
}
|
||||
|
||||
# Main (client) window id: named, wider than 500px.
|
||||
main_window() {
|
||||
@@ -81,7 +90,7 @@ close_button() {
|
||||
launch_app() { # $1 = root dir, $2 = log name
|
||||
[ -n "$APP_PID" ] && { kill "$APP_PID" 2>/dev/null; sleep 1; }
|
||||
rm -f "$WORK/$2"
|
||||
DISPLAY="$DISPLAY_TEST" APP_DATA_ROOT="$1" INBE_NO_TRAY=1 \
|
||||
env -u WAYLAND_DISPLAY DISPLAY="$DISPLAY_TEST" APP_DATA_ROOT="$1" APP_NO_TRAY=1 \
|
||||
setsid "$BIN" >"$WORK/$2" 2>&1 &
|
||||
APP_PID=$!
|
||||
sleep 8
|
||||
@@ -98,7 +107,7 @@ set_setting() { # $1 = root, $2 = key, $3 = value
|
||||
}
|
||||
|
||||
# --- environment -----------------------------------------------------------
|
||||
DISPLAY="$DISPLAY_TEST" setsid xfwm4 >/dev/null 2>&1 &
|
||||
env -u WAYLAND_DISPLAY DISPLAY="$DISPLAY_TEST" setsid xfwm4 >/dev/null 2>&1 &
|
||||
WM_PID=$!
|
||||
sleep 1.5
|
||||
|
||||
@@ -120,27 +129,28 @@ launch_app "$ROOT1" log-keep
|
||||
MW=$(main_window)
|
||||
if [ -n "$MW" ] && XW -id "$MW" | grep -q IsViewable; then
|
||||
ok "startup: main window maps"
|
||||
capture_visual "01-window-visible"
|
||||
else
|
||||
bad "startup: main window does not map"
|
||||
fi
|
||||
|
||||
# --- 2. close = keep running -> hidden but alive ---------------------------
|
||||
# --- 2. close = keep running, but no indicator -> exits --------------------
|
||||
if CB=$(close_button); then
|
||||
XD mousemove ${CB% *} ${CB#* }
|
||||
XD click 1
|
||||
sleep 2.5
|
||||
MW=$(main_window)
|
||||
if kill -0 "$APP_PID" 2>/dev/null && \
|
||||
XW -id "$MW" | grep -q IsUnMapped; then
|
||||
ok "close-keep: window hidden, app alive"
|
||||
if ! kill -0 "$APP_PID" 2>/dev/null; then
|
||||
ok "close-keep: no indicator, so app exits"
|
||||
capture_visual "02-after-close"
|
||||
APP_PID=""
|
||||
else
|
||||
bad "close-keep: expected hidden window with live process"
|
||||
bad "close-keep: app stayed alive without an indicator"
|
||||
fi
|
||||
else
|
||||
bad "close-keep: no WM frame found"
|
||||
fi
|
||||
|
||||
# --- 3. close = ask -> prompt -> Quit -> exits -----------------------------
|
||||
# --- 3. close = ask, but no indicator -> exits ------------------------------
|
||||
ROOT2="$WORK/r-ask"
|
||||
fresh_root "$ROOT2"; cp "$WORK/template.db" "$ROOT2/inbe.db"
|
||||
mkdir -p "$ROOT2/runtime-assets"
|
||||
@@ -149,49 +159,41 @@ launch_app "$ROOT2" log-ask
|
||||
if CB=$(close_button); then
|
||||
XD mousemove ${CB% *} ${CB#* }
|
||||
XD click 1
|
||||
sleep 2
|
||||
# The prompt is proven behaviorally: the right-hand button only quits
|
||||
# when the close prompt is up and accepting clicks.
|
||||
XD mousemove 715 482
|
||||
XD mousedown 1; sleep 0.15; XD mouseup 1
|
||||
sleep 2.5
|
||||
if kill -0 "$APP_PID" 2>/dev/null; then
|
||||
bad "close-ask: prompt Quit did not exit the app"
|
||||
bad "close-ask: app stayed alive without an indicator"
|
||||
else
|
||||
ok "close-ask: prompt appears and Quit exits the app"
|
||||
ok "close-ask: no indicator, so app exits"
|
||||
APP_PID=""
|
||||
fi
|
||||
else
|
||||
bad "close-ask: no WM frame found"
|
||||
fi
|
||||
|
||||
# --- 4. close = ask -> prompt -> Keep running ------------------------------
|
||||
ROOT3="$WORK/r-ask2"
|
||||
# --- 4. startup hidden without a tray -> visible, then minimize exits -----
|
||||
ROOT3="$WORK/r-start-hidden"
|
||||
fresh_root "$ROOT3"; cp "$WORK/template.db" "$ROOT3/inbe.db"
|
||||
mkdir -p "$ROOT3/runtime-assets"
|
||||
set_setting "$ROOT3" desktop_close_action 0 # ASK
|
||||
launch_app "$ROOT3" log-ask2
|
||||
if CB=$(close_button); then
|
||||
XD mousemove ${CB% *} ${CB#* }
|
||||
XD click 1
|
||||
sleep 2
|
||||
# Left-hand prompt button is Keep running.
|
||||
XD mousemove 520 482
|
||||
XD mousedown 1; sleep 0.15; XD mouseup 1
|
||||
set_setting "$ROOT3" desktop_startup_mode 1 # STARTUP_HIDDEN
|
||||
launch_app "$ROOT3" log-start-hidden
|
||||
MW=$(main_window)
|
||||
if [ -n "$MW" ] && XW -id "$MW" | grep -q IsViewable; then
|
||||
ok "startup-hidden: no indicator, so window stays visible"
|
||||
capture_visual "03-start-hidden-without-indicator"
|
||||
XD windowminimize "$MW"
|
||||
sleep 2.5
|
||||
MW=$(main_window)
|
||||
if kill -0 "$APP_PID" 2>/dev/null && \
|
||||
XW -id "$MW" | grep -q IsUnMapped; then
|
||||
ok "close-ask-keep: Keep running hides window, app alive"
|
||||
if ! kill -0 "$APP_PID" 2>/dev/null; then
|
||||
ok "minimize: no indicator, so app exits"
|
||||
APP_PID=""
|
||||
else
|
||||
bad "close-ask-keep: expected hidden window with live process"
|
||||
bad "minimize: app stayed alive without an indicator"
|
||||
fi
|
||||
else
|
||||
bad "close-ask-keep: no WM frame found"
|
||||
bad "startup-hidden: window did not remain visible"
|
||||
fi
|
||||
|
||||
# Break HUD dragging used to live here, but this harness deliberately runs with
|
||||
# INBE_NO_TRAY=1 so close-window behavior can be tested without a desktop tray.
|
||||
# APP_NO_TRAY=1 so close-window behavior can be tested without a desktop tray.
|
||||
# HUD behavior requires a separate tray-ready harness.
|
||||
|
||||
say ""
|
||||
|
||||
@@ -893,7 +893,7 @@ async function pageJson(client, expression, awaitPromise = false) {
|
||||
}
|
||||
|
||||
async function waitAnimationFrames(client, frameCount = 3) {
|
||||
await pageJson(client, `(async () => JSON.stringify(await new Promise(resolve => {
|
||||
const result = await pageJson(client, `(async () => JSON.stringify(await new Promise(resolve => {
|
||||
let frames = 0;
|
||||
function tick() {
|
||||
frames++;
|
||||
@@ -903,6 +903,8 @@ async function waitAnimationFrames(client, frameCount = 3) {
|
||||
requestAnimationFrame(tick);
|
||||
setTimeout(() => resolve({ ok: false, reason: 'timeout', frames }), 5000);
|
||||
})))()`, true);
|
||||
if (!result?.ok)
|
||||
throw new Error(`animation frames stalled: ${JSON.stringify(result)}`);
|
||||
}
|
||||
|
||||
async function dispatchCanvasClick(client, x, y) {
|
||||
@@ -1253,6 +1255,15 @@ async function verifyPracticeCarouselSwipe(client) {
|
||||
const target = await practiceStartClickTarget(client);
|
||||
const selected = () => pageJson(client, 'Module._app_web_test_practice_selected()');
|
||||
const initial = await selected();
|
||||
async function waitForSelectionChange(previous) {
|
||||
const deadline = Date.now() + 500;
|
||||
let current = await selected();
|
||||
while (current === previous && Date.now() < deadline) {
|
||||
await delay(50);
|
||||
current = await selected();
|
||||
}
|
||||
return current;
|
||||
}
|
||||
const x = target.rect.left + target.rect.width / 2;
|
||||
const y = target.rect.top + (target.y - target.rect.top) * 0.4;
|
||||
const distance = target.rect.width * 0.4;
|
||||
@@ -1263,9 +1274,9 @@ async function verifyPracticeCarouselSwipe(client) {
|
||||
type: 'mousePressed', x: startX, y: startY, button: 'left', clickCount: 1
|
||||
});
|
||||
await waitAnimationFrames(client, 2);
|
||||
for (let i = 1; i <= 6; i++) {
|
||||
for (let step = 1; step <= 6; step++) {
|
||||
await client.send('Input.dispatchMouseEvent', {
|
||||
type: 'mouseMoved', x: startX + dx * i / 6, y: startY + dy * i / 6,
|
||||
type: 'mouseMoved', x: startX + dx * step / 6, y: startY + dy * step / 6,
|
||||
button: 'left', buttons: 1
|
||||
});
|
||||
await waitAnimationFrames(client, 1);
|
||||
@@ -1275,17 +1286,33 @@ async function verifyPracticeCarouselSwipe(client) {
|
||||
});
|
||||
await waitAnimationFrames(client, 3);
|
||||
}
|
||||
await drag(-distance, 0);
|
||||
if (await selected() === initial) throw new Error('left swipe did not change practice');
|
||||
await drag(distance, 0);
|
||||
if (await selected() !== initial) throw new Error('right swipe did not return to practice');
|
||||
async function swipeToNext(dx, previous, label) {
|
||||
for (let attempt = 1; attempt <= 3; attempt++) {
|
||||
await drag(dx, 0);
|
||||
const current = await waitForSelectionChange(previous);
|
||||
if (current !== previous) return current;
|
||||
}
|
||||
throw new Error(`${label} did not change practice after three gestures (selected=${previous})`);
|
||||
}
|
||||
const first = await swipeToNext(-distance, initial, 'left swipe');
|
||||
if (await swipeToNext(distance, first, 'right swipe') !== initial)
|
||||
throw new Error('right swipe did not return to practice');
|
||||
await drag(0, distance / 2);
|
||||
if (await selected() !== initial) throw new Error('vertical drag changed practice');
|
||||
await dispatchCanvasClick(client, x, y);
|
||||
await waitAnimationFrames(client, 3);
|
||||
if (await selected() !== initial) throw new Error('artwork tap changed practice');
|
||||
for (let i = 0; i < 4; i++) await drag(-distance, 0);
|
||||
if (await selected() !== initial) throw new Error('carousel did not wrap after four swipes');
|
||||
const visited = new Set([initial]);
|
||||
let previous = initial;
|
||||
for (let i = 0; i < 4; i++) {
|
||||
const current = await swipeToNext(-distance, previous, `carousel swipe ${i + 1}`);
|
||||
if (i < 3 && visited.has(current))
|
||||
throw new Error(`carousel repeated practice early on swipe ${i + 1}: ${current}`);
|
||||
if (i === 3 && current !== initial)
|
||||
throw new Error(`carousel did not wrap after four swipes (selected=${current}, initial=${initial})`);
|
||||
visited.add(current);
|
||||
previous = current;
|
||||
}
|
||||
}
|
||||
|
||||
async function verifyPracticeStartClick(client) {
|
||||
|
||||
@@ -96,7 +96,7 @@ write_web_app_csp_html() {
|
||||
src=$1
|
||||
dst=$2
|
||||
cache_version=$(date +%s)
|
||||
csp="default-src 'self' data: blob:; connect-src 'self' https://api.waozi.xyz wss://api.waozi.xyz https://inbe.waozi.xyz; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://telegram.org; style-src 'self' 'unsafe-inline'; worker-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob:; frame-src https:; img-src data: https:; media-src https:; object-src 'none'"
|
||||
csp="default-src 'self' data: blob:; connect-src 'self' https: wss: http: ws:; script-src 'self' 'unsafe-eval' 'unsafe-inline' https://telegram.org; style-src 'self' 'unsafe-inline'; worker-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob:; frame-src https:; img-src data: https:; media-src https:; object-src 'none'"
|
||||
meta="<meta http-equiv=\"Content-Security-Policy\" content=\"$csp\">"
|
||||
|
||||
awk -v meta="$meta" -v version="$cache_version" '
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
<p class="policy-kicker">05 · Browser extensions</p>
|
||||
<h2>Permissions with a narrow purpose.</h2>
|
||||
<p>The browser extension uses browser storage for settings and reminder state. Depending on the browser build, it may use alarms, context menus, notifications, and the browser's active-or-idle status to schedule local reminders and quick actions.</p>
|
||||
<p>Inner Breeze does not read your browsing history, page contents, form data, keystrokes, or mouse position. Host access to <code>inbe.waozi.xyz</code> and <code>api.waozi.xyz</code> supports app resources and optional online features.</p>
|
||||
<p>Inner Breeze does not read your browsing history, page contents, form data, keystrokes, or mouse position. The browser extension requests host access to <code>api.waozi.xyz</code> for optional sync with the default server. You can leave sync off or choose a compatible server. A custom server must allow requests from the browser extension.</p>
|
||||
<p>Consistent with the Chrome Web Store Limited Use requirements, extension data is used only to provide or improve user-facing Inner Breeze features. It is not used for advertising, creditworthiness, or unrelated purposes.</p>
|
||||
</section>
|
||||
|
||||
|
||||
@@ -1,140 +0,0 @@
|
||||
#ifndef APP_APP_H
|
||||
#define APP_APP_H
|
||||
|
||||
#include "kryon.h"
|
||||
#include "ui_swipe.h"
|
||||
#include "platform.h"
|
||||
#include "core/breath_engine.h"
|
||||
#include "breaks/break_engine.h"
|
||||
#include "app_fwd.h"
|
||||
#include "runtime_assets.h"
|
||||
#include "screens/habits_screen.h"
|
||||
#include "src/screens/elist_types.h"
|
||||
#include "screens/settings/settings_types.h"
|
||||
#include "storage/sync_account.h"
|
||||
|
||||
#include "app/app_types.h"
|
||||
#include "app/metrics.h"
|
||||
|
||||
/* Shared UI viewport extents, updated by the app frame loop. */
|
||||
extern int view_width;
|
||||
extern int view_height;
|
||||
|
||||
int app_locale_dropdown(int id, int x, int y, int w, int h,
|
||||
int *selected_index);
|
||||
|
||||
UIPanelFrame AppModalFrame(int width, int height, const char *title,
|
||||
int left_icon_type, int right_icon_type);
|
||||
UIGuideResult AppGuideOverlay(GuideOverlayProps guide);
|
||||
ProfileImagePickerResult AppProfileImagePickerModal(ProfileImagePickerProps modal);
|
||||
int AppIconSliderPopup(IconSliderPopupProps popup);
|
||||
IconRowResult AppBottomIconRow(IconRowRequest row);
|
||||
void AppReorderHandle(int x, int y, int w, int h, int active);
|
||||
void AppReorderPlaceholder(Rectangle bounds);
|
||||
|
||||
extern AppConfig config;
|
||||
int app_register_style_pack_variant(const char *source, const char *label,
|
||||
ThemeColors colors, int style_index);
|
||||
|
||||
int app_draw_close_title_bar(InnerBreeze*app, const char *title, int height);
|
||||
int app_scaffold_close_title(const char *title, int height, void *user_data);
|
||||
int app_draw_close_dropdown_title_bar(InnerBreeze*app, TitleBarDropdown dropdown,
|
||||
int height);
|
||||
|
||||
void app_set_host_api(InnerBreeze*app, HostApi host);
|
||||
void app_init(void *app);
|
||||
void app_update_draw(void *app, Rectangle viewport);
|
||||
void app_destroy(void *app);
|
||||
InnerBreeze*get_global_app(void);
|
||||
void set_global_app(InnerBreeze*app);
|
||||
void app_switch_screen(InnerBreeze*app, int screen);
|
||||
AppRoute app_current_route(const InnerBreeze*app);
|
||||
void app_request_route(InnerBreeze*app, AppRoute route);
|
||||
void app_switch_route(InnerBreeze*app, AppRoute route);
|
||||
void app_leave_practice_config(InnerBreeze*app);
|
||||
int app_content_top_reserved(const InnerBreeze*app);
|
||||
int app_toolbar_height(void);
|
||||
int app_auto_sync(InnerBreeze*app);
|
||||
void app_request_social_refresh(InnerBreeze*app);
|
||||
int app_social_refresh_loading(void);
|
||||
int app_sync_loading(void);
|
||||
void app_request_friend_send(InnerBreeze*app, const char *target);
|
||||
void app_request_friend_accept(InnerBreeze*app, const char *request_id);
|
||||
void app_request_friend_decline(InnerBreeze*app, const char *request_id);
|
||||
void app_request_friend_remove(InnerBreeze*app, const char *friend_user_id);
|
||||
int app_should_use_tab_bar(const InnerBreeze*app);
|
||||
void app_play_breath_cue(InnerBreeze*app, int dir);
|
||||
void app_play_bell_cue(InnerBreeze*app, float scale);
|
||||
void app_play_sound(InnerBreeze*app, Sound sound, float scale);
|
||||
void app_audio_ensure_ready(InnerBreeze*app);
|
||||
int app_audio_reinitialize(InnerBreeze*app);
|
||||
float app_audio_output_level(InnerBreeze*app);
|
||||
int app_bell_cue_playing(InnerBreeze*app);
|
||||
void app_audio_library_load(InnerBreeze*app);
|
||||
void app_audio_library_save(const InnerBreeze*app);
|
||||
void app_audio_reload_cue_sounds(InnerBreeze*app);
|
||||
|
||||
|
||||
int app_audio_import_custom_sound_ex(InnerBreeze*app, int cue, const char *path, int *error_code);
|
||||
int app_audio_import_custom_music_ex(InnerBreeze*app, const char *path, int *error_code);
|
||||
int app_audio_import_custom_sound(InnerBreeze*app, int cue, const char *path);
|
||||
int app_audio_import_custom_music(InnerBreeze*app, const char *path);
|
||||
int app_audio_remove_custom_sound(InnerBreeze*app, int index);
|
||||
int app_audio_remove_custom_music(InnerBreeze*app, int index);
|
||||
int app_audio_music_count(const InnerBreeze*app);
|
||||
const char *app_audio_music_label(const InnerBreeze*app, int index);
|
||||
int app_audio_music_path(const InnerBreeze*app, int index, char *out, size_t out_size);
|
||||
int app_audio_sound_file_valid(const char *path);
|
||||
int app_audio_music_file_valid(const char *path);
|
||||
const char *app_audio_cue_default_asset(int cue);
|
||||
int app_audio_cue_path(InnerBreeze*app, int cue, char *out, size_t out_size);
|
||||
void app_audio_music_sanitize_selection(InnerBreeze*app);
|
||||
void app_unload_texture(Texture2D texture);
|
||||
const char *app_donation_url(void);
|
||||
const char *app_bitcoin_donation_address(void);
|
||||
const char *app_monero_donation_address(void);
|
||||
const char *app_bitcoin_wallet_url(void);
|
||||
const char *app_monero_wallet_url(void);
|
||||
const char *app_bitcoin_trocador_url(void);
|
||||
const char *app_monero_trocador_url(void);
|
||||
const char *app_bitcoin_donation_url(void);
|
||||
const char *app_monero_donation_url(void);
|
||||
|
||||
void app_open_modal(InnerBreeze*app, UIModalType type);
|
||||
void app_close_modal(InnerBreeze*app);
|
||||
void app_block_current_click(InnerBreeze*app);
|
||||
void app_request_desktop_close(InnerBreeze*app);
|
||||
void app_request_desktop_quit(InnerBreeze*app);
|
||||
AppClosePromptResult app_consume_close_prompt_result(InnerBreeze*app);
|
||||
SessionExitModalResult app_draw_session_exit_modal(int can_save,
|
||||
const char *save_message,
|
||||
const char *discard_message);
|
||||
|
||||
int clampi(int x, int min, int max);
|
||||
int int_from_count(const char src[4]);
|
||||
void count_from_int(char dst[4], int value);
|
||||
void app_reload_after_import(InnerBreeze*app, int reload_settings);
|
||||
void update_preview_bounds(BreathSession *breathing, int content_w, int max_h);
|
||||
void refresh_theme_colors(int theme_id, int dark_mode);
|
||||
void refresh_locale_dependent_text(InnerBreeze*app);
|
||||
void apply_system_language_selection(InnerBreeze*app, int save_now);
|
||||
void apply_language_selection(InnerBreeze*app, int language_index, int save_now);
|
||||
void app_accept_language_selection(InnerBreeze*app);
|
||||
int exercise_manual_seen(InnerBreeze*app, int exercise_type);
|
||||
void mark_exercise_manual_seen(InnerBreeze*app, int exercise_type);
|
||||
void sync_habits_for_activity(InnerBreeze*app, int exercise_type);
|
||||
void draw_breath_preview(BreathSession *breathing, int center_x, int center_y);
|
||||
void app_prepare_session_results(InnerBreeze*app, int activity, int primary_value,
|
||||
int secondary_value, const char *detail,
|
||||
const int *round_values, int round_count,
|
||||
const char *saved_path);
|
||||
|
||||
#include "app_nav.h"
|
||||
#include "app/app_settings.h"
|
||||
|
||||
int app_sync_failure_needs_action(int result);
|
||||
double app_sync_retry_delay(int attempt);
|
||||
void app_sync_record_result(int result);
|
||||
const char *app_sync_status_key(void);
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,26 @@
|
||||
#module "app"
|
||||
|
||||
# The public app surface is composed from the generated headers owned by the
|
||||
# modules that implement it. Keeping the umbrella in Kry prevents declarations
|
||||
# from drifting away from their implementations.
|
||||
#import "app/app_types.h"
|
||||
#import "app/application.h"
|
||||
#import "app/app_chrome.h"
|
||||
#import "app/app_donation.h"
|
||||
#import "app/app_lifecycle.h"
|
||||
#import "app/app_modal_state.h"
|
||||
#import "app/app_nav.h"
|
||||
#import "app/app_route_state.h"
|
||||
#import "app/app_settings.h"
|
||||
#import "app/app_style.h"
|
||||
#import "app/app_sync.h"
|
||||
#import "app/audio.h"
|
||||
#import "app/device_preferences.h"
|
||||
#import "app/locale_dropdown.h"
|
||||
#import "app/metrics.h"
|
||||
#import "app/music_library.h"
|
||||
#import "app/profile_image_picker.h"
|
||||
#import "app/sync_retry.h"
|
||||
#import "app/widgets.h"
|
||||
#import "practices/session_results.h"
|
||||
#import "practices/whm/whm_session.h"
|
||||
@@ -1,6 +1,6 @@
|
||||
#module "app.chrome"
|
||||
|
||||
#import "app.h"
|
||||
#import "app/app.h"
|
||||
|
||||
app_draw_close_title_bar :: (app: InnerBreeze*, title: const char*,
|
||||
height: int) -> int #export {
|
||||
@@ -47,9 +47,9 @@ app_draw_close_dropdown_title_bar :: (app: InnerBreeze*,
|
||||
if close_y < 0 { close_y = 0 }
|
||||
if dropdown_y < 0 { dropdown_y = 0 }
|
||||
if dropdown_w < 1 { dropdown_w = 1 }
|
||||
DrawRectangle(0, 0, view_width, height, GetThemeBackground())
|
||||
DrawRectangle(0, 0, view_width, height, StyleTokenColor("canvas"))
|
||||
DrawLine(0, height - 1, view_width, height - 1,
|
||||
DarkenColor(GetThemeButton(), 18))
|
||||
DarkenColor(StyleTokenColor("accent"), 18))
|
||||
Dropdown((DropdownProps){.id = dropdown.id,
|
||||
.bounds = {dropdown_x, dropdown_y, dropdown_w, dropdown_h},
|
||||
.options = dropdown.options, .option_count = dropdown.option_count,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#module "app.donation_reminder"
|
||||
|
||||
#import "app.h"
|
||||
#import "app/app.h"
|
||||
#import "storage.h" #private
|
||||
|
||||
save_reminder :: (app: InnerBreeze*) #private {
|
||||
|
||||