From eb661822114d09db8bdd936f2ed11616466a8f92 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Mon, 9 Feb 2026 14:06:07 -0500 Subject: [PATCH] - Updates several libraries - Reformats code to the newest Klint - Fixes isEmpty bug on Filters --- .idea/kotlinc.xml | 2 +- .../amethyst/model/LocalCache.kt | 123 ++++++--- .../vitorpamplona/amethyst/model/MiniFhir.kt | 1 + .../amethyst/model/UiSettings.kt | 36 +-- .../model/accountsCache/AccountCacheState.kt | 8 +- .../nip11RelayInfo/Nip11CachedRetriever.kt | 11 +- .../topNavFeeds/FeedTopNavFilterState.kt | 25 +- .../topNavFeeds/noteBased/NoteFeedFlow.kt | 42 ++- .../amethyst/service/EmojiUtils.kt | 19 +- .../amethyst/service/HttpStatusMessages.kt | 2 - .../amethyst/service/ZapPaymentHandler.kt | 1 + .../service/broadcast/BroadcastTracker.kt | 16 +- .../EventNotificationConsumer.kt | 2 + .../playback/composable/PlayerSurface.kt | 85 ------ .../uploads/BlurhashMetadataCalculator.kt | 13 +- .../service/uploads/MediaCompressor.kt | 9 +- .../vitorpamplona/amethyst/ui/MainActivity.kt | 19 +- .../amethyst/ui/actions/MediaSaverToDisk.kt | 12 +- .../amethyst/ui/actions/NewMessageTagger.kt | 26 +- .../ui/actions/uploads/VoiceAnonymizer.kt | 5 +- .../ui/broadcast/BroadcastDetailsSheet.kt | 3 + .../ui/broadcast/BroadcastSnackbar.kt | 9 +- .../amethyst/ui/components/CashuRedeem.kt | 9 +- .../amethyst/ui/components/LoadUrlPreview.kt | 2 + .../amethyst/ui/components/MyAsyncImage.kt | 3 + .../amethyst/ui/components/RichTextViewer.kt | 59 +++- .../amethyst/ui/components/SwipeToDelete.kt | 10 +- .../ui/components/ZoomableContentView.kt | 24 +- .../components/toasts/DisplayErrorMessages.kt | 16 +- .../ui/navigation/routes/RouteMaker.kt | 54 +++- .../amethyst/ui/navigation/routes/Routes.kt | 10 +- .../navigation/topbars/FeedFilterSpinner.kt | 5 + .../amethyst/ui/note/MultiSetCompose.kt | 10 +- .../ui/note/NIP05VerificationDisplay.kt | 23 +- .../amethyst/ui/note/NoteCompose.kt | 259 ++++++++++++++---- .../amethyst/ui/note/ReactionsRow.kt | 11 +- .../ui/note/UpdateReactionTypeDialog.kt | 5 +- .../amethyst/ui/note/UpdateZapAmountDialog.kt | 13 +- .../amethyst/ui/note/UserProfilePicture.kt | 7 +- .../amethyst/ui/note/ZapCustomDialog.kt | 2 + .../location/DisplayLocationObserver.kt | 1 + .../ui/note/creators/previews/PreviewUrl.kt | 3 + .../creators/zapsplits/DisplayZapSplits.kt | 7 +- .../note/nip22Comments/DisplayExternalId.kt | 10 +- .../amethyst/ui/note/types/LiveActivity.kt | 1 + .../amethyst/ui/note/types/MedicalData.kt | 2 + .../ui/screen/AccountStateViewModel.kt | 15 +- .../amethyst/ui/screen/UserFeedView.kt | 3 + .../ui/screen/loggedIn/AccountViewModel.kt | 10 +- .../loggedIn/DecryptAndIndexProcessor.kt | 7 +- .../default/BookmarkListScreen.kt | 6 +- .../bookmarkgroups/display/ArticleListView.kt | 7 +- .../display/BookmarkGroupScreen.kt | 21 +- .../bookmarkgroups/display/PostListView.kt | 7 +- .../loggedIn/chats/feed/ChatFeedView.kt | 18 +- .../send/ChannelFileUploadDialog.kt | 1 + .../chats/rooms/ChatroomHeaderCompose.kt | 18 +- .../loggedIn/chats/rooms/MessagesScreen.kt | 2 + .../chats/rooms/feed/ChatroomListFeedView.kt | 3 + .../loggedIn/communities/CommunityScreen.kt | 7 +- .../loggedIn/discover/DiscoverScreen.kt | 6 + .../DiscoverLiveFeedFilter.kt | 15 +- .../nip53LiveActivities/LiveActivityCard.kt | 3 + .../followPacks/feed/FollowPackFeedScreen.kt | 11 +- .../ui/screen/loggedIn/home/HomeScreen.kt | 6 +- .../loggedIn/home/ShortNotePostViewModel.kt | 22 +- .../loggedIn/home/VoiceReplyViewModel.kt | 3 + .../loggedIn/home/live/LiveStatusIndicator.kt | 6 +- .../lists/display/lists/PeopleListScreen.kt | 6 +- .../loggedIn/notifications/CardFeedView.kt | 22 +- .../loggedIn/profile/gallery/GalleryThumb.kt | 10 +- .../profile/gallery/ProfileGalleryFeed.kt | 3 + .../dal/UserProfileGalleryFeedFilter.kt | 11 +- .../profile/header/DrawAdditionalInfo.kt | 1 + .../header/apps/DisplayAppRecommendations.kt | 1 + .../ui/screen/loggedIn/qrcode/ShowQRScreen.kt | 8 +- .../loggedIn/relays/RelayInformationScreen.kt | 11 +- .../loggedIn/settings/StringFeedView.kt | 3 + .../ui/screen/loggedIn/video/VideoScreen.kt | 3 + .../ui/screen/loggedOff/login/LoginScreen.kt | 8 +- .../screen/loggedOff/signup/SignUpScreen.kt | 8 +- .../vitorpamplona/amethyst/ui/theme/Theme.kt | 6 +- .../vitorpamplona/amethyst/ui/theme/Type.kt | 32 ++- .../amethyst/ui/tor/TorDialogViewModel.kt | 4 +- .../amethyst/ui/tor/TorManager.kt | 2 + .../amethyst/ui/tor/TorSettings.kt | 8 +- .../amethyst/ui/tor/TorSettingsDialog.kt | 2 +- .../nip01Core/relay/filters/FilterTest.kt | 39 +++ .../quartz/benchmark/EnsureTest.kt | 1 + .../commons/blurhash/BlurHashDecoderOld.kt | 6 +- .../amethyst/commons/blurhash/CosineCache.kt | 6 +- .../amethyst/commons/model/Note.kt | 12 +- .../commons/preview/MetaTagsParser.kt | 4 + .../commons/preview/OpenGraphParser.kt | 27 +- .../commons/richtext/GalleryParser.kt | 27 +- .../amethyst/commons/search/SearchParser.kt | 6 + .../amethyst/commons/util/EmojiUtils.kt | 10 +- .../amethyst/commons/util/TimeAgoFormatter.kt | 59 ++-- .../vitorpamplona/amethyst/desktop/Main.kt | 43 ++- .../amethyst/desktop/nwc/NwcPaymentHandler.kt | 2 + .../amethyst/desktop/ui/BookmarksScreen.kt | 2 + .../amethyst/desktop/ui/FeedScreen.kt | 1 + .../amethyst/desktop/ui/NoteActions.kt | 3 + .../desktop/ui/NotificationsScreen.kt | 33 ++- .../amethyst/desktop/ui/ReadsScreen.kt | 5 + .../amethyst/desktop/ui/SearchScreen.kt | 20 +- .../amethyst/desktop/ui/UserProfileScreen.kt | 5 + gradle/libs.versions.toml | 39 ++- .../store/sqlite/sql/SqlSelectionBuilder.kt | 14 + .../client/NostrSignerExternal.kt | 2 - .../nip01Core/relay/client/pool/PoolCounts.kt | 1 + .../relay/client/pool/PoolRequests.kt | 3 + .../relay/client/stats/RelayStats.kt | 15 +- .../quartz/nip01Core/relay/filters/Filter.kt | 4 +- .../nip01Core/signers/caches/DecryptCache.kt | 11 +- .../nip03Timestamp/VerificationStateCache.kt | 16 +- .../quartz/nip03Timestamp/ots/Timestamp.kt | 2 +- .../quartz/nip03Timestamp/ots/op/OpUnary.kt | 20 +- .../quartz/nip10Notes/tags/Positional.kt | 17 +- .../FlexibleIntListSerializer.kt | 8 +- .../nip18Reposts/quotes/TagArrayBuilderExt.kt | 4 +- .../quartz/nip44Encryption/Nip44.kt | 4 +- .../signer/Nip04DecryptResponse.kt | 2 + .../quartz/nip56Reports/ReportType.kt | 14 +- .../quartz/nip57Zaps/LnZapRequestEvent.kt | 22 +- .../quartz/utils/EventFactory.kt | 35 +-- .../commands/toClient/MessageDeserializer.kt | 18 +- .../commands/toClient/MessageSerializer.kt | 4 +- .../commands/toRelay/CommandDeserializer.kt | 3 +- .../commands/toRelay/CommandSerializer.kt | 4 +- .../jackson/BunkerRequestDeserializer.kt | 2 - .../jackson/BunkerResponseDeserializer.kt | 10 +- .../relay/NostrClientRepeatSubTest.kt | 7 +- 133 files changed, 1373 insertions(+), 580 deletions(-) delete mode 100644 amethyst/src/main/java/com/vitorpamplona/amethyst/service/playback/composable/PlayerSurface.kt create mode 100644 amethyst/src/test/java/com/vitorpamplona/quartz/nip01Core/relay/filters/FilterTest.kt diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml index 26a6b8f2a..b65547ca6 100644 --- a/.idea/kotlinc.xml +++ b/.idea/kotlinc.xml @@ -11,6 +11,6 @@