Commit Graph

224 Commits

Author SHA1 Message Date
jkds
a695718a73 app/vid: add missing VideoDecoder.java file for android hardware accel vid decoder 2025-12-30 13:30:07 +01:00
jkds
edc37a3724 app/vid: cleanup java JNI glue code 2025-12-30 12:42:32 +01:00
jkds
cb92bdd847 app/vid: decode video using native hardware on android 2025-12-30 12:35:43 +01:00
jkds
a9f058d197 app/vid: improve log output 2025-12-30 12:35:43 +01:00
oars
81bd50925c bin/app: DEP-0007: rename allowed_transports, retrieve outbound_connect_timeout, channel_handshake_timeout, channel_heartbeat_interval from network profiles 2025-12-30 11:30:54 +03:00
oars
860a0e1ed5 bin/app/plugin: DEP-0006: hardcode darkirc and fud as app_name in their respective plugin 2025-12-30 11:30:54 +03:00
oars
fcf0571a1a bin: set unique magic bytes for each seprate p2p network
- add magic bytes to p2p net configs for bins
- hardcode darkirc and fud magic bytes in bin/app darkirc and fud plugins
- make lilith use the separate magic bytes for different p2p networks
2025-12-30 11:30:54 +03:00
darkfi
a05956d412 app: cleanup rav1d build stuff in Makefile and Cargo.toml 2025-12-29 21:28:01 -03:00
darkfi
d1b94095a8 app: fix IVF AV1 YUV 420 vids to work on Android. Turns out the decoding thread had a race condition, so we do the header loading sync now to get the number of frames first before continuing. it hardly affects performance much at all. 2025-12-28 03:21:21 -03:00
darkfi
efd375b443 app: add support for multiple pipelines, and introduce a YUV shader. Migrate video AV1 to YUV 420 format. 2025-12-27 16:29:29 -03:00
darkfi
2129017031 app: add forgotten vid submodule 2025-12-26 02:22:26 -03:00
darkfi
a6d8104b97 Revert "Add iOS build and run support for the DarkFi app"
This reverts commit 7243212aee.
2025-12-26 02:15:38 -03:00
darkfi
0e56d14013 app/vid: make video decoding fast now. turns out i just need release mode for rav1d 2025-12-26 01:07:00 -03:00
darkfi
187829a873 app/gfx: allow RGB8 texture fmts in addition to RGBA8 2025-12-25 19:46:14 -03:00
darkfi
f897e8f36c app: migrate to a proper video loader (slow) 2025-12-25 16:36:03 -03:00
x
4e8f200222 app: Add .zip and assets to gitignore 2025-12-25 14:29:59 +00:00
x
43f1d8d1ed app: Fix compilation error 2025-12-25 14:25:28 +00:00
x
6816feedeb app: Update halo2 deps 2025-12-25 14:22:15 +00:00
x
add9bb596c chore: Update crate dependencies 2025-12-25 12:22:56 +00:00
skoupidi
5d47358902 chore: updated sled-overlay to new version 2025-12-24 14:01:20 +02:00
darkfi
37a5402606 app: add ravid video codec decoder wrapper 2025-12-24 06:43:53 -03:00
darkfi
2a26349ab5 app: add new video module, which contains IVF demuxer and YUV -> RGB color conversion. add rav1d branch with rust API to cargo.toml 2025-12-24 04:34:30 -03:00
darkfi
edc767fa66 app/gfx: remove option from GfxDrawMesh::compile() and just panic in the failure case. Any such error is an internal error. 2025-12-23 19:09:56 -03:00
darkfi
4f34d21b87 app/gfx: apply pruning to video stuff 2025-12-23 19:09:56 -03:00
nighthawk24
7243212aee Add iOS build and run support for the DarkFi app
This pull request adds full iOS build and run support for the DarkFi app, including device, simulator and Xcode integration. It introduces ios-release  and ios-sim Makefile targets that build signed app bundles for devices and simulators.

Add SDK detection and Apple Silicon arch via xcrun / xcodebuild and improved error messages.

A new ios-xcode target generates a minimal DarkFi.xcodeproj using the external build system so the app can be archived and uploaded directly from Xcode.

The changes include an ios-Info.plist , updated entitlements and embedded.mobileprovision handling to fix crash-on-launch issues and allow fullscreen UI and arbitrary network loads.

