Commit Graph

239 Commits

Author SHA1 Message Date
x
9785777642 chore: Update copyright license year
Happy 2026!
2026-01-01 11:40:45 +00:00
jkds
49bcfb575f app: tweak android build paths and Dockerfile 2026-01-01 08:38:38 +01:00
jkds
7c9baa0db1 app: cargo update 2026-01-01 04:54:01 +01:00
jkds
420e33853f app: switch to narodnik miniquad temporarily 2026-01-01 04:54:01 +01:00
jkds
2494e52558 app/gfx: fix subtle bug in apply_view/apply_scissor calc where coords are not relative but absolute so use + old_view.pos() 2025-12-31 14:10:43 +01:00
jkds
489730cb31 app: correct calcs for IME insets 2025-12-31 11:02:41 +01:00
jkds
13755ab328 app: disable miniquad resizing the content when IME is shown. instead transfer the responsibility directly to the app, this way we can avoid flickering where our canvas is resized BEFORE ui updates have been applied, and secondly we can draw a full screen canvas. 2025-12-31 10:51:27 +01:00
jkds
2b67c92877 app/gfx: RETVRN to directly polling method queue 2025-12-31 06:11:58 +01:00
jkds
ac0a2d3f25 app/gfx: remove refresh_task since sleep_interval_ms is now a miniquad setting so this task isnt needed anymore. 2025-12-31 06:11:58 +01:00
jkds
bda9b64d09 net: add reload() fn which reloads settings. currently all stubs except outgoing conns setting 2025-12-31 05:07:22 +01:00
jkds
0897ce2f8c app/gfx: make batch changes use batch end time and completely atomic. drop the entire batch if theres a single conflict 2025-12-31 04:36:29 +01:00
jkds
88a481d36b app/vid: stop decoding immediately on Video::stop() 2025-12-30 16:01:14 +01:00
jkds
51dc7c4a9b app: introduce window start/stop signals, and use those to adjust the outbound connection count in darkirc plugin from 6 -> 1 (or vice versa) when app is opened/closed 2025-12-30 15:41:19 +01:00
jkds
a29dbb06b9 app/vid: minor cleanup (Av1VideoData is cloneable so just clone directly) 2025-12-30 13:55:13 +01:00
jkds
ab303d8b0d app: update Makefile asset paths to use dark.fi/assets/ now 2025-12-30 13:41:59 +01:00
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