Commit Graph

7754 Commits

Author SHA1 Message Date
Vitor Pamplona 5c601d74b9 Merge branch 'main' into reduce-max-requets-when-in-emulator 2025-09-17 09:06:00 -04:00
davotoula 2027c7d77d use default settings (64) when in emulator 2025-09-17 15:01:46 +02:00
Vitor Pamplona faffe2a936 About 30-40% event hashing performance boost 2025-09-17 08:40:06 -04:00
Vitor Pamplona c375fa0ab8 Adds another catch to get object errors when parsing NIP-28 metadata 2025-09-17 08:40:06 -04:00
Vitor Pamplona 123eca1f90 Fixes NPE on the invoice parser 2025-09-17 08:40:06 -04:00
Vitor Pamplona 83e87c2cf4 Adds an event id hash check that doesn't create a separate bytearray to compare between the incoming hex from the relay and the recalculated byte array from SHA256. 2025-09-17 08:40:06 -04:00
davotoula f4501d799d Added withContext(Dispatchers.IO) for network call 2025-09-17 14:29:42 +02:00
davotoula 5796052f36 added live/offline status indicator for the DisplayLiveBubbles method
Checks streaming URLs for LiveActivitiesChannel and relay URLs for both channel types
2025-09-17 14:29:42 +02:00
davotoula c1012bd859 let's remove the maxRequestsPerHost increase, can be done in a separate PR 2025-09-17 11:22:28 +02:00
davotoula 6440b86a5e remove commented out code 2025-09-17 11:10:40 +02:00
davotoula dddf65e60f Added test for emulator to set maxRequests to 32 to prevent crashing emulator
Increased maxRequestsPerHost in release version to 20 from default 5 to allow for more concurrent connections to a relay (subscribing to timeline + mentions + DMs + profile updates + notifications, etc..)
2025-09-17 11:10:10 +02:00
David Kaspar 80c884a4d1 Merge pull request #1477 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2025-09-17 06:10:11 +01:00
Crowdin Bot 497b019093 New Crowdin translations by GitHub Action 2025-09-16 20:57:54 +00:00
Vitor Pamplona 03b320e5b7 Merge pull request #1476 from davotoula/fix-benchmark-apk-location
resolve intermittent CI build failures - fix benchmark apk location
2025-09-16 16:56:43 -04:00
davotoula 00c0472155 remove second identical(?) test run 2025-09-16 18:38:46 +02:00
davotoula 8a66276755 fix benchmark apk location 2025-09-16 18:06:14 +02:00
KotlinGeekDev 6eab098f2e Merge branch 'vitorpamplona:main' into profiles-list-management 2025-09-16 13:02:13 +00:00
Vitor Pamplona eaf8cb3384 Don't check for the max size in string anymore 2025-09-15 17:25:47 -04:00
Vitor Pamplona cd0b1b65fb Merge expanding and checking Hmac functions to avoid re-creating the Mac instance. 2025-09-15 17:25:36 -04:00
Vitor Pamplona e329b096ba Moves the message key to the HKDF function 2025-09-15 16:21:11 -04:00
Vitor Pamplona 239cac430e Adds a test for native vs libsodium chacha20 2025-09-15 16:15:07 -04:00
Vitor Pamplona 24a5750155 Generalizes fixed key setup 2025-09-15 16:14:43 -04:00
Vitor Pamplona cb5299e265 Simple refactoring 2025-09-15 16:14:09 -04:00
Vitor Pamplona c3c8b87b91 Merge branch 'main' of https://github.com/vitorpamplona/amethyst 2025-09-15 15:15:56 -04:00
Vitor Pamplona 98aaef61c7 Faster Hkdf functions with less array copying and allocations (which can be impactful if the ciphertext is large) 2025-09-15 15:15:44 -04:00
KotlinGeekDev 1d3dadace2 Merge branch 'vitorpamplona:main' into profiles-list-management 2025-09-15 18:39:36 +00:00
Vitor Pamplona bd70058f78 Avoids creating a byte array and recreating it again inside of the Mac instance. 2025-09-15 12:30:56 -04:00
Vitor Pamplona 67f9557081 Reduces the need to keep the memory for checking the Mac and decrypting at the same time, allowing the GC to run after the check was correct. 2025-09-15 12:30:26 -04:00
Vitor Pamplona 689066fd44 Benchmark for NIP-44 operations 2025-09-15 12:29:26 -04:00
David Kaspar cdd5995513 Merge pull request #1474 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2025-09-15 17:11:16 +01:00
Crowdin Bot 0c4cd4f940 New Crowdin translations by GitHub Action 2025-09-15 16:09:54 +00:00
Vitor Pamplona c84554576c Fixes flow.value warnings. 2025-09-15 12:08:04 -04:00
Vitor Pamplona 7616d01166 Implements NIP-44 extension for bigger payloads https://github.com/nostr-protocol/nips/pull/1907 2025-09-15 11:58:43 -04:00
Vitor Pamplona 60b71a5561 Merge branch 'main' of https://github.com/vitorpamplona/amethyst 2025-09-15 08:51:41 -04:00
Vitor Pamplona a7b89cb778 Removing unused imports 2025-09-15 08:50:16 -04:00
David Kaspar 6b18711fe6 Merge pull request #1473 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2025-09-15 13:49:59 +01:00
Crowdin Bot f0b95a3593 New Crowdin translations by GitHub Action 2025-09-15 12:42:18 +00:00
Vitor Pamplona 52cf9e1576 Merge pull request #1468 from davotoula/gallery-view-for-multiple-media
Gallery view for multiple images
2025-09-15 08:40:48 -04:00
davotoula 43f8053b30 Extracted Parsing logic into helper class 2025-09-14 13:19:12 +02:00
davotoula 74cc9535ac Added a data structure for ParagraphImageAnalysis
Single pass analysis
All image-related decisions are made based on the single analysis result
2025-09-14 12:12:44 +02:00
davotoula 7e80ed2af9 Fix for images are mixed with text in a single paragraph
nevent1qqs04pmdf8guxpyhjuvpeg72ccwuzje7vhlm09szxl2d8x28cse5fzgpz9mhxue69uhkummnw3ezuamfdejj7q3qwl89d7yazg500lehg08p45dj2jzhhyqg2erj067458e3wd30djnsxpqqqqqqzmdjgxd
2025-09-14 11:40:20 +02:00
davotoula 1788dfc0b9 Merge branch 'refs/heads/main' into gallery-view-for-multiple-media 2025-09-13 23:32:49 +02:00
davotoula 8f0a829a4d Optimised collectConsecutiveImageParagraphs: continue statements for early loop continuation 2025-09-13 23:32:17 +02:00
davotoula bfc920ca04 Added logging of image gallery computation time 2025-09-13 21:09:27 +02:00
davotoula a21b6115c7 Single pass to avoid multiple intermediate lists
O(n) traversal (no drop/takeWhile/filter allocations)
Mutable buffer for collecting images
2025-09-13 20:44:00 +02:00
davotoula 8e39da347a don't use image gallery for secret message 2025-09-13 18:16:43 +02:00
Vitor Pamplona 58277cf717 Merge branch 'main' of https://github.com/vitorpamplona/amethyst 2025-09-13 10:51:28 -04:00
Vitor Pamplona 7ef6da1a17 Merge pull request #1470 from davotoula/fix-for-trying-to-share-when-image-not-loaded
Fix for crash when attempting to share an image that is still loading
2025-09-13 10:51:11 -04:00
Vitor Pamplona ec48977a6f Merge pull request #1471 from vitorpamplona/l10n_crowdin_translations
New Crowdin Translations
2025-09-13 10:50:29 -04:00
Vitor Pamplona c5b60c3bd8 Refactor the UISharedPreferences into two files 2025-09-13 10:50:19 -04:00