iOS-specific path handling and ui_consts are added (with  #cfg(target_os = "ios")  and  HOME/Documents  logic) to avoid sandbox panics and unwritable home directory crashes while keeping Tor/arti working.

Asset copying is standardized so the assets content (including forest_720x1280 / 1920x1080 and locales) is laid out in the bundle in a way that matches the code’s VID_PATH / LOCALE_PATH expectations and macroquad ’s resource lookup on iOS.

Cargo dependencies are tuned for iOS by keeping required pieces like tor-dirmgr, excluding incompatible ones like tracing-android and ensuring no problematic iOS-only libraries cause link or runtime errors.
2025-12-22 17:23:37 -03:00
darkfi
7cd4aedce9 app/gfx: add missing ctx.end_render_pass() call at the end of the gfx draw() method. 2025-12-22 15:05:55 -03:00
skoupidi
5d9bfe7507 chore: updated sled-overlay to new version 2025-12-22 16:09:09 +02:00
skoupidi
346a3517bd chore: updated sled-overlay to new version 2025-12-22 15:36:52 +02:00
skoupidi
82ac85872c chore: updated sled-overlay to new version 2025-12-22 14:37:17 +02:00
epiphany
1f99bf931d app: add fud plugin, add FileMessage to MessageBuffer 2025-12-05 16:00:49 +00:00
darkfi
81f160df1b app/gfx: cleanup unused fields and fix warnings 2025-11-29 22:07:14 -03:00
darkfi
cb0193dd56 app/gfx: replace screen_was_off bool with an actual ScreenState state machine enum that keeps track of the screen state lifecycle as we switch it off and on transitioning between states. We need this to ensure proper ordering of queueing buffered operations, restarting processes and other such operations. 2025-11-29 13:58:58 -03:00
darkfi
ece4e4d871 app: cargo update 2025-11-29 11:53:29 -03:00
darkfi
8c507f6f06 app/gfx: simplify and strengthen gfx engine. We now only buffer texture/buffer changes when screen is off, and when screen is switched on we just request a screen redraw. Additionally we now use the same time source which is the batch close time when merging batch changes. This theoretically should reduce screen tearing. We also keep track of dropped batches for debug and internal correctness checking, in general we have increased/tightened the internal logic. 2025-11-29 11:49:10 -03:00
darkfi
5c3b100b8e util/log: only show fields for span on enter and close 2025-11-14 19:07:45 -03:00
darkfi
810fa61e00 app: instrument entire draw tree 2025-11-14 18:31:02 -03:00
darkfi
33d8ad60ae app: tracing instrument a few fns and add spans to logging 2025-11-14 14:15:28 -03:00
darkfi
923b1ffb7c app: cargo update 2025-11-14 14:12:12 -03:00
darkfi
b41eba2b5d app: name all spawned threads 2025-11-13 12:22:51 -03:00
darkfi
2472d56531 app: improve send button click perf on android by making atomic as short lived as possible. 2025-11-13 00:27:00 -03:00
oars
52e3d4655b util/logger,util/cli,bin/app/logger: fix issues with file logging
- log not saved to file because NonBlocking guard was dropped early in util/cli
- colored ansi text used for file logging
2025-11-11 21:03:19 +03:00
oars
06ac488ccb bin/app: replace log with tracing
- replaced android-logger with android-tracing crate
- use tracing-appender to make file-rotate nonblocking
- add a couple of targets to muted_targets
2025-11-07 10:15:37 +03:00
darkfi
2917486b14 app: recreate the internal video queue when init() is called (window closed and reopened) 2025-11-02 10:28:03 +01:00
darkfi
06ae05d11f app: make tweaks to build and release workflow for win/mac 2025-11-01 15:18:01 +01:00
darkfi
1ed1dd35fc app: final bg vid tweaks for release. darken bg on actual chats with a subtle gradient, diff sizes for mobile and desktop. 2025-11-01 12:23:38 +01:00
darkfi
d14039b0ee app: update vid bg 2025-10-30 19:07:07 +01:00
darkfi
64b167e134 app: use upstream parley git repo, rework editor set_selection() 2025-10-30 09:04:21 +01:00
darkfi
6cf6d53714 app: always center background video 2025-10-29 09:57:17 +01:00
darkfi
f5037e7d0d app: use QOI files for video loading 2025-10-26 18:28:01 +01:00
darkfi
6c1941c49b app: make menu darker 2025-10-25 21:58:33 +02:00