Commit Graph

3563 Commits

Author SHA1 Message Date
darkfi
e30bd5d36e app: remove some uneeded async from fns 2026-01-06 16:32:49 +01:00
darkfi
0e20811752 app/edit: remove uneeded async qualifiers from fns now that TXT_CTX and self.editor is no longer behind AsyncMutexes 2026-01-06 16:20:43 +01:00
darkfi
38e5829196 app: various cleanups to Editor used by BaseEdit with main one being moving from async to purely sync. other changes:
* Removed `Option` wrapper from editor
* Removed `EditorHandle` wrapper
* Changed all editor locks to synchronous
* Made all Editor methods synchronous
* Created `ParleyDriverWrapper`. This makes using the driver much easier.
2026-01-06 15:31:55 +01:00
darkfi
68e73036af app/editor: add ParleyDriverWrapper which hugely simplifies driver access pattern 2026-01-06 15:31:55 +01:00
jkds
5c2bd621df app: remove old TEXT_CTX and replace with parley new pattern 2026-01-06 15:31:55 +01:00
jkds
9af3c403a7 app/chatview: fix multiline msgs 2026-01-06 07:43:05 +01:00
jkds
74b18df957 app: fix emoji picker due to recent changes 2026-01-06 05:56:33 +01:00
jkds
22f9597908 app: rename text2 => text 2026-01-05 18:20:29 +01:00
jkds
94a0db125e app: delete freetype 🎉🎉🎉 2026-01-05 18:14:43 +01:00
jkds
cc53053ef2 app: migrate emoji_picker to the new text API 2026-01-05 17:38:47 +01:00
jkds
0a8be750d3 app: remove text1 refs from ChatView 2026-01-05 12:34:47 +01:00
jkds
2caeba1c5f app/chatview: cleanup unused fn params and remove unused stuff 2026-01-05 12:16:35 +01:00
jkds
9d15053bee app/chatview: migrate FileMessage to text2 API 2026-01-05 10:38:00 +01:00
jkds
a9e1f04a9f app: do proper JVM thread mgmt. previously we call AttachThread() everywhere which is wrong, it should be called once per thread and then DetachThread() to cleanup. use thread local storage + Drop to make a thread guard for this. 2026-01-05 06:16:41 +01:00
jkds
6e23e98d26 app: replace androidx with just normal android classes so we dont need to bundle androidx jar 2026-01-05 06:15:13 +01:00
jkds
a46fc2963b app/chatview: migrate PrivMessage to text2 API 2026-01-04 19:42:27 +01:00
jkds
b7935765fb app: Cargo.lock update 2026-01-04 18:46:13 +01:00
jkds
3564bd1f84 app/chatview: migrate DateMessage to text2 API 2026-01-04 18:46:13 +01:00
oars
e641ac09f4 chore: fix rustdoc broken doc links and warnings 2026-01-04 15:13:27 +03:00
jkds
6c0dafbceb app/text2: modify text rendering so we build a single atlas for an entire parley Layout. this is handy if a layout does not change (text/styles) just the wrapping. then we can reuse the atlas. 2026-01-04 12:53:53 +01:00
jkds
6b9ef3aff2 app: fix potential bug on exit due to already dropped anim when draw() is called after window quit request. see below for more detailed info.
= Crash =

1. User quits -> god.stop_app() -> runtime stops
2. Arc<ManagedSeqAnim> drops -> delete_unmanaged_anim() -> animation removed from self.anims
3. miniquad event loop calls draw() one more time
4. draw_call() hits GfxDrawInstruction::Animation(anim_id) -> self.anims.get_mut(&anim_id).unwrap()
   PANIC! Animation was already deleted in step 2

= Cause =

- DrawCall holds Animation(AnimId) - just an ID, not a reference
- self.anims: HashMap<AnimId, GfxSeqAnim> stores actual animation data
- ManagedSeqAnim::drop() removes animation from self.anims
- DrawCalls may still reference deleted animations
- Race during shutdown: animations deleted before final draw()

