126 Commits

Author SHA1 Message Date
dobbry-vechur d39ddb515b List Android assets at build time for the installer
- add generateAssetFileList gradle task mirroring aapt packaging rules
- read the asset list in the installer
2026-10-09 06:40:37 +04:00
dobbry-vechur f86d3fa641 Walk Android assets once, off the UI thread, on install
- collect the asset file list once in doInBackground
- copy files along the collected list
- reuse one 256 KB copy buffer
- publish progress every 100 ms
- log install time per phase
2026-10-09 06:40:37 +04:00
dobbry-vechur 63ca305a13 Draw the Android touch joystick as an octagon with direction and speed
- add touch_joystick classification, wedge and octagon helpers with tests
- draw octagon, active direction and speed fill with RenderGeometry
- add joystick straight direction angle and scale options
- relabel repeat delay range option as speed-up range
- remove the joystick.png texture and its load sites
2026-10-09 06:40:37 +04:00
dobbry-vechur 2e6bbe1fc5 Add Android portrait mode and scale the terminal from text size
- add orientation, text size, cap and portrait free area options
- size the cell from text size, the grid from the free area
- rebuild terminal fonts live, drawn 1:1 or at whole zoom
- keep the portrait view steady when the soft keyboard opens
- place portrait shortcuts below the view, in rows
- hide fixed terminal and font sizes on Android
2026-10-09 06:40:37 +04:00
dwvwvvwvwb 13d9e1ef8c Refactor SDL dependencies to use dynamic loading
Replaced hardcoded SDL AAR dependencies with dynamic loading from sdl3Aars.
2026-09-05 13:05:44 +08:00
dobbry-vechur 6de37a3430 Remove SDL2 from the build systems
- deleted the SDL2 branches and the bundled FindSDL2 modules
- made SDL3=0 and USE_SDL3=OFF hard errors
2026-08-12 05:46:34 +04:00
dobbry-vechur 6bbe832134 Add Android system bar display modes
- Added Android system UI mode option
- Replaced force-fullscreen splash setting
- Applied system UI changes from options
- Added IME inset scaling callback
- Wrapped splash settings in ScrollView
2026-06-07 17:39:04 +04:00
Maleclypse ad2cb4b45b Merge pull request #87442 from dobbry-vechur/android/display-safe-area
Draw the Android surface edge to edge with a safe-area display option
2026-06-05 18:09:41 -05:00
dobbry-vechur 7f0ec93db6 Align Android SDL3 AAR pins with release stack
- bump Android SDL3 AAR to 3.4.10 with updated zipSha256
- bump Android SDL3_mixer AAR to 3.2.4 with updated zipSha256
2026-06-05 20:59:35 +04:00
dobbry-vechur 278e5b2f57 Draw android surface edge to edge under hidden system bars 2026-06-05 16:35:00 +04:00
dobbry-vechur 4fe682d846 Android: skip ccache launcher when not on PATH
- guard CMAKE_*_COMPILER_LAUNCHER=ccache on PATH lookup
- probe ccache.exe on Windows hosts
- handle null PATH env
2026-06-01 06:07:56 +04:00
dobbry-vechur 817de3ccf5 Bump Android buildkit to AGP 8.7 / Gradle 8.9 / NDK r28 / API 35
- bump AGP 7.4.2 to 8.7.3, Gradle wrapper to 8.9
- bump NDK 25.2.9519653 to 28.1.13356709
- bump compileSdk and targetSdk 34 to 35, minSdk 21 to 24
- set CI JDK 11 to 17 in android-build and release-android-bundle workflows
- drop 16 KB linker flags and opt out of predictive-back
2026-05-29 00:08:49 +04:00
dobbry-vechur 3967fe5c87 Drop SDL2 fork apparatus, vendored Java, ndk-build files
- delete org/libsdl/app vendored SDL Java glue
- delete deps.zip, deps_debug.zip, build_deps.sh
- delete Android.mk, Application.mk, and third-party Android.mk files
2026-05-29 00:08:49 +04:00
dobbry-vechur 21f958501d Override SDLActivity for SDL3: load order, fullscreen, surface lifecycle
- override getLibraries with main first
- override getMainSharedObject to return absolute libmain.so path
- hide SDL surface in onCreate, reveal on show_sdl_surface
- apply immersive fullscreen at onCreate, onResume, onWindowFocusChanged
- branch WindowInsetsController (API 30+) vs legacy SYSTEM_UI_FLAG_*
2026-05-29 00:08:49 +04:00
dobbry-vechur fac9d29d2d Migrate Android Gradle native build to CMake + SDL3 prefab AAR
- swap externalNativeBuild ndkBuild for cmake in defaultConfig and buildTypes
- add buildFeatures.prefab true and SDL3 AAR file() dependencies
- add fetchSdl3Aars task with SHA256 pinning, replace unzipDeps
- derive abiFilters from per-ABI properties for cmake and ndk
- add 16 KB linker flags and drop deps/jniLibs/ndkBuildAppPlatform plumbing
2026-05-29 00:08:49 +04:00
dobbry-vechur c1f4f92359 Add Android CMakeLists for libmain.so under SDL3 prefab 2026-05-28 23:59:06 +04:00
dumb-kevin 9e1c26f33d Add SDL3 sound backend stub and dual-build source selection
- Added src/sound_backend_sdl3.cpp with no-op stub implementation
- Self-guarded sound_backend_sdl2.cpp and sdlsound.cpp on !USE_SDL3
- Narrowed SDL3+SOUND hard-error guards in Makefile and CMakeLists.txt to macOS only
- Gated SDL2_mixer find_package, link, and Windows runtime copy on NOT USE_SDL3
- Added missing sfx stub signatures needed for SDL3+SOUND link
- Migrated sdlsound.cpp SFX cache from Mix_Chunk to sound_backend::sfx_audio
- Routed get_sfx_resource and sfx wrappers through backend play_reserved and play_oneshot
- Dropped sdlsound_sdl3_stub.cpp in favor of shared sdlsound.cpp compiling under both backends
2026-05-03 01:00:56 +04:00
dumb-kevin 89e9f225b8 Add SDL3 compilation support with dual SDL2/SDL3 build
- Added Makefile SDL3=1 flag with pkg-config for sdl3/sdl3-image/sdl3-ttf
- Added imgui SDL3 backend selection and SDL3_mixer SOUND=0 guard
- Added #if SDL_MAJOR_VERSION >= 3 branches to all wrapper functions
- Added KMOD_CTRL/SHIFT/ALT aliases for SDL3 KMOD rename
- Added SDL3 branch to SDL_Surface_deleter
- Added SDL3 include paths in wrappers, version, allocator, sound
- Vendored imgui SDL3 backends from upstream v1.91.5
- Added conditional imgui backend calls in cata_imgui.cpp
- Guarded SDL_TEXTEDITING_EXT and Linux XMODIFIERS for SDL2 only
- Dropped SDL_INIT_TIMER and IMG_Init under SDL3
- Added +SDL3 suffix to version string for SDL3 builds
2026-05-03 01:00:56 +04:00
dwvwvvwvwb 547e2d1f8e Add DocumentsProvider for Android to enable root-free backup of game data (#86428)
* feat(android): add DocumentsProvider for root-free backup (API 19+)

* feat(android): add DocumentsProvider for root-free backup
2026-04-15 09:30:37 +02:00
akrieger dd1e430da7 Don't statically override malloc on any platform. Fix library load sequence on android. (#85547)
Co-authored-by: akrieger <akrieger@users.noreply.github.com>
2026-02-25 17:09:31 -08:00
akrieger ae59c8298a Add some boilerplate to make it easier to substitute different allocators. 2026-02-24 12:26:09 -08:00
dwvwvvwvwb 1fe0288b89 chore: add keystore.properties to .gitignore and stop tracking (#85317) 2026-02-21 01:37:52 -06:00
akrieger 7de68332af Use fmt instead of string_formatter 2026-01-13 09:06:26 -08:00
Procyonae 39e5080d56 Switch to getDefaultSharedPreferences 2025-08-31 00:55:13 +01:00
Procyonae 4e367f020e Add false positive tracking to the accessability warning 2025-08-30 23:41:16 +01:00
Andrew Krieger 4c8926df83 Integrate zstd into build. 2025-06-08 21:31:10 -04:00
Katie M 96c7e045a7 Fixed broken Android build due to missing FreeType library 2024-10-24 22:18:28 -04:00
Zhilkin Serg c5dbeed258 Bump Android API level to 34 2024-10-19 15:44:53 +03:00
Kate M c34d18ff11 Added ImGui support to Android. 2024-03-13 20:23:10 -04:00
Kate ccc011810f Update SDL version used by Android to v2.30.0 (#72154)
* Committing first shot at an automated builder script for Android SDL

* Updating, hopefully builds most SDL projects now

* third try at this, i think its working now

* last few changes, got everything to build

* Updated SDL java files based on v2.30.0 android sources with Cataclysm patches.

* build SDL sources based on my forked v2.30.0 repo with Cataclysm patches
2024-03-05 09:42:39 -08:00
Zhilkin Serg 3d6a0eb200 Allow versionCode customization through local properties 2023-11-01 23:34:58 +03:00
Zhilkin Serg 519477442f Bump Android API level to 33 (#69038) 2023-10-31 22:13:02 +03:00
Binrui Dong 0a39795fb4 Use lld linker for Android build 2023-03-16 23:33:05 +08:00
Binrui Dong 3c86aa5659 C++17 in Android NDK build 2023-03-16 23:33:04 +08:00
Binrui Dong a38b1ce571 Raise minimum Android API version to 21 2023-03-16 23:33:02 +08:00
Binrui Dong 452adad248 Make NDK version a configurable variable 2023-03-16 23:33:01 +08:00
Binrui Dong c93e6aee1d Move namespace decl from manifest XML to app gradle 2023-03-16 23:33:00 +08:00
Binrui Dong 094d24cbdb Update Android Gradle Plugin to 7.4.2 2023-03-16 23:04:49 +08:00
Binrui Dong bc9e6ff0dd Update gradle wrapper to 7.5 2023-03-16 23:01:00 +08:00
Zhilkin Serg 1935718de4 Added android:exported="true" to Android manifest (#62631)
This is needed for targeting Android 12 (API 31)
2022-12-08 22:09:39 -05:00
Zhilkin Serg 1b43f55836 Bump default SDK version for Android builds to 31 2022-12-08 14:12:56 +03:00
akrieger b157d7e23c Add flatbuffers to all build systems. 2022-09-15 22:04:54 -07:00
Zhilkin Serg 38529f16e6 Bump default SDK version for Android builds to 30 (#59268) 2022-07-15 01:20:41 -04:00
Zhilkin Serg 89c223cdbb Add accessibility services warning to Android pre-launch menu (#58297) 2022-06-10 14:20:16 -04:00
Binrui Dong c0f60d3232 Update Android UI translations 2021-12-04 19:54:41 +08:00
Binrui Dong b2b6064a44 Native Android UI for single choice list menu 2021-12-03 10:06:04 +08:00
Binrui Dong 247ca4807d Native Android UI for popup messages and Yes/No dialog (#53132) 2021-12-02 12:20:34 -08:00
Serhiy Zahoriya cd31f25349 Performance "Seamless loading of gzipped JSON/txt files (data and map)" (#44218)
Co-authored-by: Oleg Antipin <60584843+olanti-p@users.noreply.github.com>
Co-authored-by: John Bytheway <jbytheway@gmail.com>
Co-authored-by: LcsTen <lcs10.twinoid@gmail.com>
Co-authored-by: akrieger <akrieger@users.noreply.github.com>
Co-authored-by: Zhilkin Serg <ZhilkinSerg@users.noreply.github.com>
2021-10-08 17:03:59 +03:00
Binrui Dong 54f394bef1 Remove libintl-lite from Android shared libraries list 2021-09-19 16:08:54 +08:00
Binrui Dong 0efe692cae In-house translation library implementation to support loading multiple MO files (#51363)
* Core part of built-in translation library

* Test coverage for translation library

* Plural forms evaluator

* Add plural forms translation test cases

* Remove dependency on gettext and libintl

* Remove libintl-lite for Android

* Rename ngettext to n_gettext to avoid collision with libintl.h

* Improve InvalidTranslationDocumentException diagnostic message

* Fix raw_string_format not supporting positional arguments on Windows
2021-09-18 09:04:17 -07:00