Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e50f8d1e7b | ||
|
|
0024cd84ef | ||
|
|
2c673ada7f |
No files matched your search
@@ -1,4 +1,8 @@
|
||||
# Changelog
|
||||
## [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.
|
||||
|
||||
@@ -53,8 +53,8 @@ android {
|
||||
applicationId "xyz.waozi.inbe"
|
||||
minSdk 21
|
||||
targetSdk 36
|
||||
versionCode 124
|
||||
versionName "2.0.0"
|
||||
versionCode 125
|
||||
versionName "2.0.1"
|
||||
manifestPlaceholders = [
|
||||
inbeAppLabel: "Inner Breeze",
|
||||
inbeUsesCleartextTraffic: "false"
|
||||
|
||||
@@ -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.
|
||||
@@ -1,5 +1,5 @@
|
||||
Package: inbe.waozi
|
||||
Version: 2.0.0
|
||||
Version: 2.0.1
|
||||
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.1" date="2026-09-20"/>
|
||||
</releases>
|
||||
<content_rating type="oars-1.1"/>
|
||||
</component>
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "inbe",
|
||||
"title": "Inner Breeze",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"architecture": "arm64",
|
||||
"framework": "ubuntu-sdk-20.04",
|
||||
"description": "Syncable breathing, meditation, and habit practice app.",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"manifest_version": 3,
|
||||
"name": "Inner Breeze",
|
||||
"short_name": "Inbe",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"description": "Breathing, meditation, habit tracking, and encrypted sync.",
|
||||
"permissions": [
|
||||
"contextMenus"
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<binary>inbe</binary>
|
||||
</provides>
|
||||
<releases>
|
||||
<release version="2.0.0" date="2026-09-19"/>
|
||||
<release version="2.0.1" date="2026-09-20"/>
|
||||
</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.1" date="2026-09-20"/>
|
||||
</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.1'
|
||||
license: BSD-3-Clause
|
||||
base: core22
|
||||
confinement: strict
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -28,6 +28,7 @@ int app_draw_customize_nav_page(InnerBreeze*app);
|
||||
void app_open_customize_nav(InnerBreeze*app);
|
||||
void app_apply_nav_route(InnerBreeze*app, int route);
|
||||
void app_reset_bottom_nav_routes(InnerBreeze*app);
|
||||
int app_reset_bottom_nav_routes_for_layout_version(InnerBreeze*app, int layout_version);
|
||||
int app_migrate_legacy_bottom_nav_routes(InnerBreeze*app);
|
||||
void app_sanitize_bottom_nav_routes(InnerBreeze*app);
|
||||
|
||||
|
||||
@@ -236,6 +236,14 @@ app_reset_bottom_nav_routes :: (app: InnerBreeze*) {
|
||||
app->bottom_nav_route_count = 4
|
||||
}
|
||||
|
||||
app_reset_bottom_nav_routes_for_layout_version :: (app: InnerBreeze*, layout_version: int) -> int {
|
||||
if app == NULL || layout_version >= 2 {
|
||||
return 0
|
||||
}
|
||||
app_reset_bottom_nav_routes(app)
|
||||
return 1
|
||||
}
|
||||
|
||||
app_migrate_legacy_bottom_nav_routes :: (app: InnerBreeze*) -> int {
|
||||
if app == NULL {
|
||||
return 0
|
||||
|
||||
@@ -147,17 +147,15 @@ load_bottom_nav_routes :: (app: InnerBreeze*, cache: const SettingsLoadCache*) #
|
||||
settings_cache_get_int(cache, "bottom_nav_route_2", APP_NAV_ROUTE_PRACTICE)
|
||||
app->bottom_nav_routes[3] =
|
||||
settings_cache_get_int(cache, "bottom_nav_route_3", APP_NAV_ROUTE_SETTINGS)
|
||||
if settings_cache_get_int(cache, "bottom_nav_layout_version", 0) < 1 {
|
||||
migrated := app_migrate_legacy_bottom_nav_routes(app)
|
||||
if app_reset_bottom_nav_routes_for_layout_version(app,
|
||||
settings_cache_get_int(cache, "bottom_nav_layout_version", 0)) {
|
||||
storage_settings_begin_write()
|
||||
storage_set_setting_int("bottom_nav_layout_version", 1)
|
||||
if migrated {
|
||||
storage_set_setting_int("bottom_nav_route_count", app->bottom_nav_route_count)
|
||||
storage_set_setting_int("bottom_nav_route_0", app->bottom_nav_routes[0])
|
||||
storage_set_setting_int("bottom_nav_route_1", app->bottom_nav_routes[1])
|
||||
storage_set_setting_int("bottom_nav_route_2", app->bottom_nav_routes[2])
|
||||
storage_set_setting_int("bottom_nav_route_3", app->bottom_nav_routes[3])
|
||||
}
|
||||
storage_set_setting_int("bottom_nav_layout_version", 2)
|
||||
storage_set_setting_int("bottom_nav_route_count", app->bottom_nav_route_count)
|
||||
storage_set_setting_int("bottom_nav_route_0", app->bottom_nav_routes[0])
|
||||
storage_set_setting_int("bottom_nav_route_1", app->bottom_nav_routes[1])
|
||||
storage_set_setting_int("bottom_nav_route_2", app->bottom_nav_routes[2])
|
||||
storage_set_setting_int("bottom_nav_route_3", app->bottom_nav_routes[3])
|
||||
storage_settings_end_write()
|
||||
}
|
||||
app_sanitize_bottom_nav_routes(app)
|
||||
@@ -243,7 +241,7 @@ save_settings :: (app: InnerBreeze*) {
|
||||
save_setting_int("navigation_placement", app->navigation_placement)
|
||||
save_setting_int("navigation_collapsed", app->nav_rail_collapsed)
|
||||
save_setting_int("profile_picture_icon", app->profile_picture_icon)
|
||||
save_setting_int("bottom_nav_layout_version", 1)
|
||||
save_setting_int("bottom_nav_layout_version", 2)
|
||||
save_setting_int("bottom_nav_route_count", app->bottom_nav_route_count)
|
||||
save_setting_int("bottom_nav_route_0", app->bottom_nav_routes[0])
|
||||
save_setting_int("bottom_nav_route_1", app->bottom_nav_routes[1])
|
||||
|
||||
+2
-2
@@ -3,7 +3,7 @@
|
||||
|
||||
#define APP_VERSION_MAJOR 2
|
||||
#define APP_VERSION_MINOR 0
|
||||
#define APP_VERSION_PATCH 0
|
||||
#define APP_VERSION_STRING "2.0.0"
|
||||
#define APP_VERSION_PATCH 1
|
||||
#define APP_VERSION_STRING "2.0.1"
|
||||
|
||||
#endif
|
||||
@@ -836,6 +836,38 @@ test_default_bottom_nav_routes_include_elist(void)
|
||||
"default fourth bottom nav item should be settings");
|
||||
}
|
||||
|
||||
static void
|
||||
test_nav_update_resets_saved_layout_once(void)
|
||||
{
|
||||
InnerBreeze app = test_app();
|
||||
|
||||
app.bottom_nav_route_count = 3;
|
||||
app.bottom_nav_routes[0] = APP_NAV_ROUTE_HABITS;
|
||||
app.bottom_nav_routes[1] = APP_NAV_ROUTE_PRACTICE;
|
||||
app.bottom_nav_routes[2] = APP_NAV_ROUTE_SETTINGS;
|
||||
|
||||
expect(app_reset_bottom_nav_routes_for_layout_version(&app, 1),
|
||||
"updating an older layout should reset navigation");
|
||||
expect(app.bottom_nav_route_count == 4 &&
|
||||
app.bottom_nav_routes[0] == APP_NAV_ROUTE_ELIST &&
|
||||
app.bottom_nav_routes[1] == APP_NAV_ROUTE_HABITS &&
|
||||
app.bottom_nav_routes[2] == APP_NAV_ROUTE_PRACTICE &&
|
||||
app.bottom_nav_routes[3] == APP_NAV_ROUTE_SETTINGS,
|
||||
"updated navigation should show Lists, Habits, Practice, Settings");
|
||||
|
||||
app.bottom_nav_route_count = 3;
|
||||
app.bottom_nav_routes[0] = APP_NAV_ROUTE_HABITS;
|
||||
app.bottom_nav_routes[1] = APP_NAV_ROUTE_PRACTICE;
|
||||
app.bottom_nav_routes[2] = APP_NAV_ROUTE_SETTINGS;
|
||||
expect(!app_reset_bottom_nav_routes_for_layout_version(&app, 2),
|
||||
"current layout should not reset again");
|
||||
expect(app.bottom_nav_route_count == 3 &&
|
||||
app.bottom_nav_routes[0] == APP_NAV_ROUTE_HABITS &&
|
||||
app.bottom_nav_routes[1] == APP_NAV_ROUTE_PRACTICE &&
|
||||
app.bottom_nav_routes[2] == APP_NAV_ROUTE_SETTINGS,
|
||||
"navigation changes after the update should be preserved");
|
||||
}
|
||||
|
||||
static void
|
||||
test_same_frame_modal_close_consumes_bottom_nav_click(void)
|
||||
{
|
||||
@@ -1612,6 +1644,7 @@ main(void)
|
||||
test_desktop_rail_spacing();
|
||||
test_navigation_placement_and_collapse();
|
||||
test_default_bottom_nav_routes_include_elist();
|
||||
test_nav_update_resets_saved_layout_once();
|
||||
test_same_frame_modal_close_consumes_bottom_nav_click();
|
||||
test_unblocked_bottom_nav_click_still_routes();
|
||||
test_edge_bottom_nav_routes_are_applied();
|
||||
|
||||
+4
-4
@@ -6,8 +6,8 @@ IDI_APP_ICON ICON "inbe.ico"
|
||||
IDI_NOTIFICATION_ICON ICON "inbe.ico"
|
||||
|
||||
VS_VERSION_INFO VERSIONINFO
|
||||
FILEVERSION 2,0,0,0
|
||||
PRODUCTVERSION 2,0,0,0
|
||||
FILEVERSION 2,0,1,0
|
||||
PRODUCTVERSION 2,0,1,0
|
||||
FILEFLAGSMASK 0x3fL
|
||||
#ifdef _DEBUG
|
||||
FILEFLAGS 0x1L
|
||||
@@ -24,11 +24,11 @@ BEGIN
|
||||
BEGIN
|
||||
VALUE "CompanyName", "waozi"
|
||||
VALUE "FileDescription", "Inner Breeze"
|
||||
VALUE "FileVersion", "2.0.0"
|
||||
VALUE "FileVersion", "2.0.1"
|
||||
VALUE "InternalName", "inbe"
|
||||
VALUE "OriginalFilename", "inbe-windows-x86_64.exe"
|
||||
VALUE "ProductName", "Inner Breeze"
|
||||
VALUE "ProductVersion", "2.0.0"
|
||||
VALUE "ProductVersion", "2.0.1"
|
||||
END
|
||||
END
|
||||
BLOCK "VarFileInfo"
|
||||
|
||||
Reference in new issue
Block a user