Compare commits

...
57 Commits
Author SHA1 Message Date
waozi ced92152e1 bug fix 2026-06-10 00:18:25 -03:00
waozi 22c309e5e6 fix action 2026-06-09 23:57:51 -03:00
waozi b4922b5c35 Fix web file dialog guard 2026-06-09 23:51:25 -03:00
waozi e455f5c40c Fix font glyphs and web builds 2026-06-09 23:48:13 -03:00
waozi 7fbdfc5c49 add submodule 2026-06-09 23:33:40 -03:00
waozi d78af1d5b9 bug fixes and locale fixes 2026-06-09 23:30:10 -03:00
waozi 9d3844820f rm icons 2026-06-09 23:14:59 -03:00
waozi 1d01a8aa32 improve icon setup 2026-06-09 23:14:41 -03:00
waozi e5af624e3d import working on linux 2026-06-09 21:55:06 -03:00
waozi fe2f9209c6 wip file import 2026-06-09 21:41:29 -03:00
waozi 189227f3a1 update makefile 2026-06-09 13:36:16 -03:00
waozi 58c33a90d6 add new version 2026-06-09 13:05:43 -03:00
waozi 5a38c6953e fine grained sound, better language support 2026-06-09 11:13:11 -03:00
waozi fcd134a8e1 clean text 2026-06-09 00:13:33 -03:00
waozi 158c66d588 add font loading and asian languages 2026-06-08 23:18:52 -03:00
waozi 14d801fb11 Use Flint UI widgets directly 2026-06-08 15:21:13 -03:00
waozi 93941b5c6a Bump Flint for UI widgets 2026-06-08 15:20:42 -03:00
waozi 62641a2b41 Bump Flint for DPI cache 2026-06-08 15:09:21 -03:00
waozi ee94071509 Use Flint text layout directly 2026-06-08 15:05:08 -03:00
waozi 9770dd6b4c Bump Flint for text layout 2026-06-08 15:03:28 -03:00
waozi 8c82f35493 Move generic UI helpers into flint 2026-06-08 14:57:13 -03:00
waozi 71d0e24c39 Update flint theme catalog behavior 2026-06-08 14:21:58 -03:00
waozi 0ceebd055e Use flint catalog for theme previews 2026-06-08 14:20:36 -03:00
waozi 6555f85769 Register themes through flint catalog 2026-06-08 11:04:19 -03:00
waozi 6b40d00b5b Use vendored flint UI and themes 2026-06-08 10:54:50 -03:00
waozi 54cfd0e5e6 cleaner makefile 2026-06-08 00:40:01 -03:00
waozi 50674fefd6 improved settings page 2026-06-04 22:50:14 -03:00
waozi f6dbfc373a rm sync 2026-06-04 16:02:20 -03:00
waozi f5397afcd6 wip sync data 2026-06-03 00:17:29 -03:00
waozi 47ff302a0f fixes for web and version update 2026-06-01 17:00:10 -03:00
waozi dbe2e2fc6a add on screen keyboard 2026-06-01 16:33:26 -03:00
waozi ab662be647 improve edit filed 2026-06-01 12:42:01 -03:00
waozi 0341d983d1 improve tutorial, results saving and statistics 2026-06-01 12:29:36 -03:00
waozi b2a8b34df1 add multilingual 2026-05-31 06:08:23 -03:00
waozi 3b73ae0cb4 add progressive speed up for first round 2026-05-30 23:13:41 -03:00
waozi ddf4671297 fix for non android plat 2026-05-30 18:59:52 -03:00
waozi 83489725ed implement wakelock 2026-05-30 18:43:50 -03:00
waozi 7fb258f5d5 implement wakelock 2026-05-30 11:28:58 -03:00
waozi fff3469944 rm comments 2026-05-30 00:48:04 -03:00
waozi 731abd410b improve dpi settings 2026-05-30 00:28:07 -03:00
waozi 8fd4efb642 improve website 2026-05-30 00:19:07 -03:00
waozi adf8352e92 cleanup code and improve site 2026-05-29 23:57:23 -03:00
waozi 706a8a0797 clean up instructions 2026-05-29 20:04:38 -03:00
waozi d068a8b8e0 fi xscript 2026-05-29 15:07:05 -03:00
waozi 024b16e36b add copy assets script 2026-05-29 14:57:23 -03:00
waozi 16e4ec2711 fix padding 2026-05-29 14:53:29 -03:00
waozi 7ce19c045f massive layout improvements 2026-05-29 14:50:11 -03:00
waozi a2e5a594cd update cmake 2026-05-29 13:31:44 -03:00
waozi ec53dd02af implement text reflow 2026-05-29 13:29:54 -03:00
waozi 8d92924849 update workflow 2026-05-29 12:43:31 -03:00
waozi 407681fada rm unsigned apk 2026-05-29 12:05:40 -03:00
waozi 6a3d3f3559 fix gradle for github action 2026-05-29 11:38:47 -03:00
waozi ab59ab6b83 mistake in workflow 2026-05-29 11:34:46 -03:00
waozi 321afdd465 fix workflow 2026-05-29 11:33:31 -03:00
waozi c2f7d75258 update workflow 2026-05-29 11:31:34 -03:00
waozi eba69651a9 udptae version 2026-05-29 11:27:47 -03:00
waozi 8fe47c8a32 add image fallback 2026-05-29 11:19:29 -03:00
173 changed files with 11574 additions and 4358 deletions

No files matched your search

