Compare commits

...
4 Commits
Author SHA1 Message Date
waoziandClaude Opus 5.5 7d65025806 Record the 2.1.31 phone check: 57.7 fps on the Moto
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 20:12:08 -03:00
waoziandClaude Opus 5.5 1eb5fd3de2 Release Inner Breeze 2.1.31
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 20:09:13 -03:00
waoziandClaude Opus 5.5 ccbad38a60 Fail the phone check when the app comes back shifted
The check measured the layout shift after leaving and resuming a practice
but only warned, so 2.1.28 to 2.1.30 passed with the app shifted after the
floating window. A shift above 2 now fails the check and the release gate.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 20:04:47 -03:00
waoziandClaude Opus 5.5 4097ce5d79 Keep the app inside the screen after the floating window
Android's floating window gives Inbe's window a shadow that makes its
drawing surface 18 pixels larger on every side, and keeps it after the
window opens back to full screen. The app then sat under the camera and
status bar, ran into the navigation and lost its sides. The activity now
reports its window size and Kryon draws and takes touches inside the
window's part of the surface; the floating window itself still fills its
whole surface, without a border.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-11 20:04:47 -03:00
21 changed files with 130 additions and 42 deletions

No files matched your search

+4
View File
@@ -1,4 +1,8 @@
# Changelog
## [2.1.31] - 2026-10-11
### Fixed
- Android: after the floating practice window, the app fits the screen again instead of running under the status bar and navigation and losing its sides.
## [2.1.30] - 2026-10-11
### Fixed
- Long menus, such as the colour theme, scroll by touch and open at your choice.
+2 -2
View File
@@ -56,8 +56,8 @@ android {
minSdk 21
targetSdk 36
testInstrumentationRunner "android.test.InstrumentationTestRunner"
versionCode 167
versionName "2.1.30"
versionCode 168
versionName "2.1.31"
manifestPlaceholders = [
inbeAppLabel: "Inner Breeze",
inbeUsesCleartextTraffic: "false"
@@ -159,10 +159,26 @@ public class MainActivity extends NativeActivity {
pictureWindowReturns++;
}
refreshPictureWindowState();
reportWindowSize();
requestInsetRefresh();
syncLifecycleState("onPictureInPictureModeChanged");
}
// The floating window's shadow makes the drawing surface larger than the
// window frame on every side, and Android keeps that margin after the
// window opens back into the app. In full screen the margin lies past the
// screen edges, so native draws the app in the frame's part of the
// surface. The floating window shows the whole surface, so there the app
// fills it (size 0) rather than leaving a border.
private void reportWindowSize() {
View decor = getWindow().getDecorView();
if (Build.VERSION.SDK_INT >= 26 && isInPictureInPictureMode()) {
nativeSetWindowSize(0, 0);
} else {
nativeSetWindowSize(decor.getWidth(), decor.getHeight());
}
}
private void showStartup() {
startupView = new FrameLayout(this);
startupView.setBackgroundColor(getResources().getColor(R.color.startup_background));
@@ -271,6 +287,7 @@ public class MainActivity extends NativeActivity {
private native void nativeSetInsets(int left, int top, int right, int bottom, int imeBottom,
int cutoutLeft, int cutoutTop, int cutoutRight, int cutoutBottom);
private native void nativeSetWindowSize(int width, int height);
private native void nativeSetDeviceDensity(float density);
private native void nativeSetSystemDark(int dark);
private native void nativeSetOrientation(int orientation);
@@ -1141,6 +1158,9 @@ public class MainActivity extends NativeActivity {
}
});
decorView.addOnLayoutChangeListener((view, left, top, right, bottom,
oldLeft, oldTop, oldRight, oldBottom) -> reportWindowSize());
// 2. Startup safety net: Catches frame sizing on the initial layout pass
decorView.getViewTreeObserver().addOnGlobalLayoutListener(new ViewTreeObserver.OnGlobalLayoutListener() {
@Override
@@ -0,0 +1,3 @@
Fixed
---
- Android: after the floating practice window, the app fits the screen again instead of running under the status bar and navigation and losing its sides.
+1 -1
View File
@@ -1,5 +1,5 @@
Package: inbe.waozi
Version: 2.1.30
Version: 2.1.31
Architecture: arm64
Maintainer: Waozi <[email protected]>
Click-Version: 0.4
+1 -1
View File
@@ -28,7 +28,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="2.1.30" date="2026-10-11"/>
<release version="2.1.31" date="2026-10-11"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -1,7 +1,7 @@
{
"name": "inbe",
"title": "Inner Breeze",
"version": "2.1.30",
"version": "2.1.31",
"architecture": "arm64",
"framework": "ubuntu-sdk-20.04",
"description": "Syncable breathing, meditation, and habit practice app.",
+1 -1
View File
@@ -2,7 +2,7 @@
"manifest_version": 3,
"name": "Inner Breeze",
"short_name": "Inbe",
"version": "2.1.30",
"version": "2.1.31",
"description": "Breathing, meditation, habit tracking, and encrypted sync.",
"permissions": [
"contextMenus"
+1 -1
View File
@@ -22,7 +22,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="2.1.30" date="2026-10-11"/>
<release version="2.1.31" date="2026-10-11"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -22,7 +22,7 @@
<binary>inbe</binary>
</provides>
<releases>
<release version="2.1.30" date="2026-10-11"/>
<release version="2.1.31" date="2026-10-11"/>
</releases>
<content_rating type="oars-1.1"/>
</component>
+1 -1
View File
@@ -6,7 +6,7 @@ description: |
meditation, and habit tracking with visual and audio cues, meditation
timers, habit counters, session history, and optional sync.
version: '2.1.30'
version: '2.1.31'
license: BSD-3-Clause
base: core22
confinement: strict
+40
View File
@@ -0,0 +1,40 @@
{
"schema": 1,
"version": "2.1.31",
"source_commit": "1eb5fd3de2436f0d2de38fd6efc84d9a0c42529a",
"apk": {
"sha256": "1616377bd74fae075e2c68b4b12d5caefdee106872e648a33d7db37f0dc79518",
"package": "xyz.waozi.inbe.debug",
"version_code": 168,
"version_name": "2.1.31"
},
"device": {
"model": "moto e6 play",
"android": "9"
},
"practice": {
"name": "Wim Hof",
"seconds": 59.68,
"frames": 3447,
"refresh_hz": 58.2,
"fps": 57.7,
"late_percent": 0.0,
"p95_frame_ms": 17.4,
"worst_frame_ms": 17.6,
"resume_layout_shift": 1.2
},
"limits": {
"minimum_refresh_share": 0.94,
"maximum_late_percent": 3.0,
"maximum_frame_ms": 250.0,
"maximum_resume_layout_shift": 2.0
},
"checks": [
"installed over the existing app",
"launch",
"Wim Hof frame timing",
"background and resume"
],
"passed": true,
"checked_at": "2026-10-11T23:12:02+00:00"
}
+3
View File
@@ -44,6 +44,9 @@ def validate(root, version):
timing = receipt.get("practice", {})
if receipt.get("passed") is not True or not phone_check.smooth(timing) or timing.get("seconds", 0) < 55:
raise ValueError(f"the phone check did not pass: {timing}")
if not phone_check.resumed_in_place(timing):
raise ValueError("the app came back from the background with a shifted layout: "
f"{timing.get('resume_layout_shift')}")
if subprocess.run(["git", "-C", str(root), "merge-base", "--is-ancestor", commit, "HEAD"],
capture_output=True).returncode != 0:
raise ValueError(f"the checked commit {commit} is not part of this release")
+13 -7
View File
@@ -34,6 +34,9 @@ SOURCE_PATHS = ("src", "droid", "apps", "assets", "locales", "themes", "fonts",
MINIMUM_REFRESH_SHARE = 0.94
MAXIMUM_LATE_PERCENT = 3.0
MAXIMUM_FRAME_MS = 250.0
# Leaving during a practice may pass through the floating window; the
# practice must come back with the layout it had, not shifted or cropped.
MAXIMUM_RESUME_LAYOUT_SHIFT = 2.0
PENDING = 9223372036854775807
@@ -169,6 +172,10 @@ def smooth(timing):
timing["worst_frame_ms"] <= MAXIMUM_FRAME_MS)
def resumed_in_place(timing):
return timing.get("resume_layout_shift", 255.0) <= MAXIMUM_RESUME_LAYOUT_SHIFT
def check(phone, apk, seconds, evidence):
identity = apk_identity(apk)
package = identity["package"]
@@ -213,8 +220,6 @@ def check(phone, apk, seconds, evidence):
if phone.pid(package) != pid:
raise ValueError("Inner Breeze restarted when it returned from the background")
phone.screenshot(package, evidence / "resume.png")
# Leaving during a practice may pass through the floating window; the
# practice must come back with the layout it had.
timing["resume_layout_shift"] = layout_shift(evidence / "practice-end.png", evidence / "resume.png")
model = phone.shell("getprop", "ro.product.model").strip()
android = phone.shell("getprop", "ro.build.version.release").strip()
@@ -247,12 +252,13 @@ def main():
identity, timing, device = check(Phone(host, args.serial), apk, args.seconds, evidence)
if identity["version_name"] != version:
raise SystemExit(f"the APK is {identity['version_name']}, but the source is {version}")
passed = smooth(timing)
passed = smooth(timing) and resumed_in_place(timing)
receipt = dict(schema=1, version=version, source_commit=commit,
apk=dict(sha256=hashlib.sha256(apk.read_bytes()).hexdigest(), **identity),
device=device, practice=dict(name="Wim Hof", **timing),
limits=dict(minimum_refresh_share=MINIMUM_REFRESH_SHARE, maximum_late_percent=MAXIMUM_LATE_PERCENT,
maximum_frame_ms=MAXIMUM_FRAME_MS),
maximum_frame_ms=MAXIMUM_FRAME_MS,
maximum_resume_layout_shift=MAXIMUM_RESUME_LAYOUT_SHIFT),
checks=["installed over the existing app", "launch", "Wim Hof frame timing",
"background and resume"],
passed=passed, checked_at=datetime.now(timezone.utc).isoformat(timespec="seconds"))
@@ -262,12 +268,12 @@ def main():
target.parent.mkdir(parents=True, exist_ok=True)
target.write_text(json.dumps(receipt, indent=2) + "\n")
print(f"Recorded {target.relative_to(ROOT)}; commit it with the release.")
if timing["resume_layout_shift"] > 2:
print(f"WARNING: the practice layout changed after resuming (difference {timing['resume_layout_shift']}); "
if not resumed_in_place(timing):
print(f"FAILED: the practice layout changed after resuming (difference {timing['resume_layout_shift']}); "
f"compare practice-end.png and resume.png in {evidence.relative_to(ROOT)}")
print(f"{device['model']} (Android {device['android']}): {timing['fps']} fps over {timing['seconds']} s, "
f"{timing['late_percent']}% late frames, worst {timing['worst_frame_ms']} ms -> "
f"{'smooth' if passed else 'NOT smooth'}; evidence in {evidence.relative_to(ROOT)}")
f"{'smooth' if smooth(timing) else 'NOT smooth'}; evidence in {evidence.relative_to(ROOT)}")
return 0 if passed else 1
+2 -2
View File
@@ -3,7 +3,7 @@
#define APP_VERSION_MAJOR 2
#define APP_VERSION_MINOR 1
#define APP_VERSION_PATCH 30
#define APP_VERSION_STRING "2.1.30"
#define APP_VERSION_PATCH 31
#define APP_VERSION_STRING "2.1.31"
#endif
+2 -2
View File
@@ -1,5 +1,5 @@
// Generated by update_version.sh from CHANGELOG.md. Do not edit by hand.
VersionMajor :: 2
VersionMinor :: 1
VersionPatch :: 30
VersionString :: "2.1.30"
VersionPatch :: 31
VersionString :: "2.1.31"
+11 -4
View File
@@ -21,6 +21,7 @@
NativeIntegerFn :: #type (*JniEnv, *void, s32) -> void #c_call;
NativeInsetsFn :: #type (*JniEnv, *void, s32, s32, s32, s32,
s32, s32, s32, s32, s32) -> void #c_call;
NativeSizeFn :: #type (*JniEnv, *void, s32, s32) -> void #c_call;
NativeDensityFn :: #type (*JniEnv, *void, float32) -> void #c_call;
NativeLifecycleFn :: #type (*JniEnv, *void, u8, u8) -> s32 #c_call;
NativeSelectedFn :: #type (*JniEnv, *void, s32, *void) -> void #c_call;
@@ -35,6 +36,7 @@
nothing: NativeVoidFn
integer: NativeIntegerFn
insets: NativeInsetsFn
size: NativeSizeFn
density: NativeDensityFn
lifecycle: NativeLifecycleFn
selected: NativeSelectedFn
@@ -142,9 +144,9 @@
if klass == null {
return -1
}
methods: [20]NativeMethod
names: [20][64]u8
signatures: [20][128]u8
methods: [21]NativeMethod
names: [21][64]u8
signatures: [21][128]u8
CopyCString("nativeSetInsets", names[0][:])
CopyCString("(IIIIIIIII)V", signatures[0][:])
methods[0].name = *names[0][0]
@@ -245,8 +247,13 @@
methods[19].name = *names[19][0]
methods[19].signature = *signatures[19][0]
methods[19].procedure.text_state = AndroidNativeTextInputState
CopyCString("nativeSetWindowSize", names[20][:])
CopyCString("(II)V", signatures[20][:])
methods[20].name = *names[20][0]
methods[20].signature = *signatures[20][0]
methods[20].procedure.size = AndroidNativeSetWindowSize
result = env.functions.RegisterNatives(env, klass,
cast(*void)*methods[0], 20)
cast(*void)*methods[0], 21)
env.functions.DeleteLocalRef(env, klass)
if result != 0 {
return result
+4 -2
View File
@@ -336,8 +336,10 @@ FakeRegister :: (env: *JniEnv, klass: *void,
unused klass
registered_methods = count
methods := cast(*NativeMethod)raw_methods
Require(count == 20, 22)
Require(count == 21, 22)
Require(CStringEquals(methods[4].name, "nativeSetSystemDark"), 23)
Require(CStringEquals(methods[20].name, "nativeSetWindowSize") &&
CStringEquals(methods[20].signature, "(II)V"), 110)
native_dark = methods[4].procedure.integer
native_practice = methods[15].procedure.practice
native_donation = methods[18].procedure.boolean
@@ -526,7 +528,7 @@ main :: () -> s32 {
api.GetArrayLength = FakeArrayLength
api.RegisterNatives = FakeRegister
Require(JNI_OnLoad(*vm, null) == JniVersion && registered_methods == 20, 30)
Require(JNI_OnLoad(*vm, null) == JniVersion && registered_methods == 21, 30)
native_dark(*environment, cast(*void)*activity, 1)
Require(AndroidSystemDark() == 1, 31)
native_dark(*environment, cast(*void)*activity, 0)
+4 -1
View File
@@ -17,7 +17,8 @@ RECEIPT = {
"apk": {"sha256": "0" * 64, "package": "xyz.waozi.inbe.debug", "version_code": 300, "version_name": "3.0.0"},
"device": {"model": "moto e6 play", "android": "9"},
"practice": {"name": "Wim Hof", "seconds": 60.0, "frames": 3580, "refresh_hz": 60.0, "fps": 59.6,
"late_percent": 0.4, "p95_frame_ms": 16.9, "worst_frame_ms": 41.2},
"late_percent": 0.4, "p95_frame_ms": 16.9, "worst_frame_ms": 41.2,
"resume_layout_shift": 0.4},
"passed": True,
}
@@ -75,6 +76,8 @@ class PhoneCheckGateTest(unittest.TestCase):
"late frames": lambda value: value["practice"].update(late_percent=9.0),
"long stall": lambda value: value["practice"].update(worst_frame_ms=600.0),
"short run": lambda value: value["practice"].update(seconds=20.0),
"shifted after resume": lambda value: value["practice"].update(resume_layout_shift=11.4),
"resume not checked": lambda value: value["practice"].pop("resume_layout_shift"),
"marked failed": lambda value: value.update(passed=False),
"other version": lambda value: value.update(version="2.9.9"),
"other APK": lambda value: value["apk"].update(version_name="2.9.9"),
+4 -4
View File
@@ -6,8 +6,8 @@ IDI_APP_ICON ICON "inbe.ico"
IDI_NOTIFICATION_ICON ICON "inbe.ico"
VS_VERSION_INFO VERSIONINFO
FILEVERSION 2,1,30,0
PRODUCTVERSION 2,1,30,0
FILEVERSION 2,1,31,0
PRODUCTVERSION 2,1,31,0
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
@@ -24,11 +24,11 @@ BEGIN
BEGIN
VALUE "CompanyName", "waozi"
VALUE "FileDescription", "Inner Breeze"
VALUE "FileVersion", "2.1.30"
VALUE "FileVersion", "2.1.31"
VALUE "InternalName", "inbe"
VALUE "OriginalFilename", "inbe-windows-x86_64.exe"
VALUE "ProductName", "Inner Breeze"
VALUE "ProductVersion", "2.1.30"
VALUE "ProductVersion", "2.1.31"
END
END
BLOCK "VarFileInfo"
+11 -11
View File
@@ -3,7 +3,7 @@
"packages": [
{
"commit": "f01be2f1d5acf2a570e351013221238b7c543760",
"dependencies": {"kryon": "pf3266fa24676c50a"},
"dependencies": {"kryon": "p99860810ab60f11a"},
"id": "p03de317562242e4f",
"name": "Kss",
"ref": "master",
@@ -61,9 +61,17 @@
"ref": "master",
"url": "https://github.com/ziranlang/daochi-client.git"
},
{
"commit": "468d6326d9f2275b418cb07e4d5daeac6ecd5d74",
"dependencies": {"raylib": "p5a77c9c35110e925"},
"id": "p99860810ab60f11a",
"name": "kryon",
"ref": "master",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "7aa01465ac3f988e0404f3c6dc244bf4b009f253",
"dependencies": {"kryon": "pf3266fa24676c50a"},
"dependencies": {"kryon": "p99860810ab60f11a"},
"id": "paa08e1730a25bda0",
"name": "Game2D",
"ref": "master",
@@ -86,14 +94,6 @@
"ref": "master",
"url": "https://github.com/ziranlang/qrcode.git"
},
{
"commit": "e2b792aab29e11be73e761e06826c25bd9da9bfd",
"dependencies": {"raylib": "p5a77c9c35110e925"},
"id": "pf3266fa24676c50a",
"name": "kryon",
"ref": "master",
"url": "https://github.com/kryonlabs/kryon.git"
},
{
"commit": "fd44469daeffe6b28f031f54f9bb66cbae69a572",
"dependencies": {},
@@ -105,7 +105,7 @@
}
],
"root": {
"dependencies": {"curl": "pc4b263336680098b", "daochi_client": "p96e1f539ccb91af5", "game2d": "paa08e1730a25bda0", "kryon": "pf3266fa24676c50a", "kss": "p03de317562242e4f", "liboqs": "pfb3df7cb222b1bdc", "monocypher": "p2ff634c7b007140d", "oqs": "p55635fc8976895a9", "qrcode": "pf0ce9cea355c9228", "rini": "p09fa77e94b0dfc6c", "sqlite": "p151b83a361c86f2d"},
"dependencies": {"curl": "pc4b263336680098b", "daochi_client": "p96e1f539ccb91af5", "game2d": "paa08e1730a25bda0", "kryon": "p99860810ab60f11a", "kss": "p03de317562242e4f", "liboqs": "pfb3df7cb222b1bdc", "monocypher": "p2ff634c7b007140d", "oqs": "p55635fc8976895a9", "qrcode": "pf0ce9cea355c9228", "rini": "p09fa77e94b0dfc6c", "sqlite": "p151b83a361c86f2d"},
"name": "Inbe"
},
"toolchain": {