= Fix =

Change Animation(AnimId) to Animation(ManagedSeqAnimPtr):
- Arc keeps ManagedSeqAnim alive as long as DrawCall exists
- Drop only fires when all DrawCalls are dropped
- Animation stays in self.anims until safe to delete
- Uses Rust ownership to prevent bug at compile time
2026-01-04 07:14:18 +01:00
jkds
8028ea9b10 app: use cargo features to enable switching between schema layouts 2026-01-04 05:35:54 +01:00
jkds
4378ea4845 update copyright dates on new files from 2025 to 2026 2026-01-04 05:25:56 +01:00
jkds
633d7f21ce Merge branch 'gameinput' 2026-01-04 05:13:35 +01:00
jkds
af086abc61 app/edit: fix bug where android sends us spurious compose changes. Just drop them. 2026-01-04 05:11:38 +01:00
jkds
d131828285 app: reduce JNI overhead when adjusting a selection by creating a special setSelection() fn so we dont have to pass the entire state over the bridge. 2026-01-03 11:22:03 +01:00
jkds
7d589fd2ac app/edit: improve perf of editing selection. only recalc rect when editing text itself (not select changes) 2026-01-03 06:36:44 +01:00
jkds
737ba095f9 app: android event handler improve editor logic 2026-01-03 02:40:47 +01:00
jkds
b182fa7fa9 app: improve android editor perf and eliminate a deadlock in android text input 2026-01-03 02:04:52 +01:00
skoupidi
fcf4aded0e darkfid: split managemtn rpc methods into its own rpc server and standarized all ports 2026-01-02 19:41:34 +02:00
x
4f30aae91d doc: Update book links 2026-01-02 17:28:09 +00:00
jkds
02530cc0f4 app: make editor support multiline 2026-01-02 12:33:24 +01:00
jkds
bcb10050df app: fix race condition in handling android IME events in BaseEdit 2026-01-02 10:38:29 +01:00
jkds
6835e16ff2 app: do a big cleanup of java GameTextInput code and make everything have a sane API. 2026-01-02 10:00:55 +01:00
jkds
64e38580b2 app: copy GameTextInput java code into app 2026-01-02 05:15:49 +01:00
epiphany
c00a551db4 fud: clippy 2026-01-01 21:49:37 +00:00
epiphany
fdbc1fb19c fud: fix Fud::get() comment 2026-01-01 20:20:26 +00:00
epiphany
f42d7a7e35 fud: merge file selections in fetch_resource() 2026-01-01 20:20:26 +00:00
epiphany
91124e4d24 fud: add get_progress() 2026-01-01 20:20:26 +00:00
epiphany
dc38cfb104 fud: add chunked_storages cache 2026-01-01 20:20:26 +00:00
epiphany
8f40ba9b77 fu: add file selection to list_resources() 2026-01-01 20:20:26 +00:00
epiphany
0a29562a3d fud/download: better error when metadata is not found 2026-01-01 20:20:25 +00:00
epiphany
f386645ce4 fud/resource: add file selections to json 2026-01-01 20:20:25 +00:00
epiphany
9b59ce44c8 fud: add Resource::get_chunks_of_selection() and Resource::get_bytes_of_selection() 2026-01-01 20:20:25 +00:00
epiphany
e66652e181 fud: impl FileSelection util methods 2026-01-01 20:20:25 +00:00
epiphany
94dc672a15 geode, fud: replace smol::fs::File with std::fs::File, add Chunk struct 2026-01-01 20:20:25 +00:00
x
fcdf5ee488 chore: Update crate dependencies 2026-01-01 19:48:04 +00:00
x
ed9be657ab serial: Bring it back home 2026-01-01 19:48:04 +00:00
skoupidi
e460c39e6c drk/interactive: added missing tx-from-calls subcommand 2026-01-01 19:14:21 +02:00
skoupidi
965870ab9b darkfid: support both normal address and base64 encoded mining configurations as miners recipient 2026-01-01 18:18:32 +02:00