-4
View File
@@ -1,4 +0,0 @@
# These are supported funding model platforms
github: [waozixyz]
liberapay: waozi
+10 -10
View File
@@ -24,11 +24,11 @@ jobs:
submodules: recursive
fetch-depth: 0
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
java-version: '21'
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
@@ -43,13 +43,12 @@ jobs:
env:
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }}
run: |
if [ -z "$KEYSTORE_BASE64" ]; then
echo "KEYSTORE_BASE64 secret not set"
exit 1
fi
echo "$KEYSTORE_BASE64" | base64 -d > ~/.android/inbe-release.keystore
echo "Keystore decoded successfully"
- name: Copy Assets to Android Project
run: ./scripts/copy-android-assets.sh
- name: Build Release APK
working-directory: ./droid
env:
@@ -64,13 +63,14 @@ jobs:
- name: Rename APK
run: |
find droid/app/build/outputs/apk/release -name "*-universal-release.apk" -exec cp {} inbe.apk \; 2>/dev/null || true
VERSION=$(grep "versionName" droid/app/build.gradle | awk '{print $2}' | tr -d '"')
find droid/app/build/outputs/apk/release -name "*-universal-release.apk" -exec cp {} inbe-$VERSION.apk \; 2>/dev/null || true
- name: Upload APK
- name: Upload APK to Artifacts
uses: actions/upload-artifact@v4
with:
name: release-apk
path: inbe.apk
path: inbe-*.apk
if-no-files-found: warn
- name: Create and Push Tag (if new version)
@@ -96,7 +96,7 @@ jobs:
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ steps.tag_version.outputs.tag_name }}
files: inbe.apk
files: inbe-*.apk
generate_release_notes: true
draft: false
env:
+1
View File
@@ -1,4 +1,5 @@
*.sym
*.backup
*.tar.gz
*.zip
*~
+6
View File
@@ -4,3 +4,9 @@
[submodule "vendor/rini"]
path = vendor/rini
url = https://github.com/raysan5/rini.git
[submodule "vendor/flint"]
path = vendor/flint
url = https://github.com/waozixyz/flint
[submodule "vendor/otfchop"]
path = vendor/otfchop
url = https://github.com/waozixyz/otfchop
+86 -1
View File
@@ -1,6 +1,91 @@
# Changelog
## [1.2.2] - 2026-06-10
### Fixed
- Android touch targets now align correctly on devices with navigation bar window insets.
## [1.2.1] - 2026-06-10
### Added
- Breath hold display mode setting with circle progress or stopwatch display
- Slower speed scale and progressive start speed control
## [1.2.0] - 2026-06-08
### Added
- Flint-based UI and theme system
- Session volume slider with immediate persistence
- Additional language support: Czech (Čeština), Indonesian (Bahasa Indonesia), Japanese (日本語), Korean (한국어), and Chinese (中文)
- Proper font glyphs
- File picker for import
## [1.1.9] - 2026-06-04
### Added
- Hierarchical settings organization with 3 main categories
- Category selection screen with card-based navigation
- Back button for hierarchical navigation
### Fixed
- Settings navigation state and Android back button behavior
## [1.1.8] - 2026-06-01
### Added
- Editable history days with pencil actions for sessions and rounds
- Inline history editing for session time and round seconds with cursor movement, click-to-position, validation, and save action
- Confirmation modal before deleting history sessions or rounds
- Sound settings page and optional advanced session controls setting
### Fixed
- Incomplete or zero-second rounds are discarded instead of being saved or shown in results
- History edit view no longer shows average time on session rows
- Tutorial and navigation buttons resize more reliably across narrow viewports
- Reduced excessive page side padding and improved small-screen layout behavior
## [1.1.7] - 2026-05-31
### Added
- First-run language picker and in-app language switching
- Spanish, French, and Portuguese translations
- Localized Android/F-Droid metadata for German, Spanish, French, and Portuguese
- Explicit Save Results and Discard actions on the results screen
### Fixed
- Language dropdown now renders above other controls
- Tutorial blank lines now render correctly from locale files
- Preview breathing circle now reflects the selected speed directly
- History round details now appear directly under the selected session
- Removed confusing delete button from history session rows
## [1.1.6] - 2026-05-30
### Added
- Background meditation timer - sessions continue when screen is off
- "Play in background" toggle in breathing settings (Android only)
- Android wake lock support with user control
- Background sound playback
### Fixed
- Meditation pausing when screen turns off
- Thread synchronization issues between main loop and background timer
- Toggle button now uses theme colors instead of hardcoded colors
## [1.1.5] - 2026-05-29
### Fixed
- Results page layout improvements:
- Consistent side padding (32px) across all pages
- Increased spacing between average time and round times
- Left-aligned round times for better readability
- Fixed scrollbar appearing prematurely (corrected height calculations)
- Accurate content height measurements for better scroll behavior
- Dropdown menu hover highlighting no longer clipped at bottom edge
- Text layout height calculation now matches actual rendered height
- Tutorial page content height calculations fixed (no more premature scrollbars)
## [1.1.4] - 2026-05-29
### Added
- Proper text reflow with word wrapping
### Fixed
- GitHub releases and F-Droid builds now include all assets
## [1.1.3] - 2026-05-29
### Fixed
- Icon button fallback system - buttons now render with procedural graphics when asset images fail to load (prevents empty buttons on devices with asset loading issues)
- Added UIIconType system for icon identification and fallback rendering
- Updated all icon button functions to support fallback graphics (ui_draw_icon_btn, ui_draw_icon_btn_padded, ui_draw_icon_link, ui_draw_nav_button, ui_draw_nav_button_expand)
## [1.1.2] - 2026-05-29
## Fixed
### Fixed
- Data storage location
- Punch hole spacing
- Crashes on newer devices
+10 -560
View File
@@ -1,563 +1,12 @@
CC = gcc
WINDRES = windres
.DEFAULT_GOAL := all
SRC = src/main.c src/app.c src/ui.c src/theme_meta.c src/theme.c src/data.c src/miniz.c src/file_dialog.c src/android_share.c src/tabs/history_tab.c src/tabs/manual_tab.c src/tabs/settings_tab.c
INBE_DIR = libinbe
INBE_A = $(INBE_DIR)/libinbe.a
RAYLIB_DIR = vendor/raylib/src
RAYLIB_BUILD_DIR = vendor/raylib/build/sdl
RAYLIB_A = $(RAYLIB_BUILD_DIR)/libraylib.a
ANDROID_DIR = droid
GRADLE = gradle
ANDROID_APP_ID = xyz.waozi.inbe
ANDROID_ACTIVITY = android.app.NativeActivity
# Detect platform and architecture
UNAME_S := $(shell uname -s)
UNAME_M := $(shell uname -m)
ifeq ($(UNAME_S),Linux)
PLATFORM = linux
else ifeq ($(UNAME_S),Darwin)
PLATFORM = macos
else
PLATFORM = unknown
endif
ifeq ($(UNAME_M),x86_64)
ARCH = x86_64
else ifeq ($(UNAME_M),aarch64)
ARCH = aarch64
else ifeq ($(UNAME_M),armv7l)
ARCH = arm
else
ARCH = $(UNAME_M)
endif
# Build output dirs
BUILD_DIR = build
LINUX_BUILD_DIR = $(BUILD_DIR)/linux
WINDOWS_BUILD_DIR = $(BUILD_DIR)/windows
ANDROID_BUILD_DIR = $(BUILD_DIR)/android
WEB_BUILD_DIR = $(BUILD_DIR)/web
LINUX_ARCHES = x86_64 aarch64
ANDROID_DIST ?= release
# Linux/native target
BINARY_NAME = inbe-$(PLATFORM)-$(ARCH)
TARGET = $(LINUX_BUILD_DIR)/$(BINARY_NAME)
LINUX_INBE_A = $(LINUX_BUILD_DIR)/libinbe.a
# Windows cross-compilation
WIN_CC = x86_64-w64-mingw32-gcc
WIN_AR = x86_64-w64-mingw32-ar
WIN_WINDRES = x86_64-w64-mingw32-windres
WIN_TARGET = $(WINDOWS_BUILD_DIR)/inbe-windows-x86_64.exe
WIN_RAYLIB_BUILD_DIR = $(WINDOWS_BUILD_DIR)/raylib
WIN_RAYLIB_A = $(WIN_RAYLIB_BUILD_DIR)/libraylib.a
WIN_RAYLIB_OBJS = \
$(WIN_RAYLIB_BUILD_DIR)/rcore.o \
$(WIN_RAYLIB_BUILD_DIR)/rshapes.o \
$(WIN_RAYLIB_BUILD_DIR)/rtextures.o \
$(WIN_RAYLIB_BUILD_DIR)/rtext.o \
$(WIN_RAYLIB_BUILD_DIR)/raudio.o
WIN_INBE_A = $(WINDOWS_BUILD_DIR)/libinbe.a
# WebAssembly
WEB_CC ?= emcc
WEB_AR ?= emar
WEB_TARGET = $(WEB_BUILD_DIR)/index.html
WEB_RAYLIB_BUILD_DIR = $(WEB_BUILD_DIR)/raylib
WEB_RAYLIB_A = $(WEB_RAYLIB_BUILD_DIR)/libraylib.web.a
WEB_RAYLIB_OBJS = \
$(WEB_RAYLIB_BUILD_DIR)/rcore.o \
$(WEB_RAYLIB_BUILD_DIR)/rshapes.o \
$(WEB_RAYLIB_BUILD_DIR)/rtextures.o \
$(WEB_RAYLIB_BUILD_DIR)/rtext.o \
$(WEB_RAYLIB_BUILD_DIR)/raudio.o
WEB_CFLAGS = -Wall -Wextra -std=gnu99 -Os -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2 -D_DEFAULT_SOURCE -DSUPPORT_MODULE_RAUDIO=1 -DSUPPORT_FILEFORMAT_JPG=1 -DSUPPORT_FILEFORMAT_OGG=1
WEB_SHELL = src/web_shell.html
WEB_LDFLAGS = -sUSE_GLFW=3 -sASYNCIFY -sALLOW_MEMORY_GROWTH=1 --shell-file $(WEB_SHELL) --preload-file [email protected] --preload-file [email protected] --preload-file themes/sky.ini@themes/sky.ini --preload-file themes/sky_dark.ini@themes/sky_dark.ini --preload-file themes/ocean.ini@themes/ocean.ini --preload-file themes/ocean_dark.ini@themes/ocean_dark.ini --preload-file themes/forest.ini@themes/forest.ini --preload-file themes/forest_dark.ini@themes/forest_dark.ini --preload-file themes/sunset.ini@themes/sunset.ini --preload-file themes/sunset_dark.ini@themes/sunset_dark.ini --preload-file themes/lavender.ini@themes/lavender.ini --preload-file themes/lavender_dark.ini@themes/lavender_dark.ini --preload-file themes/cherry.ini@themes/cherry.ini --preload-file themes/cherry_dark.ini@themes/cherry_dark.ini --preload-file icons/gear.png@icons/gear.png --preload-file icons/x.png@icons/x.png --preload-file icons/manual.png@icons/manual.png --preload-file icons/return.png@icons/return.png --preload-file icons/backward.png@icons/backward.png --preload-file icons/forward.png@icons/forward.png --preload-file icons/play.png@icons/play.png --preload-file icons/pause.png@icons/pause.png --preload-file icons/stat.png@icons/stat.png --preload-file icons/home.png@icons/home.png --preload-file icons/trash.png@icons/trash.png --preload-file icons/telegram.png@icons/telegram.png --preload-file icons/globe.png@icons/globe.png --preload-file icons/stripe.png@icons/stripe.png --preload-file icons/monero.png@icons/monero.png --preload-file assets/angel.jpg@assets/angel.jpg --preload-file assets/begin.jpg@assets/begin.jpg --preload-file assets/sounds/breath-in.ogg@assets/sounds/breath-in.ogg --preload-file assets/sounds/breath-out.ogg@assets/sounds/breath-out.ogg --preload-file assets/sounds/bell.ogg@assets/sounds/bell.ogg
INBE_RAYLIB_CONFIG = $(filter-out -DSUPPORT_MODULE_RAUDIO=0 -DSUPPORT_FILEFORMAT_PNG=0 -DSUPPORT_FILEFORMAT_JPG=0 -DSUPPORT_FILEFORMAT_OGG=0,$(RAY_RAYLIB_CONFIG)) -DSUPPORT_MODULE_RAUDIO=1 -DSUPPORT_FILEFORMAT_JPG=1 -DSUPPORT_FILEFORMAT_OGG=1
CFLAGS = -Wall -Wextra -std=c99 -Os -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES
LDFLAGS = -Wl,--gc-sections -s
.NOTPARALLEL:
# Required shell vars from nix develop
ifeq ($(strip $(RAY_CFLAGS)),)
$(error RAY_CFLAGS is not set. Enter the ray flake shell with 'nix develop')
endif
ifeq ($(strip $(RAY_LDLIBS)),)
$(error RAY_LDLIBS is not set. Enter the ray flake shell with 'nix develop')
endif
ifeq ($(strip $(RAY_SDL_LDLIBS)),)
$(error RAY_SDL_LDLIBS is not set. Enter the ray flake shell with 'nix develop')
endif
ifeq ($(strip $(RAY_SDL_INCLUDE_DIR)),)
$(error RAY_SDL_INCLUDE_DIR is not set. Enter the ray flake shell with 'nix develop')
endif
ifeq ($(strip $(RAY_RAYLIB_CONFIG)),)
$(error RAY_RAYLIB_CONFIG is not set. Enter the ray flake shell with 'nix develop')
endif
all: native
native: $(TARGET)
build:
mkdir -p $(BUILD_DIR)
$(LINUX_BUILD_DIR):
mkdir -p $@
$(WINDOWS_BUILD_DIR):
mkdir -p $@
$(WIN_RAYLIB_BUILD_DIR):
mkdir -p $@
$(ANDROID_BUILD_DIR):
mkdir -p $@
$(WEB_BUILD_DIR):
mkdir -p $@
$(WEB_RAYLIB_BUILD_DIR):
mkdir -p $@
$(RAYLIB_BUILD_DIR): build
mkdir -p $@
# Native Linux/macOS raylib build
$(RAYLIB_A): | $(RAYLIB_BUILD_DIR)
$(MAKE) -j1 -C $(RAYLIB_DIR) \
PLATFORM=PLATFORM_DESKTOP_SDL \
GRAPHICS=GRAPHICS_API_OPENGL_ES2 \
RAYLIB_LIBTYPE=STATIC \
RAYLIB_RELEASE_PATH=../build/sdl \
RAYLIB_MODULE_AUDIO=TRUE \
RAYLIB_MODULE_MODELS=FALSE \
SDL_INCLUDE_PATH="$(RAY_SDL_INCLUDE_DIR)" \
SDL_LIBRARIES="$(RAY_SDL_LDLIBS)" \
CUSTOM_CFLAGS="-DUSING_SDL2_PROJECT $(RAY_CFLAGS) $(INBE_RAYLIB_CONFIG) -Os -ffunction-sections -fdata-sections"
# Build native libinbe, then copy it into build/linux
$(LINUX_INBE_A): FORCE | $(LINUX_BUILD_DIR)
$(MAKE) -C $(INBE_DIR) clean
$(MAKE) -C $(INBE_DIR) CC=$(CC) AR=ar
cp $(INBE_A) $@
# Native executable
$(TARGET): $(SRC) theme.ini inbe.ini $(RAYLIB_A) $(LINUX_INBE_A) | $(LINUX_BUILD_DIR)
$(CC) $(CFLAGS) \
-I$(RAYLIB_DIR) \
-I$(INBE_DIR) \
-Isrc \
$(RAY_CFLAGS) \
-DSUPPORT_MODULE_RAUDIO=1 \
-DSUPPORT_FILEFORMAT_OGG=1 \
-o $@ \
$(SRC) \
$(LINUX_INBE_A) \
$(RAYLIB_A) \
$(RAY_LDLIBS) \
-lm -lpthread -ldl -lrt \
$(LDFLAGS)
run: $(TARGET)
./$(TARGET)
linux: $(LINUX_ARCHES:%=linux-%)
linux-x86_64: | $(LINUX_BUILD_DIR)
$(MAKE) build-linux-arch \
ARCH_NAME=x86_64 \
LINUX_CC="$(CC)" \
LINUX_AR=ar \
LINUX_RAY_CFLAGS="$(RAY_CFLAGS)" \
LINUX_RAY_LDLIBS="$(RAY_LDLIBS)" \
LINUX_RAY_SDL_LDLIBS="$(RAY_SDL_LDLIBS)" \
LINUX_RAY_SDL_INCLUDE_DIR="$(RAY_SDL_INCLUDE_DIR)"
linux-aarch64: | $(LINUX_BUILD_DIR)
@if [ -z "$(AARCH64_CC)" ] || [ -z "$(AARCH64_AR)" ] || [ -z "$(AARCH64_RAY_CFLAGS)" ] || [ -z "$(AARCH64_RAY_LDLIBS)" ] || [ -z "$(AARCH64_RAY_SDL_LDLIBS)" ] || [ -z "$(AARCH64_RAY_SDL_INCLUDE_DIR)" ]; then \
echo "AARCH64 cross-build variables are missing. Enter the flake shell with 'nix develop'."; \
exit 1; \
fi
$(MAKE) build-linux-arch \
ARCH_NAME=aarch64 \
LINUX_CC="$(AARCH64_CC)" \
LINUX_AR="$(AARCH64_AR)" \
LINUX_RAY_CFLAGS="$(AARCH64_RAY_CFLAGS)" \
LINUX_RAY_LDLIBS="$(AARCH64_RAY_LDLIBS)" \
LINUX_RAY_SDL_LDLIBS="$(AARCH64_RAY_SDL_LDLIBS)" \
LINUX_RAY_SDL_INCLUDE_DIR="$(AARCH64_RAY_SDL_INCLUDE_DIR)"
build-linux-arch:
@mkdir -p $(LINUX_BUILD_DIR)/obj-$(ARCH_NAME) vendor/raylib/build/sdl-$(ARCH_NAME)
$(MAKE) -C $(RAYLIB_DIR) clean
$(MAKE) -j1 -C $(RAYLIB_DIR) \
CC="$(LINUX_CC)" \
AR="$(LINUX_AR)" \
PLATFORM=PLATFORM_DESKTOP_SDL \
GRAPHICS=GRAPHICS_API_OPENGL_ES2 \
RAYLIB_LIBTYPE=STATIC \
RAYLIB_RELEASE_PATH=../build/sdl-$(ARCH_NAME) \
RAYLIB_MODULE_AUDIO=TRUE \
RAYLIB_MODULE_MODELS=FALSE \
SDL_INCLUDE_PATH="$(LINUX_RAY_SDL_INCLUDE_DIR)" \
SDL_LIBRARIES="$(LINUX_RAY_SDL_LDLIBS)" \
CUSTOM_CFLAGS="-DUSING_SDL2_PROJECT $(LINUX_RAY_CFLAGS) $(INBE_RAYLIB_CONFIG) -Os -ffunction-sections -fdata-sections"
$(MAKE) -C $(RAYLIB_DIR) clean
$(LINUX_CC) $(CFLAGS) -I$(INBE_DIR) -c $(INBE_DIR)/inbe.c -o $(LINUX_BUILD_DIR)/obj-$(ARCH_NAME)/inbe.o
$(LINUX_AR) rcs $(LINUX_BUILD_DIR)/obj-$(ARCH_NAME)/libinbe.a $(LINUX_BUILD_DIR)/obj-$(ARCH_NAME)/inbe.o
$(LINUX_CC) $(CFLAGS) \
-I$(RAYLIB_DIR) \
-I$(INBE_DIR) \
-Isrc \
$(LINUX_RAY_CFLAGS) \
-DSUPPORT_MODULE_RAUDIO=1 \
-DSUPPORT_FILEFORMAT_OGG=1 \
-o $(LINUX_BUILD_DIR)/inbe-linux-$(ARCH_NAME) \
$(SRC) \
$(LINUX_BUILD_DIR)/obj-$(ARCH_NAME)/libinbe.a \
vendor/raylib/build/sdl-$(ARCH_NAME)/libraylib.a \
$(LINUX_RAY_LDLIBS) \
-lm -lpthread -ldl -lrt \
$(LDFLAGS)
# Windows cross-compilation target
windows: $(WIN_TARGET)
# Windows raylib build
$(WIN_RAYLIB_BUILD_DIR)/%.o: $(RAYLIB_DIR)/%.c | $(WIN_RAYLIB_BUILD_DIR)
$(WIN_CC) \
-c $< \
-o $@ \
-Wall \
-D_GNU_SOURCE \
-DPLATFORM_DESKTOP_WIN32 \
-DGRAPHICS_API_OPENGL_33 \
-DSUPPORT_MODULE_RAUDIO=1 \
-DSUPPORT_FILEFORMAT_OGG=1 \
-Wno-missing-braces \
-Werror=pointer-arith \
-fno-strict-aliasing \
-std=gnu99 \
-DUNICODE \
$(INBE_RAYLIB_CONFIG) \
-Os \
-ffunction-sections \
-fdata-sections \
-I$(RAYLIB_DIR)
$(WIN_RAYLIB_A): $(WIN_RAYLIB_OBJS)
$(WIN_AR) rcs $@ $(WIN_RAYLIB_OBJS)
# WebAssembly target
web: $(WEB_TARGET)
$(WEB_RAYLIB_BUILD_DIR)/%.o: $(RAYLIB_DIR)/%.c | $(WEB_RAYLIB_BUILD_DIR)
$(WEB_CC) \
-c $< \
-o $@ \
-Wall \
-D_GNU_SOURCE \
-DPLATFORM_WEB \
-DGRAPHICS_API_OPENGL_ES2 \
-Wno-missing-braces \
-Werror=pointer-arith \
-fno-strict-aliasing \
-std=gnu99 \
-D_DEFAULT_SOURCE \
$(INBE_RAYLIB_CONFIG) \
-Os \
-ffunction-sections \
-fdata-sections \
-I$(RAYLIB_DIR)
$(WEB_RAYLIB_A): $(WEB_RAYLIB_OBJS)
$(WEB_AR) rcs $@ $(WEB_RAYLIB_OBJS)
$(WEB_TARGET): $(SRC) $(INBE_DIR)/inbe.c $(WEB_SHELL) $(WEB_RAYLIB_A) | $(WEB_BUILD_DIR)
$(WEB_CC) $(WEB_CFLAGS) \
-I$(RAYLIB_DIR) \
-I$(INBE_DIR) \
-Isrc \
-o $@ \
$(SRC) \
$(INBE_DIR)/inbe.c \
$(WEB_RAYLIB_A) \
$(WEB_LDFLAGS)
# Build Windows libinbe, then copy it into build/windows
$(WIN_INBE_A): FORCE | $(WINDOWS_BUILD_DIR)
$(MAKE) -C $(INBE_DIR) clean
$(MAKE) -C $(INBE_DIR) CC=$(WIN_CC) AR=$(WIN_AR)
cp $(INBE_A) $@
# Windows executable
$(WIN_TARGET): $(SRC) $(WIN_RAYLIB_A) $(WIN_INBE_A) | $(WINDOWS_BUILD_DIR)
$(WIN_CC) $(CFLAGS) \
-I$(RAYLIB_DIR) \
-I$(INBE_DIR) \
-Isrc \
-o $@ \
$(SRC) \
$(WIN_INBE_A) \
$(WIN_RAYLIB_A) \
-L$(MCFGTHREADS)/lib \
-lopengl32 -lgdi32 -lwinmm \
-mwindows \
$(LDFLAGS)
# Cleaning
clean:
rm -rf build
$(MAKE) -C $(INBE_DIR) clean
clean-linux:
rm -rf $(LINUX_BUILD_DIR)
$(MAKE) -C $(INBE_DIR) clean
clean-windows:
rm -rf $(WINDOWS_BUILD_DIR)
$(MAKE) -C $(INBE_DIR) clean
clean-web:
rm -rf $(WEB_BUILD_DIR)
clean-raylib:
$(MAKE) -C $(RAYLIB_DIR) clean
rm -rf vendor/raylib/build
# Distribution targets
#
# These create ONE archive per platform:
#
# build/linux/inbe-linux.tar.gz
# build/windows/inbe-windows.zip
#
# Each archive includes every matching binary already present in that
# platform's build folder.
dist:
$(MAKE) linux
$(MAKE) windows
$(MAKE) web
$(MAKE) android-$(ANDROID_DIST)
$(MAKE) android-bundle
$(MAKE) dist-linux
$(MAKE) dist-windows
dist-linux: linux
@echo "Creating Linux tar.gz package with all Linux arch binaries..."
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux
@for bin in $(LINUX_BUILD_DIR)/inbe-linux-*; do \
if [ -f "$$bin" ] && [ -x "$$bin" ]; then \
echo "Adding $$bin"; \
cp "$$bin" "$(LINUX_BUILD_DIR)/dist/inbe-linux/$$(basename "$$bin")"; \
fi; \
done
@if [ -z "$$(find $(LINUX_BUILD_DIR)/dist/inbe-linux -type f 2>/dev/null)" ]; then \
echo "No Linux binaries found in $(LINUX_BUILD_DIR)"; \
exit 1; \
fi
@cp inbe.ini theme.ini $(LINUX_BUILD_DIR)/dist/inbe-linux/
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/themes
@cp themes/*.ini $(LINUX_BUILD_DIR)/dist/inbe-linux/themes/
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/icons
@cp icons/gear.png icons/x.png icons/manual.png icons/return.png icons/backward.png icons/forward.png icons/play.png icons/pause.png icons/stat.png $(LINUX_BUILD_DIR)/dist/inbe-linux/icons/
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/assets
@cp assets/angel.jpg assets/begin.jpg $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/sounds
@cp assets/sounds/breath-in.ogg assets/sounds/breath-out.ogg assets/sounds/bell.ogg $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/sounds/
@cd $(LINUX_BUILD_DIR)/dist && tar -czf ../inbe-linux.tar.gz inbe-linux/
@rm -rf $(LINUX_BUILD_DIR)/dist
@echo "Created $(LINUX_BUILD_DIR)/inbe-linux.tar.gz"
dist-windows:
@echo "Creating Windows zip package with all Windows arch binaries..."
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows
@for bin in $(WINDOWS_BUILD_DIR)/inbe-windows-*.exe; do \
if [ -f "$$bin" ]; then \
echo "Adding $$bin"; \
cp "$$bin" "$(WINDOWS_BUILD_DIR)/dist/inbe-windows/$$(basename "$$bin")"; \
fi; \
done
@if [ -z "$$(find $(WINDOWS_BUILD_DIR)/dist/inbe-windows -type f 2>/dev/null)" ]; then \
echo "No Windows binaries found in $(WINDOWS_BUILD_DIR)"; \
exit 1; \
fi
@cp inbe.ini theme.ini $(WINDOWS_BUILD_DIR)/dist/inbe-windows/
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/themes
@cp themes/*.ini $(WINDOWS_BUILD_DIR)/dist/inbe-windows/themes/
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/icons
@cp icons/gear.png icons/x.png icons/manual.png icons/return.png icons/backward.png icons/forward.png icons/play.png icons/pause.png icons/stat.png $(WINDOWS_BUILD_DIR)/dist/inbe-windows/icons/
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets
@cp assets/angel.jpg assets/begin.jpg $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/sounds
@cp assets/sounds/breath-in.ogg assets/sounds/breath-out.ogg assets/sounds/bell.ogg $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/sounds/
@cd $(WINDOWS_BUILD_DIR)/dist && zip -r ../inbe-windows.zip inbe-windows/
@rm -rf $(WINDOWS_BUILD_DIR)/dist
@echo "Created $(WINDOWS_BUILD_DIR)/inbe-windows.zip"
# Android targets
android-init-signing:
@echo "Generating release keystore..."
@mkdir -p ~/.android
keytool -genkeypair -v -storetype PKCS12 \
-keystore ~/.android/inbe-release.keystore \
-alias inbe-key \
-keyalg RSA \
-keysize 4096 \
-validity 10000
@echo ""
@echo "Keystore created at ~/.android/inbe-release.keystore"
@echo ""
@echo "Add this line to $(ANDROID_DIR)/local.properties:"
@echo " keystore.path=$$HOME/.android/inbe-release.keystore"
android-copy-assets:
rm -rf $(ANDROID_DIR)/app/src/main/assets
mkdir -p $(ANDROID_DIR)/app/src/main/assets
cp inbe.ini $(ANDROID_DIR)/app/src/main/assets/inbe.ini
cp theme.ini $(ANDROID_DIR)/app/src/main/assets/theme.ini
mkdir -p $(ANDROID_DIR)/app/src/main/assets/themes
cp themes/*.ini $(ANDROID_DIR)/app/src/main/assets/themes/
mkdir -p $(ANDROID_DIR)/app/src/main/assets/icons
@for icon in icons/*.png; do \
base=$$(basename "$$icon"); \
size=$$(identify -format '%wx%h' "$$icon"); \
magick "$$icon" -filter point -resize "$$size!" "$(ANDROID_DIR)/app/src/main/assets/icons/$$base"; \
done
mkdir -p $(ANDROID_DIR)/app/src/main/assets/assets
cp assets/angel.jpg assets/begin.jpg $(ANDROID_DIR)/app/src/main/assets/assets/
mkdir -p $(ANDROID_DIR)/app/src/main/assets/assets/sounds
cp assets/sounds/breath-in.ogg assets/sounds/breath-out.ogg assets/sounds/bell.ogg $(ANDROID_DIR)/app/src/main/assets/assets/sounds/
android-debug:
$(MAKE) android-copy-assets
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) assembleDebug
$(MAKE) android-copy-debug-apks
android-release:
$(MAKE) android-copy-assets
@if [ -n "$(PASSWORD)" ]; then \
PASSWORD_VALUE="$(PASSWORD)"; \
elif [ -t 0 ]; then \
printf "Keystore password: "; \
stty -echo; \
read PASSWORD_VALUE; \
stty echo; \
printf "\n"; \
else \
echo "Keystore password is required. Run from a terminal or use PASSWORD=your-password."; \
exit 1; \
fi; \
if [ -n "$$PASSWORD_VALUE" ]; then \
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) assembleRelease -Pkeystore.password="$$PASSWORD_VALUE" || exit $$?; \
$(MAKE) android-copy-release-apks; \
else \
echo "Keystore password is required"; \
exit 1; \
fi
android-bundle:
$(MAKE) android-copy-assets
@if [ -n "$(PASSWORD)" ]; then \
PASSWORD_VALUE="$(PASSWORD)"; \
elif [ -t 0 ]; then \
printf "Keystore password: "; \
stty -echo; \
read PASSWORD_VALUE; \
stty echo; \
printf "\n"; \
else \
echo "Keystore password is required. Run from a terminal or use PASSWORD=your-password."; \
exit 1; \
fi; \
if [ -n "$$PASSWORD_VALUE" ]; then \
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) bundleRelease -Pkeystore.password="$$PASSWORD_VALUE" || exit $$?; \
$(MAKE) android-copy-bundle; \
else \
echo "Keystore password is required"; \
exit 1; \
fi
android-copy-bundle: | $(ANDROID_BUILD_DIR)
@VERSION=$$(grep -m1 '^## \[' CHANGELOG.md | sed 's/^## \[\([^]]*\)\].*/\1/'); \
BUNDLE=$$(find $(ANDROID_DIR)/app/build/outputs/bundle/release -name "*.aab" 2>/dev/null | head -1); \
if [ -n "$$BUNDLE" ] && [ -f "$$BUNDLE" ]; then \
VERSIONED_BUNDLE="$(ANDROID_BUILD_DIR)/inbe-$$VERSION.aab"; \
echo "Copying and renaming $$BUNDLE to $$VERSIONED_BUNDLE"; \
cp "$$BUNDLE" "$$VERSIONED_BUNDLE"; \
ln -sf "$$(basename "$$VERSIONED_BUNDLE")" "$(ANDROID_BUILD_DIR)/inbe-latest.aab"; \
echo "Created symlink: inbe-latest.aab → $$(basename "$$VERSIONED_BUNDLE")"; \
else \
echo "Bundle not found in $(ANDROID_DIR)/app/build/outputs/bundle/release/"; \
exit 1; \
fi
android-copy-apks: android-copy-debug-apks android-copy-release-apks
android-copy-debug-apks: | $(ANDROID_BUILD_DIR)
@for apk in $(ANDROID_DIR)/app/build/outputs/apk/debug/*.apk; do \
if [ -f "$$apk" ]; then \
echo "Copying $$apk"; \
cp "$$apk" "$(ANDROID_BUILD_DIR)/$$(basename "$$apk")"; \
fi; \
done
android-copy-release-apks: | $(ANDROID_BUILD_DIR)
@VERSION=$$(grep INBE_VERSION_STRING src/version.h | grep -o '"[^"]*"' | tr -d '"'); \
UNIVERSAL_APK=$$(find $(ANDROID_DIR)/app/build/outputs/apk/release -name "app-universal-release.apk" 2>/dev/null); \
if [ -n "$$UNIVERSAL_APK" ] && [ -f "$$UNIVERSAL_APK" ]; then \
VERSIONED_APK="$(ANDROID_BUILD_DIR)/inbe-$$VERSION.apk"; \
echo "Copying and renaming $$UNIVERSAL_APK to $$VERSIONED_APK"; \
cp "$$UNIVERSAL_APK" "$$VERSIONED_APK"; \
ln -sf "$$(basename "$$VERSIONED_APK")" "$(ANDROID_BUILD_DIR)/inbe-latest.apk"; \
echo "Created symlink: inbe-latest.apk → $$(basename "$$VERSIONED_APK")"; \
else \
for apk in $(ANDROID_DIR)/app/build/outputs/apk/release/*.apk; do \
if [ -f "$$apk" ]; then \
echo "Copying $$apk"; \
cp "$$apk" "$(ANDROID_BUILD_DIR)/$$(basename "$$apk")"; \
fi; \
done; \
fi
android-install: android-debug
@ABI=$$(adb shell getprop ro.product.cpu.abi | tr -d '\r'); \
echo "Device ABI: $$ABI"; \
APK=$(ANDROID_DIR)/app/build/outputs/apk/debug/app-$${ABI}-debug.apk; \
if [ ! -f "$$APK" ]; then \
echo "APK not found for $$ABI, trying universal..."; \
APK=$(ANDROID_DIR)/app/build/outputs/apk/debug/app-debug.apk; \
fi; \
echo "Installing: $$APK"; \
adb install -r "$$APK"
adb shell am start -n $(ANDROID_APP_ID)/$(ANDROID_ACTIVITY)
android-install-release: android-release
@ABI=$$(adb shell getprop ro.product.cpu.abi | tr -d '\r'); \
echo "Device ABI: $$ABI"; \
APK=$(ANDROID_DIR)/app/build/outputs/apk/release/app-$${ABI}-release.apk; \
if [ ! -f "$$APK" ]; then \
echo "APK not found for $$ABI, trying universal..."; \
APK=$(ANDROID_DIR)/app/build/outputs/apk/release/app-release.apk; \
fi; \
echo "Installing: $$APK"; \
adb install -r "$$APK"
adb shell am start -n $(ANDROID_APP_ID)/$(ANDROID_ACTIVITY)
android-clean:
$(GRADLE) -p $(ANDROID_DIR) clean
rm -rf $(ANDROID_BUILD_DIR)
include mk/common.mk
include mk/native.mk
include mk/windows.mk
include mk/web.mk
include mk/android.mk
include mk/dist.mk
include mk/clean.mk
FORCE:
@@ -578,6 +27,8 @@ FORCE:
dist \
dist-linux \
dist-windows \
install \
uninstall \
android-init-signing \
android-debug \
android-release \
@@ -591,4 +42,3 @@ FORCE:
android-install-release \
android-clean \
FORCE
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

+5 -5
View File
@@ -7,7 +7,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Inner Breeze - All available builds and implementations.">
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="32x32" href="web-assets/icons/favicon-32x32.png">
<meta name="theme-color" content="#5566aa">
</head>
@@ -21,7 +21,7 @@
<section>
<div class="platform-section">
<div class="platform-header">
<img src="/icons/ray.png" alt="raylib"/>
<img src="/web-assets/icons/ray.png" alt="raylib"/>
<div>
<strong><a href="https://raylib.com">Raylib</a></strong>
<p>A C library for video game programming - the primary implementation.</p>
@@ -36,7 +36,7 @@
</div>
<div class="platform-section">
<div class="platform-header">
<img src="/icons/wasm4.png" alt="wasm4"/>
<img src="/web-assets/icons/wasm4.png" alt="wasm4"/>
<div>
<strong><a href="https://wasm4.org">WASM-4</a></strong>
<p>A tiny fantasy console that runs WebAssembly cartridges.</p>
@@ -51,7 +51,7 @@
</div>
<div class="platform-section">
<div class="platform-header">
<img src="/icons/uxn.png" alt="uxn"/>
<img src="/web-assets/icons/uxn.png" alt="uxn"/>
<div>
<strong><a href="https://100r.co/site/uxn.html">Uxn</a></strong>
<p>A small virtual computer; <code>.rom</code> runs in a Uxn emulator.</p>
@@ -65,7 +65,7 @@
</section>
<footer>
<p>&copy; 2026 <a href="https://waozi.xyz">Waozi</a> | <a href="https://git.sr.ht/~waozi/inbe" target="_blank" rel="noopener">hosted on sr.ht</a></p>
<p>&copy; 2026 <a href="https://waozi.xyz">Waozi</a> | <a href="/privacy.html">Privacy Policy</a></p>
</footer>
</div>
</body>
+3 -3
View File
@@ -34,14 +34,14 @@ android {
defaultConfig {
minSdk 19
targetSdk 35
versionCode 13
versionName "1.1.2"
versionCode 23
versionName "1.2.2"
}
buildTypes {
release {
signingConfig signingConfigs.release
signingConfig project.hasProperty('fDroidBuild') ? null : signingConfigs.release
minifyEnabled false
}
debug {
+2
View File
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.INTERNET" />
<application
android:hasCode="true"
android:icon="@mipmap/ic_launcher"
+28 -4
View File
@@ -5,7 +5,10 @@ set(REPO_ROOT "${CMAKE_CURRENT_LIST_DIR}/../../../../..")
set(SRC_DIR "${REPO_ROOT}/src")
set(LIBINBE_DIR "${REPO_ROOT}/libinbe")
set(RAYLIB_DIR "${REPO_ROOT}/vendor/raylib/src")
set(FLINT_DIR "${REPO_ROOT}/vendor/flint")
set(NATIVE_APP_GLUE_DIR "${ANDROID_NDK}/sources/android/native_app_glue")
file(GLOB FLINT_SOURCES CONFIGURE_DEPENDS "${FLINT_DIR}/src/*.c")
list(REMOVE_ITEM FLINT_SOURCES "${FLINT_DIR}/src/flint_file_dialog.c")
add_library(raylib STATIC
"${RAYLIB_DIR}/rcore.c"
@@ -52,31 +55,51 @@ target_include_directories(inbe PUBLIC
"${LIBINBE_DIR}"
)
add_library(flint STATIC ${FLINT_SOURCES})
target_include_directories(flint PUBLIC
"${FLINT_DIR}/include"
"${RAYLIB_DIR}"
)
add_library(main SHARED
"${SRC_DIR}/main.c"
"${SRC_DIR}/app.c"
"${SRC_DIR}/ui.c"
"${SRC_DIR}/app_session.c"
"${SRC_DIR}/locale.c"
"${SRC_DIR}/theme_meta.c"
"${SRC_DIR}/theme.c"
"${SRC_DIR}/data.c"
"${SRC_DIR}/miniz.c"
"${SRC_DIR}/file_dialog.c"
"${SRC_DIR}/android_share.c"
"${SRC_DIR}/android/android_import.c"
"${SRC_DIR}/android/android_share.c"
"${SRC_DIR}/tabs/history_tab.c"
"${SRC_DIR}/tabs/language_tab.c"
"${SRC_DIR}/tabs/manual_tab.c"
"${SRC_DIR}/tabs/settings_tab.c"
"${SRC_DIR}/android_insets.c"
"${SRC_DIR}/android/android_insets.c"
"${SRC_DIR}/android/android_wakelock.c"
"${SRC_DIR}/android/android_timer.c"
"${NATIVE_APP_GLUE_DIR}/android_native_app_glue.c"
)
target_include_directories(main PRIVATE
"${SRC_DIR}"
"${SRC_DIR}/android"
"${NATIVE_APP_GLUE_DIR}"
"${LIBINBE_DIR}"
"${FLINT_DIR}/include"
)
target_compile_definitions(main PRIVATE
PLATFORM_ANDROID
_DEFAULT_SOURCE
_GNU_SOURCE
_FILE_OFFSET_BITS=64
MG_TLS=MG_TLS_BUILTIN
MG_ENABLE_EPOLL=0
MG_ENABLE_POLL=1
MG_ENABLE_POSIX_FS=0
SUPPORT_MODULE_RAUDIO=1
SUPPORT_FILEFORMAT_OGG=1
)
@@ -97,6 +120,7 @@ target_link_options(main PRIVATE
target_link_libraries(main
raylib
inbe
flint
android
log
OpenSLES
@@ -1,17 +1,26 @@
package xyz.waozi.inbe;
import android.app.NativeActivity;
import android.content.Context;
import android.content.Intent;
import android.graphics.Insets;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.PowerManager;
import android.util.Log;
import android.view.DisplayCutout;
import android.view.View;
import android.view.ViewTreeObserver;
import android.view.WindowInsets;
import android.view.WindowManager;
import java.io.File;
import java.io.FileOutputStream;
import java.io.InputStream;
public class MainActivity extends NativeActivity {
private static final String TAG = "InbeMainActivity";
private static final int REQUEST_IMPORT_ZIP = 1001;
static {
System.loadLibrary("main");
@@ -20,9 +29,130 @@ public class MainActivity extends NativeActivity {
// [status_bar, nav_bar, cutout_left, cutout_top, cutout_right, cutout_bottom]
private final int[] cachedInsets = new int[6];
private boolean insetsInitialized = false;
private PowerManager.WakeLock wakeLock = null;
private native void nativeSetInsets(int status, int nav,
int cutoutLeft, int cutoutTop, int cutoutRight, int cutoutBottom);
private native void nativeWakeLockReady();
private native void nativeTimerActivate();
private native void nativeTimerDeactivate();
private native int nativeGetPlayInBackground();
private native void nativePauseSession();
private native void nativeResumeSession();
private native void nativeImportSelectedFile(String path);
private native void nativeImportCancelled();
public void openImportPicker() {
runOnUiThread(new Runnable() {
@Override
public void run() {
try {
Intent intent = new Intent(Intent.ACTION_OPEN_DOCUMENT);
intent.addCategory(Intent.CATEGORY_OPENABLE);
intent.setType("*/*");
intent.putExtra(Intent.EXTRA_MIME_TYPES, new String[] {
"application/zip",
"application/octet-stream",
"application/x-zip-compressed"
});
startActivityForResult(intent, REQUEST_IMPORT_ZIP);
} catch (Exception e) {
Log.e(TAG, "Failed to open import picker", e);
nativeImportCancelled();
}
}
});
}
@Override
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if (requestCode != REQUEST_IMPORT_ZIP) return;
if (resultCode != RESULT_OK || data == null || data.getData() == null) {
nativeImportCancelled();
return;
}
Uri uri = data.getData();
File importDir = new File(getCacheDir(), "imports");
File importFile = new File(importDir, "inbe-import.zip");
try {
if (!importDir.exists() && !importDir.mkdirs()) {
nativeImportSelectedFile("");
return;
}
try (InputStream input = getContentResolver().openInputStream(uri);
FileOutputStream output = new FileOutputStream(importFile)) {
if (input == null) {
nativeImportSelectedFile("");
return;
}
byte[] buffer = new byte[8192];
int read;
while ((read = input.read(buffer)) != -1) {
output.write(buffer, 0, read);
}
}
nativeImportSelectedFile(importFile.getAbsolutePath());
} catch (Exception e) {
Log.e(TAG, "Failed to import selected file", e);
nativeImportSelectedFile("");
}
}
public void acquireWakeLock() {
Log.d(TAG, "acquireWakeLock called - wakeLock=" + wakeLock);
if (wakeLock == null) {
Log.d(TAG, "Creating new PARTIAL_WAKE_LOCK");
PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
wakeLock = pm.newWakeLock(
PowerManager.PARTIAL_WAKE_LOCK,
"inbe:meditation_session"
);
wakeLock.acquire();
Log.d(TAG, "Wake lock acquired successfully - held=" + wakeLock.isHeld());
} else {
Log.d(TAG, "Wake lock already exists - held=" + wakeLock.isHeld());
}
}
public void releaseWakeLock() {
Log.d(TAG, "releaseWakeLock called - wakeLock=" + wakeLock);
if (wakeLock != null && wakeLock.isHeld()) {
Log.d(TAG, "Releasing wake lock - was held=" + wakeLock.isHeld());
wakeLock.release();
Log.d(TAG, "Wake lock released successfully");
wakeLock = null;
} else {
Log.d(TAG, "Wake lock not held - wakeLock=" + wakeLock + " isHeld=" + (wakeLock != null ? wakeLock.isHeld() : "null"));
}
}
public void keepScreenOn() {
runOnUiThread(new Runnable() {
@Override
public void run() {
getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
Log.d(TAG, "Screen lock timeout disabled for active session");
}
});
}
public void allowScreenOff() {
runOnUiThread(new Runnable() {
@Override
public void run() {
getWindow().clearFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
Log.d(TAG, "Screen lock timeout restored");
}
});
}
@Override
protected void onCreate(Bundle savedInstanceState) {
@@ -35,6 +165,9 @@ public class MainActivity extends NativeActivity {
}
setupInsetsListener();
// Notify native code that activity is ready for wake lock
nativeWakeLockReady();
}
private void setupInsetsListener() {
@@ -162,4 +295,44 @@ public class MainActivity extends NativeActivity {
}
return result;
}
@Override
protected void onPause() {
super.onPause();
int playInBackground = nativeGetPlayInBackground();
Log.d(TAG, "onPause: play_in_background = " + playInBackground);
if (playInBackground == 0) {
// Auto-pause if play in background is disabled
Log.d(TAG, "onPause: Auto-pausing session (play in background disabled)");
nativePauseSession();
} else {
// Continue in background
Log.d(TAG, "onPause: Continuing in background (play in background enabled)");
nativeTimerActivate();
}
}
@Override
protected void onResume() {
super.onResume();
int playInBackground = nativeGetPlayInBackground();
Log.d(TAG, "onResume: play_in_background = " + playInBackground);
if (playInBackground == 0) {
// Auto-resume if play in background is disabled
Log.d(TAG, "onResume: Auto-resuming session (play in background disabled)");
nativeResumeSession();
} else {
// Just deactivate timer (session continued in background)
Log.d(TAG, "onResume: Deactivating background timer");
nativeTimerDeactivate();
}
}
@Override
protected void onDestroy() {
super.onDestroy();
Log.d(TAG, "onDestroy called - releasing wake lock");
allowScreenOff();
releaseWakeLock();
}
}
@@ -11,7 +11,7 @@ import java.io.FileOutputStream;
public class ShareHelper {
private static final String TAG = "InbeShare";
public static void shareZipFile(Activity activity, byte[] zipData, String filename) {
public static void shareZipFile(Activity activity, byte[] zipData, String filename, String chooserTitle) {
if (activity == null || zipData == null) return;
activity.runOnUiThread(new Runnable() {
@@ -34,7 +34,7 @@ public class ShareHelper {
sendIntent.putExtra(Intent.EXTRA_STREAM, contentUri);
sendIntent.addFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION);
Intent shareIntent = Intent.createChooser(sendIntent, "Export Session Data");
Intent shareIntent = Intent.createChooser(sendIntent, chooserTitle);
activity.startActivity(shareIntent);
Log.i(TAG, "Share sheet shown");
@@ -0,0 +1,12 @@
Eine freie, quelloffene App für geführte Atemmeditation nach der Wim-Hof-Methode.
Funktionen:
- Geführte Atemsitzungen mit visuellen und akustischen Hinweisen
- Anpassbare Atemanzahl und Haltezeiten
- Sitzungsverlauf mit lokaler Speicherung
- 8 Farbthemen (Forest, Ocean, Sky, Sunset, Lavender - jeweils hell/dunkel)
- Soundeffekte (Einatmen/Ausatmen, Glocke)
- Vollbildmodus mit korrekter DPI-Skalierung
- Touch-optimierte Oberfläche für Mobilgeräte
Verfügbare Plattformen: Linux, Windows, Android, WebAssembly.
@@ -0,0 +1 @@
Eine freie, quelloffene Atemmeditations-App nach der Wim-Hof-Methode.
@@ -0,0 +1,4 @@
### Fixed
- Icon button fallback system - buttons now render with procedural graphics when asset images fail to load (prevents empty buttons on devices with asset loading issues)
- Added UIIconType system for icon identification and fallback rendering
- Updated all icon button functions to support fallback graphics (ui_draw_icon_btn, ui_draw_icon_btn_padded, ui_draw_icon_link, ui_draw_nav_button, ui_draw_nav_button_expand)
@@ -0,0 +1,4 @@
### Added
- Proper text reflow with word wrapping
### Fixed
- GitHub releases and F-Droid builds now include all assets
@@ -0,0 +1,5 @@
### Fixed
- Results page layout improvements:
- Dropdown menu hover highlighting no longer clipped at bottom edge
- Text layout height calculation now matches actual rendered height
- Tutorial page content height calculations fixed (no more premature scrollbars)
@@ -0,0 +1,7 @@
### Added
- Background meditation timer - sessions continue when screen is off
- Android wake lock support
- Background sound playback
### Fixed
- Meditation pausing when screen turns off
- Thread synchronization issues between main loop and background timer
@@ -0,0 +1,11 @@
### Added
- First-run language picker and in-app language switching
- Spanish, French, and Portuguese translations
- Localized Android/F-Droid metadata
- Explicit Save Results and Discard actions on the results screen
### Fixed
- Language dropdown now renders above other controls
- Tutorial blank lines now render correctly
- Preview breathing circle now reflects the selected speed directly
- History round details now appear directly under the selected session
- Removed confusing delete button from history session rows
@@ -0,0 +1,10 @@
### Added
- Editable history days with pencil actions for sessions and rounds
- Inline history editing for session time and round seconds with cursor movement, click-to-position, validation, and save action
- Confirmation modal before deleting history sessions or rounds
- Sound settings page and optional advanced session controls setting
### Fixed
- Incomplete or zero-second rounds are discarded instead of being saved or shown in results
- History edit view no longer shows average time on session rows
- Tutorial and navigation buttons resize more reliably across narrow viewports
- Reduced excessive page side padding and improved small-screen layout behavior
@@ -0,0 +1,6 @@
### Added
- Hierarchical settings organization with 3 main categories
- Category selection screen with card-based navigation
- Back button for hierarchical navigation
### Fixed
- Settings navigation state and Android back button behavior
@@ -0,0 +1,5 @@
### Added
- Flint-based UI and theme system
- Session volume slider with immediate persistence
- Additional language support: Czech (Čeština), Indonesian (Bahasa Indonesia), Japanese (日本語), Korean (한국어), and Chinese (中文)
- Proper font glyphs
@@ -0,0 +1,2 @@
### Added
- Breath hold display mode setting with circle progress or stopwatch display
@@ -0,0 +1,2 @@
### Fixed
- Android touch targets now align correctly on devices with navigation bar window insets.
@@ -0,0 +1,12 @@
Una app libre y de código abierto de meditación respiratoria guiada basada en el método Wim Hof.
Funciones:
- Sesiones de respiración guiadas con señales visuales y de audio
- Cantidad de respiraciones y tiempos de retención configurables
- Historial de sesiones con almacenamiento local
- 8 temas de color (Forest, Ocean, Sky, Sunset, Lavender, cada uno con variante clara/oscura)
- Efectos de sonido (inhalar/exhalar, campana)
- Modo de pantalla completa con escalado DPI correcto
- Interfaz optimizada para pantallas táctiles
Plataformas disponibles: Linux, Windows, Android, WebAssembly.
@@ -0,0 +1 @@
Una app libre y de código abierto de meditación respiratoria guiada basada en el método Wim Hof.
@@ -0,0 +1,12 @@
Une app libre et open source de méditation respiratoire guidée basée sur la méthode Wim Hof.
Fonctionnalités :
- Séances de respiration guidées avec repères visuels et audio
- Nombre de respirations et temps de rétention configurables
- Historique des séances avec stockage local
- 8 thèmes de couleur (Forest, Ocean, Sky, Sunset, Lavender, chacun en clair/sombre)
- Effets sonores (inspiration/expiration, cloche)
- Mode plein écran avec mise à l'échelle DPI correcte
- Interface optimisée pour les écrans tactiles
Plateformes disponibles : Linux, Windows, Android, WebAssembly.
@@ -0,0 +1 @@
Une app libre de méditation respiratoire guidée basée sur la méthode Wim Hof.
@@ -0,0 +1,12 @@
Um app livre e de código aberto de meditação respiratória guiada baseada no método Wim Hof.
Recursos:
- Sessões de respiração guiadas com sinais visuais e sonoros
- Quantidade de respirações e tempos de retenção configuráveis
- Histórico de sessões com armazenamento local
- 8 temas de cores (Forest, Ocean, Sky, Sunset, Lavender, cada um com claro/escuro)
- Efeitos sonoros (inspirar/expirar, sino)
- Modo de tela cheia com escala DPI correta
- Interface otimizada para toque em dispositivos móveis
Plataformas disponíveis: Linux, Windows, Android, WebAssembly.
@@ -0,0 +1 @@
Um app livre de meditação respiratória guiada baseada no método Wim Hof.
+4 -1
View File
@@ -44,11 +44,14 @@
androidComposition = pkgs.androidenv.composeAndroidPackages {
cmdLineToolsVersion = "11.0";
buildToolsVersions = [ "34.0.0" ];
platformVersions = [ "35" ];
platformVersions = [ "34" "35" ];
includeNDK = true;
ndkVersions = [ "25.1.8937393" ];
cmakeVersions = [ "3.22.1" ];
includeEmulator = true;
includeSystemImages = true;
systemImageTypes = [ "google_apis_playstore" "default" ];
abiVersions = [ "arm64-v8a" "x86_64" ];
};
sdk = androidComposition.androidsdk;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 155 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 153 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 192 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 213 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 173 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 151 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 165 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 180 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 325 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 216 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 376 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 252 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 205 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 184 B

BIN
View File
Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

-1
View File
@@ -1,6 +1,5 @@
# Inbe app configuration
name "inbe"
title "Inner Breeze"
icon "icons/inbe.png"
width 320
height 560
+142 -37
View File
@@ -5,12 +5,13 @@
<title>Inner Breeze - Guided Breathing Meditation</title>
<link href="/style.css" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Inner Breeze - A free, open-source guided breathing meditation app based on the Wim Hof method. Available for web, Android, Windows, and Linux.">
<meta name="description" content="Inner Breeze - A free, open-source guided breathing meditation app based on the Wim Hof method. Features 8 color themes, sound effects, session history, and fullscreen mode. Available for web, Android, Windows, and Linux.">
<link rel="canonical" href="https://inbe.waozi.xyz/">
<meta property="og:type" content="website">
<meta property="og:url" content="https://inbe.waozi.xyz/">
<meta property="og:title" content="Inner Breeze - Guided Breathing Meditation">
<meta property="og:description" content="A free, open-source breathing meditation app based on the Wim Hof method. Available for web, Android, Windows, and Linux.">
<meta property="og:description" content="A free, open-source breathing meditation app based on the Wim Hof method. Features 8 color themes, sound effects, and session history.">
<meta property="og:image" content="https://inbe.waozi.xyz/og.jpg">
<meta property="og:site_name" content="Inner Breeze">
@@ -22,77 +23,181 @@
<meta name="twitter:site" content="@waozixyz">
<meta name="twitter:creator" content="@waozixyz">
<link rel="icon" type="image/png" sizes="32x32" href="icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="192x192" href="icons/icon-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="icons/icon-512x512.png">
<link rel="apple-touch-icon" href="icons/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="web-assets/icons/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="192x192" href="web-assets/icons/icon-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="web-assets/icons/icon-512x512.png">
<link rel="apple-touch-icon" href="web-assets/icons/apple-touch-icon.png">
<meta name="theme-color" content="#5566aa">
<!-- JSON-LD Structured Data -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "SoftwareApplication",
"name": "Inner Breeze",
"description": "A free, open-source guided breathing meditation app based on the Wim Hof method",
"applicationCategory": "HealthApplication",
"operatingSystem": "Android, Windows, Linux, Web Browser",
"offers": {
"@type": "Offer",
"price": "0",
"priceCurrency": "USD"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.8",
"ratingCount": "150"
},
"author": {
"@type": "Person",
"name": "Waozi",
"url": "https://waozi.xyz"
},
"keywords": "breathing, meditation, wim hof, health, wellness, mindfulness",
"features": [
"8 color themes with light/dark variants",
"Audio cues and sound effects",
"Session history tracking",
"Fullscreen mode with DPI scaling",
"Touch-optimized mobile interface"
],
"downloadUrl": [
"https://inbe.waozi.xyz/build/android/inbe-latest.apk",
"https://inbe.waozi.xyz/build/windows/inbe-windows.zip",
"https://inbe.waozi.xyz/build/linux/inbe-linux.tar.gz"
]
}
</script>
</head>
<body>
<div class="content">
<section class="hero">
<img class="tk-img" src="/icons/inbe.png" width="128px" alt="Inner Breeze"/>
<main id="main-content">
<section class="hero" aria-label="App introduction and download options">
<img class="tk-img" src="/web-assets/icons/inbe.png" width="128px" alt="Inner Breeze app logo - a calming blue wind spiral icon"/>
<h1>Inner Breeze</h1>
<p>guided breathing meditation based on the Wim Hof method</p>
<p class="version">1.2.2</p>
<div class="platform-buttons">
<!-- Direct Downloads -->
<nav aria-label="Platform downloads" class="platform-buttons">
<a href="/build/web/index.html" class="platform-btn web">
<img src="/icons/wasm.png" alt="raylib"/>
<img src="/web-assets/icons/wasm.png" alt="WebAssembly icon"/>
<span>Run Web</span>
</a>
<a href="/build/android/inbe-latest.apk" class="platform-btn android">
<img src="/icons/droid.png" alt="android"/>
<span>Download APK</span>
<img src="/web-assets/icons/droid.png" alt="Android icon"/>
<span>Android</span>
</a>
<a href="/build/windows/inbe-windows.zip" class="platform-btn windows">
<img src="/icons/win.png" alt="windows"/>
<img src="/web-assets/icons/win.png" alt="Windows icon"/>
<span>Windows</span>
</a>
<a href="/build/linux/inbe-linux.tar.gz" class="platform-btn linux">
<img src="/icons/tux.png" alt="linux"/>
<img src="/web-assets/icons/tux.png" alt="Linux icon"/>
<span>Linux</span>
</a>
</div>
<div class="platform-buttons">
</nav>
<!-- App Stores -->
<nav aria-label="App store downloads" class="platform-buttons">
<a href="https://play.google.com/store/apps/details?id=xyz.waozi.inbe" class="platform-btn android">
<img src="/icons/playstore.png" alt="play store"/>
<img src="/web-assets/icons/playstore.png" alt="Play Store icon"/>
<span>Play Store</span>
</a>
<a href="https://f-droid.org/packages/xyz.waozi.inbe/" class="platform-btn android">
<img src="/icons/fdroid.png" alt="F-Droid"/>
<img src="/web-assets/icons/fdroid.png" alt="F-Droid icon"/>
<span>F-Droid</span>
</a>
<a href="https://waozi.itch.io/inbe" class="platform-btn web">
<img src="/icons/itch.png" alt="itch.io"/>
<img src="/web-assets/icons/itch.png" alt="itch.io icon"/>
<span>itch.io</span>
</a>
</div>
<p style="text-align:center; margin-top:8px; font-size:14px;"><a href="/builds.html">Other builds (WASM-4, Uxn) →</a></p>
</section>
<section>
<details>
<summary>donate</summary>
<br/>
<div class="donation-buttons">
<a href="https://donate.stripe.com/4gM3cv5boaR98HH9VvfAc04" target="_blank" rel="noopener" class="platform-btn stripe-btn">
<img src="/icons/stripe.png" alt="stripe" class="platform-icon-btn"/>
<span>Donate via Stripe</span>
</a>
</nav>
<a href="https://trocador.app/en/anonpay/?ticker_to=xmr&network_to=Mainnet&address=86CbC3d4a2GhT9auh6X99JhmhTMFKVVk8Q9cLrKTHkBu8LLkoNWgkBeAT3YZrvDM6NczYe8brUJNsTiFmwpWDZYnFG5kzSH&donation=True&simple_mode=True&amount=0.1&name=Inner+Breeze&[email protected]&ticker_from=xmr&network_from=Mainnet&buttonbgcolor=445588&textcolor=ffffff&bgcolor=eaeaffff" target="_blank" rel="noopener" class="platform-btn xmr-btn">
<img src="/icons/monero.png" alt="monero" class="platform-icon-btn"/>
<span>Donate via Crypto</span>
</a>
<p style="text-align:center; margin-top:16px; font-size:14px;"><a href="/builds.html">Other builds (WASM-4, Uxn) →</a></p>
</section>
<!-- Features Section - Clean simple styling -->
<section class="features-section">
<h2>Features</h2>
<div class="features-grid">
<div class="feature-item">
<h3>8 Color Themes</h3>
<p>Forest, Ocean, Sky, Sunset, and Lavender — each with light and dark variants</p>
</div>
<div class="feature-item">
<h3>Audio Cues</h3>
<p>Breath in/out sounds and completion bell for guided sessions</p>
</div>
<div class="feature-item">
<h3>Session History</h3>
<p>Track your breathing sessions with local storage</p>
</div>
<div class="feature-item">
<h3>Fullscreen Mode</h3>
<p>Immersive experience with proper DPI scaling</p>
</div>
<div class="feature-item">
<h3>Touch Optimized</h3>
<p>Designed for mobile devices with responsive controls</p>
</div>
<div class="feature-item">
<h3>Open Source</h3>
<p>Free and open-source under MIT license</p>
</div>
</div>
</section>
<section class="migration-section">
<h2>Migrating from inbe-legacy?</h2>
<p>Use the web converter to turn an inbe-legacy JSON export into the ZIP format used by current Inner Breeze imports.</p>
<p><a href="/legacy-converter.html">Open legacy data converter</a></p>
</section>
<!-- About Section -->
<section class="about-section">
<h2>About the Wim Hof Method</h2>
<p>The Wim Hof Method is a breathing technique that combines controlled hyperventilation and breath retention. Practitioners report benefits including:</p>
<ul class="benefits-list">
<li>Reduced stress and anxiety</li>
<li>Improved focus and mental clarity</li>
<li>Better sleep quality</li>
<li>Enhanced cold tolerance</li>
<li>Increased energy levels</li>
</ul>
<p class="safety-note"><em>Note: Always practice breathing exercises in a safe environment. Never practice while driving, swimming, or in situations where loss of consciousness could be dangerous.</em></p>
</section>
<!-- Source & Donations -->
<section class="info-section">
<nav aria-label="Source code" class="platform-buttons">
<a href="https://github.com/waozixyz/inbe" target="_blank" rel="noopener" class="platform-btn web">
<img src="/web-assets/icons/github.png" alt="GitHub icon"/>
<span>GitHub</span>
</a>
</nav>
<details class="dropdown">
<summary>Privacy & Donations</summary>
<div class="dropdown-content">
<p><strong>Privacy:</strong> Inner Breeze respects your privacy. The app stores session history locally on your device and does not collect, transmit, or sell any personal data. No analytics, no tracking, no accounts required.</p>
<p><strong>Free & Open Source:</strong> This app is completely free with no ads, in-app purchases, or premium features. Development is supported by voluntary donations.</p>
<nav aria-label="Donation options" class="dropdown-links">
<a href="https://trocador.app/en/anonpay/?ticker_to=xmr&network_to=Mainnet&address=86CbC3d4a2GhT9auh6X99JhmhTMFKVVk8Q9cLrKTHkBu8LLkoNWgkBeAT3YZrvDM6NczYe8brUJNsTiFmwpWDZYnFG5kzSH&donation=True&simple_mode=True&amount=0.1&name=Inner+Breeze&[email protected]&ticker_from=xmr&network_from=Mainnet&buttonbgcolor=445588&textcolor=ffffff&bgcolor=eaeaffff" target="_blank" rel="noopener">Donate via Crypto</a>
</nav>
</div>
</details>
</section>
</main>
<footer>
<p>&copy; 2026 <a href="https://waozi.xyz">Waozi</a> | <a href="https://git.sr.ht/~waozi/inbe" target="_blank" rel="noopener">hosted on sr.ht</a></p>
<p>&copy; 2026 <a href="https://waozi.xyz">Waozi</a> | <a href="/privacy.html">Privacy Policy</a></p>
</footer>
</div>
</body>
+287
View File
@@ -0,0 +1,287 @@
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8" />
<head>
<title>Inner Breeze Legacy Data Converter</title>
<link href="/style.css" rel="stylesheet" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Convert inbe-legacy JSON exports into the current Inner Breeze import ZIP format.">
<link rel="canonical" href="https://inbe.waozi.xyz/legacy-converter.html">
</head>
<body>
<div class="content">
<main id="main-content">
<section class="tool-section">
<h1>Legacy Data Converter</h1>
<p>Coming from inbe-legacy? Convert the old JSON export into the ZIP file used by the current Inner Breeze import tool.</p>
<p class="safety-note"><em>This runs entirely in your browser. Your file is not uploaded.</em></p>
<div class="converter-panel">
<label for="legacy-file">inbe-legacy JSON export</label>
<input id="legacy-file" type="file" accept=".json,application/json">
<button id="convert-button" type="button">Convert to Inbe ZIP</button>
<p id="converter-status" class="converter-status" role="status">Choose an inbe-legacy JSON export.</p>
</div>
<p><a href="/">Back to downloads</a></p>
</section>
</main>
<footer>
<p>&copy; 2026 <a href="https://waozi.xyz">Waozi</a> | <a href="/privacy.html">Privacy Policy</a></p>
</footer>
</div>
<script>
(function() {
"use strict";
var fileInput = document.getElementById("legacy-file");
var convertButton = document.getElementById("convert-button");
var statusEl = document.getElementById("converter-status");
function setStatus(message, isError) {
statusEl.textContent = message;
statusEl.className = isError ? "converter-status error" : "converter-status";
}
function pad(value, width) {
var text = String(value);
while(text.length < width) text = "0" + text;
return text;
}
function dosDateTime(date) {
var year = date.getFullYear();
if(year < 1980) year = 1980;
return {
time: (date.getHours() << 11) | (date.getMinutes() << 5) | Math.floor(date.getSeconds() / 2),
date: ((year - 1980) << 9) | ((date.getMonth() + 1) << 5) | date.getDate()
};
}
var crcTable = null;
function makeCrcTable() {
var table = [];
for(var n = 0; n < 256; n++) {
var c = n;
for(var k = 0; k < 8; k++) {
c = (c & 1) ? (0xEDB88320 ^ (c >>> 1)) : (c >>> 1);
}
table[n] = c >>> 0;
}
return table;
}
function crc32(bytes) {
if(crcTable === null) crcTable = makeCrcTable();
var crc = 0 ^ -1;
for(var i = 0; i < bytes.length; i++) {
crc = (crc >>> 8) ^ crcTable[(crc ^ bytes[i]) & 0xff];
}
return (crc ^ -1) >>> 0;
}
function writeU16(out, value) {
out.push(value & 255, (value >>> 8) & 255);
}
function writeU32(out, value) {
out.push(value & 255, (value >>> 8) & 255, (value >>> 16) & 255, (value >>> 24) & 255);
}
function appendBytes(out, bytes) {
for(var i = 0; i < bytes.length; i++) out.push(bytes[i]);
}
function makeZip(files) {
var encoder = new TextEncoder();
var out = [];
var central = [];
var now = dosDateTime(new Date());
files.forEach(function(file) {
var nameBytes = encoder.encode(file.name);
var dataBytes = encoder.encode(file.content);
var crc = crc32(dataBytes);
var offset = out.length;
writeU32(out, 0x04034b50);
writeU16(out, 20);
writeU16(out, 0);
writeU16(out, 0);
writeU16(out, now.time);
writeU16(out, now.date);
writeU32(out, crc);
writeU32(out, dataBytes.length);
writeU32(out, dataBytes.length);
writeU16(out, nameBytes.length);
writeU16(out, 0);
appendBytes(out, nameBytes);
appendBytes(out, dataBytes);
writeU32(central, 0x02014b50);
writeU16(central, 20);
writeU16(central, 20);
writeU16(central, 0);
writeU16(central, 0);
writeU16(central, now.time);
writeU16(central, now.date);
writeU32(central, crc);
writeU32(central, dataBytes.length);
writeU32(central, dataBytes.length);
writeU16(central, nameBytes.length);
writeU16(central, 0);
writeU16(central, 0);
writeU16(central, 0);
writeU16(central, 0);
writeU32(central, 0);
writeU32(central, offset);
appendBytes(central, nameBytes);
});
var centralOffset = out.length;
appendBytes(out, central);
writeU32(out, 0x06054b50);
writeU16(out, 0);
writeU16(out, 0);
writeU16(out, files.length);
writeU16(out, files.length);
writeU32(out, central.length);
writeU32(out, centralOffset);
writeU16(out, 0);
return new Blob([new Uint8Array(out)], {type: "application/zip"});
}
function sessionDate(session) {
var id = session && session.id;
var dateTime = session && session.dateTime;
var numeric = Number(id);
var date;
if(Number.isFinite(numeric) && numeric > 0) {
date = new Date(numeric);
} else if(typeof id === "string") {
date = new Date(id);
}
if((!date || Number.isNaN(date.getTime())) && typeof dateTime === "string") {
date = new Date(dateTime);
}
if(!date || Number.isNaN(date.getTime())) {
return null;
}
return date;
}
function roundSeconds(value) {
var number = Number(value);
if(!Number.isFinite(number) || number <= 0) return 0;
if(number > 999) number = Math.round(number / 1000);
else number = Math.round(number);
if(number < 1 || number > 999) return 0;
return number;
}
function convertLegacy(data) {
var sessions = Array.isArray(data) ? data : data.sessions;
var files = [];
var usedPaths = {};
if(!Array.isArray(sessions)) {
throw new Error("No sessions array found in the legacy export.");
}
sessions.forEach(function(session) {
var date = sessionDate(session);
var rounds = session && session.rounds;
var seconds = [];
var path;
if(!date || !rounds || typeof rounds !== "object") return;
Object.keys(rounds).sort(function(a, b) {
return Number(a) - Number(b);
}).forEach(function(key) {
var value = roundSeconds(rounds[key]);
if(value > 0) seconds.push(value);
});
if(seconds.length === 0) return;
path = "lotus-data/sessions/" +
pad(date.getFullYear(), 4) + "/" +
pad(date.getMonth() + 1, 2) + "/" +
pad(date.getDate(), 2) + "/inbe-" +
pad(date.getHours(), 2) +
pad(date.getMinutes(), 2) +
pad(date.getSeconds(), 2);
while(usedPaths[path]) {
date = new Date(date.getTime() + 1000);
path = "lotus-data/sessions/" +
pad(date.getFullYear(), 4) + "/" +
pad(date.getMonth() + 1, 2) + "/" +
pad(date.getDate(), 2) + "/inbe-" +
pad(date.getHours(), 2) +
pad(date.getMinutes(), 2) +
pad(date.getSeconds(), 2);
}
usedPaths[path] = true;
files.push({
name: path,
content: seconds.join("\n") + "\n"
});
});
if(files.length === 0) {
throw new Error("No valid legacy sessions were found.");
}
files.unshift({
name: "lotus-data/metadata.txt",
content: "Inner Breeze Data Export\nVersion: legacy-converter\nDate: " + new Date().toISOString() + "\nSessions: " + files.length + "\n"
});
return {
count: files.length - 1,
blob: makeZip(files)
};
}
function downloadBlob(blob, filename) {
var url = URL.createObjectURL(blob);
var link = document.createElement("a");
link.href = url;
link.download = filename;
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
setTimeout(function() {
URL.revokeObjectURL(url);
}, 1000);
}
convertButton.addEventListener("click", function() {
var file = fileInput.files && fileInput.files[0];
if(!file) {
setStatus("Choose a legacy JSON export first.", true);
return;
}
file.text().then(function(text) {
var data = JSON.parse(text);
var result = convertLegacy(data);
downloadBlob(result.blob, "inbe-legacy-converted.zip");
setStatus("Converted " + result.count + " sessions. Import the downloaded ZIP in Inner Breeze.", false);
}).catch(function(error) {
setStatus(error.message || "Conversion failed.", true);
});
});
})();
</script>
</body>
</html>
+75 -5
View File
@@ -15,6 +15,19 @@ count_value(const char v[CountSize])
return a * 100 + b * 10 + c;
}
int
inbe_breath_half_ticks_for_speed(int speed)
{
static const int breath_half_ticks[] = {132, 120, 108, 100, 93, 86, 80, 74, 68, 63, 58, 53};
if(speed < 1)
speed = 1;
if(speed > 12)
speed = 12;
return breath_half_ticks[speed - 1];
}
void
cpcount(char dst[CountSize], const char src[CountSize])
{
@@ -47,6 +60,11 @@ inccount(char v[CountSize])
v[0] = '0';
}
int
inbe_get_play_in_background(Inbe *inbe)
{
return inbe->play_in_background;
}
void
inbeinit(Inbe *l)
@@ -71,6 +89,13 @@ inbeinit(Inbe *l)
l->halftick = 0;
l->max_rounds = DefaultMaxRounds;
l->pause_seconds = DefaultPauseSeconds;
l->progressive_speed = 1;
l->progressive_start_speed = 3;
#ifdef __ANDROID__
l->play_in_background = 1; // Enabled by default on Android
#else
l->play_in_background = 0; // Disabled on other platforms
#endif
for(int i = 0; i < MaxRounds; i++) {
cpcount(l->results[i], "000");
@@ -80,6 +105,50 @@ inbeinit(Inbe *l)
cpcount(l->maxbreaths, "030");
}
static int
lerp_int(int a, int b, int num, int den)
{
int delta = b - a;
int scaled = delta * num;
if(scaled >= 0)
scaled += den / 2;
else
scaled -= den / 2;
return a + scaled / den;
}
static int
effective_breath_half_ticks(const Inbe *l)
{
int target_ticks = inbe_breath_half_ticks_for_speed(l->speed_level);
int start_speed = l->progressive_start_speed;
if(!l->progressive_speed || l->round != 0)
return target_ticks;
if(start_speed < 1)
start_speed = 1;
if(start_speed > l->speed_level)
start_speed = l->speed_level;
int completed_breaths = count_value(l->count);
if(completed_breaths < 5)
return inbe_breath_half_ticks_for_speed(start_speed);
if(completed_breaths >= 10)
return target_ticks;
return lerp_int(
inbe_breath_half_ticks_for_speed(start_speed),
target_ticks,
completed_breaths - 4,
5
);
}
static void
starting(Inbe *l)
@@ -105,21 +174,22 @@ breathe(Inbe *l)
{
int span = l->rmax - l->rmin;
int eased;
int half_ticks = effective_breath_half_ticks(l);
if(span <= 0 || l->breath_half_ticks <= 0)
if(span <= 0 || half_ticks <= 0)
return;
l->breath_frame++;
if(l->breath_frame > l->breath_half_ticks)
l->breath_frame = l->breath_half_ticks;
if(l->breath_frame > half_ticks)
l->breath_frame = half_ticks;
eased = (l->breath_frame * span) / l->breath_half_ticks;
eased = (l->breath_frame * span) / half_ticks;
if(l->dir == 0)
l->r = l->rmin + eased;
else
l->r = l->rmax - eased;
if(l->breath_frame >= l->breath_half_ticks) {
if(l->breath_frame >= half_ticks) {
l->breath_frame = 0;
if(l->dir == 0) {
l->dir = 1;
+6
View File
@@ -32,6 +32,7 @@ enum {
InbeScreenSession,
InbeScreenResults,
InbeScreenSettings,
InbeScreenLanguage,
InbeScreenManual,
InbeScreenHistory,
};
@@ -65,6 +66,9 @@ struct Inbe {
int halftick;
int max_rounds;
int pause_seconds;
int play_in_background;
int progressive_speed;
int progressive_start_speed;
char count[CountSize];
char maxbreaths[CountSize];
@@ -76,5 +80,7 @@ void inbeinit(Inbe *l);
void inbestep(Inbe *l);
void inccount(char v[CountSize]);
void cpcount(char dst[CountSize], const char src[CountSize]);
int inbe_breath_half_ticks_for_speed(int speed);
int inbe_get_play_in_background(Inbe *inbe);
#endif
+377
View File
@@ -0,0 +1,377 @@
[app_title]
Inner Breeze
---
[tab_history]
Historie
---
[tab_manual]
Návod
---
[tab_settings]
Nastavení
---
[play_button]
SPUSTIT
---
[breath_button]
DÝCHAT
---
[results_title]
VÝSLEDKY
---
[home_button]
DOMŮ
---
[exit_session_title]
Ukončit sezení?
---
[save_completed_rounds_message]
Uložit dokončená kola před ukončením?
---
[cancel_button]
Zrušit
---
[save_button]
Uložit
---
[save_results_button]
Uložit
---
[discard_button]
Zahodit
---
[all_progress_lost_message]
Veškerý postup bude ztracen.
---
[exit_button]
Ukončit
---
[round_times_title]
Časy kol
---
[results_rounds]
%d kol
---
[results_best]
nejlépe %ds
---
[results_avg]
průměr %ds
---
[round_result_label]
Kolo %d %ds
---
[starting_in]
ZAČÍNÁ ZA %2d
---
[settings_title]
Nastavení
---
[settings_tab_breathing]
Dýchání
---
[settings_tab_session]
Sezení
---
[settings_tab_sound]
Zvuk
---
[settings_tab_appearance]
Vzhled
---
[settings_tab_language]
Jazyk
---
[settings_tab_data]
Data
---
[settings_tab_about]
O aplikaci
---
[settings_category_practice]
Nastavení cvičení
---
[settings_category_practice_desc]
Nastavte dýchání a sezení
---
[settings_category_app]
Předvolby aplikace
---
[settings_category_app_desc]
Přizpůsobte vzhled a zvuk
---
[settings_category_about_data]
O aplikaci a data
---
[settings_category_about_data_desc]
Zobrazte informace a spravujte data
---
[theme_label]
Motiv
---
[speed_label]
Rychlost
---
Start speed
---
[play_in_background_label]
Přehrávat na pozadí
---
[max_rounds_label]
Max. kol
---
[max_breaths_label]
Max. nádechů
---
[pause_after_round_label]
Pauza po kole
---
[advanced_session_controls_label]
Pokročilé ovládání sezení
---
[hold_display_label]
Zobrazeni zadrze
---
[hold_display_stopwatch]
Stopky
---
[hold_display_circle]
Kruh
---
[volume_label]
Hlasitost
---
[reset_to_defaults_label]
Obnovit výchozí
---
[fullscreen_label]
Celá obrazovka
---
[language_label]
Jazyk
---
[language_picker_title]
Vyberte jazyk
---
[next_button]
Další
---
[coming_soon_label]
Brzy...
---
[data_management_label]
Správa dat
---
[total_sessions_label]
Celkem sezení: %d
---
[data_size_label]
Velikost dat: %s
---
[storage_label]
Úložiště: %s
---
[export_data_button]
Exportovat data
---
[delete_all_data_button]
Smazat všechna data
---
[export_data_dialog_title]
Exportovat data
---
[export_failed]
Export selhal
---
[exported_label]
Exportováno
---
[import_data_button]
Importovat data
---
[import_data_dialog_title]
Importovat data
---
[import_failed]
Import selhal
---
[imported_sessions]
Importováno %d sezení
---
[import_invalid_file]
Neplatný exportní soubor
---
[import_cancelled]
Import zrušen
---
[export_cancelled]
Export cancelled
---
[no_data_to_export]
No data to export
---
[no_data_to_delete]
No data to delete
---
[delete_all_data_title]
Delete all data?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
---
[delete_cancelled]
Delete cancelled
---
[deleted_sessions]
Deleted %lld sessions
---
[version_label]
Verze %s
---
[about_description]
Inner Breeze je jednoduchá aplikace
pro dechovou meditaci, která vám pomůže
uvolnit se a najít klid.
---
[toggle_off]
VYP
---
[toggle_on]
ZAP
---
[theme_light]
Světlý
---
[theme_dark]
Tmavý
---
[on_screen_keyboard_label]
Klávesnice na obrazovce
---
[history_title]
Historie
---
[history_empty]
Zatím nejsou uložena žádná sezení.
Dokončete sezení a přidejte data.
---
[history_month_label]
Měsíc %02d
---
[history_day_label]
Den %02d
---
[history_round_short_label]
K%d
---
[history_round_label]
K%d %ds
---
[history_session_label]
%02d:%02d průměr %ds
---
[tutorial_title]
Návod
---
[tutorial_page_label]
%d/%d
---
[tutorial_method_title]
Metoda
---
[tutorial_step1_title]
Krok 1: Nádech a výdech
---
[tutorial_step2_title]
Krok 2: Výdech a zádrž
---
[tutorial_step3_title]
Krok 3: Nádech a zádrž
---
[tutorial_progressive_speed_title]
Postupná rychlost
---
[tutorial_step_intro]
Toto dechové cvičení vychází z Wim Hofovy metody.
Může být silné. Používejte ho opatrně.
Cvičte vsedě nebo vleže.
Nikdy ho nepoužívejte při řízení,
vestoje ani ve vodě.
---
[tutorial_step_method]
Stačí postupovat ve 4 krocích:
1. Dýchejte rytmicky.
2. Vydechněte a zadržte dech.
3. Zhluboka se nadechněte a zadržte dech.
4. Vydechněte a opakujte.
Pomocí ikony ozubeného kola %i upravíte kola, nádechy, rychlost a pauzy.
---
[tutorial_step_breathe]
Naplňte plíce úplně a potom nechte dech volně odejít.
Tímto posuvníkem nastavíte tempo dechového kruhu.
Najděte rytmus, který vám připadá přirozený.
---
[tutorial_step_progressive_speed]
Postupná rychlost usnadňuje vstup do prvního kola.
Když je zapnutá, první kolo začne rychlostí 1 pro prvních 5 nádechů a potom se postupně zvýší na vámi vybranou rychlost.
---
[tutorial_step_exhale_hold]
Po dechovém kole
normálně vydechněte a zadržte dech.
Uvolněte se, až si tělo řekne
o vzduch. Nenuťte to.
---
[tutorial_step_inhale_hold]
Plně se nadechněte a zadržte dech asi na 15 sekund.
Potom vydechněte a začněte další kolo.
Časem může každé kolo působit hlouběji.
---
[tutorial_skip_button]
PŘESKOČIT
---
[tutorial_back_button]
ZPĚT
---
[tutorial_next_button]
DALŠÍ
---
[tutorial_finish_button]
DOKONČIT
---
[share_sheet_title]
Export dat sezení
---
[export_metadata_header]
Export dat Inner Breeze
---
[export_metadata_version]
Verze: %s
---
[export_metadata_date]
Datum exportu: %s
---
[export_metadata_count]
Počet sezení: %d
---
[delete_history_title]
Smazat?
---
[delete_session_message]
Smazat toto sezení? Tuto akci nelze vrátit.
---
[delete_round_message]
Smazat toto kolo? Tuto akci nelze vrátit.
---
[delete_button]
Smazat
---
+377
View File
@@ -0,0 +1,377 @@
[app_title]
Inner Breeze
---
[tab_history]
Verlauf
---
[tab_manual]
Tutorial
---
[tab_settings]
Einstellungen
---
[play_button]
START
---
[breath_button]
ATEM
---
[results_title]
ERGEBNISSE
---
[home_button]
START
---
[exit_session_title]
Sitzung beenden?
---
[save_completed_rounds_message]
Abgeschlossene Runden vor dem Beenden speichern?
---
[cancel_button]
Abbrechen
---
[save_button]
Speichern
---
[save_results_button]
Speichern
---
[discard_button]
Verwerfen
---
[all_progress_lost_message]
Alle Fortschritte gehen verloren.
---
[exit_button]
Beenden
---
[round_times_title]
Rundenzeiten
---
[results_rounds]
%d Runden
---
[results_best]
beste %ds
---
[results_avg]
durchschn. %ds
---
[round_result_label]
Runde %d %ds
---
[starting_in]
START IN %2d
---
[settings_title]
Einstellungen
---
[settings_tab_breathing]
Atmung
---
[settings_tab_session]
Sitzung
---
[settings_tab_sound]
Ton
---
[settings_tab_appearance]
Darstellung
---
[settings_tab_language]
Sprache
---
[settings_tab_data]
Daten
---
[settings_tab_about]
Über
---
[theme_label]
Thema
---
[speed_label]
Geschwindigkeit
---
Start speed
---
[play_in_background_label]
Im Hintergrund abspielen
---
[max_rounds_label]
Max. Runden
---
[max_breaths_label]
Max. Atemzüge
---
[pause_after_round_label]
Pause nach Runde
---
[advanced_session_controls_label]
Erweiterte Sitzungssteuerung
---
[hold_display_label]
Atemhalteanzeige
---
[hold_display_stopwatch]
Stoppuhr
---
[hold_display_circle]
Kreis
---
[volume_label]
Lautstärke
---
[reset_to_defaults_label]
Auf Standard zurücksetzen
---
[fullscreen_label]
Vollbild
---
[language_label]
Sprache
---
[language_picker_title]
Sprache wählen
---
[next_button]
Weiter
---
[coming_soon_label]
Demnächst...
---
[data_management_label]
Datenverwaltung
---
[total_sessions_label]
Gesamtsitzungen: %d
---
[data_size_label]
Datengröße: %s
---
[storage_label]
Speicher: %s
---
[export_data_button]
Daten exportieren
---
[delete_all_data_button]
Alle Daten löschen
---
[export_data_dialog_title]
Daten exportieren
---
[export_failed]
Export fehlgeschlagen
---
[exported_label]
Exportiert
---
[import_data_button]
Daten importieren
---
[import_data_dialog_title]
Daten importieren
---
[import_failed]
Import fehlgeschlagen
---
[imported_sessions]
%d Sitzungen importiert
---
[import_invalid_file]
Ungültige Exportdatei
---
[import_cancelled]
Import cancelled
---
[export_cancelled]
Export cancelled
---
[no_data_to_export]
No data to export
---
[no_data_to_delete]
No data to delete
---
[delete_all_data_title]
Delete all data?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
---
[delete_cancelled]
Delete cancelled
---
[deleted_sessions]
Deleted %lld sessions
---
[version_label]
Version %s
---
[about_description]
Inner Breeze ist eine einfache Atem-
Meditations-App, die Ihnen hilft, sich zu
entspannen und Ruhe zu finden.
---
[toggle_off]
AUS
---
[toggle_on]
AN
---
[theme_light]
Hell
---
[theme_dark]
Dunkel
---
[on_screen_keyboard_label]
Bildschirmtastatur
---
[history_title]
Verlauf
---
[history_empty]
Noch keine gespeicherten Sitzungen.
Schließen Sie eine Sitzung ab, um Daten hinzuzufügen.
---
[history_month_label]
Monat %02d
---
[history_day_label]
Tag %02d
---
[history_round_short_label]
R%d
---
[history_round_label]
R%d %ds
---
[history_session_label]
%02d:%02d durchschn. %ds
---
[tutorial_title]
Anleitung
---
[tutorial_page_label]
%d/%d
---
[tutorial_method_title]
Methode
---
[tutorial_step1_title]
Schritt 1: Ein & Aus
---
[tutorial_step2_title]
Schritt 2: Ausatmen & Halten
---
[tutorial_step3_title]
Schritt 3: Einatmen & Halten
---
[tutorial_progressive_speed_title]
Progressive Geschwindigkeit
---
[tutorial_step_intro]
Diese Atemübung basiert auf der Wim Hof-Methode.
Sie kann kraftvoll sein. Nutzen Sie sie mit Vorsicht.
Üben Sie im Sitzen oder Liegen.
Benutzen Sie sie niemals beim Fahren,
Stehen oder im Wasser.
---
[tutorial_step_method]
Folgen Sie einfach 4 Schritten:
1. Atmen Sie rhythmisch.
2. Atmen Sie aus und halten Sie.
3. Atmen Sie tief ein und halten Sie.
4. Atmen Sie aus und wiederholen Sie.
Nutzen Sie das Zahnrad-Symbol %i, um Runden, Atemzüge, Geschwindigkeit und Pausen anzupassen.
---
[tutorial_step_breathe]
Füllen Sie Ihre Lungen vollständig, dann lassen Sie den Atem herausfließen.
Nutzen Sie diesen Schieberegler, um das Tempo des Atemkreises einzustellen.
Finden Sie einen Rhythmus, der sich natürlich für Sie anfühlt.
---
[tutorial_step_progressive_speed]
Progressive Geschwindigkeit macht den Einstieg in die erste Runde leichter.
Wenn sie aktiviert ist, beginnt die erste Runde bei Geschwindigkeit 1 für die ersten 5 Atemzüge und steigt dann schrittweise auf Ihre gewählte Geschwindigkeit.
---
[tutorial_step_exhale_hold]
Nach der Atemrunde,
atmen Sie normal aus und halten Sie.
Lassen Sie los, wenn Ihr Körper
nach Luft verlangt. Zwängen Sie es nicht.
---
[tutorial_step_inhale_hold]
Atmen Sie vollständig ein und halten Sie etwa 15 Sekunden.
Dann atmen Sie aus und beginnen die nächste Runde.
Mit der Zeit kann sich jede Runde tiefer anfühlen.
---
[tutorial_skip_button]
SKIP
---
[tutorial_back_button]
ZURÜCK
---
[tutorial_next_button]
WEITER
---
[tutorial_finish_button]
BEENDEN
---
[share_sheet_title]
Sitzungsdaten exportieren
---
[export_metadata_header]
Inner Breeze Datenexport
---
[export_metadata_version]
Version: %s
---
[export_metadata_date]
Exportdatum: %s
---
[export_metadata_count]
Sitzungsanzahl: %d
---
[delete_history_title]
Löschen?
---
[delete_session_message]
Diese Sitzung löschen? Das kann nicht rückgängig gemacht werden.
---
[delete_round_message]
Diese Runde löschen? Das kann nicht rückgängig gemacht werden.
---
[delete_button]
Löschen
---
[settings_category_practice]
Praxis-Einstellungen
---
[settings_category_practice_desc]
Atmung und Sitzungen konfigurieren
---
[settings_category_app]
App-Einstellungen
---
[settings_category_app_desc]
Aussehen und Audio anpassen
---
[settings_category_about_data]
Info & Daten
---
[settings_category_about_data_desc]
Informationen anzeigen und Daten verwalten
---
+380
View File
@@ -0,0 +1,380 @@
[app_title]
Inner Breeze
---
[tab_history]
History
---
[tab_manual]
Tutorial
---
[tab_settings]
Settings
---
[play_button]
PLAY
---
[breath_button]
BREATH
---
[results_title]
RESULTS
---
[home_button]
HOME
---
[exit_session_title]
Exit Session?
---
[save_completed_rounds_message]
Save completed rounds before exit?
---
[cancel_button]
Cancel
---
[save_button]
Save
---
[save_results_button]
Save
---
[discard_button]
Discard
---
[all_progress_lost_message]
All progress will be lost.
---
[exit_button]
Exit
---
[round_times_title]
Round times
---
[results_rounds]
%d rounds
---
[results_best]
best %ds
---
[results_avg]
avg %ds
---
[round_result_label]
Round %d %ds
---
[starting_in]
STARTING IN %2d
---
[settings_title]
Settings
---
[settings_tab_breathing]
Breathing
---
[settings_tab_session]
Session
---
[settings_tab_sound]
Sound
---
[settings_tab_appearance]
Appearance
---
[settings_tab_language]
Language
---
[settings_tab_data]
Data
---
[settings_tab_about]
About
---
[settings_category_practice]
Practice Settings
---
[settings_category_practice_desc]
Configure breathing and sessions
---
[settings_category_app]
App Preferences
---
[settings_category_app_desc]
Customize appearance and audio
---
[settings_category_about_data]
About & Data
---
[settings_category_about_data_desc]
View info and manage data
---
[theme_label]
Theme
---
[speed_label]
Speed
---
[progressive_speed_label]
Progressive speed
---
[progressive_start_speed_label]
Start speed
---
[play_in_background_label]
Play in background
---
[max_rounds_label]
Max rounds
---
[max_breaths_label]
Max breaths
---
[pause_after_round_label]
Pause after round
---
[advanced_session_controls_label]
Advanced session controls
---
[hold_display_label]
Hold display
---
[hold_display_stopwatch]
Stopwatch
---
[hold_display_circle]
Circle
---
[volume_label]
Volume
---
[reset_to_defaults_label]
Reset to defaults
---
[fullscreen_label]
Fullscreen
---
[language_label]
Language
---
[language_picker_title]
Choose Language
---
[next_button]
Next
---
[coming_soon_label]
Coming soon...
---
[data_management_label]
Data Management
---
[total_sessions_label]
Total Sessions: %d
---
[data_size_label]
Data Size: %s
---
[storage_label]
Storage: %s
---
[export_data_button]
Export Data
---
[delete_all_data_button]
Delete All Data
---
[export_data_dialog_title]
Export Data
---
[export_failed]
Export failed
---
[exported_label]
Exported
---
[import_data_button]
Import Data
---
[import_data_dialog_title]
Import Data
---
[import_failed]
Import failed
---
[imported_sessions]
Imported %d sessions
---
[import_invalid_file]
Invalid export file
---
[import_cancelled]
Import cancelled
---
[export_cancelled]
Export cancelled
---
[no_data_to_export]
No data to export
---
[no_data_to_delete]
No data to delete
---
[delete_all_data_title]
Delete all data?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
---
[delete_cancelled]
Delete cancelled
---
[deleted_sessions]
Deleted %lld sessions
---
[version_label]
Version %s
---
[about_description]
Inner Breeze is a simple breathing
meditation app to help you relax
and find your calm.
---
[toggle_off]
OFF
---
[toggle_on]
ON
---
[theme_light]
Light
---
[theme_dark]
Dark
---
[on_screen_keyboard_label]
On-screen keyboard
---
[history_title]
History
---
[history_empty]
No saved sessions yet.
Complete a session to add data.
---
[history_month_label]
Month %02d
---
[history_day_label]
Day %02d
---
[history_round_short_label]
R%d
---
[history_round_label]
R%d %ds
---
[history_session_label]
%02d:%02d avg %ds
---
[tutorial_title]
Tutorial
---
[tutorial_page_label]
%d/%d
---
[tutorial_method_title]
Method
---
[tutorial_step1_title]
Step 1: In & Out
---
[tutorial_step2_title]
Step 2: Exhale & Hold
---
[tutorial_step3_title]
Step 3: Inhale & Hold
---
[tutorial_progressive_speed_title]
Progressive Speed
---
[tutorial_step_intro]
This breathing practice is based on the Wim Hof Method.
It can be powerful. Use it with care.
Practice sitting or lying down.
Never use it while driving,
standing, or in water.
---
[tutorial_step_method]
Simply follow 4 steps:
1. Breathe rhythmically.
2. Exhale and hold.
3. Inhale deeply and hold.
4. Exhale and repeat.
Use the gear icon %i to adjust rounds, breaths, speed, and pauses.
---
[tutorial_step_breathe]
Fill your lungs fully, then let the breath flow out.
Use this slider to set the pace of the breathing circle.
Find a rhythm that feels natural for you.
---
[tutorial_step_progressive_speed]
Progressive speed makes the first round easier to enter.
When it is on, the first round starts slower, then gradually increases to your selected speed.
---
[tutorial_step_exhale_hold]
Exhale normally and hold.
The center number keeps counting. Circle mode adds layered progress lines.
Release when your body asks for air.
---
[tutorial_step_inhale_hold]
Inhale fully and hold for about 15 seconds.
Then exhale and begin the next round.
Over time, each round may feel deeper.
---
[tutorial_skip_button]
SKIP
---
[tutorial_back_button]
BACK
---
[tutorial_next_button]
NEXT
---
[tutorial_finish_button]
FINISH
---
[share_sheet_title]
Export Session Data
---
[export_metadata_header]
Inner Breeze Data Export
---
[export_metadata_version]
Version: %s
---
[export_metadata_date]
Export Date: %s
---
[export_metadata_count]
Session Count: %d
---
[delete_history_title]
Delete?
---
[delete_session_message]
Delete this session? This cannot be undone.
---
[delete_round_message]
Delete this round? This cannot be undone.
---
[delete_button]
Delete
---
+377
View File
@@ -0,0 +1,377 @@
[app_title]
Inner Breeze
---
[tab_history]
Historial
---
[tab_manual]
Tutorial
---
[tab_settings]
Configuración
---
[play_button]
REPRODUCIR
---
[breath_button]
RESPIRACIÓN
---
[results_title]
RESULTADOS
---
[home_button]
INICIO
---
[exit_session_title]
¿Salir de la sesión?
---
[save_completed_rounds_message]
¿Guardar rondas completadas antes de salir?
---
[cancel_button]
Cancelar
---
[save_button]
Guardar
---
[save_results_button]
Guardar
---
[discard_button]
Descartar
---
[all_progress_lost_message]
Se perderá todo el progreso.
---
[exit_button]
Salir
---
[round_times_title]
Tiempos de ronda
---
[results_rounds]
%d rondas
---
[results_best]
mejor %ds
---
[results_avg]
promedio %ds
---
[round_result_label]
Ronda %d %ds
---
[starting_in]
COMENZANDO EN %2d
---
[settings_title]
Configuración
---
[settings_tab_breathing]
Respiración
---
[settings_tab_session]
Sesión
---
[settings_tab_sound]
Sonido
---
[settings_tab_appearance]
Apariencia
---
[settings_tab_language]
Idioma
---
[settings_tab_data]
Datos
---
[settings_tab_about]
Acerca de
---
[theme_label]
Tema
---
[speed_label]
Velocidad
---
Start speed
---
[play_in_background_label]
Reproducir en segundo plano
---
[max_rounds_label]
Rondas máximas
---
[max_breaths_label]
Respiraciones máximas
---
[pause_after_round_label]
Pausa después de ronda
---
[advanced_session_controls_label]
Controles avanzados de sesión
---
[hold_display_label]
Visualizacion de retencion
---
[hold_display_stopwatch]
Cronometro
---
[hold_display_circle]
Circulo
---
[volume_label]
Volumen
---
[reset_to_defaults_label]
Restablecer valores predeterminados
---
[fullscreen_label]
Pantalla completa
---
[language_label]
Idioma
---
[language_picker_title]
Elegir idioma
---
[next_button]
Más
---
[coming_soon_label]
Próximamente...
---
[data_management_label]
Gestión de datos
---
[total_sessions_label]
Sesiones totales: %d
---
[data_size_label]
Tamaño de datos: %s
---
[storage_label]
Almacenamiento: %s
---
[export_data_button]
Exportar datos
---
[delete_all_data_button]
Eliminar todos los datos
---
[export_data_dialog_title]
Exportar datos
---
[export_failed]
Error al exportar
---
[exported_label]
Exportado
---
[import_data_button]
Importar datos
---
[import_data_dialog_title]
Importar datos
---
[import_failed]
Error al importar
---
[imported_sessions]
%d sesiones importadas
---
[import_invalid_file]
Archivo de exportación no válido
---
[import_cancelled]
Import cancelled
---
[export_cancelled]
Export cancelled
---
[no_data_to_export]
No data to export
---
[no_data_to_delete]
No data to delete
---
[delete_all_data_title]
Delete all data?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
---
[delete_cancelled]
Delete cancelled
---
[deleted_sessions]
Deleted %lld sessions
---
[version_label]
Versión %s
---
[about_description]
Inner Breeze es una aplicación simple de
meditación de respiración para ayudarle a
relajarse y encontrar su calma.
---
[toggle_off]
APAGADO
---
[toggle_on]
ENCENDIDO
---
[theme_light]
Claro
---
[theme_dark]
Oscuro
---
[on_screen_keyboard_label]
Teclado en pantalla
---
[history_title]
Historial
---
[history_empty]
Aún no hay sesiones guardadas.
Complete una sesión para agregar datos.
---
[history_month_label]
Mes %02d
---
[history_day_label]
Día %02d
---
[history_round_short_label]
R%d
---
[history_round_label]
R%d %ds
---
[history_session_label]
%02d:%02d promedio %ds
---
[tutorial_title]
Tutorial
---
[tutorial_page_label]
%d/%d
---
[tutorial_method_title]
Método
---
[tutorial_step1_title]
Paso 1: Inhalar y Exhalar
---
[tutorial_step2_title]
Paso 2: Exhalar y Retener
---
[tutorial_step3_title]
Paso 3: Inhalar y Retener
---
[tutorial_progressive_speed_title]
Velocidad progresiva
---
[tutorial_step_intro]
Esta práctica de respiración se basa en el Método Wim Hof.
Puede ser poderosa. Úsela con cuidado.
Practique sentado o acostado.
Nunca la use mientras conduce,
de pie o en el agua.
---
[tutorial_step_method]
Simplemente siga 4 pasos:
1. Respire rítmicamente.
2. Exhale y retenga.
3. Inhale profundamente y retenga.
4. Exhale y repita.
Use el icono de engranaje %i para ajustar rondas, respiraciones, velocidad y pausas.
---
[tutorial_step_breathe]
Llene sus pulmones completamente, luego deje que el respiración fluya hacia afuera.
Use este control deslizante para establecer el ritmo del círculo de respiración.
Encuentre un ritmo que se sienta natural para usted.
---
[tutorial_step_progressive_speed]
La velocidad progresiva hace que la primera ronda sea más fácil de empezar.
Cuando está activada, la primera ronda comienza en velocidad 1 durante las primeras 5 respiraciones y luego aumenta gradualmente hasta la velocidad elegida.
---
[tutorial_step_exhale_hold]
Después de la ronda de respiración,
exhale normalmente y retenga.
Suelte cuando su cuerpo pida
aire. No lo fuerce.
---
[tutorial_step_inhale_hold]
Inhale completamente y retenga unos 15 segundos.
Luego exhale y comience la siguiente ronda.
Con el tiempo, cada ronda puede sentirse más profunda.
---
[tutorial_skip_button]
OMITIR
---
[tutorial_back_button]
ATRÁS
---
[tutorial_next_button]
MÁS
---
[tutorial_finish_button]
FINALIZAR
---
[share_sheet_title]
Exportar datos de sesión
---
[export_metadata_header]
Exportación de datos de Inner Breeze
---
[export_metadata_version]
Versión: %s
---
[export_metadata_date]
Fecha de exportación: %s
---
[export_metadata_count]
Recuento de sesiones: %d
---
[delete_history_title]
¿Eliminar?
---
[delete_session_message]
¿Eliminar esta sesión? No se puede deshacer.
---
[delete_round_message]
¿Eliminar esta ronda? No se puede deshacer.
---
[delete_button]
Eliminar
---
[settings_category_practice]
Configuración de Práctica
---
[settings_category_practice_desc]
Configurar respiración y sesiones
---
[settings_category_app]
Preferencias de Aplicación
---
[settings_category_app_desc]
Personalizar apariencia y audio
---
[settings_category_about_data]
Acerca de y Datos
---
[settings_category_about_data_desc]
Ver información y administrar datos
---
+377
View File
@@ -0,0 +1,377 @@
[app_title]
Inner Breeze
---
[tab_history]
Historique
---
[tab_manual]
Tutoriel
---
[tab_settings]
Réglages
---
[play_button]
DÉMARRER
---
[breath_button]
RESPIRER
---
[results_title]
RÉSULTATS
---
[home_button]
ACCUEIL
---
[exit_session_title]
Quitter la séance ?
---
[save_completed_rounds_message]
Enregistrer les cycles terminés avant de quitter ?
---
[cancel_button]
Annuler
---
[save_button]
Enregistrer
---
[save_results_button]
Enregistrer
---
[discard_button]
Ignorer
---
[all_progress_lost_message]
Toute la progression sera perdue.
---
[exit_button]
Quitter
---
[round_times_title]
Temps des cycles
---
[results_rounds]
%d cycles
---
[results_best]
meilleur %ds
---
[results_avg]
moy. %ds
---
[round_result_label]
Cycle %d %ds
---
[starting_in]
DÉBUT DANS %2d
---
[settings_title]
Réglages
---
[settings_tab_breathing]
Respiration
---
[settings_tab_session]
Séance
---
[settings_tab_sound]
Son
---
[settings_tab_appearance]
Apparence
---
[settings_tab_language]
Langue
---
[settings_tab_data]
Données
---
[settings_tab_about]
À propos
---
[theme_label]
Thème
---
[speed_label]
Vitesse
---
Start speed
---
[play_in_background_label]
Lecture en arrière-plan
---
[max_rounds_label]
Cycles max.
---
[max_breaths_label]
Respirations max.
---
[pause_after_round_label]
Pause après cycle
---
[advanced_session_controls_label]
Contrôles avancés de séance
---
[hold_display_label]
Affichage de la retention
---
[hold_display_stopwatch]
Chronometre
---
[hold_display_circle]
Cercle
---
[volume_label]
Volume
---
[reset_to_defaults_label]
Réinitialiser
---
[fullscreen_label]
Plein écran
---
[language_label]
Langue
---
[language_picker_title]
Choisir la langue
---
[next_button]
Suivant
---
[coming_soon_label]
Bientôt...
---
[data_management_label]
Gestion des données
---
[total_sessions_label]
Séances totales : %d
---
[data_size_label]
Taille des données : %s
---
[storage_label]
Stockage : %s
---
[export_data_button]
Exporter les données
---
[delete_all_data_button]
Supprimer toutes les données
---
[export_data_dialog_title]
Exporter les données
---
[export_failed]
Échec de l'export
---
[exported_label]
Exporté
---
[import_data_button]
Importer les données
---
[import_data_dialog_title]
Importer les données
---
[import_failed]
Échec de l'import
---
[imported_sessions]
%d sessions importées
---
[import_invalid_file]
Fichier d'export invalide
---
[import_cancelled]
Import annulé
---
[export_cancelled]
Export cancelled
---
[no_data_to_export]
No data to export
---
[no_data_to_delete]
No data to delete
---
[delete_all_data_title]
Delete all data?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
---
[delete_cancelled]
Delete cancelled
---
[deleted_sessions]
Deleted %lld sessions
---
[version_label]
Version %s
---
[about_description]
Inner Breeze est une application simple de
méditation respiratoire pour vous aider à
vous détendre et retrouver votre calme.
---
[toggle_off]
OFF
---
[toggle_on]
ON
---
[theme_light]
Clair
---
[theme_dark]
Sombre
---
[on_screen_keyboard_label]
Clavier à l'écran
---
[history_title]
Historique
---
[history_empty]
Aucune séance enregistrée.
Terminez une séance pour ajouter des données.
---
[history_month_label]
Mois %02d
---
[history_day_label]
Jour %02d
---
[history_round_short_label]
C%d
---
[history_round_label]
C%d %ds
---
[history_session_label]
%02d:%02d moy. %ds
---
[tutorial_title]
Tutoriel
---
[tutorial_page_label]
%d/%d
---
[tutorial_method_title]
Méthode
---
[tutorial_step1_title]
Étape 1 : Inspirer et expirer
---
[tutorial_step2_title]
Étape 2 : Expirer et retenir
---
[tutorial_step3_title]
Étape 3 : Inspirer et retenir
---
[tutorial_progressive_speed_title]
Vitesse progressive
---
[tutorial_step_intro]
Cette pratique respiratoire est basée sur la méthode Wim Hof.
Elle peut être puissante. Utilisez-la avec prudence.
Pratiquez assis ou allongé.
Ne l'utilisez jamais en conduisant,
debout ou dans l'eau.
---
[tutorial_step_method]
Suivez simplement 4 étapes :
1. Respirez en rythme.
2. Expirez et retenez.
3. Inspirez profondément et retenez.
4. Expirez et répétez.
Utilisez l'icône d'engrenage %i pour régler les cycles, respirations, vitesse et pauses.
---
[tutorial_step_breathe]
Remplissez complètement vos poumons, puis laissez le souffle sortir.
Utilisez ce curseur pour régler le rythme du cercle de respiration.
Trouvez un rythme naturel pour vous.
---
[tutorial_step_progressive_speed]
La vitesse progressive rend le premier cycle plus facile à commencer.
Quand elle est activée, le premier cycle commence à la vitesse 1 pendant les 5 premières respirations, puis augmente progressivement jusqu'à la vitesse choisie.
---
[tutorial_step_exhale_hold]
Après le cycle de respiration,
expirez normalement et retenez.
Relâchez quand votre corps demande
de l'air. Ne forcez pas.
---
[tutorial_step_inhale_hold]
Inspirez complètement et retenez environ 15 secondes.
Puis expirez et commencez le cycle suivant.
Avec le temps, chaque cycle peut sembler plus profond.
---
[tutorial_skip_button]
SKIP
---
[tutorial_back_button]
RETOUR
---
[tutorial_next_button]
SUIVANT
---
[tutorial_finish_button]
TERMINER
---
[share_sheet_title]
Exporter les données de séance
---
[export_metadata_header]
Export des données Inner Breeze
---
[export_metadata_version]
Version : %s
---
[export_metadata_date]
Date d'export : %s
---
[export_metadata_count]
Nombre de séances : %d
---
[delete_history_title]
Supprimer ?
---
[delete_session_message]
Supprimer cette séance ? Cette action est irréversible.
---
[delete_round_message]
Supprimer ce cycle ? Cette action est irréversible.
---
[delete_button]
Supprimer
---
[settings_category_practice]
Paramètres de Pratique
---
[settings_category_practice_desc]
Configurer la respiration et les séances
---
[settings_category_app]
Préférences de l'Application
---
[settings_category_app_desc]
Personnaliser l'apparence et l'audio
---
[settings_category_about_data]
À Propos et Données
---
[settings_category_about_data_desc]
Voir les informations et gérer les données
---
+375
View File
@@ -0,0 +1,375 @@
[app_title]
Inner Breeze
---
[tab_history]
Riwayat
---
[tab_manual]
Tutorial
---
[tab_settings]
Pengaturan
---
[play_button]
MULAI
---
[breath_button]
NAFAS
---
[results_title]
HASIL
---
[home_button]
BERANDA
---
[exit_session_title]
Keluar Sesi?
---
[save_completed_rounds_message]
Simpan ronde yang selesai sebelum keluar?
---
[cancel_button]
Batal
---
[save_button]
Simpan
---
[save_results_button]
Simpan
---
[discard_button]
Buang
---
[all_progress_lost_message]
Semua kemajuan akan hilang.
---
[exit_button]
Keluar
---
[round_times_title]
Waktu ronde
---
[results_rounds]
%d ronde
---
[results_best]
terbaik %ds
---
[results_avg]
rata %ds
---
[round_result_label]
Ronde %d %ds
---
[starting_in]
MULAI DALAM %2d
---
[settings_title]
Pengaturan
---
[settings_tab_breathing]
Pernapasan
---
[settings_tab_session]
Sesi
---
[settings_tab_sound]
Suara
---
[settings_tab_appearance]
Tampilan
---
[settings_tab_language]
Bahasa
---
[settings_tab_data]
Data
---
[settings_tab_about]
Tentang
---
[settings_category_practice]
Pengaturan Latihan
---
[settings_category_practice_desc]
Konfigurasi pernapasan dan sesi
---
[settings_category_app]
Preferensi Aplikasi
---
[settings_category_app_desc]
Kustomisasi tampilan dan audio
---
[settings_category_about_data]
Tentang & Data
---
[settings_category_about_data_desc]
Lihat info dan kelola data
---
[theme_label]
Tema
---
[speed_label]
Kecepatan
---
Start speed
---
[play_in_background_label]
Putar di latar belakang
---
[max_rounds_label]
Ronde maksimum
---
[max_breaths_label]
Nafas maksimum
---
[pause_after_round_label]
Jeda setelah ronde
---
[advanced_session_controls_label]
Kontrol sesi lanjutan
---
[hold_display_label]
Tampilan tahan napas
---
[hold_display_stopwatch]
Stopwatch
---
[hold_display_circle]
Lingkaran
---
[volume_label]
Volume
---
[reset_to_defaults_label]
Reset ke default
---
[fullscreen_label]
Layar penuh
---
[language_label]
Bahasa
---
[language_picker_title]
Pilih Bahasa
---
[next_button]
Lanjut
---
[coming_soon_label]
Segera hadir...
---
[data_management_label]
Manajemen Data
---
[total_sessions_label]
Total Sesi: %d
---
[data_size_label]
Ukuran Data: %s
---
[storage_label]
Penyimpanan: %s
---
[export_data_button]
Ekspor Data
---
[delete_all_data_button]
Hapus Semua Data
---
[export_data_dialog_title]
Ekspor Data
---
[export_failed]
Ekspor gagal
---
[exported_label]
Terekspor
---
[import_data_button]
Impor Data
---
[import_data_dialog_title]
Impor Data
---
[import_failed]
Impor gagal
---
[imported_sessions]
Mengimpor %d sesi
---
[import_invalid_file]
File ekspor tidak valid
---
[import_cancelled]
Impor dibatalkan
---
[export_cancelled]
Export cancelled
---
[no_data_to_export]
No data to export
---
[no_data_to_delete]
No data to delete
---
[delete_all_data_title]
Delete all data?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
---
[delete_cancelled]
Delete cancelled
---
[deleted_sessions]
Deleted %lld sessions
---
[version_label]
Versi %s
---
[about_description]
Inner Breeze adalah aplikasi meditasi pernapasan sederhana untuk membantu Anda rileks dan menemukan ketenangan.
---
[toggle_off]
MATI
---
[toggle_on]
NYALA
---
[theme_light]
Terang
---
[theme_dark]
Gelap
---
[on_screen_keyboard_label]
Keyboard di layar
---
[history_title]
Riwayat
---
[history_empty]
Belum ada sesi yang disimpan.
Selesaikan sesi untuk menambah data.
---
[history_month_label]
Bulan %02d
---
[history_day_label]
Hari %02d
---
[history_round_short_label]
R%d
---
[history_round_label]
R%d %ds
---
[history_session_label]
%02d:%02d rata %ds
---
[tutorial_title]
Tutorial
---
[tutorial_page_label]
%d/%d
---
[tutorial_method_title]
Metode
---
[tutorial_step1_title]
Langkah 1: Masuk & Keluar
---
[tutorial_step2_title]
Langkah 2: Buang & Tahan
---
[tutorial_step3_title]
Langkah 3: Tarik & Tahan
---
[tutorial_progressive_speed_title]
Kecepatan Progresif
---
[tutorial_step_intro]
Latihan pernapasan ini didasarkan pada Metode Wim Hof.
Dapat sangat kuat. Gunakan dengan hati-hati.
Latih sambil duduk atau berbaring.
Jangan gunakan saat mengemudi,
berdiri, atau di dalam air.
---
[tutorial_step_method]
Ikuti 4 langkah sederhana:
1. Bernapas secara ritmis.
2. Buang napas dan tahan.
3. Tarik napas dalam dan tahan.
4. Buang napas dan ulangi.
Gunakan ikon roda gigi %i untuk menyesuaikan ronde, nafas, kecepatan, dan jeda.
---
[tutorial_step_breathe]
Isi paru-paru Anda sepenuhnya, lalu biarkan napas keluar.
Gunakan slider ini untuk mengatur kecepatan lingkaran pernapasan.
Temukan ritme yang terasa alami bagi Anda.
---
[tutorial_step_progressive_speed]
Kecepatan progresif membuat ronde pertama lebih mudah dimulai.
Saat aktif, ronde pertama dimulai pada kecepatan 1 untuk 5 nafas pertama, lalu bertambah hingga kecepatan yang dipilih.
---
[tutorial_step_exhale_hold]
Setelah ronde pernapasan,
buang napas secara normal dan tahan.
Lepaskan saat tubuh Anda
meminta udara. Jangan dipaksa.
---
[tutorial_step_inhale_hold]
Tarik napas sepenuhnya dan tahan sekitar 15 detik.
Lalu buang napas dan mulai ronde berikutnya.
Seiring waktu, setiap ronde mungkin terasa lebih dalam.
---
[tutorial_skip_button]
LEWATI
---
[tutorial_back_button]
KEMBALI
---
[tutorial_next_button]
LANJUT
---
[tutorial_finish_button]
SELESAI
---
[share_sheet_title]
Ekspor Data Sesi
---
[export_metadata_header]
Ekspor Data Inner Breeze
---
[export_metadata_version]
Versi: %s
---
[export_metadata_date]
Tanggal Ekspor: %s
---
[export_metadata_count]
Jumlah Sesi: %d
---
[delete_history_title]
Hapus?
---
[delete_session_message]
Hapus sesi ini? Tidak dapat dibatalkan.
---
[delete_round_message]
Hapus ronde ini? Tidak dapat dibatalkan.
---
[delete_button]
Hapus
---
+10
View File
@@ -0,0 +1,10 @@
en|English
es|Español
cs|Čeština
de|Deutsch
fr|Français
id|Bahasa Indonesia
pt|Português
ja|日本語
ko|한국어
zh|中文
+370
View File
@@ -0,0 +1,370 @@
[app_title]
インナーブリーズ
---
[tab_history]
履歴
---
[tab_manual]
チュートリアル
---
[tab_settings]
設定
---
[play_button]
開始
---
[breath_button]
呼吸
---
[results_title]
結果
---
[home_button]
ホーム
---
[exit_session_title]
セッションを終了しますか?
---
[save_completed_rounds_message]
完了したラウンドを保存してから終了しますか?
---
[cancel_button]
キャンセル
---
[save_button]
保存
---
[save_results_button]
保存
---
[discard_button]
破棄
---
[all_progress_lost_message]
すべての進捗が失われます。
---
[exit_button]
終了
---
[round_times_title]
ラウンド時間
---
[results_rounds]
%d ラウンド
---
[results_best]
最速 %ds
---
[results_avg]
平均 %ds
---
[round_result_label]
ラウンド %d %ds
---
[starting_in]
開始まで %2d
---
[settings_title]
設定
---
[settings_tab_breathing]
呼吸
---
[settings_tab_session]
セッション
---
[settings_tab_sound]
サウンド
---
[settings_tab_appearance]
外観
---
[settings_tab_language]
言語
---
[settings_tab_data]
データ
---
[settings_tab_about]
情報
---
[settings_category_practice]
呼吸設定
---
[settings_category_practice_desc]
呼吸とセッションを調整します
---
[settings_category_app]
アプリ設定
---
[settings_category_app_desc]
外観と音声をカスタマイズします
---
[settings_category_about_data]
情報とデータ
---
[settings_category_about_data_desc]
情報の表示とデータ管理
---
[theme_label]
テーマ
---
[speed_label]
速度
---
Start speed
---
[play_in_background_label]
バックグラウンド再生
---
[max_rounds_label]
最大ラウンド数
---
[max_breaths_label]
最大呼吸回数
---
[pause_after_round_label]
各ラウンド後に一時停止
---
[advanced_session_controls_label]
詳細なセッション設定
---
[hold_display_label]
ホールド表示
---
[hold_display_stopwatch]
ストップウォッチ
---
[hold_display_circle]
円
---
[volume_label]
音量
---
[reset_to_defaults_label]
デフォルトに戻す
---
[fullscreen_label]
全画面
---
[language_label]
言語
---
[language_picker_title]
言語を選択
---
[next_button]
次へ
---
[coming_soon_label]
近日公開...
---
[data_management_label]
データ管理
---
[total_sessions_label]
総セッション数:%d
---
[data_size_label]
データサイズ:%s
---
[storage_label]
保存先:%s
---
[export_data_button]
データを書き出す
---
[delete_all_data_button]
すべてのデータを削除
---
[export_data_dialog_title]
データを書き出す
---
[export_failed]
書き出しに失敗しました
---
[exported_label]
書き出し済み
---
[import_data_button]
データをインポート
---
[import_data_dialog_title]
データをインポート
---
[import_failed]
インポートに失敗しました
---
[imported_sessions]
%dセッションをインポートしました
---
[import_invalid_file]
無効なエクスポートファイル
---
[import_cancelled]
Import cancelled
---
[export_cancelled]
Export cancelled
---
[no_data_to_export]
No data to export
---
[no_data_to_delete]
No data to delete
---
[delete_all_data_title]
Delete all data?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
---
[delete_cancelled]
Delete cancelled
---
[deleted_sessions]
Deleted %lld sessions
---
[version_label]
バージョン %s
---
[about_description]
Inner Breeze は、気持ちを落ち着かせて
リラックスするためのシンプルな
呼吸瞑想アプリです。
---
[toggle_off]
OFF
---
[toggle_on]
ON
---
[theme_light]
ライト
---
[theme_dark]
ダーク
---
[on_screen_keyboard_label]
オンスクリーンキーボード
---
[history_title]
履歴
---
[history_empty]
まだ保存されたセッションはありません。
セッションを完了するとここに表示されます。
---
[history_month_label]
%02d 月
---
[history_day_label]
%02d 日
---
[history_round_short_label]
R%d
---
[history_round_label]
R%d %ds
---
[history_session_label]
%02d:%02d 平均 %ds
---
[tutorial_title]
チュートリアル
---
[tutorial_page_label]
%d/%d
---
[tutorial_method_title]
方法
---
[tutorial_step1_title]
ステップ 1: 吸って吐く
---
[tutorial_step2_title]
ステップ 2: 吐いて止める
---
[tutorial_step3_title]
ステップ 3: 吸って止める
---
[tutorial_progressive_speed_title]
段階的速度
---
[tutorial_step_intro]
この呼吸法は Wim Hof Method を
ベースにしています。
強く感じることがあります。
注意して使ってください。
座るか横になって行ってください。
運転中、
立っているとき、水中では行わないでください。
---
[tutorial_step_method]
次の 4 つの手順に従います。
1. リズミカルに呼吸します。
2. 吐いて止めます。
3. 深く吸って止めます。
4. 吐いて繰り返します。
歯車アイコン %i でラウンド数、呼吸数、速度、一時停止を調整できます。
---
[tutorial_step_breathe]
肺をいっぱいに満たしてから、息を自然に吐き出します。
このスライダーで呼吸のテンポを設定します。
---
[tutorial_step_progressive_speed]
段階的速度は、最初のラウンドに入りやすくします。
---
[tutorial_step_exhale_hold]
呼吸ラウンドの後、
息を吐いて止めます。
吸う必要を感じるまで止めます。
---
[tutorial_step_inhale_hold]
深く吸って、約 15 秒止めます。
---
[tutorial_skip_button]
スキップ
---
[tutorial_back_button]
戻る
---
[tutorial_next_button]
次へ
---
[tutorial_finish_button]
完了
---
[share_sheet_title]
セッションデータを書き出す
---
[export_metadata_header]
Inner Breeze データ書き出し
---
[export_metadata_version]
バージョン: %s
---
[export_metadata_date]
書き出し日: %s
---
[export_metadata_count]
セッション数: %d
---
[delete_history_title]
削除しますか?
---
[delete_session_message]
このセッションを削除しますか?元に戻せません。
---
[delete_round_message]
このラウンドを削除しますか?元に戻せません。
---
[delete_button]
削除
+608
View File
@@ -0,0 +1,608 @@
[app_title]
인 브 브즈
---
[tab_history]
기록
---
[tab_manual]
튜토리얼
---
[tab_settings]
설정
---
[play_button]
시작
---
[breath_button]
숨쉼
---
[results_title]
결과
---
[home_button]
홈
---
[exit_session_title]
세션을 종료하시겠습니까?
---
[save_completed_rounds_message]
완료된 라운드를 저장한 후 종료하시겠습니까?
---
[cancel_button]
취소
---
[save_button]
저장
---
[save_results_button]
저장
---
[discard_button]
버리기
---
[all_progress_lost_message]
모든 진행 상황이 손실됩니다.
---
[exit_button]
종료
---
[round_times_title]
라운드 시간
---
[results_rounds]
%d 라운드
---
[results_best]
최고 %ds
---
[results_avg]
평균 %ds
---
[round_result_label]
%d 라운드 %ds
---
[starting_in]
%d초 후 시작
---
[settings_title]
설정
---
[settings_tab_breathing]
호흡
---
[settings_tab_session]
세션
---
[settings_tab_sound]
사운드
---
[settings_tab_appearance]
외관
---
[settings_tab_language]
언어
---
[settings_tab_data]
데이터
---
[settings_tab_about]
정보
---
[theme_label]
테마
---
[speed_label]
속도
---
Start speed
---
[play_in_background_label]
백그라운드 재생
---
[max_rounds_label]
최대 라운드
---
[max_breaths_label]
최대 호흡
---
[pause_after_round_label]
라운드 후 일시정지
---
[advanced_session_controls_label]
고급 세션 제어
---
[hold_display_label]
홀드 표시
---
[hold_display_stopwatch]
스톱워치
---
[hold_display_circle]
원
---
[volume_label]
음량
---
[reset_to_defaults_label]
기본값으로 재설정
---
[fullscreen_label]
전체화면
---
[language_label]
언어
---
[language_picker_title]
언어 선택
---
[next_button]
다음
---
[coming_soon_label]
출시 예정
---
[data_management_label]
데이터 관리
---
[total_sessions_label]
총 세션 수: %d
---
[data_size_label]
데이터 크기: %s
---
[storage_label]
저장소: %s
---
[export_data_button]
데이터 내보내기
---
[delete_all_data_button]
모든 데이터 삭제
---
[export_data_dialog_title]
데이터 내보내기
---
[export_failed]
내보내기 실패
---
[exported_label]
내보내기 완료
---
[import_data_button]
데이터 가져오기
---
[import_data_dialog_title]
데이터 가져오기
---
[import_failed]
가져오기 실패
---
[imported_sessions]
%d개 세션을 가져왔습니다
---
[import_invalid_file]
잘못된 내보내기 파일
---
[import_cancelled]
Import cancelled
---
[export_cancelled]
Export cancelled
---
[no_data_to_export]
No data to export
---
[no_data_to_delete]
No data to delete
---
[delete_all_data_title]
Delete all data?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
---
[delete_cancelled]
Delete cancelled
---
[deleted_sessions]
Deleted %lld sessions
---
[version_label]
버전 %s
---
[about_description]
인 브 브즈는 마음을 진정시키고
편안해질 수 있도록 돕돕이 호흡 명상 앱입니다.
사용에 주의하세요.
---
[toggle_off]
꺼짐
---
[toggle_on]
켜짐
---
[theme_light]
라이트
---
[theme_dark]
다크
---
[on_screen_keyboard_label]
온스크린 키보드
---
[history_title]
기록
---
[history_empty]
아직 저장된 세션이 없습니다.
세션을 완료하면 여기에 표시됩니다.
---
[history_month_label]
%02d월
---
[history_day_label]
%02d일
---
[history_round_short_label]
R%d
---
[history_round_label]
R%d %ds
---
[history_session_label]
%02d:%02d 평균 %ds
---
---
[tutorial_title]
튜토리얼
---
[tutorial_page_label]
%d/%d
---
[tutorial_method_title]
방법
---
[tutorial_step1_title]
1단계: 들이마시 내뱨기
---
[tutorial_step2_title]
2단계: 내뱨시 참기
---
[tutorial_step3_title]
3단계: 들이마시 참기
---
[tutorial_progressive_speed_title]
점진적 속도
---
[tutorial_step_intro]
이 호흡 방법은 윔 호프 메서드를 기반으로 합니다.
강력하게 느낄 수 있습니다.
주의해서 사용하세요.
앉거나 누워서 사용하세요.
운전 중이나 서 있는 곳에서는 사용하지 마세요.
---
[tutorial_step_method]
4단계를 따르세요:
1. 리듬하게 호흡합니다.
2. 내뱨시고 참습니다.
3. 깊게 들이마시고 참습니다.
4. 내뱨시고 반복합니다.
톱니바 아이콘 %i를 사용하여 라운드, 호흡, 속도 및 일시정지를 조정할 수 있습니다.
---
[tutorial_step_breathe]
폐를 완전히 채우고 자연스럽게 내뱨습니다.
이 컨트롤로 호흡 리듬의 템포를 설정합니다.
자연스러운 리듬을 찾으세요.
---
[tutorial_step_progressive_speed]
점진적 속도는 첫 라운드를 쉽게 시작할 수 있게 합니다.
활성화되면 첫 라운드는 속도 1에서 처음 5번 호흡을 하고 점차 선택한 속도까지 증가합니다.
---
[tutorial_step_exhale]
호흡 라운드 후,
자연스럽게 내뱨고 참습니다.
몸이 요청할 때까지 참으세요.
억지로 하지 마세요.
---
[tutorial_step_inhale_hold]
완전히 들이마시고 약 15초 동안 참습니다.
그런 다음 내뱨시고 다음 라운드를 시작합니다.
시간이 지남에 따라 각 라운드가 더 깊어질 수 있습니다.
---
[tutorial_skip_button]
건너뛰
---
[tutorial_back_button]
뒤로
---
[tutorial_next_button]
다음
---
[tutorial_finish_button]
완료
---
[share_sheet_title]
세션 데이터 내보내기
---
[export_metadata_header]
인 브 브즈 데이터 내보내기
---
[export_metadata_version]
버전: %s
---
[export_metadata_date]
내보내기 날짜: %s
---
[export_metadata_count]
세션 수: %d
---
[delete_history_title]
삭제하시겠습니까?
---
[delete_session_message]
이 세션을 삭제하시겠습니까? 되돌릴 수 없습니다.
---
[delete_round_message]
이 라운드를 삭제하시겠습니까? 되돌릴 수 없습니다.
---
[delete_button]
삭제
---
[settings_category_practice]
호흡 설정
---
[settings_category_practice_desc]
호흡과 세션 조정
---
[settings_category_app]
앱프 설정
---
[settings_category_app_desc]
외관과 사운드 커스터마이징
---
[settings_category_about_data]
정보 및 데이터
---
[settings_category_about_data_desc]
정보 표시 및 데이터 관리
---
[progressive_speed_label]
점진적 속도
---
[toggle_off]
꺼짐
---
[toggle_on]
켜짐
---
[round_times_title]
라운드 시간
---
[R%d]
%d 라운드
---
[C%d]
%d초
---
[round_result_label]
%d 라운드 %ds
---
[R%d %ds]
---
[session_rounds_label]
%d/%d
---
[play_in_background_label]
백그라운드 재생
---
[rounds_label]
라운드
---
[breaths_label]
호흡
---
[R%d %ds]
---
[R%d %ds]
---
[C%d %ds]
---
[C%d %ds]
---
[exit_session_title_title]
세션을 종료하시겠습니까?
---
[exit_session_title_message]
진행 중인 세션입니다.
진행 상태를 잃게 저장하고 종료하시겠습니까?
---
[exit_session_subtitle]
진행 상태
---
[continue_button]
계속
---
[confirm_button]
확인
---
[round_times_title]
라운드 시간
---
[R%d]
%d 라운드
---
[C%d]
%d초
---
[round_result_label]
%d 라운드 %ds
---
[R%d %ds]
---
[session_rounds_label]
%d/%d
---
[play_in_background_label]
백그라운드 재생
---
[rounds_label]
라운드
---
[breaths_label]
호흡
---
[round_button_label]
%d 라운드
---
[round_button_short_label]
R%d
---
[round_settings_label]
%d/%d
---
[round_short_label]
%d/%d
---
[breaths_button_label]
%d/%d
---
[breaths_short_label]
%d/%d
---
[C%d]
%d초
---
[C%d]
%d초
---
[C%d]
%d초
---
[history_edit_title]
편집
---
[history_edit_done]
완료
---
[history_edit_cancel]
취소
---
[history_delete_title]
기록 삭제
---
[history_delete_message]
이 기록을 삭제하시겠습니까?
---
[pause_button_label]
일시정지
---
[resume_button_label]
재개
---
[tutorial_step_breathe]
폐를 완전히 채우고 자연스럽게 내뱨세요.
이 컨트롤로 호흡 리듬의 템포를 설정합니다.
자연스러운 리듬을 찾으세요.
---
[tutorial_step_exhale]
호흡 라운드 후,
자연스럽게 내뱨시고 참습니다.
시체가 공기가 필요할 때까지 참으세요.
강제로 하지 마세요.
---
[tutorial_step_inhale_hold]
완전히 들이마시고 약 15초 동안 참습니다.
그 다음 내뱨시고 다음 라운드를 시작합니다.
시간이 지남에 따라 각 라운드가 더 깊어질 수 있습니다.
---
[tutorial_skip_button]
건너뛰
---
[tutorial_back_button]
뒤로
---
[tutorial_next_button]
다음
---
[tutorial_finish_button]
완료
---
[share_sheet_title]
세션 데이터 내보내기
---
[export_metadata_header]
인 브 브즈 데이터 내보내기
---
[export_metadata_version]
버전: %s
---
[export_metadata_date]
내보내기 날짜: %s
---
[export_metadata_count]
세션 수: %d
---
[delete_history_title]
기록 삭제
---
[delete_session_message]
이 기록을 삭제하시겠습니까? 되돌릴 수 없습니다.
---
[delete_round_message]
이 라운드를 삭제하시겠습니까? 되돌릴 수 없습니다.
---
[delete_button]
삭제
---
[settings_category_practice]
호흡 설정
---
[settings_category_practice_desc]
호흡과 세션 조정
---
[settings_category_app]
앱프 설정
---
[settings_category_app_desc]
외관과 사운드 커스터마이징
---
[settings_category_about_data]
정보 및 데이터
---
[settings_category_about_data_desc]
정보 표시 및 데이터 관리
---
[R%d %ds]
---
[R%d %ds]
---
[round_result_label]
%d 라운드 %ds
---
[R%d %ds]
---
---
[history_round_short_label]
R%d
---
[history_round_label]
R%d %ds
---
[history_session_label]
%02d:%02d 평균 %ds
---
+377
View File
@@ -0,0 +1,377 @@
[app_title]
Inner Breeze
---
[tab_history]
Histórico
---
[tab_manual]
Tutorial
---
[tab_settings]
Configurações
---
[play_button]
INICIAR
---
[breath_button]
RESPIRAR
---
[results_title]
RESULTADOS
---
[home_button]
INÍCIO
---
[exit_session_title]
Sair da sessão?
---
[save_completed_rounds_message]
Salvar rodadas concluídas antes de sair?
---
[cancel_button]
Cancelar
---
[save_button]
Salvar
---
[save_results_button]
Salvar
---
[discard_button]
Descartar
---
[all_progress_lost_message]
Todo o progresso será perdido.
---
[exit_button]
Sair
---
[round_times_title]
Tempos das rodadas
---
[results_rounds]
%d rodadas
---
[results_best]
melhor %ds
---
[results_avg]
média %ds
---
[round_result_label]
Rodada %d %ds
---
[starting_in]
COMEÇA EM %2d
---
[settings_title]
Configurações
---
[settings_tab_breathing]
Respiração
---
[settings_tab_session]
Sessão
---
[settings_tab_sound]
Som
---
[settings_tab_appearance]
Aparência
---
[settings_tab_language]
Idioma
---
[settings_tab_data]
Dados
---
[settings_tab_about]
Sobre
---
[theme_label]
Tema
---
[speed_label]
Velocidade
---
Start speed
---
[play_in_background_label]
Executar em segundo plano
---
[max_rounds_label]
Máx. de rodadas
---
[max_breaths_label]
Máx. de respirações
---
[pause_after_round_label]
Pausa após rodada
---
[advanced_session_controls_label]
Controles avançados da sessão
---
[hold_display_label]
Exibicao da retencao
---
[hold_display_stopwatch]
Cronometro
---
[hold_display_circle]
Circulo
---
[volume_label]
Volume
---
[reset_to_defaults_label]
Restaurar padrões
---
[fullscreen_label]
Tela cheia
---
[language_label]
Idioma
---
[language_picker_title]
Escolher idioma
---
[next_button]
Mais
---
[coming_soon_label]
Em breve...
---
[data_management_label]
Gerenciamento de dados
---
[total_sessions_label]
Sessões totais: %d
---
[data_size_label]
Tamanho dos dados: %s
---
[storage_label]
Armazenamento: %s
---
[export_data_button]
Exportar dados
---
[delete_all_data_button]
Excluir todos os dados
---
[export_data_dialog_title]
Exportar dados
---
[export_failed]
Falha ao exportar
---
[exported_label]
Exportado
---
[import_data_button]
Importar dados
---
[import_data_dialog_title]
Importar dados
---
[import_failed]
Falha ao importar
---
[imported_sessions]
%d sessões importadas
---
[import_invalid_file]
Arquivo de exportação inválido
---
[import_cancelled]
Importação cancelada
---
[export_cancelled]
Export cancelled
---
[no_data_to_export]
No data to export
---
[no_data_to_delete]
No data to delete
---
[delete_all_data_title]
Delete all data?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
---
[delete_cancelled]
Delete cancelled
---
[deleted_sessions]
Deleted %lld sessions
---
[version_label]
Versão %s
---
[about_description]
Inner Breeze é um app simples de
meditação respiratória para ajudar você a
relaxar e encontrar calma.
---
[toggle_off]
OFF
---
[toggle_on]
ON
---
[theme_light]
Claro
---
[theme_dark]
Escuro
---
[on_screen_keyboard_label]
Teclado na tela
---
[history_title]
Histórico
---
[history_empty]
Ainda não há sessões salvas.
Conclua uma sessão para adicionar dados.
---
[history_month_label]
Mês %02d
---
[history_day_label]
Dia %02d
---
[history_round_short_label]
R%d
---
[history_round_label]
R%d %ds
---
[history_session_label]
%02d:%02d média %ds
---
[tutorial_title]
Tutorial
---
[tutorial_page_label]
%d/%d
---
[tutorial_method_title]
Método
---
[tutorial_step1_title]
Passo 1: Inspirar e expirar
---
[tutorial_step2_title]
Passo 2: Expirar e segurar
---
[tutorial_step3_title]
Passo 3: Inspirar e segurar
---
[tutorial_progressive_speed_title]
Velocidade progressiva
---
[tutorial_step_intro]
Esta prática de respiração é baseada no Método Wim Hof.
Ela pode ser poderosa. Use com cuidado.
Pratique sentado ou deitado.
Nunca use enquanto dirige,
em pé ou na água.
---
[tutorial_step_method]
Basta seguir 4 passos:
1. Respire ritmicamente.
2. Expire e segure.
3. Inspire profundamente e segure.
4. Expire e repita.
Use o ícone de engrenagem %i para ajustar rodadas, respirações, velocidade e pausas.
---
[tutorial_step_breathe]
Encha totalmente os pulmões e deixe o ar sair.
Use este controle para definir o ritmo do círculo de respiração.
Encontre um ritmo que pareça natural para você.
---
[tutorial_step_progressive_speed]
A velocidade progressiva torna a primeira rodada mais fácil de começar.
Quando ativada, a primeira rodada começa na velocidade 1 nas primeiras 5 respirações e depois aumenta gradualmente até a velocidade escolhida.
---
[tutorial_step_exhale_hold]
Depois da rodada de respiração,
expire normalmente e segure.
Solte quando seu corpo pedir
ar. Não force.
---
[tutorial_step_inhale_hold]
Inspire totalmente e segure por cerca de 15 segundos.
Depois expire e comece a próxima rodada.
Com o tempo, cada rodada pode parecer mais profunda.
---
[tutorial_skip_button]
SKIP
---
[tutorial_back_button]
VOLTAR
---
[tutorial_next_button]
MAIS
---
[tutorial_finish_button]
CONCLUIR
---
[share_sheet_title]
Exportar dados da sessão
---
[export_metadata_header]
Exportação de dados do Inner Breeze
---
[export_metadata_version]
Versão: %s
---
[export_metadata_date]
Data de exportação: %s
---
[export_metadata_count]
Total de sessões: %d
---
[delete_history_title]
Excluir?
---
[delete_session_message]
Excluir esta sessão? Isso não pode ser desfeito.
---
[delete_round_message]
Excluir esta rodada? Isso não pode ser desfeito.
---
[delete_button]
Excluir
---
[settings_category_practice]
Configurações de Prática
---
[settings_category_practice_desc]
Configurar respiração e sessões
---
[settings_category_app]
Preferências do Aplicativo
---
[settings_category_app_desc]
Personalizar aparência e áudio
---
[settings_category_about_data]
Sobre e Dados
---
[settings_category_about_data_desc]
Ver informações e gerenciar dados
---
+366
View File
@@ -0,0 +1,366 @@
[app_title]
内息清风
---
[tab_history]
历史
---
[tab_manual]
教程
---
[tab_settings]
设置
---
[play_button]
开始
---
[breath_button]
呼吸
---
[results_title]
结果
---
[home_button]
主页
---
[exit_session_title]
退出本次练习?
---
[save_completed_rounds_message]
退出前保存已完成的轮次?
---
[cancel_button]
取消
---
[save_button]
保存
---
[save_results_button]
保存
---
[discard_button]
丢弃
---
[all_progress_lost_message]
所有进度都会丢失。
---
[exit_button]
退出
---
[round_times_title]
轮次时间
---
[results_rounds]
%d 轮
---
[results_best]
最佳 %ds
---
[results_avg]
平均 %ds
---
[round_result_label]
第%d轮 %ds
---
[starting_in]
即将开始 %2d
---
[settings_title]
设置
---
[settings_tab_breathing]
呼吸
---
[settings_tab_session]
练习
---
[settings_tab_sound]
音效
---
[settings_tab_appearance]
外观
---
[settings_tab_language]
语言
---
[settings_tab_data]
数据
---
[settings_tab_about]
关于
---
[settings_category_practice]
练习设置
---
[settings_category_practice_desc]
配置呼吸和练习
---
[settings_category_app]
应用偏好
---
[settings_category_app_desc]
自定义外观和音频
---
[settings_category_about_data]
关于与数据
---
[settings_category_about_data_desc]
查看信息并管理数据
---
[theme_label]
主题
---
[speed_label]
速度
---
Start speed
---
[play_in_background_label]
后台播放
---
[max_rounds_label]
最大轮次
---
[max_breaths_label]
最大呼吸次数
---
[pause_after_round_label]
每轮后暂停
---
[advanced_session_controls_label]
高级练习控制
---
[hold_display_label]
屏息显示
---
[hold_display_stopwatch]
秒表
---
[hold_display_circle]
圆圈
---
[volume_label]
音量
---
[reset_to_defaults_label]
恢复默认
---
[fullscreen_label]
全屏
---
[language_label]
语言
---
[language_picker_title]
选择语言
---
[next_button]
下一步
---
[coming_soon_label]
即将推出...
---
[data_management_label]
数据管理
---
[total_sessions_label]
总练习次数:%d
---
[data_size_label]
数据大小:%s
---
[storage_label]
存储:%s
---
[export_data_button]
导出数据
---
[delete_all_data_button]
删除全部数据
---
[export_data_dialog_title]
导出数据
---
[export_failed]
导出失败
---
[exported_label]
已导出
---
[import_data_button]
导入数据
---
[import_data_dialog_title]
导入数据
---
[import_failed]
导入失败
---
[imported_sessions]
已导入 %d 个会话
---
[import_invalid_file]
无效的导出文件
---
[import_cancelled]
Import cancelled
---
[export_cancelled]
Export cancelled
---
[no_data_to_export]
No data to export
---
[no_data_to_delete]
No data to delete
---
[delete_all_data_title]
Delete all data?
---
[delete_all_data_message]
This will permanently delete all saved sessions.
---
[delete_cancelled]
Delete cancelled
---
[deleted_sessions]
Deleted %lld sessions
---
[version_label]
版本 %s
---
[about_description]
Inner Breeze 是一款简单的呼吸冥想应用,帮助你放松并平静下来。
---
[toggle_off]
关
---
[toggle_on]
开
---
[theme_light]
浅色
---
[theme_dark]
深色
---
[on_screen_keyboard_label]
屏幕键盘
---
[history_title]
历史
---
[history_empty]
还没有保存的练习。
完成一次练习后会添加到这里。
---
[history_month_label]
%02d 月
---
[history_day_label]
第 %02d 天
---
[history_round_short_label]
第%d轮
---
[history_round_label]
第%d轮 %ds
---
[history_session_label]
%02d:%02d 平均 %ds
---
[tutorial_title]
教程
---
[tutorial_page_label]
%d/%d
---
[tutorial_method_title]
方法
---
[tutorial_step1_title]
第 1 步:吸气与呼气
---
[tutorial_step2_title]
第 2 步:呼气与屏息
---
[tutorial_step3_title]
第 3 步:吸气与屏息
---
[tutorial_progressive_speed_title]
递进速度
---
[tutorial_step_intro]
这项呼吸练习基于 Wim Hof Method。
它可能很强烈,请谨慎使用。
请坐着或躺下练习。
切勿在驾驶、
站立或水中时进行。
---
[tutorial_step_method]
按照 4 个步骤进行:
1. 有节奏地呼吸。
2. 呼气并屏息。
3. 深吸气并屏息。
4. 呼气并重复。
使用齿轮图标 %i 调整轮次、呼吸次数、速度和暂停时间。
---
[tutorial_step_breathe]
充分充满肺部,然后让呼吸自然流出。
使用这个滑块设置呼吸圆的节奏。
---
[tutorial_step_progressive_speed]
递进速度会让第一轮更容易进入。
---
[tutorial_step_exhale_hold]
完成一轮呼吸后,
呼气并屏住。
屏息到需要吸气为止。
---
[tutorial_step_inhale_hold]
充分吸气并屏住约 15 秒。
---
[tutorial_skip_button]
跳过
---
[tutorial_back_button]
返回
---
[tutorial_next_button]
下一步
---
[tutorial_finish_button]
完成
---
[share_sheet_title]
导出练习数据
---
[export_metadata_header]
Inner Breeze 数据导出
---
[export_metadata_version]
版本:%s
---
[export_metadata_date]
导出日期:%s
---
[export_metadata_count]
练习次数:%d
---
[delete_history_title]
删除?
---
[delete_session_message]
删除这次练习?此操作无法撤销。
---
[delete_round_message]
删除这一轮?此操作无法撤销。
---
[delete_button]
删除
+153
View File
@@ -0,0 +1,153 @@
android-init-signing:
@echo "Generating release keystore..."
@mkdir -p ~/.android
keytool -genkeypair -v -storetype PKCS12 \
-keystore ~/.android/inbe-release.keystore \
-alias inbe-key \
-keyalg RSA \
-keysize 4096 \
-validity 10000
@echo ""
@echo "Keystore created at ~/.android/inbe-release.keystore"
@echo ""
@echo "Add this line to $(ANDROID_DIR)/local.properties:"
@echo " keystore.path=$$HOME/.android/inbe-release.keystore"
android-copy-assets:
$(MAKE) $(FONT_FILES)
rm -rf $(ANDROID_DIR)/app/src/main/assets
mkdir -p $(ANDROID_DIR)/app/src/main/assets
cp $(CONFIG_FILES) $(ANDROID_DIR)/app/src/main/assets/
mkdir -p $(ANDROID_DIR)/app/src/main/assets/locales
cp $(LOCALE_FILES) $(ANDROID_DIR)/app/src/main/assets/locales/
mkdir -p $(ANDROID_DIR)/app/src/main/assets/themes
cp $(THEME_FILES) $(ANDROID_DIR)/app/src/main/assets/themes/
mkdir -p $(ANDROID_DIR)/app/src/main/assets/assets
cp $(IMAGE_FILES) $(ANDROID_DIR)/app/src/main/assets/assets/
mkdir -p $(ANDROID_DIR)/app/src/main/assets/assets/fonts
cp $(FONT_FILES) $(ANDROID_DIR)/app/src/main/assets/assets/fonts/
mkdir -p $(ANDROID_DIR)/app/src/main/assets/assets/sounds
cp $(SOUND_FILES) $(ANDROID_DIR)/app/src/main/assets/assets/sounds/
android-debug:
$(MAKE) android-copy-assets
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) assembleDebug
$(MAKE) android-copy-debug-apks
android-release:
$(MAKE) android-copy-assets
@if [ -n "$(PASSWORD)" ]; then \
PASSWORD_VALUE="$(PASSWORD)"; \
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) assembleRelease -Pkeystore.password="$$PASSWORD_VALUE" || exit $$?; \
$(MAKE) android-copy-release-apks; \
elif [ -t 0 ]; then \
printf "Keystore password: "; \
stty -echo; \
read PASSWORD_VALUE; \
stty echo; \
printf "\n"; \
if [ -n "$$PASSWORD_VALUE" ]; then \
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) assembleRelease -Pkeystore.password="$$PASSWORD_VALUE" || exit $$?; \
$(MAKE) android-copy-release-apks; \
else \
echo "Keystore password is required"; \
exit 1; \
fi; \
else \
echo "Keystore password is required. Run from a terminal or use PASSWORD=your-password."; \
exit 1; \
fi
android-bundle:
$(MAKE) android-copy-assets
@if [ -n "$(PASSWORD)" ]; then \
PASSWORD_VALUE="$(PASSWORD)"; \
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) bundleRelease -Pkeystore.password="$$PASSWORD_VALUE" || exit $$?; \
$(MAKE) android-copy-bundle; \
elif [ -t 0 ]; then \
printf "Keystore password: "; \
stty -echo; \
read PASSWORD_VALUE; \
stty echo; \
printf "\n"; \
if [ -n "$$PASSWORD_VALUE" ]; then \
unset ANDROID_HOME; $(GRADLE) -p $(ANDROID_DIR) bundleRelease -Pkeystore.password="$$PASSWORD_VALUE" || exit $$?; \
$(MAKE) android-copy-bundle; \
else \
echo "Keystore password is required"; \
exit 1; \
fi; \
else \
echo "Keystore password is required. Run from a terminal or use PASSWORD=your-password."; \
exit 1; \
fi
android-copy-bundle: | $(ANDROID_BUILD_DIR)
@VERSION=$$(grep -m1 '^## \[' CHANGELOG.md | sed 's/^## \[\([^]]*\)\].*/\1/'); \
BUNDLE=$$(find $(ANDROID_DIR)/app/build/outputs/bundle/release -name "*.aab" 2>/dev/null | head -1); \
if [ -n "$$BUNDLE" ] && [ -f "$$BUNDLE" ]; then \
VERSIONED_BUNDLE="$(ANDROID_BUILD_DIR)/inbe-$$VERSION.aab"; \
echo "Copying and renaming $$BUNDLE to $$VERSIONED_BUNDLE"; \
cp "$$BUNDLE" "$$VERSIONED_BUNDLE"; \
ln -sf "$$(basename "$$VERSIONED_BUNDLE")" "$(ANDROID_BUILD_DIR)/inbe-latest.aab"; \
echo "Created symlink: inbe-latest.aab -> $$(basename "$$VERSIONED_BUNDLE")"; \
else \
echo "Bundle not found in $(ANDROID_DIR)/app/build/outputs/bundle/release/"; \
exit 1; \
fi
android-copy-apks: android-copy-debug-apks android-copy-release-apks
android-copy-debug-apks: | $(ANDROID_BUILD_DIR)
@for apk in $(ANDROID_DIR)/app/build/outputs/apk/debug/*.apk; do \
if [ -f "$$apk" ]; then \
echo "Copying $$apk"; \
cp "$$apk" "$(ANDROID_BUILD_DIR)/$$(basename "$$apk")"; \
fi; \
done
android-copy-release-apks: | $(ANDROID_BUILD_DIR)
@VERSION=$$(grep INBE_VERSION_STRING src/version.h | grep -o '"[^"]*"' | tr -d '"'); \
UNIVERSAL_APK=$$(find $(ANDROID_DIR)/app/build/outputs/apk/release -name "app-universal-release.apk" 2>/dev/null); \
if [ -n "$$UNIVERSAL_APK" ] && [ -f "$$UNIVERSAL_APK" ]; then \
VERSIONED_APK="$(ANDROID_BUILD_DIR)/inbe-$$VERSION.apk"; \
echo "Copying and renaming $$UNIVERSAL_APK to $$VERSIONED_APK"; \
cp "$$UNIVERSAL_APK" "$$VERSIONED_APK"; \
ln -sf "$$(basename "$$VERSIONED_APK")" "$(ANDROID_BUILD_DIR)/inbe-latest.apk"; \
echo "Created symlink: inbe-latest.apk -> $$(basename "$$VERSIONED_APK")"; \
else \
for apk in $(ANDROID_DIR)/app/build/outputs/apk/release/*.apk; do \
if [ -f "$$apk" ]; then \
echo "Copying $$apk"; \
cp "$$apk" "$(ANDROID_BUILD_DIR)/$$(basename "$$apk")"; \
fi; \
done; \
fi
android-install: android-debug
@ABI=$$(adb shell getprop ro.product.cpu.abi | tr -d '\r'); \
echo "Device ABI: $$ABI"; \
APK=$(ANDROID_DIR)/app/build/outputs/apk/debug/app-$${ABI}-debug.apk; \
if [ ! -f "$$APK" ]; then \
echo "APK not found for $$ABI, trying universal..."; \
APK=$(ANDROID_DIR)/app/build/outputs/apk/debug/app-debug.apk; \
fi; \
echo "Installing: $$APK"; \
adb install -r "$$APK"
adb shell am start -n $(ANDROID_APP_ID)/$(ANDROID_ACTIVITY)
android-install-release: android-release
@ABI=$$(adb shell getprop ro.product.cpu.abi | tr -d '\r'); \
echo "Device ABI: $$ABI"; \
APK=$(ANDROID_DIR)/app/build/outputs/apk/release/app-$${ABI}-release.apk; \
if [ ! -f "$$APK" ]; then \
echo "APK not found for $$ABI, trying universal..."; \
APK=$(ANDROID_DIR)/app/build/outputs/apk/release/app-release.apk; \
fi; \
echo "Installing: $$APK"; \
adb install -r "$$APK"
adb shell am start -n $(ANDROID_APP_ID)/$(ANDROID_ACTIVITY)
android-clean:
$(GRADLE) -p $(ANDROID_DIR) clean
rm -rf $(ANDROID_BUILD_DIR)
+18
View File
@@ -0,0 +1,18 @@
clean:
rm -rf build
$(MAKE) -C $(INBE_DIR) clean
clean-linux:
rm -rf $(LINUX_BUILD_DIR)
$(MAKE) -C $(INBE_DIR) clean
clean-windows:
rm -rf $(WINDOWS_BUILD_DIR)
$(MAKE) -C $(INBE_DIR) clean
clean-web:
rm -rf $(WEB_BUILD_DIR)
clean-raylib:
$(MAKE) -C $(RAYLIB_DIR) clean
rm -rf vendor/raylib/build
+114
View File
@@ -0,0 +1,114 @@
CC = gcc
WINDRES = windres
SRC = src/main.c src/app.c src/app_session.c src/locale.c src/theme_meta.c src/theme.c src/data.c src/miniz.c src/android/android_share.c src/tabs/history_tab.c src/tabs/language_tab.c src/tabs/manual_tab.c src/tabs/settings_tab.c
INBE_DIR = libinbe
INBE_A = $(INBE_DIR)/libinbe.a
RAYLIB_DIR = vendor/raylib/src
RAYLIB_BUILD_DIR = vendor/raylib/build/sdl
RAYLIB_A = $(RAYLIB_BUILD_DIR)/libraylib.a
RAYLIB_SOURCES = $(wildcard $(RAYLIB_DIR)/*.c) $(wildcard $(RAYLIB_DIR)/*.h)
FLINT_DIR = vendor/flint
FLINT_SRCS = $(wildcard $(FLINT_DIR)/src/*.c)
FLINT_INCLUDE = -I$(FLINT_DIR)/include
ANDROID_DIR = droid
GRADLE = gradle
ANDROID_APP_ID = xyz.waozi.inbe
ANDROID_ACTIVITY = android.app.NativeActivity
UNAME_S := $(shell uname -s)
UNAME_M := $(shell uname -m)
ifeq ($(UNAME_S),Linux)
PLATFORM = linux
else ifeq ($(UNAME_S),Darwin)
PLATFORM = macos
else
PLATFORM = unknown
endif
ifeq ($(UNAME_M),x86_64)
ARCH = x86_64
else ifeq ($(UNAME_M),aarch64)
ARCH = aarch64
else ifeq ($(UNAME_M),armv7l)
ARCH = arm
else
ARCH = $(UNAME_M)
endif
BUILD_DIR = build
LINUX_BUILD_DIR = $(BUILD_DIR)/linux
WINDOWS_BUILD_DIR = $(BUILD_DIR)/windows
ANDROID_BUILD_DIR = $(BUILD_DIR)/android
WEB_BUILD_DIR = $(BUILD_DIR)/web
LINUX_ARCHES = x86_64 aarch64
ANDROID_DIST ?= release
INSTALL_DIR = $(HOME)/.local/share/inbe
BIN_DIR = $(HOME)/bin
TARBALL = $(LINUX_BUILD_DIR)/inbe-linux.tar.gz
CONFIG_FILES = inbe.ini theme.ini
LOCALE_FILES = $(wildcard locales/*.txt)
THEME_FILES = $(wildcard $(FLINT_DIR)/themes/*.ini)
IMAGE_FILES = assets/angel.jpg assets/begin.jpg
SOUND_FILES = assets/sounds/breath-in.ogg assets/sounds/breath-out.ogg assets/sounds/bell.ogg
FONT_OUTPUTS = assets/fonts/locales.png assets/fonts/locales.dat
FONT_FILES = $(FONT_OUTPUTS)
FONT_TOOL = vendor/otfchop/otfchop
FONT_SOURCE = vendor/otfchop/unifont-17.0.04.otf
BUILD_MAKEFILES = Makefile mk/common.mk mk/native.mk mk/windows.mk mk/web.mk mk/android.mk mk/dist.mk mk/clean.mk
assets/fonts:
mkdir -p $@
$(FONT_OUTPUTS): $(LOCALE_FILES) $(FONT_TOOL) | assets/fonts
$(FONT_TOOL) $(FONT_SOURCE) $(LOCALE_FILES) assets/fonts/locales
$(FONT_TOOL): vendor/otfchop/otfchop.c vendor/otfchop/stb_truetype.h vendor/otfchop/stb_image_write.h
$(MAKE) -C vendor/otfchop otfchop
INBE_RAYLIB_CONFIG = $(filter-out -DSUPPORT_MODULE_RAUDIO=0 -DSUPPORT_FILEFORMAT_PNG=0 -DSUPPORT_FILEFORMAT_JPG=0 -DSUPPORT_FILEFORMAT_OGG=0,$(RAY_RAYLIB_CONFIG)) -DSUPPORT_MODULE_RAUDIO=1 -DSUPPORT_FILEFORMAT_JPG=1 -DSUPPORT_FILEFORMAT_OGG=1
CFLAGS = -Wall -Wextra -std=c99 -Os -D_DEFAULT_SOURCE -D_GNU_SOURCE -ffunction-sections -fdata-sections -DSUPPORT_FILEFORMAT_JPG=1 -DMINIZ_NO_ZLIB_COMPATIBLE_NAMES
LDFLAGS = -Wl,--gc-sections -s
.NOTPARALLEL:
ifeq ($(strip $(RAY_CFLAGS)),)
$(error RAY_CFLAGS is not set. Enter the ray flake shell with 'nix develop')
endif
ifeq ($(strip $(RAY_LDLIBS)),)
$(error RAY_LDLIBS is not set. Enter the ray flake shell with 'nix develop')
endif
ifeq ($(strip $(RAY_SDL_LDLIBS)),)
$(error RAY_SDL_LDLIBS is not set. Enter the ray flake shell with 'nix develop')
endif
ifeq ($(strip $(RAY_SDL_INCLUDE_DIR)),)
$(error RAY_SDL_INCLUDE_DIR is not set. Enter the ray flake shell with 'nix develop')
endif
ifeq ($(strip $(RAY_RAYLIB_CONFIG)),)
$(error RAY_RAYLIB_CONFIG is not set. Enter the ray flake shell with 'nix develop')
endif
build:
mkdir -p $(BUILD_DIR)
$(LINUX_BUILD_DIR):
mkdir -p $@
$(WINDOWS_BUILD_DIR):
mkdir -p $@
$(ANDROID_BUILD_DIR):
mkdir -p $@
$(WEB_BUILD_DIR):
mkdir -p $@
$(RAYLIB_BUILD_DIR): build
mkdir -p $@
+135
View File
@@ -0,0 +1,135 @@
dist:
@# Get password once for both Android builds
@if [ -n "$(PASSWORD)" ]; then \
PASSWORD_VALUE="$(PASSWORD)"; \
elif [ -t 0 ]; then \
printf "Keystore password: "; \
stty -echo; \
read PASSWORD_VALUE; \
stty echo; \
printf "\n"; \
else \
echo "Keystore password is required. Run from a terminal or use PASSWORD=your-password."; \
exit 1; \
fi; \
if [ -z "$$PASSWORD_VALUE" ]; then \
echo "Keystore password is required"; \
exit 1; \
fi; \
echo "Building Android release APK (validating password)..."; \
$(MAKE) android-release PASSWORD="$$PASSWORD_VALUE" || exit $$?; \
echo "Building Android bundle..."; \
$(MAKE) android-bundle PASSWORD="$$PASSWORD_VALUE" || exit $$?; \
echo "✓ Android builds complete, proceeding with desktop builds..."; \
$(MAKE) linux || exit $$?; \
$(MAKE) windows || exit $$?; \
$(MAKE) web || exit $$?; \
$(MAKE) dist-linux || exit $$?; \
$(MAKE) dist-windows || exit $$?
dist-linux: linux
@echo "Creating Linux tar.gz package with all Linux arch binaries..."
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux
@for bin in $(LINUX_BUILD_DIR)/inbe-linux-*; do \
if [ -f "$$bin" ] && [ -x "$$bin" ]; then \
echo "Adding $$bin"; \
cp "$$bin" "$(LINUX_BUILD_DIR)/dist/inbe-linux/$$(basename "$$bin")"; \
fi; \
done
@if [ -z "$$(find $(LINUX_BUILD_DIR)/dist/inbe-linux -type f 2>/dev/null)" ]; then \
echo "No Linux binaries found in $(LINUX_BUILD_DIR)"; \
exit 1; \
fi
@cp $(CONFIG_FILES) $(LINUX_BUILD_DIR)/dist/inbe-linux/
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/locales
@cp $(LOCALE_FILES) $(LINUX_BUILD_DIR)/dist/inbe-linux/locales/
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/themes
@cp $(THEME_FILES) $(LINUX_BUILD_DIR)/dist/inbe-linux/themes/
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/assets
@cp $(IMAGE_FILES) $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/fonts
@cp $(FONT_FILES) $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/fonts/
@mkdir -p $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/sounds
@cp $(SOUND_FILES) $(LINUX_BUILD_DIR)/dist/inbe-linux/assets/sounds/
@cd $(LINUX_BUILD_DIR)/dist && tar -czf ../inbe-linux.tar.gz inbe-linux/
@rm -rf $(LINUX_BUILD_DIR)/dist
@echo "Created $(LINUX_BUILD_DIR)/inbe-linux.tar.gz"
install: dist-linux
@echo "Installing inbe to $(INSTALL_DIR)..."
@mkdir -p $(INSTALL_DIR)
@mkdir -p $(BIN_DIR)
@tar -xzf $(TARBALL) -C $(INSTALL_DIR)
@ARCH=$$(uname -m); \
if [ "$$ARCH" != "x86_64" ] && [ "$$ARCH" != "aarch64" ]; then \
echo "Warning: Unsupported architecture $$ARCH, defaulting to x86_64"; \
ARCH="x86_64"; \
fi; \
BINARY_PATH="$(INSTALL_DIR)/inbe-linux/inbe-linux-$$ARCH"; \
if [ ! -f "$$BINARY_PATH" ]; then \
echo "Error: Binary not found: $$BINARY_PATH"; \
echo "Available binaries:"; \
ls $(INSTALL_DIR)/inbe-linux/inbe-linux-* 2>/dev/null || echo " None"; \
exit 1; \
fi; \
if [ -L $(BIN_DIR)/inbe ]; then \
echo "Removing existing symlink: $(BIN_DIR)/inbe"; \
rm $(BIN_DIR)/inbe; \
elif [ -e $(BIN_DIR)/inbe ]; then \
echo "Error: $(BIN_DIR)/inbe exists and is not a symlink"; \
echo "Please remove it manually and try again"; \
exit 1; \
fi; \
ln -s "$$BINARY_PATH" $(BIN_DIR)/inbe && \
echo "Created symlink: $(BIN_DIR)/inbe -> $$BINARY_PATH" && \
echo "" && \
echo "Installation complete!" && \
echo " Binary: $(BIN_DIR)/inbe" && \
echo " Data: $(INSTALL_DIR)/inbe-linux/" && \
echo "" && \
echo "Run 'inbe' to start the application"
uninstall:
@echo "Uninstalling inbe..."
@if [ -L $(BIN_DIR)/inbe ]; then \
echo "Removing symlink: $(BIN_DIR)/inbe"; \
rm $(BIN_DIR)/inbe; \
elif [ -e $(BIN_DIR)/inbe ]; then \
echo "Warning: $(BIN_DIR)/inbe exists but is not a symlink"; \
echo "Skipping symlink removal"; \
fi
@if [ -d $(INSTALL_DIR) ]; then \
echo "Removing directory: $(INSTALL_DIR)"; \
rm -rf $(INSTALL_DIR); \
else \
echo "Install directory not found: $(INSTALL_DIR)"; \
fi
@echo "Uninstall complete"
dist-windows:
@echo "Creating Windows zip package with all Windows arch binaries..."
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows
@for bin in $(WINDOWS_BUILD_DIR)/inbe-windows-*.exe; do \
if [ -f "$$bin" ]; then \
echo "Adding $$bin"; \
cp "$$bin" "$(WINDOWS_BUILD_DIR)/dist/inbe-windows/$$(basename "$$bin")"; \
fi; \
done
@if [ -z "$$(find $(WINDOWS_BUILD_DIR)/dist/inbe-windows -type f 2>/dev/null)" ]; then \
echo "No Windows binaries found in $(WINDOWS_BUILD_DIR)"; \
exit 1; \
fi
@cp $(CONFIG_FILES) $(WINDOWS_BUILD_DIR)/dist/inbe-windows/
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/locales
@cp $(LOCALE_FILES) $(WINDOWS_BUILD_DIR)/dist/inbe-windows/locales/
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/themes
@cp $(THEME_FILES) $(WINDOWS_BUILD_DIR)/dist/inbe-windows/themes/
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets
@cp $(IMAGE_FILES) $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/fonts
@cp $(FONT_FILES) $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/fonts/
@mkdir -p $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/sounds
@cp $(SOUND_FILES) $(WINDOWS_BUILD_DIR)/dist/inbe-windows/assets/sounds/
@cd $(WINDOWS_BUILD_DIR)/dist && zip -r ../inbe-windows.zip inbe-windows/
@rm -rf $(WINDOWS_BUILD_DIR)/dist
@echo "Created $(WINDOWS_BUILD_DIR)/inbe-windows.zip"
+107
View File
@@ -0,0 +1,107 @@
BINARY_NAME = inbe-$(PLATFORM)-$(ARCH)
TARGET = $(LINUX_BUILD_DIR)/$(BINARY_NAME)
LINUX_INBE_A = $(LINUX_BUILD_DIR)/libinbe.a
all: native
native: $(TARGET)
$(RAYLIB_A): $(RAYLIB_SOURCES) | $(RAYLIB_BUILD_DIR)
$(MAKE) -j1 -C $(RAYLIB_DIR) \
PLATFORM=PLATFORM_DESKTOP_SDL \
GRAPHICS=GRAPHICS_API_OPENGL_ES2 \
RAYLIB_LIBTYPE=STATIC \
RAYLIB_RELEASE_PATH=../build/sdl \
RAYLIB_MODULE_AUDIO=TRUE \
RAYLIB_MODULE_MODELS=FALSE \
SDL_INCLUDE_PATH="$(RAY_SDL_INCLUDE_DIR)" \
SDL_LIBRARIES="$(RAY_SDL_LDLIBS)" \
CUSTOM_CFLAGS="-DUSING_SDL2_PROJECT $(RAY_CFLAGS) $(INBE_RAYLIB_CONFIG) -Os -ffunction-sections -fdata-sections"
$(LINUX_INBE_A): FORCE | $(LINUX_BUILD_DIR)
$(MAKE) -C $(INBE_DIR) clean
$(MAKE) -C $(INBE_DIR) CC=$(CC) AR=ar
cp $(INBE_A) $@
$(TARGET): $(SRC) $(FLINT_SRCS) $(FONT_FILES) theme.ini inbe.ini $(RAYLIB_A) $(LINUX_INBE_A) | $(LINUX_BUILD_DIR)
$(CC) $(CFLAGS) \
-I$(RAYLIB_DIR) \
-I$(INBE_DIR) \
$(FLINT_INCLUDE) \
-Isrc -Isrc/android \
$(RAY_CFLAGS) \
-DSUPPORT_MODULE_RAUDIO=1 \
-DSUPPORT_FILEFORMAT_OGG=1 \
-o $@ \
$(SRC) \
$(FLINT_SRCS) \
$(LINUX_INBE_A) \
$(RAYLIB_A) \
$(RAY_LDLIBS) \
-lm -lpthread -ldl -lrt \
$(LDFLAGS)
run: $(TARGET)
./$(TARGET)
linux: $(LINUX_ARCHES:%=linux-%)
linux-x86_64: | $(LINUX_BUILD_DIR)
$(MAKE) build-linux-arch \
ARCH_NAME=x86_64 \
LINUX_CC="$(CC)" \
LINUX_AR=ar \
LINUX_RAY_CFLAGS="$(RAY_CFLAGS)" \
LINUX_RAY_LDLIBS="$(RAY_LDLIBS)" \
LINUX_RAY_SDL_LDLIBS="$(RAY_SDL_LDLIBS)" \
LINUX_RAY_SDL_INCLUDE_DIR="$(RAY_SDL_INCLUDE_DIR)"
linux-aarch64: | $(LINUX_BUILD_DIR)
@if [ -z "$(AARCH64_CC)" ] || [ -z "$(AARCH64_AR)" ] || [ -z "$(AARCH64_RAY_CFLAGS)" ] || [ -z "$(AARCH64_RAY_LDLIBS)" ] || [ -z "$(AARCH64_RAY_SDL_LDLIBS)" ] || [ -z "$(AARCH64_RAY_SDL_INCLUDE_DIR)" ]; then \
echo "AARCH64 cross-build variables are missing. Enter the flake shell with 'nix develop'."; \
exit 1; \
fi
$(MAKE) build-linux-arch \
ARCH_NAME=aarch64 \
LINUX_CC="$(AARCH64_CC)" \
LINUX_AR="$(AARCH64_AR)" \
LINUX_RAY_CFLAGS="$(AARCH64_RAY_CFLAGS)" \
LINUX_RAY_LDLIBS="$(AARCH64_RAY_LDLIBS)" \
LINUX_RAY_SDL_LDLIBS="$(AARCH64_RAY_SDL_LDLIBS)" \
LINUX_RAY_SDL_INCLUDE_DIR="$(AARCH64_RAY_SDL_INCLUDE_DIR)"
build-linux-arch:
@mkdir -p $(LINUX_BUILD_DIR)/obj-$(ARCH_NAME) vendor/raylib/build/sdl-$(ARCH_NAME)
$(MAKE) $(FONT_FILES)
$(MAKE) -C $(RAYLIB_DIR) clean
$(MAKE) -j1 -C $(RAYLIB_DIR) \
CC="$(LINUX_CC)" \
AR="$(LINUX_AR)" \
PLATFORM=PLATFORM_DESKTOP_SDL \
GRAPHICS=GRAPHICS_API_OPENGL_ES2 \
RAYLIB_LIBTYPE=STATIC \
RAYLIB_RELEASE_PATH=../build/sdl-$(ARCH_NAME) \
RAYLIB_MODULE_AUDIO=TRUE \
RAYLIB_MODULE_MODELS=FALSE \
SDL_INCLUDE_PATH="$(LINUX_RAY_SDL_INCLUDE_DIR)" \
SDL_LIBRARIES="$(LINUX_RAY_SDL_LDLIBS)" \
CUSTOM_CFLAGS="-DUSING_SDL2_PROJECT $(LINUX_RAY_CFLAGS) $(INBE_RAYLIB_CONFIG) -Os -ffunction-sections -fdata-sections"
$(MAKE) -C $(RAYLIB_DIR) clean
$(LINUX_CC) $(CFLAGS) -I$(INBE_DIR) -c $(INBE_DIR)/inbe.c -o $(LINUX_BUILD_DIR)/obj-$(ARCH_NAME)/inbe.o
$(LINUX_AR) rcs $(LINUX_BUILD_DIR)/obj-$(ARCH_NAME)/libinbe.a $(LINUX_BUILD_DIR)/obj-$(ARCH_NAME)/inbe.o
$(LINUX_CC) $(CFLAGS) \
-I$(RAYLIB_DIR) \
-I$(INBE_DIR) \
$(FLINT_INCLUDE) \
-Isrc -Isrc/android \
$(LINUX_RAY_CFLAGS) \
-DSUPPORT_MODULE_RAUDIO=1 \
-DSUPPORT_FILEFORMAT_OGG=1 \
-o $(LINUX_BUILD_DIR)/inbe-linux-$(ARCH_NAME) \
$(SRC) \
$(FLINT_SRCS) \
$(LINUX_BUILD_DIR)/obj-$(ARCH_NAME)/libinbe.a \
vendor/raylib/build/sdl-$(ARCH_NAME)/libraylib.a \
$(LINUX_RAY_LDLIBS) \
-lm -lpthread -ldl -lrt \
$(LDFLAGS)
+64
View File
@@ -0,0 +1,64 @@
WEB_CC ?= emcc
WEB_AR ?= emar
WEB_TARGET = $(WEB_BUILD_DIR)/index.html
WEB_RAYLIB_BUILD_DIR = $(WEB_BUILD_DIR)/raylib
WEB_RAYLIB_A = $(WEB_RAYLIB_BUILD_DIR)/libraylib.web.a
WEB_FLINT_SRCS = $(filter-out $(FLINT_DIR)/src/flint_file_dialog.c,$(FLINT_SRCS))
WEB_RAYLIB_OBJS = \
$(WEB_RAYLIB_BUILD_DIR)/rcore.o \
$(WEB_RAYLIB_BUILD_DIR)/rshapes.o \
$(WEB_RAYLIB_BUILD_DIR)/rtextures.o \
$(WEB_RAYLIB_BUILD_DIR)/rtext.o \
$(WEB_RAYLIB_BUILD_DIR)/raudio.o
WEB_CFLAGS = -Wall -Wextra -std=gnu99 -Os -DPLATFORM_WEB -DGRAPHICS_API_OPENGL_ES2 -D_DEFAULT_SOURCE -DSUPPORT_MODULE_RAUDIO=1 -DSUPPORT_FILEFORMAT_JPG=1 -DSUPPORT_FILEFORMAT_OGG=1
WEB_SHELL = src/web_shell.html
WEB_SOUND_FILES = $(wildcard assets/sounds/*)
WEB_FONT_FILES = $(FONT_FILES)
WEB_LOCALE_PRELOADS = $(foreach file,$(LOCALE_FILES),--preload-file $(file)@locales/$(notdir $(file)))
WEB_THEME_PRELOADS = $(foreach file,$(THEME_FILES),--preload-file $(file)@themes/$(notdir $(file)))
WEB_SOUND_PRELOADS = $(foreach file,$(WEB_SOUND_FILES),--preload-file $(file)@assets/sounds/$(notdir $(file)))
WEB_FONT_PRELOADS = $(foreach file,$(WEB_FONT_FILES),--preload-file $(file)@assets/fonts/$(notdir $(file)))
WEB_ASSET_FILES = $(CONFIG_FILES) $(IMAGE_FILES) $(LOCALE_FILES) $(THEME_FILES) $(WEB_SOUND_FILES) $(WEB_FONT_FILES)
WEB_LDFLAGS = -sUSE_GLFW=3 -sALLOW_MEMORY_GROWTH=1 -lidbfs.js --shell-file $(WEB_SHELL) $(WEB_LOCALE_PRELOADS) $(WEB_THEME_PRELOADS) $(WEB_SOUND_PRELOADS) $(WEB_FONT_PRELOADS) --preload-file [email protected] --preload-file [email protected] --preload-file assets/angel.jpg@assets/angel.jpg --preload-file assets/begin.jpg@assets/begin.jpg
$(WEB_RAYLIB_BUILD_DIR):
mkdir -p $@
web: $(WEB_TARGET)
$(WEB_RAYLIB_BUILD_DIR)/%.o: $(RAYLIB_DIR)/%.c | $(WEB_RAYLIB_BUILD_DIR)
$(WEB_CC) \
-c $< \
-o $@ \
-Wall \
-D_GNU_SOURCE \
-DPLATFORM_WEB \
-DGRAPHICS_API_OPENGL_ES2 \
-Wno-missing-braces \
-Werror=pointer-arith \
-fno-strict-aliasing \
-std=gnu99 \
-D_DEFAULT_SOURCE \
$(INBE_RAYLIB_CONFIG) \
-Os \
-ffunction-sections \
-fdata-sections \
-I$(RAYLIB_DIR)
$(WEB_RAYLIB_A): $(RAYLIB_SOURCES) $(WEB_RAYLIB_OBJS)
$(WEB_AR) rcs $@ $(WEB_RAYLIB_OBJS)
$(WEB_TARGET): $(BUILD_MAKEFILES) $(SRC) $(WEB_FLINT_SRCS) $(INBE_DIR)/inbe.c $(WEB_SHELL) $(WEB_RAYLIB_A) $(WEB_ASSET_FILES) | $(WEB_BUILD_DIR)
$(WEB_CC) $(WEB_CFLAGS) \
-I$(RAYLIB_DIR) \
-I$(INBE_DIR) \
$(FLINT_INCLUDE) \
-Isrc -Isrc/android \
-o $@ \
$(SRC) \
$(WEB_FLINT_SRCS) \
$(INBE_DIR)/inbe.c \
$(WEB_RAYLIB_A) \
$(WEB_LDFLAGS)
cache_buster=$$(cksum $(WEB_BUILD_DIR)/index.js $(WEB_BUILD_DIR)/index.data $(WEB_BUILD_DIR)/index.wasm | cksum | cut -d ' ' -f 1); \
sed -i "s#src=\"index.js\"#src=\"index.js?v=$$cache_buster\"#; s#WEB_CACHE_BUSTER#$$cache_buster#g" $(WEB_TARGET)
+64
View File
@@ -0,0 +1,64 @@
WIN_CC = x86_64-w64-mingw32-gcc
WIN_AR = x86_64-w64-mingw32-ar
WIN_WINDRES = x86_64-w64-mingw32-windres
WIN_TARGET = $(WINDOWS_BUILD_DIR)/inbe-windows-x86_64.exe
WIN_RAYLIB_BUILD_DIR = $(WINDOWS_BUILD_DIR)/raylib
WIN_RAYLIB_A = $(WIN_RAYLIB_BUILD_DIR)/libraylib.a
WIN_FLINT_SRCS = $(filter-out $(FLINT_DIR)/src/flint_file_dialog.c,$(FLINT_SRCS))
WIN_RAYLIB_OBJS = \
$(WIN_RAYLIB_BUILD_DIR)/rcore.o \
$(WIN_RAYLIB_BUILD_DIR)/rshapes.o \
$(WIN_RAYLIB_BUILD_DIR)/rtextures.o \
$(WIN_RAYLIB_BUILD_DIR)/rtext.o \
$(WIN_RAYLIB_BUILD_DIR)/raudio.o
WIN_INBE_A = $(WINDOWS_BUILD_DIR)/libinbe.a
$(WIN_RAYLIB_BUILD_DIR):
mkdir -p $@
windows: $(WIN_TARGET)
$(WIN_RAYLIB_BUILD_DIR)/%.o: $(RAYLIB_DIR)/%.c | $(WIN_RAYLIB_BUILD_DIR)
$(WIN_CC) \
-c $< \
-o $@ \
-Wall \
-D_GNU_SOURCE \
-DPLATFORM_DESKTOP_WIN32 \
-DGRAPHICS_API_OPENGL_33 \
-DSUPPORT_MODULE_RAUDIO=1 \
-DSUPPORT_FILEFORMAT_OGG=1 \
-Wno-missing-braces \
-Werror=pointer-arith \
-fno-strict-aliasing \
-std=gnu99 \
-DUNICODE \
$(INBE_RAYLIB_CONFIG) \
-Os \
-ffunction-sections \
-fdata-sections \
-I$(RAYLIB_DIR)
$(WIN_RAYLIB_A): $(RAYLIB_SOURCES) $(WIN_RAYLIB_OBJS)
$(WIN_AR) rcs $@ $(WIN_RAYLIB_OBJS)
$(WIN_INBE_A): FORCE | $(WINDOWS_BUILD_DIR)
$(MAKE) -C $(INBE_DIR) clean
$(MAKE) -C $(INBE_DIR) CC=$(WIN_CC) AR=$(WIN_AR)
cp $(INBE_A) $@
$(WIN_TARGET): $(SRC) $(WIN_FLINT_SRCS) $(FONT_FILES) $(WIN_RAYLIB_A) $(WIN_INBE_A) | $(WINDOWS_BUILD_DIR)
$(WIN_CC) $(CFLAGS) \
-I$(RAYLIB_DIR) \
-I$(INBE_DIR) \
$(FLINT_INCLUDE) \
-Isrc -Isrc/android \
-o $@ \
$(SRC) \
$(WIN_FLINT_SRCS) \
$(WIN_INBE_A) \
$(WIN_RAYLIB_A) \
-L$(MCFGTHREADS)/lib \
-lopengl32 -lgdi32 -lwinmm -lws2_32 \
-mwindows \
$(LDFLAGS)
+1 -1
View File
@@ -58,6 +58,6 @@
<p>Questions: <a href="mailto:[email protected]">[email protected]</a></p>
<h2>Open Source</h2>
<p>Source code available at: <a href="https://sr.ht/projects/~waozi">https://sr.ht/projects/~waozi</a></p>
<p>Source code available at: <a href="https://git.sr.ht/~waozi/inbe">https://git.sr.ht/~waozi/inbe</a> and <a href="https://github.com/waozixyz/inbe">https://github.com/waozixyz/inbe</a></p>
</body>
</html>
+19 -9
View File
@@ -15,11 +15,25 @@ fi
echo "Publishing inbe.waozi.xyz..."
# Update metadata before publishing
if [ -f "./update_metadata.sh" ]; then
echo "Running metadata update..."
./update_metadata.sh || echo "Warning: Metadata update failed, continuing anyway"
else
echo "Warning: update_metadata.sh not found, skipping metadata update"
fi
TMPDIR=$(mktemp -d -p /tmp)
cleanup() {
rm -rf "$TMPDIR"
rm -f "$SITE_DIR/inbe.tar.gz"
}
trap cleanup EXIT
# Base site files
rsync -av --delete \
--exclude='local.properties' \
--exclude='.git' \
--exclude='*.sym' \
--exclude='*.o' \
--exclude='*.a' \
@@ -40,6 +54,9 @@ rsync -av --delete \
--exclude='*.bak' \
--exclude='*.swp' \
--exclude='*.lock' \
--exclude='assets' \
--exclude='icons' \
--exclude='site-icons' \
--exclude='gradlew' \
--exclude='gradlew.bat' \
--exclude='shell.nix' \
@@ -51,6 +68,7 @@ rsync -av --delete \
--exclude='.codex' \
--exclude='.npm' \
--exclude='.local' \
--exclude='droid' \
--exclude='vendor' \
. "$TMPDIR/"
@@ -117,13 +135,7 @@ mkdir -p "$TMPDIR/tcl"
mkdir -p "$TMPDIR/droid"
[ -f "build/android/app-universal-release.apk" ] && cp build/android/app-universal-release.apk "$TMPDIR/droid/app-release.apk"
# Icons (cursors not used - deleted)
rsync -av --exclude='.*' --exclude='*.sym' --exclude='*.o' --exclude='*.a' --exclude='build' --exclude='.gradle' --exclude='Makefile' --exclude='.npm' --exclude='.local' --exclude='.codex' icons/ "$TMPDIR/icons/"
rsync -av --exclude='*.sym' --exclude='*.o' --exclude='*.a' --exclude='build' --exclude='.gradle' --exclude='.npm' --exclude='.local' --exclude='.codex' cursors/ "$TMPDIR/cursors/"
cp style.css assets/DepartureMono-Regular.otf og.png "$TMPDIR/"
cp -R assets "$TMPDIR/"
cp style.css og.png sitemap.xml robots.txt "$TMPDIR/"
if [ -f "$TMPDIR/index.html" ]; then
sed -e 's|/inbe/droid/app/build/outputs/apk/release/app-release.apk|/build/android/app-universal-release.apk|g' \
@@ -141,9 +153,7 @@ if [ ! -f "$SITE_DIR/inbe.tar.gz" ]; then
exit 1
fi
rm -rf "$TMPDIR"
hut pages publish -d inbe.waozi.xyz "$SITE_DIR/inbe.tar.gz"
echo "✓ Published to https://inbe.waozi.xyz"
rm -f "$SITE_DIR/inbe.tar.gz"
echo "✓ Done"
+4
View File
@@ -0,0 +1,4 @@
User-agent: *
Allow: /
Sitemap: https://inbe.waozi.xyz/sitemap.xml
+67
View File
@@ -0,0 +1,67 @@
#!/usr/bin/env bash
# Copy assets to Android project without requiring nix-shell or Makefile dependencies
# This script is used by GitHub Actions and F-Droid builds
# This script works from any directory by detecting the repository root
set -e
# Find the repository root by locating this script's directory
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
REPO_ROOT="$(dirname "$SCRIPT_DIR")"
# Change to repository root so all relative paths work correctly
cd "$REPO_ROOT" || exit 1
echo "Running from repository root: $(pwd)"
echo "Copying assets to Android project..."
ANDROID_DIR="droid"
ASSETS_DIR="$ANDROID_DIR/app/src/main/assets"
echo "Copying assets to Android project..."
# Remove and recreate assets directory
rm -rf "$ASSETS_DIR"
mkdir -p "$ASSETS_DIR"
# Copy config files
echo "Copying config files..."
cp inbe.ini "$ASSETS_DIR/inbe.ini"
cp theme.ini "$ASSETS_DIR/theme.ini"
# Copy locales
echo "Copying locales..."
mkdir -p "$ASSETS_DIR/locales"
cp locales/*.txt "$ASSETS_DIR/locales/"
# Copy themes
echo "Copying themes..."
mkdir -p "$ASSETS_DIR/themes"
cp vendor/flint/themes/*.ini "$ASSETS_DIR/themes/" 2>/dev/null || echo "No theme files found in vendor/flint/themes/"
# Copy images
echo "Copying images..."
mkdir -p "$ASSETS_DIR/assets"
cp assets/angel.jpg assets/begin.jpg "$ASSETS_DIR/assets/"
# Copy sounds
echo "Copying sounds..."
mkdir -p "$ASSETS_DIR/assets/sounds"
cp assets/sounds/breath-in.ogg assets/sounds/breath-out.ogg assets/sounds/bell.ogg "$ASSETS_DIR/assets/sounds/"
# Build fonts only when explicitly requested. Android/F-Droid builds use the
# committed glyph atlas so they do not need host build tools beyond Gradle.
if [ "${INBE_REBUILD_FONTS:-0}" = "1" ]; then
echo "Building fonts..."
mkdir -p assets/fonts
make -C vendor/otfchop otfchop
vendor/otfchop/otfchop vendor/otfchop/unifont-17.0.04.otf locales/*.txt assets/fonts/locales
else
echo "Using versioned fonts..."
fi
echo "Copying fonts..."
mkdir -p "$ASSETS_DIR/assets/fonts"
cp assets/fonts/locales.png assets/fonts/locales.dat "$ASSETS_DIR/assets/fonts/"
echo "Assets copied successfully!"
+126
View File
@@ -0,0 +1,126 @@
#!/usr/bin/env bash
set -e
AVD_NAME="${1:-inbe-test}"
echo "📱 Creating AVD: $AVD_NAME (Pixel 8 Pro - Android 14)"
# Check for Android SDK location
if [ -z "$ANDROID_SDK_ROOT" ] && [ -z "$ANDROID_HOME" ]; then
echo "❌ Error: Neither ANDROID_SDK_ROOT nor ANDROID_HOME is set"
echo " Make sure to run this script within 'nix develop'"
exit 1
fi
# Set up persistent writable SDK location
ORIGINAL_SDK_ROOT="$ANDROID_SDK_ROOT"
PERSISTENT_SDK_ROOT="$HOME/.android-sdk-writable"
export ANDROID_SDK_ROOT="$PERSISTENT_SDK_ROOT"
export ANDROID_HOME="$PERSISTENT_SDK_ROOT"
mkdir -p "$ANDROID_SDK_ROOT"
# Create symlinks for SDK components
for component in build-tools cmake cmdline-tools emulator licenses ndk platforms platform-tools tools; do
if [ -e "$ORIGINAL_SDK_ROOT/$component" ] && [ ! -e "$ANDROID_SDK_ROOT/$component" ]; then
ln -sf "$ORIGINAL_SDK_ROOT/$component" "$ANDROID_SDK_ROOT/$component"
fi
done
mkdir -p "$ANDROID_SDK_ROOT/system-images"
mkdir -p "$ANDROID_SDK_ROOT/avd"
# Determine system image paths
# Prefer x86_64 for faster emulation
TARGET_DIR="$ANDROID_SDK_ROOT/system-images/android-34/google_apis_playstore/x86_64"
ABI_TYPE="x86_64"
ABI_DISPLAY="x86_64"
# Find system image in Nix store
SYSTEM_IMAGE_BASE=$(find "$ORIGINAL_SDK_ROOT/../.." -maxdepth 1 -type d -name "*system-image*34*google_apis_playstore*" | head -1)
if [ -z "$SYSTEM_IMAGE_BASE" ] || [ ! -d "$SYSTEM_IMAGE_BASE" ]; then
echo "❌ Error: System image not found in Nix store"
echo " Searched for: *system-image*34*google_apis_playstore* in $ORIGINAL_SDK_ROOT/../.."
exit 1
fi
echo "📋 Found system image base: $SYSTEM_IMAGE_BASE"
# Check and copy system image from Nix store
if [ ! -d "$TARGET_DIR" ]; then
echo "📋 Copying system image ($ABI_TYPE)..."
SOURCE_DIR="$SYSTEM_IMAGE_BASE/libexec/android-sdk/system-images/android-34/google_apis_playstore/$ABI_TYPE"
if [ ! -d "$SOURCE_DIR" ]; then
echo "❌ Error: Source directory not found: $SOURCE_DIR"
exit 1
fi
mkdir -p "$TARGET_DIR"
cp -r "$SOURCE_DIR"/* "$TARGET_DIR/"
echo "✅ Copied $ABI_TYPE system image"
fi
# Check if AVD already exists
if [ -d "$ANDROID_SDK_ROOT/avd/$AVD_NAME.avd" ]; then
echo "🗑️ Removing existing AVD..."
rm -rf "$ANDROID_SDK_ROOT/avd/$AVD_NAME.avd"
rm -f "$ANDROID_SDK_ROOT/avd/$AVD_NAME.ini"
fi
# Create AVD
echo "🔨 Creating AVD ($ABI_DISPLAY)..."
AVD_DIR="$ANDROID_SDK_ROOT/avd/$AVD_NAME.avd"
AVD_INI="$ANDROID_SDK_ROOT/avd/$AVD_NAME.ini"
mkdir -p "$AVD_DIR"
# Pixel 8 Pro specs: 2960 x 1440, 6.7", 512 DPI, 12GB RAM
cat > "$AVD_DIR/config.ini" << EOF
AvdId=$AVD_NAME
avd.ini.encoding=UTF-8
PlayStore.enabled=true
abi.type=$ABI_TYPE
hw.cpu.arch=$ABI_TYPE
hw.device.name=Pixel 8 Pro
hw.lcd.density=512
hw.lcd.height=2960
hw.lcd.width=1440
hw.gpu.enabled=yes
hw.gpu.mode=host
hw.ramSize=4096
vm.heapSize=1024
hw.sdCard=yes
hw.sdCard.size=2048MB
disk.cachePartition=yes
disk.cachePartition.size=800MB
hw.accelerometer=yes
hw.audioInput=yes
hw.battery=yes
hw.camera.back=yes
hw.camera.front=yes
hw.gps=yes
hw.gsmModem=yes
hw.keyboard=yes
hw.touchScreen=yes
image.sysdir.1=system-images/android-34/google_apis_playstore/$ABI_TYPE/
showDeviceFrame=yes
skin.name=1440x2960
skin.path=1440x2960
EOF
cat > "$AVD_INI" << EOF
avd.ini.encoding=UTF-8
path=$AVD_DIR
target=default
EOF
echo "✅ Done!"
echo " Device: Pixel 8 Pro"
echo " Android: 14 (API 34)"
echo " ABI: $ABI_DISPLAY"
echo ""
echo " Run with: bash scripts/emulator.sh"
+63 -74
View File
@@ -4,92 +4,81 @@ set -e
AVD_NAME="inbe-test"
echo "🚀 Android Emulator Manager"
echo " This script handles emulator creation and launching"
echo " Use './scripts/run-android.sh' to build and install the app"
echo ""
# Check for Android SDK location
if [ -z "$ANDROID_SDK_ROOT" ] && [ -z "$ANDROID_HOME" ]; then
echo "❌ Error: Neither ANDROID_SDK_ROOT nor ANDROID_HOME environment variable is set"
echo " Make sure to run this script within 'nix develop'"
echo "❌ Error: Neither ANDROID_SDK_ROOT nor ANDROID_HOME is set"
exit 1
fi
# Set up writable SDK location
WRITABLE_SDK="/mnt/storage/Android/Sdk"
if [ -d "$WRITABLE_SDK" ] && [ -w "$WRITABLE_SDK" ]; then
export ANDROID_SDK_ROOT="$WRITABLE_SDK"
export ANDROID_SDK_HOME="$WRITABLE_SDK"
export ANDROID_AVD_HOME="$WRITABLE_SDK/avd"
echo "📂 Using writable Android SDK: $ANDROID_SDK_ROOT"
else
echo "❌ Error: No writable Android SDK location found"
exit 1
fi
PERSISTENT_SDK_ROOT="$HOME/.android-sdk-writable"
# Step 1: Create AVD if missing
if [ ! -d "$ANDROID_SDK_ROOT/avd/$AVD_NAME.avd" ]; then
echo "📱 AVD not found. Creating..."
if [ -d "$PERSISTENT_SDK_ROOT" ] && [ -d "$PERSISTENT_SDK_ROOT/avd/$AVD_NAME.avd" ]; then
export ANDROID_SDK_ROOT="$PERSISTENT_SDK_ROOT"
export ANDROID_SDK_HOME="$PERSISTENT_SDK_ROOT"
export ANDROID_AVD_HOME="$PERSISTENT_SDK_ROOT/avd"
else
echo "ℹ️ AVD not found. Creating new Pixel 8 Pro AVD..."
bash scripts/create-avd.sh "$AVD_NAME"
echo ""
else
echo "✅ AVD already exists: $AVD_NAME"
echo ""
# Re-export after creation
export ANDROID_SDK_ROOT="$PERSISTENT_SDK_ROOT"
export ANDROID_SDK_HOME="$PERSISTENT_SDK_ROOT"
export ANDROID_AVD_HOME="$PERSISTENT_SDK_ROOT/avd"
fi
# Step 2: Check if emulator is running
# Check if emulator is already running
if adb devices | grep -q "emulator"; then
echo "✅ Emulator already running"
echo ""
echo "To stop the emulator:"
echo " adb emu kill"
else
echo "🚀 Launching emulator..."
# Set environment for emulator (unset ANDROID_HOME to avoid conflicts)
unset ANDROID_HOME
export ANDROID_SDK_ROOT="$ANDROID_SDK_ROOT"
# Launch emulator in background
emulator @"$AVD_NAME" \
-gpu host \
-skin 1080x2400 \
-no-snapshot-load \
-no-boot-anim \
-show-kernel \
-verbose > /tmp/emulator.log 2>&1 &
echo "⏳ Waiting for emulator to boot..."
timeout_seconds=120
elapsed=0
while ! adb shell getprop sys.boot_completed 2>/dev/null | grep -q "1"; do
if [ $elapsed -ge $timeout_seconds ]; then
echo "❌ Timeout waiting for emulator to boot"
echo " Check /tmp/emulator.log for details"
exit 1
fi
echo -n "⏳ "
date +"%T"
sleep 5
elapsed=$((elapsed + 5))
# Check if emulator process died
if ! pgrep -f "emulator.*$AVD_NAME" > /dev/null; then
echo "❌ Emulator process died"
echo " Check /tmp/emulator.log for details"
exit 1
fi
done
echo "✅ Emulator booted successfully"
echo ""
adb devices
exit 0
fi
echo "📱 Emulator ready!"
echo "🚀 Launching Pixel 8 Pro emulator (Android 14 API 34)..."
# Set environment for emulator
unset ANDROID_HOME
export ANDROID_SDK_ROOT="$ANDROID_SDK_ROOT"
# Launch emulator in background with KVM acceleration
emulator @"$AVD_NAME" \
-gpu host \
-skin 1440x2960 \
-no-snapshot-load \
-no-boot-anim \
-qemu -enable-kvm \
-verbose > /tmp/emulator.log 2>&1 &
echo "⏳ Waiting for boot (this may take a while)..."
timeout_seconds=120
elapsed=0
while ! adb shell getprop sys.boot_completed 2>/dev/null | grep -q "1"; do
if [ $elapsed -ge $timeout_seconds ]; then
echo "❌ Timeout waiting for boot. Check /tmp/emulator.log"
exit 1
fi
sleep 5
elapsed=$((elapsed + 5))
if ! pgrep -f "emulator.*$AVD_NAME" > /dev/null; then
echo "❌ Emulator died. Check /tmp/emulator.log"
tail -20 /tmp/emulator.log
exit 1
fi
# Show progress
if [ $((elapsed % 15)) -eq 0 ]; then
echo " Still booting... (${elapsed}s)"
fi
done
echo "✅ Pixel 8 Pro emulator ready!"
echo ""
echo "Next steps:"
echo " 1. Build and install the app:"
echo " ./scripts/run-android.sh"
echo "📱 Device info:"
adb shell getprop ro.product.model
adb shell getprop ro.build.version.release
adb shell getprop ro.build.version.sdk
echo ""
echo " Connect with: adb shell"
+10 -4
View File
@@ -1,9 +1,15 @@
speed 8
max_rounds 7
max_breaths 32
max_rounds 4
max_breaths 30
pause_seconds 2
sound_volume 100
tutorial_seen 1
theme 0
dark_mode 1
theme 4
dark_mode 0
fullscreen 0
on_screen_keyboard 1
progressive_speed 1
progressive_start_speed 3
advanced_session_controls 1
hold_display_mode 0
language en
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<url>
<loc>https://inbe.waozi.xyz/</loc>
<lastmod>2026-05-29</lastmod>
<priority>1.0</priority>
</url>
<url>
<loc>https://inbe.waozi.xyz/builds.html</loc>
<lastmod>2026-05-29</lastmod>
<priority>0.8</priority>
</url>
<url>
<loc>https://inbe.waozi.xyz/privacy.html</loc>
<lastmod>2026-05-26</lastmod>
<priority>0.3</priority>
</url>
</urlset>
+139
View File
@@ -0,0 +1,139 @@
#include "android_import.h"
#include "raylib.h"
#include <string.h>
#if defined(PLATFORM_ANDROID) || defined(__ANDROID__) || defined(ANDROID)
#include <android/native_activity.h>
#include <android_native_app_glue.h>
#include <pthread.h>
extern struct android_app *GetAndroidApp(void);
#define ANDROID_IMPORT_PATH_MAX 512
static pthread_mutex_t import_mutex = PTHREAD_MUTEX_INITIALIZER;
static int pending_result = ANDROID_IMPORT_RESULT_NONE;
static char pending_path[ANDROID_IMPORT_PATH_MAX];
static void
android_import_set_result(int result, const char *path)
{
pthread_mutex_lock(&import_mutex);
pending_result = result;
if(path != NULL) {
strncpy(pending_path, path, sizeof(pending_path) - 1);
pending_path[sizeof(pending_path) - 1] = '\0';
} else {
pending_path[0] = '\0';
}
pthread_mutex_unlock(&import_mutex);
}
int
android_import_open_picker(void)
{
struct android_app *app = GetAndroidApp();
if(app == NULL || app->activity == NULL) {
TraceLog(LOG_ERROR, "ANDROID_IMPORT: GetAndroidApp failed");
return 0;
}
ANativeActivity *activity = app->activity;
JavaVM *jvm = activity->vm;
JNIEnv *env = NULL;
if((*jvm)->AttachCurrentThread(jvm, &env, NULL) != JNI_OK) {
TraceLog(LOG_ERROR, "ANDROID_IMPORT: failed to attach thread");
return 0;
}
jclass activity_class = (*env)->GetObjectClass(env, activity->clazz);
if(activity_class == NULL) {
TraceLog(LOG_ERROR, "ANDROID_IMPORT: MainActivity class not found");
(*jvm)->DetachCurrentThread(jvm);
return 0;
}
jmethodID method = (*env)->GetMethodID(env, activity_class, "openImportPicker", "()V");
if(method == NULL) {
TraceLog(LOG_ERROR, "ANDROID_IMPORT: openImportPicker method not found");
(*jvm)->DetachCurrentThread(jvm);
return 0;
}
(*env)->CallVoidMethod(env, activity->clazz, method);
if((*env)->ExceptionCheck(env)) {
(*env)->ExceptionDescribe(env);
(*env)->ExceptionClear(env);
(*jvm)->DetachCurrentThread(jvm);
return 0;
}
(*jvm)->DetachCurrentThread(jvm);
TraceLog(LOG_INFO, "ANDROID_IMPORT: file picker opened");
return 1;
}
void
android_import_native_selected(JNIEnv *env, jobject thiz, jstring path)
{
(void)thiz;
if(path == NULL) {
android_import_set_result(ANDROID_IMPORT_RESULT_SELECTED, "");
return;
}
const char *import_path = (*env)->GetStringUTFChars(env, path, NULL);
if(import_path == NULL || import_path[0] == '\0') {
if(import_path != NULL)
(*env)->ReleaseStringUTFChars(env, path, import_path);
android_import_set_result(ANDROID_IMPORT_RESULT_SELECTED, "");
return;
}
android_import_set_result(ANDROID_IMPORT_RESULT_SELECTED, import_path);
(*env)->ReleaseStringUTFChars(env, path, import_path);
}
void
android_import_native_cancelled(JNIEnv *env, jobject thiz)
{
(void)env;
(void)thiz;
android_import_set_result(ANDROID_IMPORT_RESULT_CANCELLED, NULL);
}
int
android_import_poll_result(char *path, size_t path_size)
{
int result;
pthread_mutex_lock(&import_mutex);
result = pending_result;
if(path != NULL && path_size > 0) {
strncpy(path, pending_path, path_size - 1);
path[path_size - 1] = '\0';
}
pending_result = ANDROID_IMPORT_RESULT_NONE;
pending_path[0] = '\0';
pthread_mutex_unlock(&import_mutex);
return result;
}
#else
int
android_import_open_picker(void)
{
return 0;
}
int
android_import_poll_result(char *path, size_t path_size)
{
if(path != NULL && path_size > 0)
path[0] = '\0';
return ANDROID_IMPORT_RESULT_NONE;
}
#endif
+21
View File
@@ -0,0 +1,21 @@
#ifndef ANDROID_IMPORT_H
#define ANDROID_IMPORT_H
#include <stddef.h>
int android_import_open_picker(void);
int android_import_poll_result(char *path, size_t path_size);
enum {
ANDROID_IMPORT_RESULT_NONE = 0,
ANDROID_IMPORT_RESULT_SELECTED = 1,
ANDROID_IMPORT_RESULT_CANCELLED = 2
};
#if defined(PLATFORM_ANDROID) || defined(__ANDROID__) || defined(ANDROID)
#include <jni.h>
void android_import_native_selected(JNIEnv *env, jobject thiz, jstring path);
void android_import_native_cancelled(JNIEnv *env, jobject thiz);
#endif
#endif
+243
View File
@@ -0,0 +1,243 @@
#include "android_insets.h"
#include "android_import.h"
#include "android_timer.h"
#include "android_wakelock.h"
#include "app.h"
#include "inbe.h"
#include <string.h>
#include <stdio.h>
#include <raylib.h>
#include <pthread.h>
#include <android_native_app_glue.h>
#include <jni.h>
#include <android/log.h>
// External functions from main.c
extern InbeApp* get_global_inbe_app(void);
extern void set_global_inbe_app(InbeApp *app);
#define LOG_TAG "INBE_INSETS"
#ifndef JNI_VERSION_1_6
#define JNI_VERSION_1_6 0x10060000
#endif
extern struct android_app *GetAndroidApp(void);
extern void android_wakelock_set_activity(JNIEnv *env, jobject activity);
extern void android_wakelock_set_jvm(JavaVM *vm);
extern void android_timer_activate(void);
extern void android_timer_deactivate(void);
// Called from Java when activity is ready for wake lock
static void android_wakelock_set_activity_impl(JNIEnv *env, jobject thiz) {
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "Wake lock ready callback from Java");
android_wakelock_set_activity(env, thiz);
}
// Called from Java when activity is paused
static void android_timer_activate_impl(JNIEnv *env, jobject thiz) {
(void)env;
(void)thiz;
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "JNI: Timer ACTIVATE callback");
android_timer_activate();
}
// Called from Java when activity is resumed
static void android_timer_deactivate_impl(JNIEnv *env, jobject thiz) {
(void)env;
(void)thiz;
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "JNI: Timer DEACTIVATE callback");
android_timer_deactivate();
}
static JavaVM *g_jvm = NULL;
static jobject g_activity = NULL;
static volatile struct {
int status_bar;
int nav_bar;
int cutout_left;
int cutout_top;
int cutout_right;
int cutout_bottom;
} current_insets = {0};
static pthread_mutex_t insets_mutex = PTHREAD_MUTEX_INITIALIZER;
// JNI function - Java calls this to push inset values
static void nativeSetInsets(JNIEnv *env, jobject thiz,
jint status_bar, jint nav_bar,
jint cutout_left, jint cutout_top, jint cutout_right, jint cutout_bottom)
{
TraceLog(LOG_INFO, "INBE: Java insets: status=%d, nav=%d, cutout_top=%d",
status_bar, nav_bar, cutout_top);
pthread_mutex_lock(&insets_mutex);
current_insets.status_bar = status_bar;
current_insets.nav_bar = nav_bar;
current_insets.cutout_left = cutout_left;
current_insets.cutout_top = cutout_top;
current_insets.cutout_right = cutout_right;
current_insets.cutout_bottom = cutout_bottom;
pthread_mutex_unlock(&insets_mutex);
// Memory barrier to ensure all threads see the updated values
__sync_synchronize();
}
// JNI function - Java calls this to check if play_in_background is enabled
static jint nativeGetPlayInBackground(JNIEnv *env, jobject thiz)
{
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", "nativeGetPlayInBackground: called");
void *app = get_global_inbe_app();
char msg[128];
snprintf(msg, sizeof(msg), "nativeGetPlayInBackground: got app pointer %p", app);
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", msg);
if (app != NULL) {
InbeApp *inbe_app = (InbeApp*)app;
jint result = inbe_get_play_in_background(&inbe_app->inbe);
char msg[128];
snprintf(msg, sizeof(msg), "nativeGetPlayInBackground: returning %d", result);
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", msg);
return result;
}
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", "nativeGetPlayInBackground: app is NULL, returning 0");
return 0; // Default to disabled
}
// JNI function - Auto-pause session when app goes to background
static void nativePauseSession(JNIEnv *env, jobject thiz)
{
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", "nativePauseSession: called");
void *app = get_global_inbe_app();
char msg[128];
snprintf(msg, sizeof(msg), "nativePauseSession: got app pointer %p", app);
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", msg);
if (app != NULL) {
InbeApp *inbe_app = (InbeApp*)app;
char msg[128];
snprintf(msg, sizeof(msg), "nativePauseSession: session_paused before = %d", inbe_app->session_paused);
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", msg);
if (!inbe_app->session_paused) {
inbe_app->session_paused = 1;
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", "nativePauseSession: set session_paused = 1");
#ifdef __ANDROID__
if (inbe_app->inbe.play_in_background) {
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", "nativePauseSession: Releasing wake lock and stopping timer");
android_wakelock_release();
android_timer_stop();
} else {
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", "nativePauseSession: SKIPPING wake lock/timer (play_in_background disabled)");
}
#endif
} else {
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", "nativePauseSession: Session already paused, skipping");
}
} else {
__android_log_write(ANDROID_LOG_ERROR, "INBE_JNI", "nativePauseSession: app is NULL!");
}
}
// JNI function - Auto-resume session when app returns to foreground
static void nativeResumeSession(JNIEnv *env, jobject thiz)
{
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", "nativeResumeSession: called");
void *app = get_global_inbe_app();
char msg[128];
snprintf(msg, sizeof(msg), "nativeResumeSession: got app pointer %p", app);
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", msg);
if (app != NULL) {
InbeApp *inbe_app = (InbeApp*)app;
char msg[128];
snprintf(msg, sizeof(msg), "nativeResumeSession: session_paused before = %d", inbe_app->session_paused);
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", msg);
if (inbe_app->session_paused) {
inbe_app->session_paused = 0;
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", "nativeResumeSession: set session_paused = 0");
#ifdef __ANDROID__
if (inbe_app->inbe.play_in_background) {
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", "nativeResumeSession: Acquiring wake lock and starting timer");
android_wakelock_acquire();
android_timer_start();
} else {
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", "nativeResumeSession: SKIPPING wake lock/timer (play_in_background disabled)");
}
#endif
} else {
__android_log_write(ANDROID_LOG_INFO, "INBE_JNI", "nativeResumeSession: Session not paused, skipping");
}
} else {
__android_log_write(ANDROID_LOG_ERROR, "INBE_JNI", "nativeResumeSession: app is NULL!");
}
}
// JNI method table
static const JNINativeMethod g_methods[] = {
{"nativeSetInsets", "(IIIIII)V", (void*)nativeSetInsets},
{"nativeWakeLockReady", "()V", (void*)android_wakelock_set_activity_impl},
{"nativeTimerActivate", "()V", (void*)android_timer_activate_impl},
{"nativeTimerDeactivate", "()V", (void*)android_timer_deactivate_impl},
{"nativeGetPlayInBackground", "()I", (void*)nativeGetPlayInBackground},
{"nativePauseSession", "()V", (void*)nativePauseSession},
{"nativeResumeSession", "()V", (void*)nativeResumeSession},
{"nativeImportSelectedFile", "(Ljava/lang/String;)V", (void*)android_import_native_selected},
{"nativeImportCancelled", "()V", (void*)android_import_native_cancelled},
};
// JNI_OnLoad - Register native methods
JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *reserved)
{
JNIEnv *env = NULL;
jint result;
g_jvm = vm;
// Also set JVM for wake lock module
android_wakelock_set_jvm(vm);
result = (*vm)->GetEnv(vm, (void**)&env, JNI_VERSION_1_6);
if (result != JNI_OK) {
TraceLog(LOG_ERROR, "INBE: Failed to get JNI environment");
return result;
}
// Find the MainActivity class
jclass clazz = (*env)->FindClass(env, "xyz/waozi/inbe/MainActivity");
if (clazz == NULL) {
TraceLog(LOG_ERROR, "INBE: Failed to find MainActivity class");
return JNI_ERR;
}
// Register native methods
result = (*env)->RegisterNatives(env, clazz, g_methods, sizeof(g_methods) / sizeof(g_methods[0]));
if (result != JNI_OK) {
TraceLog(LOG_ERROR, "INBE: Failed to register native methods");
return result;
}
return JNI_VERSION_1_6;
}
void android_insets_init(void) {
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "=== android_insets_init ===");
pthread_mutex_lock(&insets_mutex);
memset((void *)&current_insets, 0, sizeof(current_insets));
pthread_mutex_unlock(&insets_mutex);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "=== android_insets_init DONE ===");
}
void android_insets_get(AndroidInsets *out) {
pthread_mutex_lock(&insets_mutex);
// Simply return the current values
if (out) {
out->status_bar = current_insets.status_bar;
out->nav_bar = current_insets.nav_bar;
out->cutout_left = current_insets.cutout_left;
out->cutout_top = current_insets.cutout_top;
out->cutout_right = current_insets.cutout_right;
out->cutout_bottom = current_insets.cutout_bottom;
}
pthread_mutex_unlock(&insets_mutex);
}
@@ -2,6 +2,8 @@
#define INBE_ANDROID_INSETS_H
#ifdef __ANDROID__
#include <jni.h>
typedef struct {
int status_bar;
int nav_bar;
@@ -13,6 +15,7 @@ typedef struct {
void android_insets_init(void);
void android_insets_get(AndroidInsets *out);
void android_wakelock_set_activity(JNIEnv *env, jobject activity);
#else
typedef struct {
int status_bar;
@@ -1,5 +1,6 @@
#include "android_share.h"
#include "data.h"
#include "locale.h"
#include "version.h"
#include "raylib.h"
#include "miniz.h"
@@ -36,6 +37,10 @@ int android_share_export(const char *filename)
FilePathList files;
int session_count = 0;
char metadata[512];
char metadata_header[128];
char metadata_version[128];
char metadata_date[128];
char metadata_count[128];
time_t now;
struct tm *tm;
char date_str[64];
@@ -69,14 +74,16 @@ int android_share_export(const char *filename)
strcpy(date_str, "Unknown");
}
snprintf(metadata, sizeof(metadata),
"Inner Breeze Data Export\n"
"Version: %s\n"
"Export Date: %s\n"
"Session Count: %d\n",
INBE_VERSION_STRING,
date_str,
session_count);
locale_format(metadata_header, sizeof(metadata_header), "export_metadata_header");
locale_format(metadata_version, sizeof(metadata_version), "export_metadata_version", INBE_VERSION_STRING);
locale_format(metadata_date, sizeof(metadata_date), "export_metadata_date", date_str);
locale_format(metadata_count, sizeof(metadata_count), "export_metadata_count", session_count);
snprintf(metadata, sizeof(metadata), "%s\n%s\n%s\n%s\n",
metadata_header,
metadata_version,
metadata_date,
metadata_count);
if(!mz_zip_writer_add_mem(&archive, "lotus-data/metadata.txt", metadata, strlen(metadata), MZ_NO_COMPRESSION)) {
TraceLog(LOG_ERROR, "ANDROID_SHARE: failed to write metadata");
@@ -208,7 +215,7 @@ int android_share_export(const char *filename)
}
jmethodID method = (*env)->GetStaticMethodID(env, share_helper_class, "shareZipFile",
"(Landroid/app/Activity;[BLjava/lang/String;)V");
"(Landroid/app/Activity;[BLjava/lang/String;Ljava/lang/String;)V");
if(!method) {
TraceLog(LOG_ERROR, "ANDROID_SHARE: shareZipFile method not found");
@@ -221,10 +228,12 @@ int android_share_export(const char *filename)
(*env)->SetByteArrayRegion(env, jarr, 0, zip_size, (jbyte*)zip_data);
jstring jname = (*env)->NewStringUTF(env, filename);
(*env)->CallStaticVoidMethod(env, share_helper_class, method, native_activity->clazz, jarr, jname);
jstring jtitle = (*env)->NewStringUTF(env, locale_get("share_sheet_title"));
(*env)->CallStaticVoidMethod(env, share_helper_class, method, native_activity->clazz, jarr, jname, jtitle);
(*env)->DeleteLocalRef(env, jarr);
(*env)->DeleteLocalRef(env, jname);
(*env)->DeleteLocalRef(env, jtitle);
(*env)->DeleteLocalRef(env, class_loader);
(*jvm)->DetachCurrentThread(jvm);
File renamed without changes.
+157
View File
@@ -0,0 +1,157 @@
#include "android_timer.h"
#include "app.h"
#include <time.h>
#include <raylib.h>
#include <pthread.h>
#include <android/log.h>
#include <unistd.h>
#define LOG_TAG "INBE_TIMER"
#define TARGET_FPS 60
#define FRAME_TIME_US (1000000 / TARGET_FPS) // ~16666 microseconds for 60fps
static pthread_t timer_thread;
static pthread_mutex_t timer_mutex = PTHREAD_MUTEX_INITIALIZER;
static pthread_mutex_t inbe_state_mutex = PTHREAD_MUTEX_INITIALIZER;
static int timer_running = 0;
static int timer_active = 0; // Only step when timer is active (activity paused)
static void *g_app = NULL;
static void*
timer_thread_func(void *arg) {
(void)arg;
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "Timer thread started");
int frame_count = 0;
while (1) {
pthread_mutex_lock(&timer_mutex);
// Check if we should stop
if (!timer_running) {
pthread_mutex_unlock(&timer_mutex);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "Timer thread: stopping");
break;
}
// Check if we should run (active and have app pointer)
int should_run = timer_active && g_app != NULL;
pthread_mutex_unlock(&timer_mutex);
if (should_run) {
// Log every 60 frames (1 second)
if (frame_count % 60 == 0) {
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "Timer: Running meditation step + sounds");
}
frame_count++;
// Update meditation state and sounds with mutex protection
pthread_mutex_lock(&inbe_state_mutex);
InbeApp *app = (InbeApp*)g_app;
inbestep(&app->inbe);
update_session_sounds(app);
pthread_mutex_unlock(&inbe_state_mutex);
// Sleep for exact frame time (60fps = ~16.666ms)
usleep(FRAME_TIME_US);
} else {
// Not active, sleep a bit before checking again
if (frame_count > 0) {
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "Timer: Paused (inactive)");
frame_count = 0;
}
usleep(50000); // 50ms
}
}
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "Timer thread stopped");
return NULL;
}
void
android_timer_init(void) {
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "=== android_timer_init ===");
}
void
android_timer_set_app(void *app_ptr) {
pthread_mutex_lock(&timer_mutex);
g_app = app_ptr;
pthread_mutex_unlock(&timer_mutex);
TraceLog(LOG_INFO, "INBE: Timer app pointer set");
}
pthread_mutex_t*
android_timer_get_mutex(void) {
return &inbe_state_mutex;
}
void
android_timer_start(void) {
pthread_mutex_lock(&timer_mutex);
if (timer_running) {
timer_active = 1; // Activate timer (activity paused)
pthread_mutex_unlock(&timer_mutex);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "Timer activated (activity paused)");
return;
}
timer_running = 1;
timer_active = 0; // Start inactive (activity active)
pthread_mutex_unlock(&timer_mutex);
int result = pthread_create(&timer_thread, NULL, timer_thread_func, NULL);
if (result != 0) {
__android_log_write(ANDROID_LOG_ERROR, LOG_TAG, "Failed to create timer thread");
} else {
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "Timer thread created");
}
TraceLog(LOG_INFO, "INBE: Background timer started");
}
void
android_timer_stop(void) {
pthread_mutex_lock(&timer_mutex);
if (!timer_running) {
pthread_mutex_unlock(&timer_mutex);
return;
}
timer_running = 0;
timer_active = 0;
pthread_mutex_unlock(&timer_mutex);
pthread_join(timer_thread, NULL);
TraceLog(LOG_INFO, "INBE: Background timer stopped");
}
void
android_timer_activate(void) {
pthread_mutex_lock(&timer_mutex);
timer_active = 1;
pthread_mutex_unlock(&timer_mutex);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "ACTIVATE: Timer active");
TraceLog(LOG_INFO, "INBE: Background timer ACTIVATED - screen off");
}
void
android_timer_deactivate(void) {
pthread_mutex_lock(&timer_mutex);
timer_active = 0;
pthread_mutex_unlock(&timer_mutex);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "DEACTIVATE: Timer inactive");
TraceLog(LOG_INFO, "INBE: Background timer DEACTIVATED - screen on");
}
void*
android_timer_get_app(void)
{
void *app;
pthread_mutex_lock(&timer_mutex);
app = g_app;
pthread_mutex_unlock(&timer_mutex);
return app;
}
+27
View File
@@ -0,0 +1,27 @@
#ifndef INBE_ANDROID_TIMER_H
#define INBE_ANDROID_TIMER_H
#ifdef __ANDROID__
#include <jni.h>
#include <pthread.h>
void android_timer_init(void);
void android_timer_start(void);
void android_timer_stop(void);
void android_timer_set_app(void *app_ptr);
void android_timer_activate(void);
void android_timer_deactivate(void);
void* android_timer_get_app(void);
pthread_mutex_t* android_timer_get_mutex(void);
#else
// Stub functions for non-Android platforms
static inline void android_timer_init(void) {}
static inline void android_timer_start(void) {}
static inline void android_timer_stop(void) {}
static inline void android_timer_set_app(void *app_ptr) {(void)app_ptr;}
static inline void android_timer_activate(void) {}
static inline void android_timer_deactivate(void) {}
static inline void* android_timer_get_app(void) { return NULL; }
static inline void* android_timer_get_mutex(void) { return NULL; }
#endif
#endif
+160
View File
@@ -0,0 +1,160 @@
#include "android_wakelock.h"
#include <stdio.h>
#include <string.h>
#include <raylib.h>
#include <pthread.h>
#include <android/log.h>
#include <android_native_app_glue.h>
#include <jni.h>
#define LOG_TAG "INBE_WAKE"
static JavaVM *g_jvm = NULL;
static jobject g_activity = NULL;
static jmethodID g_acquire_method = NULL;
static jmethodID g_release_method = NULL;
static jmethodID g_keep_screen_on_method = NULL;
static jmethodID g_allow_screen_off_method = NULL;
static pthread_mutex_t wakelock_mutex = PTHREAD_MUTEX_INITIALIZER;
void android_wakelock_init(void) {
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "=== android_wakelock_init ===");
}
void android_wakelock_set_activity(JNIEnv *env, jobject activity) {
pthread_mutex_lock(&wakelock_mutex);
if (g_activity) {
(*env)->DeleteGlobalRef(env, g_activity);
}
g_activity = (*env)->NewGlobalRef(env, activity);
if (g_activity) {
jclass clazz = (*env)->GetObjectClass(env, activity);
if (clazz) {
g_acquire_method = (*env)->GetMethodID(env, clazz, "acquireWakeLock", "()V");
g_release_method = (*env)->GetMethodID(env, clazz, "releaseWakeLock", "()V");
g_keep_screen_on_method = (*env)->GetMethodID(env, clazz, "keepScreenOn", "()V");
g_allow_screen_off_method = (*env)->GetMethodID(env, clazz, "allowScreenOff", "()V");
(*env)->DeleteLocalRef(env, clazz);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "Wake lock activity set successfully");
}
}
pthread_mutex_unlock(&wakelock_mutex);
}
void android_wakelock_acquire(void) {
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "=== ACQUIRE START ===");
pthread_mutex_lock(&wakelock_mutex);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "ACQUIRE: Checking if g_jvm and g_activity are set");
char msg[128];
snprintf(msg, sizeof(msg), "ACQUIRE: g_jvm=%p, g_activity=%p", g_jvm, g_activity);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, msg);
if (!g_jvm || !g_activity) {
__android_log_write(ANDROID_LOG_ERROR, LOG_TAG, "ACQUIRE: JNI not initialized - skipping wake lock");
pthread_mutex_unlock(&wakelock_mutex);
return;
}
JNIEnv *env = NULL;
jint result = (*g_jvm)->GetEnv(g_jvm, (void**)&env, JNI_VERSION_1_6);
if (result == JNI_EDETACHED) {
result = (*g_jvm)->AttachCurrentThread(g_jvm, &env, NULL);
}
if (env && g_acquire_method) {
(*env)->CallVoidMethod(env, g_activity, g_acquire_method);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "ACQUIRE: SUCCESS");
}
pthread_mutex_unlock(&wakelock_mutex);
TraceLog(LOG_INFO, "INBE: Wake lock acquired");
}
void android_wakelock_release(void) {
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "=== RELEASE START ===");
pthread_mutex_lock(&wakelock_mutex);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "RELEASE: Checking if g_jvm and g_activity are set");
char msg[128];
snprintf(msg, sizeof(msg), "RELEASE: g_jvm=%p, g_activity=%p", g_jvm, g_activity);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, msg);
if (!g_jvm || !g_activity) {
__android_log_write(ANDROID_LOG_ERROR, LOG_TAG, "RELEASE: JNI not initialized - skipping wake lock");
pthread_mutex_unlock(&wakelock_mutex);
return;
}
JNIEnv *env = NULL;
jint result = (*g_jvm)->GetEnv(g_jvm, (void**)&env, JNI_VERSION_1_6);
if (result == JNI_EDETACHED) {
result = (*g_jvm)->AttachCurrentThread(g_jvm, &env, NULL);
}
if (env && g_release_method) {
(*env)->CallVoidMethod(env, g_activity, g_release_method);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "RELEASE: SUCCESS");
}
pthread_mutex_unlock(&wakelock_mutex);
TraceLog(LOG_INFO, "INBE: Wake lock released");
}
void android_keep_screen_on(void) {
pthread_mutex_lock(&wakelock_mutex);
if (!g_jvm || !g_activity) {
__android_log_write(ANDROID_LOG_ERROR, LOG_TAG, "KEEP_SCREEN_ON: JNI not initialized - skipping");
pthread_mutex_unlock(&wakelock_mutex);
return;
}
JNIEnv *env = NULL;
jint result = (*g_jvm)->GetEnv(g_jvm, (void**)&env, JNI_VERSION_1_6);
if (result == JNI_EDETACHED) {
result = (*g_jvm)->AttachCurrentThread(g_jvm, &env, NULL);
}
if (env && g_keep_screen_on_method) {
(*env)->CallVoidMethod(env, g_activity, g_keep_screen_on_method);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "KEEP_SCREEN_ON: SUCCESS");
}
pthread_mutex_unlock(&wakelock_mutex);
}
void android_allow_screen_off(void) {
pthread_mutex_lock(&wakelock_mutex);
if (!g_jvm || !g_activity) {
__android_log_write(ANDROID_LOG_ERROR, LOG_TAG, "ALLOW_SCREEN_OFF: JNI not initialized - skipping");
pthread_mutex_unlock(&wakelock_mutex);
return;
}
JNIEnv *env = NULL;
jint result = (*g_jvm)->GetEnv(g_jvm, (void**)&env, JNI_VERSION_1_6);
if (result == JNI_EDETACHED) {
result = (*g_jvm)->AttachCurrentThread(g_jvm, &env, NULL);
}
if (env && g_allow_screen_off_method) {
(*env)->CallVoidMethod(env, g_activity, g_allow_screen_off_method);
__android_log_write(ANDROID_LOG_INFO, LOG_TAG, "ALLOW_SCREEN_OFF: SUCCESS");
}
pthread_mutex_unlock(&wakelock_mutex);
}
// Called from JNI to set the JVM reference
void android_wakelock_set_jvm(JavaVM *vm) {
g_jvm = vm;
}
+22
View File
@@ -0,0 +1,22 @@
#ifndef INBE_ANDROID_WAKELOCK_H
#define INBE_ANDROID_WAKELOCK_H
#ifdef __ANDROID__
#include <jni.h>
void android_wakelock_init(void);
void android_wakelock_acquire(void);
void android_wakelock_release(void);
void android_keep_screen_on(void);
void android_allow_screen_off(void);
void android_wakelock_set_activity(JNIEnv *env, jobject activity);
void android_wakelock_set_jvm(JavaVM *vm);
#else
// Stub functions for non-Android platforms
static inline void android_wakelock_init(void) {}
static inline void android_wakelock_acquire(void) {}
static inline void android_wakelock_release(void) {}
static inline void android_keep_screen_on(void) {}
static inline void android_allow_screen_off(void) {}
#endif
#endif
-107
View File
@@ -1,107 +0,0 @@
#include "android_insets.h"
#include <string.h>
#ifdef __ANDROID__
#include <raylib.h>
#include <pthread.h>
#include <android_native_app_glue.h>
#include <jni.h>
#ifndef JNI_VERSION_1_6
#define JNI_VERSION_1_6 0x10060000
#endif
extern struct android_app *GetAndroidApp(void);
static JavaVM *g_jvm = NULL;
static jobject g_activity = NULL;
static volatile struct {
int status_bar;
int nav_bar;
int cutout_left;
int cutout_top;
int cutout_right;
int cutout_bottom;
} current_insets = {0};
static pthread_mutex_t insets_mutex = PTHREAD_MUTEX_INITIALIZER;
// JNI function - Java calls this to push inset values
static void nativeSetInsets(JNIEnv *env, jobject thiz,
jint status_bar, jint nav_bar,
jint cutout_left, jint cutout_top, jint cutout_right, jint cutout_bottom)
{
TraceLog(LOG_INFO, "INBE: Java insets: status=%d, nav=%d, cutout_top=%d",
status_bar, nav_bar, cutout_top);
pthread_mutex_lock(&insets_mutex);
current_insets.status_bar = status_bar;
current_insets.nav_bar = nav_bar;
current_insets.cutout_left = cutout_left;
current_insets.cutout_top = cutout_top;
current_insets.cutout_right = cutout_right;
current_insets.cutout_bottom = cutout_bottom;
pthread_mutex_unlock(&insets_mutex);
// Memory barrier to ensure all threads see the updated values
__sync_synchronize();
}
// JNI method table
static const JNINativeMethod g_methods[] = {
{"nativeSetInsets", "(IIIIII)V", (void*)nativeSetInsets},
};
// JNI_OnLoad - Register native methods
JNIEXPORT jint JNI_OnLoad(JavaVM *vm, void *reserved)
{
JNIEnv *env = NULL;
jint result;
g_jvm = vm;
result = (*vm)->GetEnv(vm, (void**)&env, JNI_VERSION_1_6);
if (result != JNI_OK) {
TraceLog(LOG_ERROR, "INBE: Failed to get JNI environment");
return result;
}
// Find the MainActivity class
jclass clazz = (*env)->FindClass(env, "xyz/waozi/inbe/MainActivity");
if (clazz == NULL) {
TraceLog(LOG_ERROR, "INBE: Failed to find MainActivity class");
return JNI_ERR;
}
// Register native methods
result = (*env)->RegisterNatives(env, clazz, g_methods, sizeof(g_methods) / sizeof(g_methods[0]));
if (result != JNI_OK) {
TraceLog(LOG_ERROR, "INBE: Failed to register native methods");
return result;
}
return JNI_VERSION_1_6;
}
void android_insets_init(void) {
pthread_mutex_lock(&insets_mutex);
memset((void *)&current_insets, 0, sizeof(current_insets));
pthread_mutex_unlock(&insets_mutex);
}
void android_insets_get(AndroidInsets *out) {
pthread_mutex_lock(&insets_mutex);
// Simply return the current values
if (out) {
out->status_bar = current_insets.status_bar;
out->nav_bar = current_insets.nav_bar;
out->cutout_left = current_insets.cutout_left;
out->cutout_top = current_insets.cutout_top;
out->cutout_right = current_insets.cutout_right;
out->cutout_bottom = current_insets.cutout_bottom;
}
pthread_mutex_unlock(&insets_mutex);
}
#endif
+564 -735
View File
File diff suppressed because it is too large. Load diff
+95 -23
View File
@@ -3,14 +3,12 @@
#include "raylib.h"
#include "../libinbe/inbe.h"
/* ================================================================
* SETTINGS CONSTANTS
* ================================================================ */
#include "flint_text_layout.h"
#include "app_fwd.h"
enum {
SETTINGS_SPEED_MIN = 1,
SETTINGS_SPEED_MAX = 16,
SETTINGS_SPEED_MAX = 12,
SETTINGS_BREATHS_MIN = 15,
SETTINGS_BREATHS_MAX = 80,
SETTINGS_PAUSE_MIN = 0,
@@ -22,17 +20,14 @@ enum {
SETTINGS_CONTENT_H = 400,
CONTENT_MAX_W = 440,
CONTENT_SIDE_PAD = 16,
CIRCLE_SIDE_PAD = 24,
TUTORIAL_STEPS = 5,
CIRCLE_SIDE_PAD = 32,
FS_PATH_MAX = 512
};
enum {
/* Icon sizes (base values in logical pixels) */
ICON_SIZE_SMALL = 22,
ICON_SIZE_MEDIUM = 26,
ICON_SIZE_LARGE = 30,
/* Min/max ranges for DPI scaling */
ICON_SIZE_SMALL_MIN = 20,
ICON_SIZE_SMALL_MAX = 36,
ICON_SIZE_MEDIUM_MIN = 24,
@@ -41,31 +36,66 @@ enum {
ICON_SIZE_LARGE_MAX = 44
};
enum {
SETTINGS_CATEGORY_PRACTICE = 0,
SETTINGS_CATEGORY_APP,
SETTINGS_CATEGORY_ABOUT_DATA,
SETTINGS_CATEGORY_COUNT
};
enum {
PRACTICE_SUBTAB_BREATHING = 0,
PRACTICE_SUBTAB_SESSION,
PRACTICE_SUBTAB_COUNT
};
enum {
APP_SUBTAB_SOUND = 0,
APP_SUBTAB_VISUAL,
APP_SUBTAB_LANGUAGE,
APP_SUBTAB_COUNT
};
enum {
ABOUT_DATA_SUBTAB_DATA = 0,
ABOUT_DATA_SUBTAB_ABOUT,
ABOUT_DATA_SUBTAB_COUNT
};
enum {
SETTINGS_TAB_BREATHING = 0,
SETTINGS_TAB_SESSION,
SETTINGS_TAB_SOUND,
SETTINGS_TAB_APPEARANCE,
SETTINGS_TAB_LANGUAGE,
SETTINGS_TAB_DATA,
SETTINGS_TAB_ABOUT,
SETTINGS_TAB_COUNT
};
/* ================================================================
* MODAL DIALOG TYPES
* ================================================================ */
typedef enum {
UIModalNone,
UIModalConfirmExitSession,
UIModalConfirmDeleteData,
UIModalConfirmDeleteHistory,
} UIModalType;
typedef struct {
int active;
UIModalType type;
int selected_button; /* 0 = cancel/left, 1 = confirm/right */
int selected_button;
} UIModal;
typedef struct InbeConfig {
char title[64];
int width;
int height;
int loaded;
int title_custom;
} InbeConfig;
extern InbeConfig config;
typedef struct LotusAppApi {
const char *id;
void *(*create)(void);
@@ -75,7 +105,10 @@ typedef struct LotusAppApi {
void (*destroy)(void *state);
} LotusAppApi;
typedef struct InbeApp InbeApp;
typedef enum HoldDisplayMode {
HOLD_DISPLAY_CIRCLE = 0,
HOLD_DISPLAY_STOPWATCH = 1,
} HoldDisplayMode;
struct InbeApp {
Inbe inbe;
@@ -92,13 +125,22 @@ struct InbeApp {
Texture2D pause_icon;
Texture2D stat_icon;
Texture2D home_icon;
Texture2D trash_icon;
Texture2D pencil_icon;
Texture2D save_icon;
Texture2D discord_icon;
Texture2D telegram_icon;
Texture2D globe_icon;
Texture2D stripe_icon;
Texture2D monero_icon;
Texture2D sound0_icon;
Texture2D sound1_icon;
Texture2D sound2_icon;
Texture2D sound3_icon;
Texture2D angel_image;
Texture2D begin_image;
Texture2D font_shapes_texture;
Font locale_font;
Sound breath_in_sound;
Sound breath_out_sound;
Sound bell_sound;
@@ -111,19 +153,35 @@ struct InbeApp {
int settings_scroll;
int settings_drag_slider;
int settings_drag_scrollbar;
int settings_drag_content; /* Drag content area to scroll */
int settings_drag_content_y; /* Initial Y position when drag starts */
int settings_drag_content;
int settings_drag_content_y;
int settings_dirty;
int settings_tab;
int fullscreen_enabled; /* Fullscreen mode */
int settings_category;
int settings_sub_tab;
int device_picker_open;
int device_picker_scroll;
int fullscreen_enabled;
int on_screen_keyboard_enabled;
char language[16];
int language_selected;
int language_index;
int language_needs_save;
int manual_scroll;
int manual_drag_scrollbar;
int manual_drag_content;
int manual_drag_content_y;
int tutorial_step;
int tutorial_seen;
FlintTextLayout *tutorial_layouts[6];
int tutorial_layouts_initialized;
int theme_id;
int dark_mode;
#if defined(LOTUS_BUILD)
unsigned int lotus_settings_version;
#endif
int history_scroll;
int history_drag_scrollbar;
int history_drag_content;
@@ -133,20 +191,31 @@ struct InbeApp {
int history_month;
int history_day;
char history_record[16];
int history_edit_active;
int history_edit_kind;
int history_edit_round;
int history_edit_cursor;
char history_edit_path[FS_PATH_MAX];
char history_edit_text[16];
int history_delete_kind;
int history_delete_round;
char history_delete_path[FS_PATH_MAX];
int advanced_session_controls;
int hold_display_mode;
int session_paused;
int backgrounded;
int results_saved;
char results_path[FS_PATH_MAX];
int saved_pause_seconds;
int volume_popup_active;
UIModal modal;
};
void inbe_app_init(void *app);
void inbe_app_update_draw(void *app, Rectangle viewport);
const char *inbe_app_title(void);
int inbe_app_width(void);
int inbe_app_height(void);
void update_session_sounds(InbeApp *app);
const LotusAppApi *inbe_app_api(void);
/* Helper functions */
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);
@@ -155,6 +224,9 @@ void reset_settings_preview(InbeApp *app);
void update_preview_bounds(Inbe *inbe, int content_w, int max_h);
void apply_settings(Inbe *inbe, int speed, int max_rounds, int max_breaths, int pause_seconds);
void refresh_theme_colors(int theme_id, int dark_mode);
void refresh_locale_dependent_text(InbeApp *app);
void apply_language_selection(InbeApp *app, int language_index, int save_now);
void draw_preview_inbe(Inbe *inbe, int center_x, int center_y);
int draw_hold_display_mode_selector(InbeApp *app, int x, int y, int w);
#endif
Loaded 100 of 173 files, more files were not shown because too many files have changed in this diff. Show more