-
-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add rust nostr library. * Build FetchedFeed abstractions to be used for representing fetched feeds. * Replace some occurrences of SyndFeed with FetchedFeed where needed. * Add a function for checking a Nostr URI. Modify other occurrences in AbstractRssRepository. * Add validation for Nostr URIs. * Actually take Nostr URIs into account when searching for feeds. * Move fetchFeedFrom() to a companion object instead. * Update Nostr-sdk library and add Proguard rules for the Nostr sdk library. * Create a singleton DI module for the Nostr Client. * Add some fixes for summary, and others. * Include Jetbrains Markdown library. * Introduce htmlFromMarkdown(), and use it where needed. * Revert to using the Nostr URI for the article link, for full content support. * Implement full content support for Nostr articles, by reusing the content, since it's all the same anyway. * Switch to throwing an exception when no Nostr feed info is found. * Add feed syncing for Nostr feeds. * Use a new Nostr client instance for each syncing feed, to avoid race conditions when using the client. * Change syncNostrFeed return signature. Improve Nostr feed syncing. Use randomUuid for Nostr article Ids. * Add OPML feed support for Nostr feeds. Try getting metadata first before saving the feed(else it won't modify it later.) * Just use the author's profile name as feed title when fetching feed. * Fix RssHelperTest. * Fix bug caused by non-differentiation between outlines and sub-outlines when handling sub-outlines. * Re-use original code for importing feeds from OPML(for GH runner happiness, maybe). * Revert previous change(just uncommenting code). * Just return feed with empty article list if nothing is found. * Manage Nostr Client lifecycle when using it during OPML import. * Undo changes of previous commit.
- Loading branch information
1 parent
e0cd9ac
commit ec05bdd
Showing
16 changed files
with
548 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
app/src/main/java/me/ash/reader/infrastructure/di/NostrClientModule.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package me.ash.reader.infrastructure.di | ||
|
||
import dagger.Module | ||
import dagger.Provides | ||
import dagger.hilt.InstallIn | ||
import dagger.hilt.components.SingletonComponent | ||
import rust.nostr.sdk.Client | ||
import javax.inject.Singleton | ||
|
||
@Module | ||
@InstallIn(SingletonComponent::class) | ||
object NostrClientModule { | ||
|
||
@Provides | ||
@Singleton | ||
fun provideNostrClient(): Client { | ||
return Client() | ||
} | ||
} |
Oops, something went wrong.