Showing preview only (4,302K chars total). Download the full file or copy to clipboard to get everything.
Repository: 0xZhangKe/Fread
Branch: main
Commit: 720d2eceb455
Files: 1343
Total size: 3.7 MB
Directory structure:
gitextract_2f1tk_0x/
├── .codex/
│ └── skills/
│ ├── screen2navkey/
│ │ └── SKILL.md
│ └── voyager2nav3/
│ └── SKILL.md
├── .editorconfig
├── .github/
│ ├── FUNDING.yml
│ ├── ci-gradle.properties
│ └── workflows/
│ ├── build_apk.yml
│ └── check.yml
├── .gitignore
├── Agents.md
├── LICENSE
├── README.md
├── app/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── proguard-rules.pro
│ └── src/
│ └── main/
│ ├── AndroidManifest.xml
│ ├── java/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ ├── FreadAndroidApplication.kt
│ │ └── screen/
│ │ └── FreadActivity.kt
│ └── res/
│ ├── drawable/
│ │ ├── ic_launcher_foreground.xml
│ │ └── shape_alert_dialog_background.xml
│ ├── mipmap-anydpi-v26/
│ │ ├── ic_launcher.xml
│ │ └── ic_launcher_round.xml
│ ├── values/
│ │ ├── colors.xml
│ │ ├── ic_launcher_background.xml
│ │ ├── strings.xml
│ │ └── themes.xml
│ └── values-zh/
│ └── strings.xml
├── app-hosting/
│ ├── build.gradle.kts
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ ├── HostingApplication.kt
│ │ ├── composable/
│ │ │ └── LoadingPage.android.kt
│ │ ├── di/
│ │ │ ├── HostingModule.android.kt
│ │ │ └── PlatformedFreadApplication.android.kt
│ │ ├── screen/
│ │ │ └── DeviceCornerRadius.android.kt
│ │ └── utils/
│ │ └── ActivityHelper.android.kt
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ ├── CommonNavEntryProvider.kt
│ │ ├── auth/
│ │ │ └── AuthenticationPage.kt
│ │ ├── composable/
│ │ │ └── LoadingPage.kt
│ │ ├── di/
│ │ │ ├── FreadApplication.kt
│ │ │ └── HostingModule.kt
│ │ ├── screen/
│ │ │ ├── DeviceCornerRadius.kt
│ │ │ ├── FreadApp.kt
│ │ │ ├── FreadScreen.kt
│ │ │ ├── NavDisplayTransitions.kt
│ │ │ ├── PredictiveBackEntryDecorator.kt
│ │ │ └── main/
│ │ │ ├── MainPageUiState.kt
│ │ │ ├── MainViewModel.kt
│ │ │ └── drawer/
│ │ │ ├── MainDrawer.kt
│ │ │ ├── MainDrawerUiState.kt
│ │ │ └── MainDrawerViewModel.kt
│ │ └── utils/
│ │ └── ActivityHelper.kt
│ └── iosMain/
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── fread/
│ ├── di/
│ │ ├── HostingModule.ios.kt
│ │ └── PlatformedFreadApplication.ios.kt
│ ├── screen/
│ │ ├── DeviceCornerRadius.ios.kt
│ │ ├── FreadViewController.kt
│ │ └── IosFreadApp.kt
│ ├── startup/
│ │ └── KRouterStartup.kt
│ └── utils/
│ └── ActivityHelper.ios.kt
├── appprivacy.html
├── bizframework/
│ └── status-provider/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── consumer-rules.pro
│ ├── proguard-rules.pro
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── status/
│ │ ├── richtext/
│ │ │ └── RichTextBuilder.android.kt
│ │ └── utils/
│ │ └── ImplementerFinder.kt
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── status/
│ │ ├── StatusProvider.kt
│ │ ├── StatusProviderModel.kt
│ │ ├── account/
│ │ │ ├── AccountManager.kt
│ │ │ ├── AuthenticationFailureException.kt
│ │ │ └── LoggedAccount.kt
│ │ ├── author/
│ │ │ └── BlogAuthor.kt
│ │ ├── blog/
│ │ │ ├── Blog.kt
│ │ │ ├── BlogEmbed.kt
│ │ │ ├── BlogMedia.kt
│ │ │ ├── BlogMediaMeta.kt
│ │ │ ├── BlogMediaType.kt
│ │ │ ├── BlogPoll.kt
│ │ │ ├── BlogServer.kt
│ │ │ ├── BlogTranslation.kt
│ │ │ ├── CurrentUserQuoteApproval.kt
│ │ │ └── PostingApplication.kt
│ │ ├── content/
│ │ │ ├── ContentManager.kt
│ │ │ └── MixedContent.kt
│ │ ├── model/
│ │ │ ├── BlogFiltered.kt
│ │ │ ├── ContentConfig.kt
│ │ │ ├── ContentType.kt
│ │ │ ├── Emoji.kt
│ │ │ ├── FacetFeatureUnion.kt
│ │ │ ├── FormattingTime.kt
│ │ │ ├── FreadContent.kt
│ │ │ ├── Hashtag.kt
│ │ │ ├── HashtagInStatus.kt
│ │ │ ├── LoggedAccountDetail.kt
│ │ │ ├── Mention.kt
│ │ │ ├── PagedData.kt
│ │ │ ├── PlatformLocator.kt
│ │ │ ├── PostInteractionSetting.kt
│ │ │ ├── PublishBlogRules.kt
│ │ │ ├── QuoteApprovalPolicy.kt
│ │ │ ├── Relationships.kt
│ │ │ ├── StatusActionType.kt
│ │ │ ├── StatusList.kt
│ │ │ ├── StatusProviderProtocol.kt
│ │ │ ├── StatusUiState.kt
│ │ │ └── StatusVisibility.kt
│ │ ├── notification/
│ │ │ ├── NotificationResolver.kt
│ │ │ └── StatusNotification.kt
│ │ ├── platform/
│ │ │ ├── BlogPlatform.kt
│ │ │ ├── PlatformResolver.kt
│ │ │ └── PlatformSnapshot.kt
│ │ ├── publish/
│ │ │ ├── PublishBlogManager.kt
│ │ │ └── PublishingPost.kt
│ │ ├── richtext/
│ │ │ ├── OnLinkTargetClick.kt
│ │ │ ├── RichText.kt
│ │ │ ├── RichTextBuilder.kt
│ │ │ ├── model/
│ │ │ │ └── RichLinkTarget.kt
│ │ │ └── parser/
│ │ │ ├── HtmlParser.kt
│ │ │ └── PlaintextParser.kt
│ │ ├── screen/
│ │ │ └── StatusScreenProvider.kt
│ │ ├── search/
│ │ │ ├── SearchContentResult.kt
│ │ │ ├── SearchEngine.kt
│ │ │ └── SearchResult.kt
│ │ ├── source/
│ │ │ ├── StatusSource.kt
│ │ │ └── StatusSourceResolver.kt
│ │ ├── status/
│ │ │ ├── StatusResolver.kt
│ │ │ └── model/
│ │ │ ├── Status.kt
│ │ │ └── StatusContext.kt
│ │ ├── uri/
│ │ │ ├── FormalUri.kt
│ │ │ └── FormalUriParser.kt
│ │ └── utils/
│ │ ├── DateTimeFormatter.kt
│ │ └── ResultKtx.kt
│ └── commonTest/
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── fread/
│ └── status/
│ ├── richtext/
│ │ └── parser/
│ │ └── HtmlParserTest.kt
│ └── uri/
│ └── FormalUriTest.kt
├── build-logic/
│ ├── README.md
│ ├── convention/
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ └── main/
│ │ └── kotlin/
│ │ ├── AndroidApplicationConventionPlugin.kt
│ │ ├── AndroidLibraryConventionPlugin.kt
│ │ ├── ComposeMultiPlatformConventionPlugin.kt
│ │ ├── KotlinMultiplatformLibraryConventionPlugin.kt
│ │ ├── Project.kt
│ │ ├── ProjectFeatureKmpConventionPlugin.kt
│ │ ├── ProjectFrameworkKmpConventionPlugin.kt
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ ├── KotlinAndroid.kt
│ │ ├── PrintTestApks.kt
│ │ └── ProjectExt.kt
│ ├── gradle.properties
│ └── settings.gradle.kts
├── build.gradle.kts
├── commonbiz/
│ ├── analytics/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── consumer-rules.pro
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── analytics/
│ │ ├── Analytics.kt
│ │ ├── EventNames.kt
│ │ └── TrackingEventDataBuilder.kt
│ ├── common/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── kotlin/
│ │ │ │ └── com/
│ │ │ │ └── zhangke/
│ │ │ │ └── fread/
│ │ │ │ └── common/
│ │ │ │ ├── AndroidCommonModule.kt
│ │ │ │ ├── browser/
│ │ │ │ │ ├── AndroidSystemBrowserLauncher.kt
│ │ │ │ │ └── OAuthLauncher.android.kt
│ │ │ │ ├── daynight/
│ │ │ │ │ └── DayNightPlatformHelper.android.kt
│ │ │ │ ├── di/
│ │ │ │ │ └── ApplicationContext.kt
│ │ │ │ ├── handler/
│ │ │ │ │ └── TextHandler.android.kt
│ │ │ │ ├── language/
│ │ │ │ │ ├── ActivityLanguageHelper.android.kt
│ │ │ │ │ └── LanguageHelper.android.kt
│ │ │ │ ├── page/
│ │ │ │ │ └── BasePagerTabHookManager.android.kt
│ │ │ │ ├── startup/
│ │ │ │ │ └── LanguageModuleStartup.kt
│ │ │ │ ├── update/
│ │ │ │ │ └── AppPlatformUpdater.android.kt
│ │ │ │ └── utils/
│ │ │ │ ├── ActivityResultUtils.kt
│ │ │ │ ├── MediaFileHelper.android.kt
│ │ │ │ ├── PlatformUriHelper.android.kt
│ │ │ │ ├── RandomIdGenerator.android.kt
│ │ │ │ ├── ShareHelper.kt
│ │ │ │ ├── StorageHelper.android.kt
│ │ │ │ └── ToastHelper.android.kt
│ │ │ └── res/
│ │ │ ├── anim/
│ │ │ │ ├── fade_in.xml
│ │ │ │ └── fade_out.xml
│ │ │ ├── drawable/
│ │ │ │ └── ic_logo_skeleton.xml
│ │ │ └── values/
│ │ │ ├── colors.xml
│ │ │ └── theme.xml
│ │ ├── commonMain/
│ │ │ ├── composeResources/
│ │ │ │ └── drawable/
│ │ │ │ ├── bluesky_logo.xml
│ │ │ │ ├── ic_explorer.xml
│ │ │ │ ├── ic_not_found_404.xml
│ │ │ │ ├── mastodon_black_text.xml
│ │ │ │ ├── mastodon_logo.xml
│ │ │ │ └── mastodon_white_text.xml
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── common/
│ │ │ ├── CommonModule.kt
│ │ │ ├── CommonNavEntryProvider.kt
│ │ │ ├── CommonStartup.kt
│ │ │ ├── MixedContentJsonBuilder.kt
│ │ │ ├── account/
│ │ │ │ └── ActiveAccountsSynchronizer.kt
│ │ │ ├── action/
│ │ │ │ ├── ComposableActions.kt
│ │ │ │ ├── RouteAction.kt
│ │ │ │ └── RouteActions.kt
│ │ │ ├── adapter/
│ │ │ │ └── StatusUiStateAdapter.kt
│ │ │ ├── browser/
│ │ │ │ ├── BrowserInterceptor.kt
│ │ │ │ ├── BrowserLauncher.kt
│ │ │ │ ├── OAuthHandler.kt
│ │ │ │ ├── SystemBrowserLauncher.kt
│ │ │ │ └── UrlRedirectScreen.kt
│ │ │ ├── bubble/
│ │ │ │ ├── Bubble.kt
│ │ │ │ └── BubbleManager.kt
│ │ │ ├── composable/
│ │ │ │ ├── EmptyContent.kt
│ │ │ │ ├── ErrorContent.kt
│ │ │ │ └── SelectableAccount.kt
│ │ │ ├── config/
│ │ │ │ ├── AppCommonConfig.kt
│ │ │ │ ├── FreadConfigManager.kt
│ │ │ │ ├── LocalConfigManager.kt
│ │ │ │ ├── StatusConfig.kt
│ │ │ │ ├── StatusContentSize.kt
│ │ │ │ └── TimelineDefaultPosition.kt
│ │ │ ├── content/
│ │ │ │ ├── FreadContentDbMigrateManager.kt
│ │ │ │ └── FreadContentRepo.kt
│ │ │ ├── daynight/
│ │ │ │ ├── DayNightHelper.kt
│ │ │ │ └── DayNightMode.kt
│ │ │ ├── db/
│ │ │ │ ├── ContentConfigDatabases.kt
│ │ │ │ ├── FreadContentDatabase.kt
│ │ │ │ ├── MixedStatusDatabases.kt
│ │ │ │ ├── converts/
│ │ │ │ │ ├── BlogMediaConverterHelper.kt
│ │ │ │ │ ├── BlogMediaListConverter.kt
│ │ │ │ │ ├── BlogPollConverter.kt
│ │ │ │ │ ├── ContentTabConverter.kt
│ │ │ │ │ ├── ContentTypeConverter.kt
│ │ │ │ │ ├── FormalBaseUrlConverter.kt
│ │ │ │ │ ├── FormalUriConverter.kt
│ │ │ │ │ ├── FreadContentConverter.kt
│ │ │ │ │ ├── PlatformLocatorConverter.kt
│ │ │ │ │ ├── StatusConverter.kt
│ │ │ │ │ ├── StatusNotificationConverter.kt
│ │ │ │ │ ├── StatusProviderUriListConverter.kt
│ │ │ │ │ └── StatusUiStateConverter.kt
│ │ │ │ └── old/
│ │ │ │ └── OldFreadContentDatabase.kt
│ │ │ ├── deeplink/
│ │ │ │ ├── ExternalInputHandler.kt
│ │ │ │ ├── ExternalInputParser.kt
│ │ │ │ ├── SelectAccountScreen.kt
│ │ │ │ └── SelectedContentSwitcher.kt
│ │ │ ├── di/
│ │ │ │ └── ApplicationCoroutineScope.kt
│ │ │ ├── feeds/
│ │ │ │ └── model/
│ │ │ │ └── RefreshResult.kt
│ │ │ ├── handler/
│ │ │ │ └── TextHandler.kt
│ │ │ ├── language/
│ │ │ │ ├── LanguageHelper.kt
│ │ │ │ └── LanguageSettingItem.kt
│ │ │ ├── mixed/
│ │ │ │ └── MixedStatusRepo.kt
│ │ │ ├── onboarding/
│ │ │ │ └── OnboardingComponent.kt
│ │ │ ├── page/
│ │ │ │ └── BasePagerTabHookManager.kt
│ │ │ ├── publish/
│ │ │ │ └── PublishPostManager.kt
│ │ │ ├── push/
│ │ │ │ └── IPushManager.kt
│ │ │ ├── repo/
│ │ │ │ └── LinkPreviewCardRepo.kt
│ │ │ ├── resources/
│ │ │ │ └── ProtocolsSymbol.kt
│ │ │ ├── review/
│ │ │ │ ├── DefaultAppStoreReviewer.kt
│ │ │ │ └── FreadReviewManager.kt
│ │ │ ├── startup/
│ │ │ │ ├── FeedsRepoModuleStartup.kt
│ │ │ │ ├── FreadConfigModuleStartup.kt
│ │ │ │ └── StartupManager.kt
│ │ │ ├── status/
│ │ │ │ ├── StatusConfiguration.kt
│ │ │ │ ├── StatusIdGenerator.kt
│ │ │ │ ├── StatusUpdater.kt
│ │ │ │ ├── adapter/
│ │ │ │ │ └── ContentConfigAdapter.kt
│ │ │ │ ├── model/
│ │ │ │ │ └── SearchResultUiState.kt
│ │ │ │ └── usecase/
│ │ │ │ └── FormatStatusDisplayTimeUseCase.kt
│ │ │ ├── theme/
│ │ │ │ └── ThemeType.kt
│ │ │ ├── update/
│ │ │ │ ├── AppPlatformUpdater.kt
│ │ │ │ ├── AppReleaseInfo.kt
│ │ │ │ └── AppUpdateManager.kt
│ │ │ └── utils/
│ │ │ ├── GlobalScreenNavigation.kt
│ │ │ ├── HashtagTextUtils.kt
│ │ │ ├── InstantExt.kt
│ │ │ ├── LinkTextUtils.kt
│ │ │ ├── ListStringConverter.kt
│ │ │ ├── MediaFileHelper.kt
│ │ │ ├── MentionTextUtil.kt
│ │ │ ├── PlatformUriHelper.kt
│ │ │ ├── RandomIdGenerator.kt
│ │ │ ├── StorageHelper.kt
│ │ │ ├── ToastHelper.kt
│ │ │ └── WebFingerConverter.kt
│ │ ├── commonTest/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── common/
│ │ │ ├── status/
│ │ │ │ └── utils/
│ │ │ │ └── createStatus.kt
│ │ │ └── utils/
│ │ │ ├── DateTimeFormatterTest.kt
│ │ │ ├── FormalUriTest.kt
│ │ │ └── HashtagTextUtilsTest.kt
│ │ └── iosMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── common/
│ │ ├── CommonIosModule.kt
│ │ ├── browser/
│ │ │ ├── IosSystemBrowserLauncher.kt
│ │ │ └── OAuthLauncher.ios.kt
│ │ ├── daynight/
│ │ │ └── DayNightPlatformHelper.ios.kt
│ │ ├── handler/
│ │ │ └── TextHandler.ios.kt
│ │ ├── language/
│ │ │ └── LanguageHelper.ios.kt
│ │ ├── page/
│ │ │ └── BasePagerTabHookManager.ios.kt
│ │ ├── update/
│ │ │ └── AppPlatformUpdater.ios.kt
│ │ └── utils/
│ │ ├── MediaFileHelper.ios.kt
│ │ ├── PlatformUriHelper.ios.kt
│ │ ├── RandomIdGenerator.ios.kt
│ │ ├── StorageHelper.ios.kt
│ │ ├── SystemUtils.kt
│ │ └── ToastHelper.ios.kt
│ ├── sharedscreen/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── commonbiz/
│ │ │ └── shared/
│ │ │ ├── SharedScreenAndroidEntryProvider.kt
│ │ │ ├── SharedScreenAndroidModule.kt
│ │ │ ├── composable/
│ │ │ │ └── WebViewPreviewer.android.kt
│ │ │ └── screen/
│ │ │ └── ImageViewerScreen.android.kt
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── commonbiz/
│ │ │ └── shared/
│ │ │ ├── ModuleScreenVisitor.kt
│ │ │ ├── SharedScreenModule.kt
│ │ │ ├── SharedScreenNavEntryProvider.kt
│ │ │ ├── blog/
│ │ │ │ └── detail/
│ │ │ │ ├── RssBlogDetailScreen.kt
│ │ │ │ └── RssBlogDetailViewModel.kt
│ │ │ ├── composable/
│ │ │ │ ├── BlogUi.kt
│ │ │ │ ├── FeedsContent.kt
│ │ │ │ ├── FeedsStatusNode.kt
│ │ │ │ ├── ObserveForFeedsConnection.kt
│ │ │ │ ├── OnBlogMediaClick.kt
│ │ │ │ ├── SearchResultUi.kt
│ │ │ │ ├── UserInfoCard.kt
│ │ │ │ └── WebViewPreviewer.kt
│ │ │ ├── db/
│ │ │ │ └── SelectedAccountPublishingDatabase.kt
│ │ │ ├── feeds/
│ │ │ │ ├── CommonFeedsUiState.kt
│ │ │ │ ├── FeedsViewModelController.kt
│ │ │ │ ├── IFeedsViewModelController.kt
│ │ │ │ ├── IInteractiveHandler.kt
│ │ │ │ ├── InteractiveHandleResult.kt
│ │ │ │ └── InteractiveHandler.kt
│ │ │ ├── notification/
│ │ │ │ ├── FollowNotification.kt
│ │ │ │ ├── FollowRequestNotification.kt
│ │ │ │ ├── NotificationHeadLine.kt
│ │ │ │ ├── NotificationWithWholeStatus.kt
│ │ │ │ ├── SeveredRelationshipsNotification.kt
│ │ │ │ ├── StatusNotificationUi.kt
│ │ │ │ └── UnknownNotification.kt
│ │ │ ├── repo/
│ │ │ │ └── SelectedAccountPublishingRepo.kt
│ │ │ ├── screen/
│ │ │ │ ├── ImageViewerScreen.kt
│ │ │ │ ├── SelectLanguageScreen.kt
│ │ │ │ ├── publish/
│ │ │ │ │ ├── PublishBlogScreen.kt
│ │ │ │ │ ├── PublishBlogUiState.kt
│ │ │ │ │ ├── PublishPostBottomPanel.kt
│ │ │ │ │ ├── PublishPostMediaAttachment.kt
│ │ │ │ │ ├── PublishPostScaffold.kt
│ │ │ │ │ ├── PublishSettingLabel.kt
│ │ │ │ │ ├── PublishTopBar.kt
│ │ │ │ │ ├── composable/
│ │ │ │ │ │ ├── AvatarsHorizontalStack.kt
│ │ │ │ │ │ ├── BlogMediaAttachment.kt
│ │ │ │ │ │ ├── InputBlogTextField.kt
│ │ │ │ │ │ ├── PostInteractionSettingLabel.kt
│ │ │ │ │ │ ├── PostStatusVisibilityUi.kt
│ │ │ │ │ │ └── PostStatusWarning.kt
│ │ │ │ │ ├── model/
│ │ │ │ │ │ └── PublishBlogMediaAttachment.kt
│ │ │ │ │ └── multi/
│ │ │ │ │ ├── MultiAccountPublishingScreen.kt
│ │ │ │ │ ├── MultiAccountPublishingUiState.kt
│ │ │ │ │ ├── MultiAccountPublishingViewModel.kt
│ │ │ │ │ └── PublishingAccounts.kt
│ │ │ │ ├── search/
│ │ │ │ │ ├── AbstractSearchStatusScreen.kt
│ │ │ │ │ ├── AbstractSearchStatusViewModel.kt
│ │ │ │ │ └── SearchStatusUiState.kt
│ │ │ │ ├── status/
│ │ │ │ │ ├── account/
│ │ │ │ │ │ ├── SelectAccountOpenStatusScreen.kt
│ │ │ │ │ │ ├── SelectAccountOpenStatusUiState.kt
│ │ │ │ │ │ └── SelectAccountOpenStatusViewModel.kt
│ │ │ │ │ └── context/
│ │ │ │ │ ├── StatusContextScreen.kt
│ │ │ │ │ ├── StatusContextSubViewModel.kt
│ │ │ │ │ ├── StatusContextUiState.kt
│ │ │ │ │ └── StatusContextViewModel.kt
│ │ │ │ └── video/
│ │ │ │ └── FullVideoScreen.kt
│ │ │ ├── usecase/
│ │ │ │ ├── PublishPostOnMultiAccountUseCase.kt
│ │ │ │ ├── RefactorToNewBlogUseCase.kt
│ │ │ │ └── RefactorToNewStatusUseCase.kt
│ │ │ └── utils/
│ │ │ └── LoadableStatusController.kt
│ │ └── iosMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── commonbiz/
│ │ └── shared/
│ │ ├── SharedScreenIosModule.kt
│ │ ├── composable/
│ │ │ └── WebViewPreviewer.ios.kt
│ │ └── screen/
│ │ └── ImageViewerScreen.ios.kt
│ └── status-ui/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── consumer-rules.pro
│ ├── proguard-rules.pro
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── status/
│ │ └── ui/
│ │ ├── StatusPlaceHolder.preview.kt
│ │ ├── common/
│ │ │ └── FormattingTimeText.kt
│ │ ├── poll/
│ │ │ └── BlogPollOption.preview.kt
│ │ ├── utils/
│ │ │ └── ScreenSize.android.kt
│ │ └── video/
│ │ ├── BlogVideos.kt
│ │ ├── LocalInlineVideoPlayer.kt
│ │ └── inline/
│ │ └── InlineVideo.kt
│ ├── commonMain/
│ │ ├── composeResources/
│ │ │ └── drawable/
│ │ │ ├── ic_drag_indicator.xml
│ │ │ ├── ic_format_quote.xml
│ │ │ ├── ic_format_quote_in_left.xml
│ │ │ ├── ic_mode_edit.xml
│ │ │ ├── ic_more.xml
│ │ │ ├── ic_post_status_spoiler.xml
│ │ │ ├── ic_share.xml
│ │ │ ├── ic_status_comment.xml
│ │ │ ├── ic_status_forward.xml
│ │ │ ├── img_banner_background.xml
│ │ │ └── status_ui_baseline_visibility_off_24.xml
│ │ └── kotlin/
│ │ ├── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── status/
│ │ │ └── ui/
│ │ │ ├── BlogAuthorAvatar.kt
│ │ │ ├── BlogAuthorUi.kt
│ │ │ ├── BlogContent.kt
│ │ │ ├── BlogDivider.kt
│ │ │ ├── BlogUi.kt
│ │ │ ├── ComposedStatusInteraction.kt
│ │ │ ├── StatusInfoLine.kt
│ │ │ ├── StatusPlaceHolder.kt
│ │ │ ├── StatusUi.kt
│ │ │ ├── action/
│ │ │ │ ├── ModalDropdownMenuItem.kt
│ │ │ │ ├── StatusActions.kt
│ │ │ │ ├── StatusBottomInteractionPanel.kt
│ │ │ │ ├── StatusIconButton.kt
│ │ │ │ ├── StatusInteractiveExts.kt
│ │ │ │ └── StatusMoreInteractionPanel.kt
│ │ │ ├── bar/
│ │ │ │ └── EditContentTopBar.kt
│ │ │ ├── common/
│ │ │ │ ├── BlogTranslaction.kt
│ │ │ │ ├── ContentToolbar.kt
│ │ │ │ ├── DetailHeaderContent.kt
│ │ │ │ ├── DetailPageScaffold.kt
│ │ │ │ ├── DetailTopBar.kt
│ │ │ │ ├── HomeContentTabsTopBar.kt
│ │ │ │ ├── LinkPreviewCard.kt
│ │ │ │ ├── NestedTabConnection.kt
│ │ │ │ ├── NewStatusNotifyBar.kt
│ │ │ │ ├── ObserveMaxReadItem.kt
│ │ │ │ ├── ObserveScrollStopedPosition.kt
│ │ │ │ ├── PostStatusTextVisualTransformation.kt
│ │ │ │ ├── ProgressedAvatar.kt
│ │ │ │ ├── ProgressedBanner.kt
│ │ │ │ ├── PublishingFab.kt
│ │ │ │ ├── RelationshipStateButton.kt
│ │ │ │ ├── RemainingTextStatus.kt
│ │ │ │ ├── SelectAccountDialog.kt
│ │ │ │ ├── StatusSharedElementConfig.kt
│ │ │ │ └── UserFollowLine.kt
│ │ │ ├── embed/
│ │ │ │ ├── BlogEmbedsUi.kt
│ │ │ │ ├── BlogInEmbedding.kt
│ │ │ │ ├── StatusEmbedLinkUi.kt
│ │ │ │ └── UnavailableQuoteInEmbedding.kt
│ │ │ ├── hashtag/
│ │ │ │ └── HashtagUi.kt
│ │ │ ├── image/
│ │ │ │ ├── BlogImageMedia.kt
│ │ │ │ ├── DoubleBlogImageLayout.kt
│ │ │ │ ├── FivefoldImageMediaFrameLayout.kt
│ │ │ │ ├── HorizontalImageMediaFrameLayout.kt
│ │ │ │ ├── HorizontalImageMediaListLayout.kt
│ │ │ │ ├── QuadrupleImageMediaLayout.kt
│ │ │ │ ├── SingleBlogImageLayout.kt
│ │ │ │ ├── SixfoldImageMediaLayout.kt
│ │ │ │ ├── TripleImageMediaLayout.kt
│ │ │ │ ├── VerticalImageMediaFrameLayout.kt
│ │ │ │ └── VerticalImageMediaListLayout.kt
│ │ │ ├── label/
│ │ │ │ ├── StatusBottomEditedLabel.kt
│ │ │ │ ├── StatusBottomInteractionLabel.kt
│ │ │ │ ├── StatusBottomTimeLabel.kt
│ │ │ │ └── StatusTopLabel.kt
│ │ │ ├── media/
│ │ │ │ └── BlogMedias.kt
│ │ │ ├── placeholder/
│ │ │ │ └── ListWithAvatarPlaceholder.kt
│ │ │ ├── poll/
│ │ │ │ ├── BlogPoll.kt
│ │ │ │ ├── BlogPollOption.kt
│ │ │ │ ├── MultipleChoicePoll.kt
│ │ │ │ └── SingleChoicePoll.kt
│ │ │ ├── publish/
│ │ │ │ ├── BlogInQuoting.kt
│ │ │ │ ├── NameAndAccountInfo.kt
│ │ │ │ └── PublishBlogStyle.kt
│ │ │ ├── richtext/
│ │ │ │ ├── FreadRichText.kt
│ │ │ │ └── RichTextWithIcon.kt
│ │ │ ├── source/
│ │ │ │ ├── BlogPlatformUi.kt
│ │ │ │ ├── SearchPlatformResultUi.kt
│ │ │ │ ├── SourceCommonUi.kt
│ │ │ │ └── StatusSourceUi.kt
│ │ │ ├── style/
│ │ │ │ ├── LocalStatusStyle.kt
│ │ │ │ ├── StatusInfoStyle.kt
│ │ │ │ ├── StatusStyle.kt
│ │ │ │ └── StatusUiConfig.kt
│ │ │ ├── threads/
│ │ │ │ ├── Threads.kt
│ │ │ │ └── ThreadsType.kt
│ │ │ ├── update/
│ │ │ │ └── AppUpdateDialog.kt
│ │ │ ├── user/
│ │ │ │ ├── CommonUserUi.kt
│ │ │ │ └── UserHandleLine.kt
│ │ │ ├── utils/
│ │ │ │ ├── CardInfoSection.kt
│ │ │ │ └── ScreenSize.kt
│ │ │ └── video/
│ │ │ ├── BlogVideos.kt
│ │ │ ├── VideoDurationFormatter.kt
│ │ │ └── full/
│ │ │ └── FullScreenVideoPlayer.kt
│ │ └── org/
│ │ └── burnoutcrew/
│ │ └── reorderable/
│ │ ├── DetectReorder.kt
│ │ ├── DragCancelledAnimation.kt
│ │ ├── DragGesture.kt
│ │ ├── ItemPosition.kt
│ │ ├── Reorderable.kt
│ │ ├── ReorderableItem.kt
│ │ ├── ReorderableLazyGridState.kt
│ │ ├── ReorderableLazyListState.kt
│ │ └── ReorderableState.kt
│ └── iosMain/
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── fread/
│ └── status/
│ └── ui/
│ ├── utils/
│ │ └── ScreenSize.ios.kt
│ └── video/
│ └── BlogVideos.ios.kt
├── deleteuserdata.html
├── di-dependencis.md
├── documents/
│ ├── UserSource.drawio
│ └── architecture.xmind
├── fastlane/
│ ├── Fastfile
│ └── metadata/
│ └── android/
│ ├── en-US/
│ │ ├── full_description.txt
│ │ └── short_description.txt
│ └── zh-CN/
│ ├── full_description.txt
│ └── short_description.txt
├── feature/
│ ├── explore/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── consumer-rules.pro
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── explore/
│ │ ├── ExploreNavEntryProvider.kt
│ │ ├── ExplorerElements.kt
│ │ ├── di/
│ │ │ └── ExploreModule.kt
│ │ ├── model/
│ │ │ └── ExplorerItem.kt
│ │ ├── screens/
│ │ │ ├── home/
│ │ │ │ ├── ExploreTab.kt
│ │ │ │ ├── ExplorerHomeUiState.kt
│ │ │ │ ├── ExplorerHomeViewModel.kt
│ │ │ │ └── ExplorerScreen.kt
│ │ │ └── search/
│ │ │ ├── SearchScreen.kt
│ │ │ ├── SearchUiState.kt
│ │ │ ├── SearchViewModel.kt
│ │ │ ├── author/
│ │ │ │ ├── SearchAuthorViewModel.kt
│ │ │ │ └── SearchedAuthorTab.kt
│ │ │ ├── bar/
│ │ │ │ ├── ExplorerSearchBar.kt
│ │ │ │ ├── SearchBarUiState.kt
│ │ │ │ └── SearchBarViewModel.kt
│ │ │ ├── hashtag/
│ │ │ │ ├── SearchHashtagViewModel.kt
│ │ │ │ └── SearchedHashtagTab.kt
│ │ │ ├── platform/
│ │ │ │ ├── SearchPlatformViewModel.kt
│ │ │ │ ├── SearchedPlatformTab.kt
│ │ │ │ └── SearchedPlatformUiState.kt
│ │ │ └── status/
│ │ │ ├── SearchStatusViewModel.kt
│ │ │ └── SearchedStatusTab.kt
│ │ └── usecase/
│ │ └── BuildSearchResultUiStateUseCase.kt
│ ├── feeds/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── consumer-rules.pro
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── feeds/
│ │ │ └── pages/
│ │ │ └── manager/
│ │ │ └── importing/
│ │ │ └── OpenDocumentContainer.android.kt
│ │ ├── commonMain/
│ │ │ ├── composeResources/
│ │ │ │ └── drawable/
│ │ │ │ ├── ic_home.xml
│ │ │ │ └── ic_import.xml
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── feeds/
│ │ │ ├── FeedsNavEntryProvider.kt
│ │ │ ├── FeedsScreenVisitor.kt
│ │ │ ├── composable/
│ │ │ │ └── StatusSource.kt
│ │ │ ├── di/
│ │ │ │ └── FeedsModule.kt
│ │ │ └── pages/
│ │ │ ├── home/
│ │ │ │ ├── ContentHomeUiState.kt
│ │ │ │ ├── ContentHomeViewModel.kt
│ │ │ │ ├── FeedsContentHomeTab.kt
│ │ │ │ ├── FeedsHomeTab.kt
│ │ │ │ └── feeds/
│ │ │ │ ├── MixedContentSubViewModel.kt
│ │ │ │ ├── MixedContentTab.kt
│ │ │ │ ├── MixedContentUiState.kt
│ │ │ │ └── MixedContentViewModel.kt
│ │ │ └── manager/
│ │ │ ├── add/
│ │ │ │ ├── mixed/
│ │ │ │ │ ├── AddMixedFeedsScreen.kt
│ │ │ │ │ ├── AddMixedFeedsUiState.kt
│ │ │ │ │ └── AddMixedFeedsViewModel.kt
│ │ │ │ └── type/
│ │ │ │ ├── SelectContentTypeScreen.kt
│ │ │ │ └── SelectContentTypeViewModel.kt
│ │ │ ├── edit/
│ │ │ │ ├── EditMixedContentScreen.kt
│ │ │ │ ├── EditMixedContentUiState.kt
│ │ │ │ └── EditMixedContentViewModel.kt
│ │ │ ├── importing/
│ │ │ │ ├── ImportFeedsScreen.kt
│ │ │ │ ├── ImportFeedsUiState.kt
│ │ │ │ ├── ImportFeedsViewModel.kt
│ │ │ │ └── OpenDocumentContainer.kt
│ │ │ └── search/
│ │ │ ├── SearchForAddUiState.kt
│ │ │ ├── SearchSourceForAddScreen.kt
│ │ │ └── SearchSourceForAddViewModel.kt
│ │ └── iosMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── feeds/
│ │ └── pages/
│ │ └── manager/
│ │ └── importing/
│ │ └── OpenDocumentContainer.ios.kt
│ ├── notifications/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── consumer-rules.pro
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── feature/
│ │ │ └── message/
│ │ │ └── di/
│ │ │ └── NotificationsAndroidModule.kt
│ │ ├── commonMain/
│ │ │ ├── composeResources/
│ │ │ │ └── drawable/
│ │ │ │ └── ic_notification_tab.xml
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── feature/
│ │ │ └── message/
│ │ │ ├── NotificationElements.kt
│ │ │ ├── NotificationsNavEntryProvider.kt
│ │ │ ├── di/
│ │ │ │ └── NotificationsModule.kt
│ │ │ ├── repo/
│ │ │ │ └── notification/
│ │ │ │ ├── NotificationsDatabase.kt
│ │ │ │ └── NotificationsRepo.kt
│ │ │ └── screens/
│ │ │ ├── home/
│ │ │ │ ├── NotificationScreen.kt
│ │ │ │ ├── NotificationsHomeUiState.kt
│ │ │ │ ├── NotificationsHomeViewModel.kt
│ │ │ │ └── NotificationsTab.kt
│ │ │ └── notification/
│ │ │ ├── NotificationContainerViewModel.kt
│ │ │ ├── NotificationTab.kt
│ │ │ ├── NotificationUiState.kt
│ │ │ └── NotificationViewModel.kt
│ │ └── iosMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── feature/
│ │ └── message/
│ │ └── di/
│ │ └── NotificationsIosModule.kt
│ └── profile/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── consumer-rules.pro
│ ├── proguard-rules.pro
│ └── src/
│ └── commonMain/
│ ├── composeResources/
│ │ └── drawable/
│ │ ├── ic_code.xml
│ │ ├── ic_github_logo.xml
│ │ ├── ic_profile_tab.xml
│ │ ├── ic_ratting.xml
│ │ ├── ic_telegram.xml
│ │ └── kofi_symbol.xml
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── fread/
│ └── profile/
│ ├── ProfileNavEntryProvider.kt
│ ├── ProfileScreenVisitor.kt
│ ├── di/
│ │ └── ProfileModule.kt
│ └── screen/
│ ├── donate/
│ │ └── DonateScreen.kt
│ ├── home/
│ │ ├── ProfileHomeUiState.kt
│ │ ├── ProfileHomeViewModel.kt
│ │ ├── ProfileScreen.kt
│ │ └── ProfileTab.kt
│ ├── opensource/
│ │ └── OpenSourceScreen.kt
│ └── setting/
│ ├── FeedbackBottomSheet.kt
│ ├── SettingComponents.kt
│ ├── SettingItemNames.kt
│ ├── SettingScreen.kt
│ ├── SettingScreenModel.kt
│ ├── SettingUiState.kt
│ ├── about/
│ │ ├── AboutScreen.kt
│ │ ├── AboutUiState.kt
│ │ └── AboutViewModel.kt
│ ├── appearance/
│ │ ├── AppearanceSettingsScreen.kt
│ │ ├── AppearanceSettingsUiState.kt
│ │ └── AppearanceSettingsViewModel.kt
│ └── behavior/
│ ├── BehaviorSettingsScreen.kt
│ ├── BehaviorSettingsUiState.kt
│ └── BehaviorSettingsViewModel.kt
├── framework/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── consumer-rules.pro
│ ├── proguard-rules.pro
│ └── src/
│ ├── androidInstrumentedTest/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── framework/
│ │ ├── ExampleInstrumentedTest.kt
│ │ └── utils/
│ │ └── UtiUtilsTest.kt
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── framework/
│ │ ├── activity/
│ │ │ └── TopActivityManager.kt
│ │ ├── architect/
│ │ │ ├── http/
│ │ │ │ ├── GlobalOkHttpClient.kt
│ │ │ │ └── HttpClientEngine.android.kt
│ │ │ └── theme/
│ │ │ └── FreadTheme.android.kt
│ │ ├── blurhash/
│ │ │ └── BitmapExt.android.kt
│ │ ├── composable/
│ │ │ ├── AnimatableExt.kt
│ │ │ ├── Loading.android.kt
│ │ │ ├── TextString.android.kt
│ │ │ └── pick/
│ │ │ └── PickVisualMediaLauncherContainer.android.kt
│ │ ├── date/
│ │ │ └── InstantFormater.android.kt
│ │ ├── datetime/
│ │ │ └── Instant.android.kt
│ │ ├── ktx/
│ │ │ └── SingletonDelegate.kt
│ │ ├── media/
│ │ │ └── MediaFileUtil.kt
│ │ ├── permission/
│ │ │ ├── PermissionUtils.kt
│ │ │ ├── RequireLocalStoragePermission.android.kt
│ │ │ └── RequirePermission.kt
│ │ ├── serialize/
│ │ │ └── DateSerializer.kt
│ │ ├── toast/
│ │ │ └── Toast.android.kt
│ │ └── utils/
│ │ ├── ActivityLifecycleCallbacksAdapter.kt
│ │ ├── ActivityResultContractsExt.kt
│ │ ├── BitmapUtils.kt
│ │ ├── ContextUtils.kt
│ │ ├── DensityUtils.android.kt
│ │ ├── DrawableExt.kt
│ │ ├── DrawableWrapper.kt
│ │ ├── ExoPlayerUtils.kt
│ │ ├── FileUtils.kt
│ │ ├── IDNUtils.android.kt
│ │ ├── ImageCompressUtils.android.kt
│ │ ├── ImageLoaderUtils.kt
│ │ ├── LanguageUtils.android.kt
│ │ ├── PlatformIgnoredOnParcel.android.kt
│ │ ├── PlatformParcelable.android.kt
│ │ ├── PlatformTransient.android.kt
│ │ ├── PlatformUri.android.kt
│ │ ├── Serializable.android.kt
│ │ ├── SignatureUtils.kt
│ │ ├── SystemPageUtils.kt
│ │ ├── SystemUtils.kt
│ │ ├── UriUtils.android.kt
│ │ └── VideoUtils.android.kt
│ ├── androidUnitTest/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── framework/
│ │ ├── ExampleUnitTest.kt
│ │ ├── RegexFactoryTest.kt
│ │ ├── date/
│ │ │ └── DateParserTest.kt
│ │ ├── feeds/
│ │ │ └── fetcher/
│ │ │ ├── FeedsFetcherTest.kt
│ │ │ └── FeedsGeneratorTest.kt
│ │ └── utils/
│ │ ├── RegexFactoryTest.kt
│ │ ├── StorageSizeTest.kt
│ │ └── WebFingerTest.kt
│ ├── commonMain/
│ │ ├── kotlin/
│ │ │ └── com/
│ │ │ ├── sd/
│ │ │ │ └── lib/
│ │ │ │ └── compose/
│ │ │ │ └── wheel_picker/
│ │ │ │ ├── WheelPicker.kt
│ │ │ │ ├── WheelPickerDefault.kt
│ │ │ │ └── WheelPickerState.kt
│ │ │ └── zhangke/
│ │ │ └── framework/
│ │ │ ├── architect/
│ │ │ │ ├── coroutines/
│ │ │ │ │ ├── ApplicationScope.kt
│ │ │ │ │ └── Flows.kt
│ │ │ │ ├── http/
│ │ │ │ │ └── HttpClientEngine.kt
│ │ │ │ ├── json/
│ │ │ │ │ ├── Json.kt
│ │ │ │ │ └── JsonModuleBuilder.kt
│ │ │ │ └── theme/
│ │ │ │ ├── Color.kt
│ │ │ │ └── FreadTheme.kt
│ │ │ ├── blur/
│ │ │ │ ├── BlurController.kt
│ │ │ │ └── LocalEnableBlurAppBarStyle.kt
│ │ │ ├── blurhash/
│ │ │ │ ├── BitmapExt.kt
│ │ │ │ ├── BlurHashDecoder.kt
│ │ │ │ └── BlurHashModifier.kt
│ │ │ ├── collections/
│ │ │ │ └── Collections.kt
│ │ │ ├── composable/
│ │ │ │ ├── AlertConfirmDialog.kt
│ │ │ │ ├── AvatarStatck.kt
│ │ │ │ ├── BackHandler.kt
│ │ │ │ ├── BezierCurve.kt
│ │ │ │ ├── BottomSheetState.kt
│ │ │ │ ├── Bounds.kt
│ │ │ │ ├── CollapsableTopBarScrollConnection.kt
│ │ │ │ ├── CompositionLocal.kt
│ │ │ │ ├── DatePickerDialog.kt
│ │ │ │ ├── DirectionalLazyListState.kt
│ │ │ │ ├── DpSaver.kt
│ │ │ │ ├── DurationSelector.kt
│ │ │ │ ├── FlowUtils.android.kt
│ │ │ │ ├── FlowUtils.kt
│ │ │ │ ├── FreadDialog.kt
│ │ │ │ ├── FreadTabRow.kt
│ │ │ │ ├── Grid.kt
│ │ │ │ ├── HorizontalPageIndicator.kt
│ │ │ │ ├── IconButton.kt
│ │ │ │ ├── InsetAwareSearchBar.kt
│ │ │ │ ├── Keyboard.kt
│ │ │ │ ├── LazyListStateUtils.kt
│ │ │ │ ├── LoadableLayout.kt
│ │ │ │ ├── Loading.kt
│ │ │ │ ├── LoadingDialog.kt
│ │ │ │ ├── LocalContentPadding.kt
│ │ │ │ ├── LocalSnackMessage.kt
│ │ │ │ ├── NavigationBar.kt
│ │ │ │ ├── NestedScrollConnection.kt
│ │ │ │ ├── NoDoubleClick.kt
│ │ │ │ ├── NoRippleClick.kt
│ │ │ │ ├── Offset.kt
│ │ │ │ ├── PaddingValuesUtils.kt
│ │ │ │ ├── Placeholder.kt
│ │ │ │ ├── PopupFloatingActionButton.kt
│ │ │ │ ├── PopupMenu.kt
│ │ │ │ ├── PredictiveBackProgressState.kt
│ │ │ │ ├── ScreenUtils.kt
│ │ │ │ ├── ScrollTopAppBar.kt
│ │ │ │ ├── SearchToolbar.kt
│ │ │ │ ├── Size.kt
│ │ │ │ ├── SlickRoundCornerShape.kt
│ │ │ │ ├── Snackbar.kt
│ │ │ │ ├── StateSaver.kt
│ │ │ │ ├── StyledIconButton.kt
│ │ │ │ ├── StyledTextButton.kt
│ │ │ │ ├── SystemUi.kt
│ │ │ │ ├── TabIndicator.kt
│ │ │ │ ├── TabsTopAppBar.kt
│ │ │ │ ├── TextString.kt
│ │ │ │ ├── TextWithIcon.kt
│ │ │ │ ├── Toolbar.kt
│ │ │ │ ├── TopAppBar.kt
│ │ │ │ ├── TopBarWithTabLayout.kt
│ │ │ │ ├── TwoTextsInRow.kt
│ │ │ │ ├── VelocityExt.kt
│ │ │ │ ├── VerticalIndentLayout.kt
│ │ │ │ ├── collapsable/
│ │ │ │ │ ├── CollapsableTopBarLayout.kt
│ │ │ │ │ ├── CollapsableTopBarLayoutConnection.kt
│ │ │ │ │ └── ScrollUpTopBarLayout.kt
│ │ │ │ ├── icons/
│ │ │ │ │ └── Toufu.kt
│ │ │ │ ├── image/
│ │ │ │ │ └── viewer/
│ │ │ │ │ ├── ImageViewer.kt
│ │ │ │ │ ├── ImageViewerState.kt
│ │ │ │ │ └── TransformGestureDetector.kt
│ │ │ │ ├── infinite/
│ │ │ │ │ ├── InfiniteBox.kt
│ │ │ │ │ └── InfinityBoxState.kt
│ │ │ │ ├── inline/
│ │ │ │ │ ├── InlineVideoLazyColumn.kt
│ │ │ │ │ └── PlayableIndexRecorderLocal.kt
│ │ │ │ ├── pick/
│ │ │ │ │ └── PickVisualMediaLauncherContainer.kt
│ │ │ │ ├── sensitive/
│ │ │ │ │ ├── SensitiveLazyColumn.kt
│ │ │ │ │ └── SensitiveLazyColumnState.kt
│ │ │ │ ├── topout/
│ │ │ │ │ ├── TopOutTopBarLayout.kt
│ │ │ │ │ └── TopOutTopBarLayoutConnection.kt
│ │ │ │ └── video/
│ │ │ │ └── VideoPlayer.kt
│ │ │ ├── controller/
│ │ │ │ ├── CommonLoadableController.kt
│ │ │ │ └── LoadableController.kt
│ │ │ ├── coroutines/
│ │ │ │ └── JobExt.kt
│ │ │ ├── date/
│ │ │ │ ├── DateParser.kt
│ │ │ │ └── InstantFormater.kt
│ │ │ ├── datetime/
│ │ │ │ └── Instant.kt
│ │ │ ├── imageloader/
│ │ │ │ └── ImageLoaderUtils.kt
│ │ │ ├── ktx/
│ │ │ │ ├── CollectionsExt.kt
│ │ │ │ ├── FlowExt.kt
│ │ │ │ ├── LazyBackingFieldDelegate.kt
│ │ │ │ ├── StringExt.kt
│ │ │ │ └── ViewModels.kt
│ │ │ ├── lifecycle/
│ │ │ │ ├── ContainerViewModel.kt
│ │ │ │ └── SubViewModel.kt
│ │ │ ├── loadable/
│ │ │ │ ├── lazycolumn/
│ │ │ │ │ ├── LoadMoreUi.kt
│ │ │ │ │ ├── LoadableInlineVideoLazyColumn.kt
│ │ │ │ │ ├── LoadableLazyColumn.kt
│ │ │ │ │ └── PullToRefreshIndicator.kt
│ │ │ │ └── previous/
│ │ │ │ └── PreviousPageLoadingState.kt
│ │ │ ├── module/
│ │ │ │ └── ModuleStartup.kt
│ │ │ ├── nav/
│ │ │ │ ├── DialogNavMetadata.kt
│ │ │ │ ├── LocalNavBackStack.kt
│ │ │ │ ├── NavBackStackExt.kt
│ │ │ │ ├── NavEntryProvider.kt
│ │ │ │ ├── ScreenEventFlow.kt
│ │ │ │ ├── SharedElementScope.kt
│ │ │ │ └── Tab.kt
│ │ │ ├── network/
│ │ │ │ ├── FormalBaseUrl.kt
│ │ │ │ ├── GlobalRoutes.kt
│ │ │ │ ├── HttpScheme.kt
│ │ │ │ └── SimpleUri.kt
│ │ │ ├── opml/
│ │ │ │ ├── OpmlOutline.kt
│ │ │ │ └── OpmlParser.kt
│ │ │ ├── permission/
│ │ │ │ └── RequireLocalStoragePermission.kt
│ │ │ ├── security/
│ │ │ │ └── Md5.kt
│ │ │ ├── serialize/
│ │ │ │ └── TimestampAsInstantSerializer.kt
│ │ │ ├── toast/
│ │ │ │ └── Toast.kt
│ │ │ └── utils/
│ │ │ ├── AspectRatio.kt
│ │ │ ├── BlendColorUtils.kt
│ │ │ ├── ContentProviderFile.kt
│ │ │ ├── DebugUtils.kt
│ │ │ ├── DensityUtils.kt
│ │ │ ├── DomainValidator.kt
│ │ │ ├── DurationFormatUtils.kt
│ │ │ ├── ExtractUrlFromTextUtils.kt
│ │ │ ├── FloatExt.kt
│ │ │ ├── Handle.kt
│ │ │ ├── HighlightTextBuildUtil.kt
│ │ │ ├── IDNUtils.kt
│ │ │ ├── ImageCompressUtils.kt
│ │ │ ├── IntExt.kt
│ │ │ ├── LanguageUtils.kt
│ │ │ ├── LinkPreviewUtils.kt
│ │ │ ├── LoadState.kt
│ │ │ ├── Log.kt
│ │ │ ├── Parcelize.kt
│ │ │ ├── PlatformIgnoredOnParcel.kt
│ │ │ ├── PlatformParcelable.kt
│ │ │ ├── PlatformSerializable.kt
│ │ │ ├── PlatformTransient.kt
│ │ │ ├── PlatformUri.kt
│ │ │ ├── RegexFactory.kt
│ │ │ ├── ResultExt.kt
│ │ │ ├── Rfc822InstantParser.kt
│ │ │ ├── SizeUtils.kt
│ │ │ ├── Standard.kt
│ │ │ ├── StorageSize.kt
│ │ │ ├── TextFieldUtils.kt
│ │ │ ├── ThrowableUtils.kt
│ │ │ ├── UriUtils.kt
│ │ │ ├── UrlEncoder.kt
│ │ │ ├── VideoUtils.kt
│ │ │ └── WebFinger.kt
│ │ └── res/
│ │ └── values/
│ │ ├── colors.xml
│ │ └── ids.xml
│ ├── commonTest/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── framework/
│ │ ├── network/
│ │ │ └── SimpleUriTest.kt
│ │ ├── opml/
│ │ │ └── OpmlParserTest.kt
│ │ ├── security/
│ │ │ └── Md5Test.kt
│ │ └── utils/
│ │ ├── ExtractUrlFromTextUtilsTest.kt
│ │ ├── IntExtTest.kt
│ │ └── WebFingerTest.kt
│ └── iosMain/
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── framework/
│ ├── architect/
│ │ ├── http/
│ │ │ └── HttpClientEngine.ios.kt
│ │ └── theme/
│ │ └── FreadTheme.ios.kt
│ ├── blurhash/
│ │ └── BitmapExt.ios.kt
│ ├── composable/
│ │ ├── TextString.ios.kt
│ │ └── pick/
│ │ └── PickVisualMediaLauncherContainer.ios.kt
│ ├── date/
│ │ └── InstantFormater.ios.kt
│ ├── datetime/
│ │ └── Instant.ios.kt
│ ├── permission/
│ │ └── RequireLocalStoragePermission.ios.kt
│ ├── toast/
│ │ └── Toast.ios.kt
│ └── utils/
│ ├── IDNUtils.ios.kt
│ ├── ImageCompressUtils.kt
│ ├── LanguageUtils.ios.kt
│ ├── PlatformIgnoredOnParcel.ios.kt
│ ├── PlatformParcelable.ios.kt
│ ├── PlatformTransient.ios.kt
│ ├── PlatformUri.ios.kt
│ ├── Serializable.ios.kt
│ └── VideoUtils.ios.kt
├── gradle/
│ ├── libs.versions.toml
│ └── wrapper/
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── iosApp/
│ ├── .gitignore
│ ├── Configuration/
│ │ └── Config.xcconfig
│ ├── iosApp/
│ │ ├── Assets.xcassets/
│ │ │ ├── AccentColor.colorset/
│ │ │ │ └── Contents.json
│ │ │ ├── AppIcon.appiconset/
│ │ │ │ └── Contents.json
│ │ │ └── Contents.json
│ │ ├── ContentView.swift
│ │ ├── GoogleService-Info.plist
│ │ ├── Info.plist
│ │ ├── Preview Content/
│ │ │ └── Preview Assets.xcassets/
│ │ │ └── Contents.json
│ │ └── iOSApp.swift
│ └── iosApp.xcodeproj/
│ └── project.pbxproj
├── kotlin-inject-relative.md
├── localization/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── consumer-rules.pro
│ ├── proguard-rules.pro
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── localization/
│ │ └── LanguageCodeUtils.kt
│ └── commonMain/
│ ├── composeResources/
│ │ ├── values/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-de-rDE/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-es-rES/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-fr-rFR/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-ja-rJP/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-pt-rPT/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-ru-rRU/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-zh-rCN/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-zh-rHK/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ └── values-zh-rTW/
│ │ ├── strings.xml
│ │ ├── strings_mastodon.xml
│ │ └── strings_status_ui.xml
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── fread/
│ └── localization/
│ ├── LanguageCode.kt
│ ├── LanguageCodeNames.kt
│ ├── Localization.kt
│ └── LocalizedString.kt
├── plugins/
│ ├── activitypub-app/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── consumer-rules.pro
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ ├── androidMain/
│ │ │ ├── AndroidManifest.xml
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── activitypub/
│ │ │ └── app/
│ │ │ ├── ActivityPubAndroidModule.kt
│ │ │ └── internal/
│ │ │ ├── auth/
│ │ │ │ └── ActivityPubOAuthRedirectActivity.kt
│ │ │ └── push/
│ │ │ ├── ActivityPubPushManager.android.kt
│ │ │ ├── ActivityPubPushMessageReceiverHelper.android.kt
│ │ │ ├── CryptoUtil.kt
│ │ │ ├── PushInfoRepo.kt
│ │ │ └── notification/
│ │ │ ├── ActivityPubPushMessage.kt
│ │ │ └── PushNotificationManager.kt
│ │ ├── androidUnitTest/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── utopia/
│ │ │ └── activitypubapp/
│ │ │ └── ExampleUnitTest.kt
│ │ ├── commonMain/
│ │ │ ├── composeResources/
│ │ │ │ └── drawable/
│ │ │ │ └── detail_page_banner_background.xml
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── activitypub/
│ │ │ └── app/
│ │ │ ├── ActivityPubAccountManager.kt
│ │ │ ├── ActivityPubContentManager.kt
│ │ │ ├── ActivityPubJsonBuilder.kt
│ │ │ ├── ActivityPubModule.kt
│ │ │ ├── ActivityPubNavEntryProvider.kt
│ │ │ ├── ActivityPubNotificationResolver.kt
│ │ │ ├── ActivityPubProvider.kt
│ │ │ ├── ActivityPubPublishManager.kt
│ │ │ ├── ActivityPubScreenProvider.kt
│ │ │ ├── ActivityPubSearchEngine.kt
│ │ │ ├── ActivityPubSourceResolver.kt
│ │ │ ├── ActivityPubStartup.kt
│ │ │ ├── ActivityPubStatusResolver.kt
│ │ │ ├── ActivityPubUrlInterceptor.kt
│ │ │ └── internal/
│ │ │ ├── DataTrackingElements.kt
│ │ │ ├── adapter/
│ │ │ │ ├── ActivityPubAccountEntityAdapter.kt
│ │ │ │ ├── ActivityPubApplicationEntityAdapter.kt
│ │ │ │ ├── ActivityPubBlogMetaAdapter.kt
│ │ │ │ ├── ActivityPubContentAdapter.kt
│ │ │ │ ├── ActivityPubCustomEmojiEntityAdapter.kt
│ │ │ │ ├── ActivityPubInstanceAdapter.kt
│ │ │ │ ├── ActivityPubLoggedAccountAdapter.kt
│ │ │ │ ├── ActivityPubPlatformEntityAdapter.kt
│ │ │ │ ├── ActivityPubPollAdapter.kt
│ │ │ │ ├── ActivityPubSearchAdapter.kt
│ │ │ │ ├── ActivityPubStatusAdapter.kt
│ │ │ │ ├── ActivityPubTagAdapter.kt
│ │ │ │ ├── ActivityPubTranslationEntityAdapter.kt
│ │ │ │ ├── PostStatusAttachmentAdapter.kt
│ │ │ │ ├── QuoteApprovalPolicyExt.kt
│ │ │ │ ├── RegisterApplicationEntryAdapter.kt
│ │ │ │ └── StatusVisibilityExt.kt
│ │ │ ├── auth/
│ │ │ │ ├── ActivityPubClientManager.kt
│ │ │ │ ├── ActivityPubOAuthor.kt
│ │ │ │ └── LoggedAccountProvider.kt
│ │ │ ├── composable/
│ │ │ │ └── ActivityPubTabNames.kt
│ │ │ ├── content/
│ │ │ │ └── ActivityPubContent.kt
│ │ │ ├── db/
│ │ │ │ ├── ActivityPubApplicationTable.kt
│ │ │ │ ├── ActivityPubDatabases.kt
│ │ │ │ ├── ActivityPubLoggedAccountDatabase.kt
│ │ │ │ ├── ActivityPubPlatformTable.kt
│ │ │ │ ├── UserIdTable.kt
│ │ │ │ ├── converter/
│ │ │ │ │ ├── ActivityPubAccountEntityConverter.kt
│ │ │ │ │ ├── ActivityPubInstanceEntityConverter.kt
│ │ │ │ │ ├── ActivityPubLoggedAccountConverter.kt
│ │ │ │ │ ├── ActivityPubStatusEntityConverter.kt
│ │ │ │ │ ├── ActivityPubStatusSourceTypeConverter.kt
│ │ │ │ │ ├── ActivityPubUserTokenConverter.kt
│ │ │ │ │ ├── BlogAuthorConverter.kt
│ │ │ │ │ ├── EmojiListConverter.kt
│ │ │ │ │ ├── FormalBaseUrlConverter.kt
│ │ │ │ │ ├── PlatformEntityTypeConverter.kt
│ │ │ │ │ ├── RelationshipSeveranceEventConverter.kt
│ │ │ │ │ └── StatusNotificationTypeConverter.kt
│ │ │ │ ├── old/
│ │ │ │ │ └── ActivityPubLoggedAccountTable.kt
│ │ │ │ └── status/
│ │ │ │ ├── ActivityPubStatusDatabases.kt
│ │ │ │ └── ActivityPubStatusReadStateDatabases.kt
│ │ │ ├── migrate/
│ │ │ │ └── ActivityPubContentMigrator.kt
│ │ │ ├── model/
│ │ │ │ ├── ActivityPubApplication.kt
│ │ │ │ ├── ActivityPubInstanceRule.kt
│ │ │ │ ├── ActivityPubLoggedAccount.kt
│ │ │ │ ├── ActivityPubStatusSourceType.kt
│ │ │ │ ├── ActivityPubTimelineType.kt
│ │ │ │ ├── CustomEmoji.kt
│ │ │ │ ├── PlatformUriInsights.kt
│ │ │ │ ├── RelationshipSeveranceEvent.kt
│ │ │ │ ├── ServerDetailContract.kt
│ │ │ │ ├── StatusNotification.kt
│ │ │ │ ├── StatusNotificationType.kt
│ │ │ │ ├── UserSource.kt
│ │ │ │ └── UserUriInsights.kt
│ │ │ ├── platform/
│ │ │ │ └── FreadApplicationRegisterInfo.kt
│ │ │ ├── push/
│ │ │ │ ├── ActivityPubPushManager.kt
│ │ │ │ └── ActivityPubPushMessageReceiver.kt
│ │ │ ├── repo/
│ │ │ │ ├── WebFingerBaseUrlToUserIdRepo.kt
│ │ │ │ ├── account/
│ │ │ │ │ ├── ActivityPubLoggedAccountRepo.kt
│ │ │ │ │ └── LoggedAccountMigrateUtil.kt
│ │ │ │ ├── application/
│ │ │ │ │ └── ActivityPubApplicationRepo.kt
│ │ │ │ ├── platform/
│ │ │ │ │ ├── ActivityPubPlatformRepo.kt
│ │ │ │ │ ├── BlogPlatformResourceLoader.kt
│ │ │ │ │ └── MastodonInstanceRepo.kt
│ │ │ │ ├── status/
│ │ │ │ │ ├── ActivityPubStatusReadStateRepo.kt
│ │ │ │ │ └── ActivityPubTimelineStatusRepo.kt
│ │ │ │ └── user/
│ │ │ │ └── UserRepo.kt
│ │ │ ├── route/
│ │ │ │ └── ActivityPubRoutes.kt
│ │ │ ├── screen/
│ │ │ │ ├── account/
│ │ │ │ │ ├── EditAccountInfoScreen.kt
│ │ │ │ │ ├── EditAccountInfoViewModel.kt
│ │ │ │ │ └── EditAccountUiState.kt
│ │ │ │ ├── add/
│ │ │ │ │ ├── AddActivityPubContentScreen.kt
│ │ │ │ │ ├── AddActivityPubContentViewModel.kt
│ │ │ │ │ └── select/
│ │ │ │ │ ├── SelectPlatformScreen.kt
│ │ │ │ │ ├── SelectPlatformUiState.kt
│ │ │ │ │ └── SelectPlatformViewModel.kt
│ │ │ │ ├── content/
│ │ │ │ │ ├── ActivityPubContentSubViewModel.kt
│ │ │ │ │ ├── ActivityPubContentTab.kt
│ │ │ │ │ ├── ActivityPubContentUiState.kt
│ │ │ │ │ ├── ActivityPubContentViewModel.kt
│ │ │ │ │ ├── edit/
│ │ │ │ │ │ ├── EditContentConfigScreen.kt
│ │ │ │ │ │ ├── EditContentConfigUiState.kt
│ │ │ │ │ │ └── EditContentConfigViewModel.kt
│ │ │ │ │ └── timeline/
│ │ │ │ │ ├── ActivityPubTimelineContainerViewModel.kt
│ │ │ │ │ ├── ActivityPubTimelineTab.kt
│ │ │ │ │ ├── ActivityPubTimelineViewModel.kt
│ │ │ │ │ └── ActivityPubUiState.kt
│ │ │ │ ├── explorer/
│ │ │ │ │ ├── ExplorerContainerTab.kt
│ │ │ │ │ ├── ExplorerContainerViewModel.kt
│ │ │ │ │ ├── ExplorerFeedsTabType.kt
│ │ │ │ │ ├── ExplorerItem.kt
│ │ │ │ │ ├── ExplorerTab.kt
│ │ │ │ │ ├── ExplorerUiState.kt
│ │ │ │ │ └── ExplorerViewModel.kt
│ │ │ │ ├── filters/
│ │ │ │ │ ├── edit/
│ │ │ │ │ │ ├── EditFilterScreen.kt
│ │ │ │ │ │ ├── EditFilterUiState.kt
│ │ │ │ │ │ ├── EditFilterViewModel.kt
│ │ │ │ │ │ ├── FilterContext.kt
│ │ │ │ │ │ └── HiddenKeywordScreen.kt
│ │ │ │ │ └── list/
│ │ │ │ │ ├── FiltersListScreen.kt
│ │ │ │ │ ├── FiltersListUiState.kt
│ │ │ │ │ └── FiltersListViewModel.kt
│ │ │ │ ├── hashtag/
│ │ │ │ │ ├── HashtagTimelineContainerViewModel.kt
│ │ │ │ │ ├── HashtagTimelineScreen.kt
│ │ │ │ │ ├── HashtagTimelineUiState.kt
│ │ │ │ │ └── HashtagTimelineViewModel.kt
│ │ │ │ ├── instance/
│ │ │ │ │ ├── InstanceDetailScreen.kt
│ │ │ │ │ ├── InstanceDetailUiState.kt
│ │ │ │ │ ├── InstanceDetailViewModel.kt
│ │ │ │ │ ├── about/
│ │ │ │ │ │ ├── ServerAboutPage.kt
│ │ │ │ │ │ ├── ServerAboutUiState.kt
│ │ │ │ │ │ └── ServerAboutViewModel.kt
│ │ │ │ │ └── tags/
│ │ │ │ │ ├── ServerTrendsTagsPage.kt
│ │ │ │ │ ├── ServerTrendsTagsUiState.kt
│ │ │ │ │ └── ServerTrendsTagsViewModel.kt
│ │ │ │ ├── list/
│ │ │ │ │ ├── CreatedListsScreen.kt
│ │ │ │ │ ├── CreatedListsUiState.kt
│ │ │ │ │ ├── CreatedListsViewModel.kt
│ │ │ │ │ ├── ListDetailPageContent.kt
│ │ │ │ │ ├── ListItem.kt
│ │ │ │ │ ├── add/
│ │ │ │ │ │ ├── AddListScreen.kt
│ │ │ │ │ │ ├── AddListUiState.kt
│ │ │ │ │ │ └── AddListViewModel.kt
│ │ │ │ │ └── edit/
│ │ │ │ │ ├── EditListScreen.kt
│ │ │ │ │ ├── EditListUiState.kt
│ │ │ │ │ └── EditListViewModel.kt
│ │ │ │ ├── search/
│ │ │ │ │ ├── SearchStatusScreen.kt
│ │ │ │ │ └── SearchStatusViewModel.kt
│ │ │ │ ├── status/
│ │ │ │ │ └── post/
│ │ │ │ │ ├── PostStatusScreen.kt
│ │ │ │ │ ├── PostStatusScreenRoute.kt
│ │ │ │ │ ├── PostStatusUiState.kt
│ │ │ │ │ ├── PostStatusViewModel.kt
│ │ │ │ │ ├── PublishInteractionSettingLabel.kt
│ │ │ │ │ ├── adapter/
│ │ │ │ │ │ └── CustomEmojiAdapter.kt
│ │ │ │ │ ├── composable/
│ │ │ │ │ │ ├── CustomEmojiPicker.kt
│ │ │ │ │ │ ├── PostStatusBottomBar.kt
│ │ │ │ │ │ └── PostStatusPoll.kt
│ │ │ │ │ └── usecase/
│ │ │ │ │ ├── GenerateInitPostStatusUiStateUseCase.kt
│ │ │ │ │ └── PublishPostUseCase.kt
│ │ │ │ ├── trending/
│ │ │ │ │ ├── TrendingStatusSubViewModel.kt
│ │ │ │ │ ├── TrendingStatusTab.kt
│ │ │ │ │ └── TrendingStatusViewModel.kt
│ │ │ │ └── user/
│ │ │ │ ├── UserDetailContainerViewModel.kt
│ │ │ │ ├── UserDetailScreen.kt
│ │ │ │ ├── UserDetailUiState.kt
│ │ │ │ ├── UserDetailViewModel.kt
│ │ │ │ ├── list/
│ │ │ │ │ ├── UserListScreen.kt
│ │ │ │ │ ├── UserListType.kt
│ │ │ │ │ ├── UserListUiState.kt
│ │ │ │ │ └── UserListViewModel.kt
│ │ │ │ ├── search/
│ │ │ │ │ ├── SearchUserScreen.kt
│ │ │ │ │ ├── SearchUserUiState.kt
│ │ │ │ │ └── SearchUserViewModel.kt
│ │ │ │ ├── status/
│ │ │ │ │ ├── StatusListContainerViewModel.kt
│ │ │ │ │ ├── StatusListScreen.kt
│ │ │ │ │ ├── StatusListTab.kt
│ │ │ │ │ ├── StatusListType.kt
│ │ │ │ │ └── StatusListViewModel.kt
│ │ │ │ ├── tags/
│ │ │ │ │ ├── TagListScreen.kt
│ │ │ │ │ ├── TagListUiState.kt
│ │ │ │ │ └── TagListViewModel.kt
│ │ │ │ └── timeline/
│ │ │ │ ├── UserTimelineContainerViewModel.kt
│ │ │ │ ├── UserTimelineTab.kt
│ │ │ │ ├── UserTimelineTabType.kt
│ │ │ │ ├── UserTimelineUiState.kt
│ │ │ │ └── UserTimelineViewModel.kt
│ │ │ ├── source/
│ │ │ │ └── UserSourceTransformer.kt
│ │ │ ├── uri/
│ │ │ │ ├── ActivityPubUriHost.kt
│ │ │ │ ├── ActivityPubUriPath.kt
│ │ │ │ ├── PlatformUriTransformer.kt
│ │ │ │ ├── StatusProviderUriExts.kt
│ │ │ │ └── UserUriTransformer.kt
│ │ │ ├── usecase/
│ │ │ │ ├── ActivityPubAccountLogoutUseCase.kt
│ │ │ │ ├── GetDefaultBaseUrlUseCase.kt
│ │ │ │ ├── GetInstanceAnnouncementUseCase.kt
│ │ │ │ ├── GetServerTrendTagsUseCase.kt
│ │ │ │ ├── UpdateActivityPubUserListUseCase.kt
│ │ │ │ ├── content/
│ │ │ │ │ ├── GetUserCreatedListUseCase.kt
│ │ │ │ │ └── ReorderActivityPubTabUseCase.kt
│ │ │ │ ├── emoji/
│ │ │ │ │ ├── GetCustomEmojiUseCase.kt
│ │ │ │ │ └── MapCustomEmojiUseCase.kt
│ │ │ │ ├── media/
│ │ │ │ │ └── UploadMediaAttachmentUseCase.kt
│ │ │ │ ├── platform/
│ │ │ │ │ └── GetInstancePostStatusRulesUseCase.kt
│ │ │ │ ├── source/
│ │ │ │ │ └── user/
│ │ │ │ │ └── SearchUserSourceNoTokenUseCase.kt
│ │ │ │ └── status/
│ │ │ │ ├── GetStatusContextUseCase.kt
│ │ │ │ ├── GetTimelineStatusUseCase.kt
│ │ │ │ ├── GetUserStatusUseCase.kt
│ │ │ │ ├── StatusInteractiveUseCase.kt
│ │ │ │ └── VotePollUseCase.kt
│ │ │ └── utils/
│ │ │ ├── Base64Utils.kt
│ │ │ ├── DeleteTextUtil.kt
│ │ │ ├── MastodonHelper.kt
│ │ │ └── PlatformLocatorUtils.kt
│ │ └── iosMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── activitypub/
│ │ └── app/
│ │ ├── ActivityPubIosModule.kt
│ │ └── internal/
│ │ └── push/
│ │ ├── ActivityPubPushManager.ios.kt
│ │ └── ActivityPubPushMessageReceiverHelper.ios.kt
│ ├── bluesky/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── consumer-rules.pro
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── bluesky/
│ │ │ └── BlueskyAndroidModule.kt
│ │ ├── androidTest/
│ │ │ └── java/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── bluesky/
│ │ │ └── ExampleInstrumentedTest.kt
│ │ ├── commonMain/
│ │ │ ├── composeResources/
│ │ │ │ └── drawable/
│ │ │ │ └── bluesky_logo.xml
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── bluesky/
│ │ │ ├── BlueskyAccountManager.kt
│ │ │ ├── BlueskyModule.kt
│ │ │ ├── BlueskyNavEntryProvider.kt
│ │ │ ├── BlueskyNotificationResolver.kt
│ │ │ ├── BlueskyProvider.kt
│ │ │ ├── BlueskyPublishManager.kt
│ │ │ ├── BlueskyScreenProvider.kt
│ │ │ ├── BlueskySearchEngine.kt
│ │ │ ├── BlueskyStatusResolver.kt
│ │ │ ├── BlueskyStatusSourceResolver.kt
│ │ │ ├── BskyStartup.kt
│ │ │ ├── BskyUrlInterceptor.kt
│ │ │ └── internal/
│ │ │ ├── account/
│ │ │ │ ├── BlueskyLoggedAccount.kt
│ │ │ │ └── BlueskyLoggedAccountManager.kt
│ │ │ ├── adapter/
│ │ │ │ ├── BlueskyAccountAdapter.kt
│ │ │ │ ├── BlueskyFeedsAdapter.kt
│ │ │ │ ├── BlueskyNotificationAdapter.kt
│ │ │ │ ├── BlueskyProfileAdapter.kt
│ │ │ │ └── BlueskyStatusAdapter.kt
│ │ │ ├── client/
│ │ │ │ ├── BlueskyClient.kt
│ │ │ │ ├── BlueskyClientManager.kt
│ │ │ │ ├── BlueskyResponseUtils.kt
│ │ │ │ ├── BskyCollections.kt
│ │ │ │ ├── BskyHttpPlugin.kt
│ │ │ │ ├── records.kt
│ │ │ │ └── rkeys.kt
│ │ │ ├── composable/
│ │ │ │ ├── BlueskyFeedsUi.kt
│ │ │ │ └── DetailTopBar.kt
│ │ │ ├── content/
│ │ │ │ ├── BlueskyContent.kt
│ │ │ │ └── BlueskyContentManager.kt
│ │ │ ├── db/
│ │ │ │ ├── BlueskyLoggedAccountDatabase.kt
│ │ │ │ └── converter/
│ │ │ │ ├── BlueskyLoggedAccountConverter.kt
│ │ │ │ └── GeneratorViewConverter.kt
│ │ │ ├── migrate/
│ │ │ │ └── BlueskyContentMigrator.kt
│ │ │ ├── model/
│ │ │ │ ├── BlueskyFeeds.kt
│ │ │ │ ├── BlueskyProfile.kt
│ │ │ │ ├── BskyPagingFeeds.kt
│ │ │ │ └── CompletedBskyNotification.kt
│ │ │ ├── repo/
│ │ │ │ ├── BlueskyLoggedAccountRepo.kt
│ │ │ │ └── BlueskyPlatformRepo.kt
│ │ │ ├── screen/
│ │ │ │ ├── BlueskyRoutes.kt
│ │ │ │ ├── add/
│ │ │ │ │ ├── AddBlueskyContentScreen.kt
│ │ │ │ │ ├── AddBlueskyContentUiState.kt
│ │ │ │ │ └── AddBlueskyContentViewModel.kt
│ │ │ │ ├── content/
│ │ │ │ │ ├── BlueskyContentContainerViewModel.kt
│ │ │ │ │ ├── BlueskyContentTab.kt
│ │ │ │ │ ├── BlueskyContentUiState.kt
│ │ │ │ │ └── BlueskyContentViewModel.kt
│ │ │ │ ├── explorer/
│ │ │ │ │ └── BlueskyExplorerTab.kt
│ │ │ │ ├── feeds/
│ │ │ │ │ ├── detail/
│ │ │ │ │ │ ├── FeedsDetailScreen.kt
│ │ │ │ │ │ ├── FeedsDetailUiState.kt
│ │ │ │ │ │ └── FeedsDetailViewModel.kt
│ │ │ │ │ ├── explorer/
│ │ │ │ │ │ ├── ExplorerFeedsScreen.kt
│ │ │ │ │ │ ├── ExplorerFeedsUiState.kt
│ │ │ │ │ │ └── ExplorerFeedsViewModel.kt
│ │ │ │ │ ├── following/
│ │ │ │ │ │ ├── BskyFollowingFeedsPage.kt
│ │ │ │ │ │ ├── BskyFollowingFeedsUiState.kt
│ │ │ │ │ │ └── BskyFollowingFeedsViewModel.kt
│ │ │ │ │ └── home/
│ │ │ │ │ ├── HomeFeedsContainerViewModel.kt
│ │ │ │ │ ├── HomeFeedsScreen.kt
│ │ │ │ │ ├── HomeFeedsTab.kt
│ │ │ │ │ └── HomeFeedsViewModel.kt
│ │ │ │ ├── publish/
│ │ │ │ │ ├── MentionCandidateBar.kt
│ │ │ │ │ ├── PublishPostEmbed.kt
│ │ │ │ │ ├── PublishPostMediaAttachment.kt
│ │ │ │ │ ├── PublishPostScreen.kt
│ │ │ │ │ ├── PublishPostUiState.kt
│ │ │ │ │ └── PublishPostViewModel.kt
│ │ │ │ ├── search/
│ │ │ │ │ ├── SearchStatusScreen.kt
│ │ │ │ │ └── SearchStatusViewModel.kt
│ │ │ │ └── user/
│ │ │ │ ├── detail/
│ │ │ │ │ ├── BskyUserDetailScreen.kt
│ │ │ │ │ ├── BskyUserDetailUiState.kt
│ │ │ │ │ └── BskyUserDetailViewModel.kt
│ │ │ │ ├── edit/
│ │ │ │ │ ├── EditProfileScreen.kt
│ │ │ │ │ ├── EditProfileUiState.kt
│ │ │ │ │ └── EditProfileViewModel.kt
│ │ │ │ └── list/
│ │ │ │ ├── UserListItemUiState.kt
│ │ │ │ ├── UserListScreen.kt
│ │ │ │ ├── UserListType.kt
│ │ │ │ └── UserListViewModel.kt
│ │ │ ├── tracking/
│ │ │ │ └── BskyTrackingElements.kt
│ │ │ ├── uri/
│ │ │ │ ├── BlueskyUriHost.kt
│ │ │ │ ├── BlueskyUriPath.kt
│ │ │ │ ├── platform/
│ │ │ │ │ ├── PlatformUriInsights.kt
│ │ │ │ │ └── PlatformUriTransformer.kt
│ │ │ │ └── user/
│ │ │ │ ├── UserUriInsights.kt
│ │ │ │ └── UserUriTransformer.kt
│ │ │ ├── usecase/
│ │ │ │ ├── BskyStatusInteractiveUseCase.kt
│ │ │ │ ├── CreateRecordUseCase.kt
│ │ │ │ ├── DeleteRecordUseCase.kt
│ │ │ │ ├── GetAllListsUseCase.kt
│ │ │ │ ├── GetAtIdentifierUseCase.kt
│ │ │ │ ├── GetCompletedNotificationUseCase.kt
│ │ │ │ ├── GetFeedsStatusUseCase.kt
│ │ │ │ ├── GetFollowingFeedsUseCase.kt
│ │ │ │ ├── GetStatusContextUseCase.kt
│ │ │ │ ├── LoginToBskyUseCase.kt
│ │ │ │ ├── PinFeedsUseCase.kt
│ │ │ │ ├── PublishingPostUseCase.kt
│ │ │ │ ├── RefreshSessionUseCase.kt
│ │ │ │ ├── UnblockUserWithoutUriUseCase.kt
│ │ │ │ ├── UnpinFeedsUseCase.kt
│ │ │ │ ├── UpdateBlockUseCase.kt
│ │ │ │ ├── UpdateHomeTabUseCase.kt
│ │ │ │ ├── UpdatePinnedFeedsOrderUseCase.kt
│ │ │ │ ├── UpdatePreferencesUseCase.kt
│ │ │ │ ├── UpdateProfileRecordUseCase.kt
│ │ │ │ ├── UpdateRelationshipUseCase.kt
│ │ │ │ ├── UploadBlobUseCase.kt
│ │ │ │ └── UploadImageByImageUrlUseCase.kt
│ │ │ └── utils/
│ │ │ ├── AtResponseUtils.kt
│ │ │ ├── PlatformLocatorUtils.kt
│ │ │ └── Tid.kt
│ │ ├── iosMain/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── bluesky/
│ │ │ └── BlueskyIosModule.kt
│ │ └── test/
│ │ └── java/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── bluesky/
│ │ └── ExampleUnitTest.kt
│ └── rss/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── consumer-rules.pro
│ ├── proguard-rules.pro
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── rss/
│ │ ├── RssAndroidModule.kt
│ │ └── internal/
│ │ └── utils/
│ │ └── AvatarUtils.android.kt
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── rss/
│ │ ├── RssAccountManager.kt
│ │ ├── RssContentManager.kt
│ │ ├── RssModule.kt
│ │ ├── RssNavEntryProvider.kt
│ │ ├── RssNotificationResolver.kt
│ │ ├── RssPublishManager.kt
│ │ ├── RssScreenProvider.kt
│ │ ├── RssSearchEngine.kt
│ │ ├── RssStatusProvider.kt
│ │ ├── RssStatusResolver.kt
│ │ ├── RssStatusSourceResolver.kt
│ │ └── internal/
│ │ ├── adapter/
│ │ │ ├── BlogAuthorAdapter.kt
│ │ │ ├── RssBlogMediaExtractor.kt
│ │ │ └── RssStatusAdapter.kt
│ │ ├── db/
│ │ │ ├── RssChannelTable.kt
│ │ │ ├── RssDatabases.kt
│ │ │ └── converter/
│ │ │ ├── FormalUriConverter.kt
│ │ │ └── InstantConverter.kt
│ │ ├── model/
│ │ │ ├── RssChannelItem.kt
│ │ │ └── RssSource.kt
│ │ ├── platform/
│ │ │ └── RssPlatformTransformer.kt
│ │ ├── repo/
│ │ │ ├── RssRepo.kt
│ │ │ └── RssStatusRepo.kt
│ │ ├── rss/
│ │ │ ├── RssChannel.kt
│ │ │ ├── RssFetcher.kt
│ │ │ ├── RssImage.kt
│ │ │ ├── RssItem.kt
│ │ │ ├── RssParserWrapper.kt
│ │ │ └── adapter/
│ │ │ ├── RssChannelAdapter.kt
│ │ │ ├── RssImageAdapter.kt
│ │ │ └── RssItemAdapter.kt
│ │ ├── screen/
│ │ │ ├── RssRoutes.kt
│ │ │ └── source/
│ │ │ ├── RssSourceScreen.kt
│ │ │ ├── RssSourceUiState.kt
│ │ │ └── RssSourceViewModel.kt
│ │ ├── source/
│ │ │ └── RssSourceTransformer.kt
│ │ ├── uri/
│ │ │ ├── RssUri.kt
│ │ │ ├── RssUriHost.kt
│ │ │ ├── RssUriInsight.kt
│ │ │ ├── RssUriPath.kt
│ │ │ └── RssUriTransformer.kt
│ │ ├── utils/
│ │ │ └── AvatarUtils.kt
│ │ └── webfinger/
│ │ └── RssSourceWebFingerTransformer.kt
│ ├── commonTest/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── rss/
│ │ └── internal/
│ │ └── adapter/
│ │ └── RssBlogMediaExtractorTest.kt
│ └── iosMain/
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── fread/
│ └── rss/
│ ├── RssIosModule.kt
│ └── internal/
│ └── utils/
│ └── AvatarUtils.ios.kt
├── privacy_cn.md
├── privacy_en.md
├── settings.gradle.kts
└── thirds/
├── halilibo-richtext-material3/
│ ├── build.gradle.kts
│ └── src/
│ ├── androidMain/
│ │ └── AndroidManifest.xml
│ └── commonMain/
│ └── kotlin/
│ └── com/
│ └── halilibo/
│ └── richtext/
│ └── ui/
│ └── material3/
│ └── RichText.kt
└── halilibo-richtext-ui/
├── build.gradle.kts
└── src/
├── androidMain/
│ ├── AndroidManifest.xml
│ └── kotlin/
│ └── com/
│ └── halilibo/
│ └── richtext/
│ └── ui/
│ ├── CodeBlock.android.kt
│ └── util/
│ └── UUID.android.kt
├── commonMain/
│ └── kotlin/
│ └── com/
│ └── halilibo/
│ └── richtext/
│ └── ui/
│ ├── BasicRichText.kt
│ ├── BlockQuote.kt
│ ├── CodeBlock.kt
│ ├── FormattedList.kt
│ ├── Heading.kt
│ ├── HorizontalRule.kt
│ ├── InfoPanel.kt
│ ├── RichTextLocals.kt
│ ├── RichTextScope.kt
│ ├── RichTextStyle.kt
│ ├── RichTextThemeConfiguration.kt
│ ├── RichTextThemeProvider.kt
│ ├── SimpleTableLayout.kt
│ ├── Table.kt
│ ├── string/
│ │ ├── InlineContent.kt
│ │ ├── RichTextString.kt
│ │ └── Text.kt
│ └── util/
│ ├── ConditionalTapGestureDetector.kt
│ └── UUID.kt
└── iosMain/
└── kotlin/
└── com/
└── halilibo/
└── richtext/
└── ui/
├── CodeBlock.ios.kt
└── util/
└── UUID.ios.kt
================================================
FILE CONTENTS
================================================
================================================
FILE: .codex/skills/screen2navkey/SKILL.md
================================================
---
name: screen2navkey
description: convert Voyager Screen to navigation 3
---
## 任务背景
目前项目中使用了 Voyager(cafe.adriel.voyager:voyager-navigator) 作为导航框架,现在我希望将 Voyager 替换成 navigation3(androidx.navigation3:navigation3-runtime).
## 任务内容
目前 nav3 我已经集成并且完成了部分代码的重构,现在你需要帮我做一件事情,将一些 Screen 替换成 一个 Composable 函数 + NavKey。
你的目的是把继承自 cafe.adriel.voyager.core.screen.Screen 或者 com.zhangke.fread.common.page.BaseScreen 的类改成 androix.navigaton3 的一个 NavKey + 对应的 Composable 函数。
比如现在有这样的一个 Screen:
```kotlin
class ProfileScreen : BaseScreen() {
@Composable
override fun Content() {
super.Content()
val viewModel = getViewModel<ProfileHomeViewModel>()
Box(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colors.background),
) {
Text(text = "Profile Screen")
}
}
}
```
那么你需要改成如下方式,并且新增一个 NavKey:
```kotlin
object ProfileScreenKey: NavKey
@Composable
fun ProfileScreen(viewModel: ProfileHomeViewModel){
Box(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colors.background),
) {
Text(text = "Profile Screen")
}
}
```
但如果这个页面有参数,那么 key 也应该带一个参数:
```kotlin
data class DetailScreenKey(val itemId: String) : NavKey
@Composable
fun DetailScreen(viewModel: DetailViewModel){
Box(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colors.background),
) {
Text(text = "Detail Screen for item: $itemId")
}
}
```
然后你需要把这个新增的 NavKey 注册到当前模块的 NavEntryProvider 中,比如:
```kotlin
class ProfileNavEntryProvider : NavEntryProvider {
override fun EntryProviderScope<NavKey>.build() {
entry<ProfileScreenKey> {
ProfileScreen(koinViewModel())
}
entry<CreatePlanScreenNavKey> { key ->
// with parameters
CreatePlanScreen(koinViewModel { parametersOf(key.lexicon) })
}
}
override fun PolymorphicModuleBuilder<NavKey>.polymorph() {
subclass(ProfileScreenKey::class)
subclass(CreatePlanScreenNavKey::class)
}
}
```
## 工作流程
你需要 Follow 以下工作流程:
1. 首先找到给定模块中所有符合如下条件的 Screen:
a. 继承自 cafe.adriel.voyager.core.screen.Screen 或者 com.zhangke.fread.common.page.BaseScreen
b. 不包含任何嵌套 **Navigator**
2. 将这些符合条件的 Screen 列出并输出到控制台
3. 逐个重构这些 Screen
4. 对于每个 Screen,首先创建该 Screen 的 NavKey,比如给 ProfileScreen 创建一个 ProfileScreenNavKey.
5. 将 ProfileScreen 改为 @Composable 函数。
6. 对于使用了 navigationResult 的地方请保持不动,不要试图修改相关的代码,即使有编译报错也不用管,保留原样。
7. 将 ProfileScreenNavKey 以及这个 @Composable 函数 注册到该模块的 NavEntryProvider 中。
8. 找到这个 Screen 的相关引用,并将跳转处改为这个 Screen 的 NavKey
9. 结束这个 Screen 重构并进入下一个 Screen。
10. 直到所有重构完所有满足条件的 Screen。
## 绝对禁止
一下内容为绝对禁止修改的规则:
1. 对于已经修改完成的类请不要再改
2. 你只应该修改 Screen 和 navigation3 相关的代码,其他的代码不要改,即使你觉得有问题也不要改
3. 不要做任何超出我要求的事情
4. 遇到不属于上述情况的页面请直接忽略,不要自己想办法解决
5. 不要求改任何嵌套的 Navigator 页面,遇到嵌套的情况直接跳过
6. 不要修改任何已经使用 navigation3 的页面
7. 不要通过代码引用的方式找某个页面的引用并且试图修改其引用点
8. 不要修改任何超出要求的代码
================================================
FILE: .codex/skills/voyager2nav3/SKILL.md
================================================
---
name: voyager2nav3
description: convert Voyager Screen to navigation 3
---
目前项目中使用了 Voyager(cafe.adriel.voyager:voyager-navigator) 作为导航框架,现在我希望将 Voyager 替换成 navigation3(androidx.navigation3:navigation3-runtime).
nav3我已经集成并且完成了部分代码,现在你需要帮我做一件事情,将所有的 Screen 替换成 一个 Composable 函数。
抽象类不要改, 只需要把继承自 cafe.adriel.voyager.core.screen.Screen 或者 com.zhangke.fread.common.page.BaseScreen 的类改成 Composable 函数即可。
比如现在有这样的一个 Screen:
```kotlin
class ProfileScreen : BaseScreen() {
@Composable
override fun Content() {
super.Content()
val viewModel = getViewModel<ProfileHomeViewModel>()
Box(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colors.background),
) {
Text(text = "Profile Screen")
}
}
}
```
那么你需要改成如下方式,并且新增一个 NavKey:
```kotlin
object ProfileScreenKey: NavKey
@Composable
fun ProfileScreen(viewModel: ProfileHomeViewModel){
Box(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colors.background),
) {
Text(text = "Profile Screen")
}
}
```
但如果这个页面有参数,那么 key 也应该带一个参数:
```kotlin
data class DetailScreenKey(val itemId: String) : NavKey
@Composable
fun DetailScreen(viewModel: DetailViewModel){
Box(
modifier = Modifier
.fillMaxSize()
.background(MaterialTheme.colors.background),
) {
Text(text = "Detail Screen for item: $itemId")
}
}
```
然后你需要把这个新增的 NavKey 注册到当前模块的 NavEntryProvider 中,比如:
```kotlin
class ProfileNavEntryProvider : NavEntryProvider {
override fun EntryProviderScope<NavKey>.build() {
entry<ProfileScreenKey> {
ProfileScreen(koinViewModel())
}
entry<CreatePlanScreenNavKey> { key ->
// with parameters
CreatePlanScreen(koinViewModel { parametersOf(key.lexicon) })
}
}
override fun PolymorphicModuleBuilder<NavKey>.polymorph() {
subclass(ProfileScreenKey::class)
subclass(CreatePlanScreenNavKey::class)
}
}
```
然后跳转该页面的地方也需要同步修改,首先替换 LocalNavigator.currentOrThrow 为 LocalNavBackStack.currentOrThrow,然后通过 NavKey 跳转页面。
你需要按照模块来完成工作。
对于已经修改完成的类请不要再改。
你只应该修改 Screen 和 navigation3 相关的代码,其他的代码不要改,即使你觉得有问题也不要改。
不要修改任何 Tab 以及其直接引用的页面。
遇到不属于上述情况的页面请直接忽略,不要自己想办法解决。
不要求改任何嵌套的 Navigator 页面,遇到嵌套的情况直接跳过。
不要做任何超出我要求的事情。
================================================
FILE: .editorconfig
================================================
[*.kt]
max_line_length = 100
[*.java]
max_line_length = 100
================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username e.g., user1
open_collective: # Replace with a single Open Collective username e.g., user1
ko_fi: zhangke
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
polar: # Replace with a single Polar username e.g., user1
buy_me_a_coffee: # Replace with a single Buy Me a Coffee username e.g., user1
thanks_dev: # Replace with a single thanks.dev username e.g., u/gh/user1
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username e.g., user1
issuehunt: # Replace with a single IssueHunt username e.g., user1
otechie: # Replace with a single Otechie username e.g., user1
custom: ['https://afdian.com/a/_0cdc1']
================================================
FILE: .github/ci-gradle.properties
================================================
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=2g -Dfile.encoding=UTF-8
org.gradle.daemon=false
org.gradle.parallel=true
org.gradle.workers.max=2
# kotlin
kotlin.compiler.execution.strategy=in-process
kotlin.native.ignoreDisabledTargets=true
# other
warningsAsErrors=false
================================================
FILE: .github/workflows/build_apk.yml
================================================
on:
push:
tags:
- '**'
concurrency:
group: ${{ github.event.pull_request.number }}-build-ci
cancel-in-progress: true
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v3
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Decode keystore
run: printf "%s" "${{ secrets.FREADKEYSTORE }}" | base64 --decode > fread-keystore.jks
- name: Create keystore.properties
run: |
cat > keystore.properties <<EOF
storePassword=${{ secrets.STOREPASSWORD }}
keyPassword=${{ secrets.KEYPASSWORD }}
keyAlias=${{ secrets.KEYALIAS }}
storeFile=../fread-keystore.jks
EOF
- name: Build with Gradle
run: bash ./gradlew assembleRelease
- name: Upload APK
uses: actions/upload-artifact@v4
with:
name: app
path: app/build/outputs/apk/release/*.apk
- name: Build Debug APK
run: bash ./gradlew assembleDebug
- name: Upload Debug APK
uses: actions/upload-artifact@v4
with:
name: app-debug
path: app/build/outputs/apk/debug/*.apk
- name: Create draft GitHub Release
uses: softprops/action-gh-release@v2
with:
draft: true
tag_name: ${{ github.ref_name }}
name: Fread ${{ github.ref_name }}
files: |
app/build/outputs/apk/release/*.apk
app/build/outputs/apk/debug/*.apk
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
================================================
FILE: .github/workflows/check.yml
================================================
name: Check CI
on:
pull_request:
paths-ignore:
- 'documents/**'
- '**.md'
concurrency:
group: ${{ github.event.pull_request.number }}-check-ci
cancel-in-progress: true
jobs:
assemble:
runs-on: ubuntu-latest
steps:
- name: Checkout repository and submodules
uses: actions/checkout@v4
with:
submodules: recursive
- name: Validate Gradle Wrapper
uses: gradle/wrapper-validation-action@v3
- name: Copy CI gradle.properties
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 17
- name: Decode keystore
run: printf "%s" "${{ secrets.FREADKEYSTORE }}" | base64 --decode > fread-keystore.jks
- name: Create keystore.properties
run: |
cat > keystore.properties <<EOF
storePassword=${{ secrets.STOREPASSWORD }}
keyPassword=${{ secrets.KEYPASSWORD }}
keyAlias=${{ secrets.KEYALIAS }}
storeFile=../fread-keystore.jks
EOF
- name: Assemble
run: ./gradlew assembleRelease --stacktrace
================================================
FILE: .gitignore
================================================
*.iml
.gradle
.idea/
/local.properties
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
# Built application files
*.apk
*.aar
*.ap_
*.aab
.kotlin
# Files for the ART/Dalvik VM
*.dex
# Java class files
*.class
# Generated files
bin/
gen/
out/
# Uncomment the following line in case you need and you don't have the release build type files in your app
# release/
# Gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Proguard folder generated by Eclipse
proguard/
# Log Files
*.log
# Android Studio Navigation editor temp files
.navigation/
# Android Studio captures folder
captures/
# IntelliJ
*.iml
# Keystore files
# Uncomment the following lines if you do not want to check your keystore files in.
#*.jks
#*.keystore
# External native build folder generated in Android Studio 2.2 and later
.externalNativeBuild
.cxx/
# Google Services (e.g. APIs or Firebase)
# google-services.json
# Freeline
freeline.py
freeline/
freeline_project_description.json
# fastlane
fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots
fastlane/test_output
fastlane/readme.md
# Version control
vcs.xml
# lint
lint/intermediates/
lint/generated/
lint/outputs/
lint/tmp/
# lint/reports/
/plugins/Fread-Firebase/
/fread-keystore.jks
/keystore.properties
================================================
FILE: Agents.md
================================================
## Compact Instructions
When compressing, preserve in priority order:
1. Architecture decisions (NEVER summarize)
2. Modified files and their key changes
3. Current verification status (pass/fail)
4. Open TODOs and rollback notes
5. Tool outputs (can delete, keep pass/fail only)
================================================
FILE: LICENSE
================================================
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [2026] [Zhangke]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
================================================
FILE: README.md
================================================
<div align="center">
<img src="/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp">
<h1>Fread</h1>
</div>
Fread is a decentralized microblogging client that seamlessly integrates Mastodon, Bluesky, and RSS — all in one place.
<p align="center">
<a href="https://play.google.com/store/apps/details?id=com.zhangke.fread">
<img src="google-play-download.png" height="60" style="vertical-align: middle;"/>
</a>
<a href="https://f-droid.org/packages/com.zhangke.fread/">
<img src="https://fdroid.gitlab.io/artwork/badge/get-it-on.png" height="60" style="vertical-align: middle;"/>
</a>
<a href="https://github.com/0xZhangKe/Fread/releases/latest">
<img src="ic_download_apk.png" height="60" style="vertical-align: middle;"/>
</a>
</p>
- `fread-xxx-google-play-signed.apk`: Signed by Google Play and includes push notifications. If you are used to updating through Google Play, you can choose this version.
- `fread-xxx-fdroid.apk`: The version available on F-Droid does not include push notifications, and its signature is inconsistent with Google Play. If you are used to using F-Droid, please use this version.
- `fread-xxx-debug.apk`: Test version, contains some logs, the functionality is the same as the Google Play version, but the signature is the same as F-Droid.
Because Fread accidentally used Google Play managed signatures, there are currently two different signed versions of Fread distributed. **These two versions cannot be upgraded to each other**. Please choose with caution.
## Screenshots

## Build
The signing key is required, or you can simply delete the signing configuration in app/build.gradle to complete the compilation.
### Build disable firebase
Manually disable Firebase join compilation
```
./gradlew assembleRelease -PdisableFirebase=true
```
## Blogs
- [Why Open Source](https://medium.com/@kezhang404/after-two-years-of-development-the-fread-project-is-now-open-source-8adcf690bfac)
- [Support Bluesky](https://medium.com/@kezhang404/fread-now-supports-bluesky-a-unified-gateway-to-the-decentralized-web-17f518ba877c)
- [Fread Introduce](https://medium.com/@kezhang404/fread-the-next-generation-mastodon-client-30bc50e279fd)
- [The Philosophy of Modular Division in a Large Android Project
](https://medium.com/@kezhang404/the-philosophy-of-modular-division-in-a-large-android-project-e588a5dcdb78)
- [Fread Features and Midterm Review ](https://medium.com/p/fread-features-and-midterm-review-c961e1a8930f)
[**Deepwiki**](https://deepwiki.com/0xZhangKe/Fread)
## Star History
[](https://www.star-history.com/#0xZhangKe/Fread&Date)
## Discussion Group
- [Telegram](https://t.me/+-SlbKcNbJSphNWI1)
## Official Account
- [Mastodon](https://mastodon.social/@fread)
## Donate
[Ko-Fi](https://ko-fi.com/zhangke) or [Afdian](https://afdian.com/a/_0cdc1)
### Sponsors
Thanks to the following users for their support:
<p align="center">
<a>
<img src="https://pic1.afdiancdn.com/user/user_upload_osl/8b2c4a6a82705a10fee99c38cf59a202_w132_h132_s3.jpeg" width="64px" style="border-radius:50%;" alt="user1"/>
</a>
<a href="https://github.com/user3">
<img src="https://ko-fi.com/img/anon2.png?v=1" width="64px" style="border-radius:50%;" alt="user3"/>
</a>
</p>
================================================
FILE: app/.gitignore
================================================
/build
/debug
/release
/google-services.json
================================================
FILE: app/build.gradle.kts
================================================
import java.io.FileInputStream
import java.util.Properties
plugins {
id("fread.android.application")
id("fread.compose.multiplatform")
id("com.google.devtools.ksp")
}
val keystorePropertiesFile: File = rootProject.file("keystore.properties")
val keystoreProperties = Properties()
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
android {
namespace = "com.zhangke.fread"
buildFeatures {
buildConfig = true
}
dependenciesInfo {
includeInApk = false
includeInBundle = false
}
signingConfigs {
getByName("debug") {
storeFile = file(keystoreProperties.getProperty("storeFile"))
keyPassword = keystoreProperties.getProperty("keyPassword")
storePassword = keystoreProperties.getProperty("storePassword")
keyAlias = keystoreProperties.getProperty("keyAlias")
}
create("release") {
storeFile = file(keystoreProperties.getProperty("storeFile"))
keyPassword = keystoreProperties.getProperty("keyPassword")
storePassword = keystoreProperties.getProperty("storePassword")
keyAlias = keystoreProperties.getProperty("keyAlias")
}
}
defaultConfig {
applicationId = "com.zhangke.fread"
versionCode = 108010
versionName = "1.8.1"
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
isMinifyEnabled = true
proguardFiles("proguard-rules.pro")
}
debug {
isMinifyEnabled = false
proguardFiles("proguard-rules.pro")
}
getByName("release") {
signingConfig = signingConfigs.getByName("release")
}
getByName("debug") {
signingConfig = signingConfigs.getByName("debug")
}
}
bundle {
language {
enableSplit = false
}
}
}
dependencies {
implementation(project(path = ":framework"))
implementation(project(path = ":bizframework:status-provider"))
implementation(project(path = ":commonbiz:common"))
implementation(project(path = ":commonbiz:analytics"))
implementation(project(path = ":commonbiz:status-ui"))
implementation(project(path = ":commonbiz:sharedscreen"))
implementation(project(path = ":feature:feeds"))
implementation(project(path = ":feature:explore"))
implementation(project(path = ":feature:profile"))
implementation(project(path = ":feature:notifications"))
implementation(project(path = ":plugins:activitypub-app"))
implementation(project(path = ":plugins:rss"))
implementation(project(path = ":plugins:bluesky"))
if (gradle.extra["enableFirebaseModule"] == true) {
implementation(project(path = ":plugins:fread-firebase"))
}
implementation(project(path = ":app-hosting"))
implementation(compose.material3)
implementation(compose.components.resources)
implementation(libs.bundles.androidx.activity)
implementation(libs.imageLoader)
implementation(libs.krouter.runtime)
implementation(libs.bundles.androidx.media3)
implementation(libs.androidx.appcompat)
implementation(libs.bundles.androidx.nav3)
// ksp(libs.krouter.reducing.compiler)
implementation(libs.koin.core)
implementation(libs.koin.android)
}
listOf("assembleRelease", "assembleDebug").forEach { taskName ->
tasks.whenTaskAdded {
if (name == taskName) {
doLast {
val buildType = if (taskName.contains("Release")) "release" else "debug"
val apkDir = layout.buildDirectory.dir("outputs/apk/$buildType").get().asFile
val apkFile = apkDir.listFiles()?.firstOrNull { it.name.endsWith(".apk") }
if (apkFile != null) {
val versionCode = android.defaultConfig.versionCode
val enableFirebaseModule = gradle.extra["enableFirebaseModule"] == true
val renamedApkName = if (enableFirebaseModule) {
"fread-$versionCode-$buildType.apk"
} else {
"fread-$versionCode-fdroid.apk"
}
val newFile = File(apkDir, renamedApkName)
apkFile.renameTo(newFile)
println(">>> APK renamed to ${newFile.absolutePath}")
}
}
}
}
}
================================================
FILE: app/proguard-rules.pro
================================================
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
-dontobfuscate
-keepattributes *
-dontwarn androidx.test.platform.app.InstrumentationRegistry
-keepnames class * implements java.io.Serializable
-keepclassmembers class * implements java.io.Serializable {
static final long serialVersionUID;
private static final java.io.ObjectStreamField[] serialPersistentFields;
!static !transient <fields>;
private void writeObject(java.io.ObjectOutputStream);
private void readObject(java.io.ObjectInputStream);
java.lang.Object writeReplace();
java.lang.Object readResolve();
}
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keep enum androidx.compose.material3.SheetValue { *; }
-keepclassmembers class **.R$* {
public static <fields>;
}
-keep class * extends androidx.room.RoomDatabase
-dontwarn androidx.room.paging.**
-dontwarn androidx.lifecycle.LiveData
-keep @androidx.room.Entity class * {
*;
}
# Ktor
-dontwarn org.slf4j.impl.StaticLoggerBinder
-dontwarn io.ktor.client.network.sockets.TimeoutExceptionsCommonKt
-dontwarn io.ktor.client.plugins.HttpTimeout$HttpTimeoutCapabilityConfiguration
-dontwarn io.ktor.client.plugins.HttpTimeout$Plugin
-dontwarn io.ktor.client.plugins.HttpTimeout
-dontwarn io.ktor.util.InternalAPI
-dontwarn io.ktor.utils.io.ByteReadChannelJVMKt
-dontwarn io.ktor.utils.io.CoroutinesKt
-dontwarn io.ktor.utils.io.ReadSessionKt
-dontwarn io.ktor.utils.io.core.Buffer$Companion
-dontwarn io.ktor.utils.io.core.Buffer
-dontwarn io.ktor.utils.io.core.ByteBuffersKt
-dontwarn io.ktor.utils.io.core.BytePacketBuilder
-dontwarn io.ktor.utils.io.core.ByteReadPacket$Companion
-dontwarn io.ktor.utils.io.core.ByteReadPacket
-dontwarn io.ktor.utils.io.core.CloseableJVMKt
-dontwarn io.ktor.utils.io.core.Input
-dontwarn io.ktor.utils.io.core.InputArraysKt
-dontwarn io.ktor.utils.io.core.InputPrimitivesKt
-dontwarn io.ktor.utils.io.core.Output
-dontwarn io.ktor.utils.io.core.OutputPrimitivesKt
-dontwarn io.ktor.utils.io.core.PreviewKt
-dontwarn io.ktor.client.network.sockets.SocketTimeoutException
-dontwarn androidx.window.extensions.area.ExtensionWindowAreaPresentation
-dontwarn androidx.window.extensions.core.util.function.Consumer
-dontwarn androidx.window.extensions.core.util.function.Function
-dontwarn androidx.window.extensions.core.util.function.Predicate
# Parcelable
-keep class * implements android.os.Parcelable {
public static final android.os.Parcelable$Creator *;
}
-keep class com.zhangke.activitypub.entities.** { *; }
-keepnames class <1>$$serializer { # -keepnames suffices; class is kept when serializer() is kept.
static <1>$$serializer INSTANCE;
}
================================================
FILE: app/src/main/AndroidManifest.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<application
android:name=".FreadAndroidApplication"
android:allowBackup="true"
android:exported="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Fread"
tools:replace="android:allowBackup">
<activity
android:name=".screen.FreadActivity"
android:exported="true"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="mastodon.social"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="mastodon.social"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="mastodon.online"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="mastodon.online"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="androiddev.social"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="androiddev.social"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="m.cmx.im"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="m.cmx.im"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="alive.bar"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="alive.bar"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="wxw.moe"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="wxw.moe"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="o3o.ca"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="o3o.ca"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="pawoo.net"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="pawoo.net"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="mstdn.jp"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="mstdn.jp"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="infosec.exchange"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="infosec.exchange"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="mstdn.social"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="mstdn.social"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="planet.moe"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="planet.moe"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="mas.to"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="mas.to"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="fosstodon.org"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="fosstodon.org"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="hachyderm.io"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="hachyderm.io"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="piaille.fr"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="piaille.fr"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="mastodon.world"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="mastodon.world"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="social.vivaldi.net"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="social.vivaldi.net"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="aethy.com"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="aethy.com"
android:pathPrefix="/@" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="bsky.app"
android:path="/" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:scheme="https"
android:host="bsky.app"
android:pathPrefix="/profile" />
</intent-filter>
<intent-filter>
<action android:name="dev.zwander.mastodonredirect.intent.action.OPEN_FEDI_LINK" />
<category android:name="android.intent.category.DEFAULT" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
</intent-filter>
</activity>
</application>
</manifest>
================================================
FILE: app/src/main/java/com/zhangke/fread/FreadAndroidApplication.kt
================================================
package com.zhangke.fread
/**
* Created by ZhangKe on 2022/11/27.
*/
class FreadAndroidApplication : HostingApplication()
================================================
FILE: app/src/main/java/com/zhangke/fread/screen/FreadActivity.kt
================================================
package com.zhangke.fread.screen
import android.Manifest
import android.content.Intent
import android.content.pm.PackageManager
import android.os.Build
import android.os.Bundle
import android.util.Log
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.activity.result.contract.ActivityResultContracts
import androidx.compose.material3.ColorScheme
import androidx.compose.material3.dynamicDarkColorScheme
import androidx.compose.material3.dynamicLightColorScheme
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.core.content.ContextCompat
import androidx.lifecycle.lifecycleScope
import com.zhangke.framework.activity.TopActivityManager
import com.zhangke.framework.architect.theme.FreadTheme
import com.zhangke.fread.common.config.FreadConfigManager
import com.zhangke.fread.common.daynight.DayNightHelper
import com.zhangke.fread.common.deeplink.ExternalInputHandler
import com.zhangke.fread.common.theme.ThemeType
import com.zhangke.fread.common.utils.ActivityResultCallback
import com.zhangke.fread.common.utils.CallbackableActivity
import com.zhangke.fread.status.StatusProvider
import kotlinx.coroutines.launch
import org.koin.android.ext.android.inject
class FreadActivity : ComponentActivity(), CallbackableActivity {
private val requestPermissionLauncher = registerForActivityResult(
ActivityResultContracts.RequestPermission(),
) {
if (it) {
subscribeNotification()
}
}
private val callbacks = mutableMapOf<Int, ActivityResultCallback>()
private val dayNightHelper by inject<DayNightHelper>()
private val freadConfigManager by inject<FreadConfigManager>()
private val statusProvider by inject<StatusProvider>()
override fun onNewIntent(intent: Intent) {
super.onNewIntent(intent)
handleIntent(intent)
}
override fun onCreate(savedInstanceState: Bundle?) {
dayNightHelper.setDefaultMode()
enableEdgeToEdge()
super.onCreate(savedInstanceState)
initNotification()
intent?.let(::handleIntent)
setContent {
val themeType by freadConfigManager.themeTypeFlow.collectAsState()
val dayNightMode by dayNightHelper.dayNightModeFlow.collectAsState()
val amoledMode by dayNightHelper.amoledModeFlow.collectAsState()
val darkTheme = dayNightMode.isNight
FreadTheme(
darkTheme = darkTheme,
amoledMode = amoledMode,
dynamicColors = getDynamicColorScheme(darkTheme, themeType),
) {
FreadApp()
}
}
}
private fun getDynamicColorScheme(
dark: Boolean,
themeType: ThemeType,
): ColorScheme? {
if (themeType != ThemeType.SYSTEM_DYNAMIC) return null
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.S) {
if (dark) {
dynamicDarkColorScheme(this)
} else {
dynamicLightColorScheme(this)
}
} else {
null
}
}
private fun initNotification() {
if (checkNotificationPermission()) {
subscribeNotification()
}
}
private fun subscribeNotification() {
lifecycleScope.launch {
statusProvider.accountManager.subscribeNotification()
}
}
private fun checkNotificationPermission(): Boolean {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.TIRAMISU) return true
val selfPermissionState =
ContextCompat.checkSelfPermission(this, Manifest.permission.POST_NOTIFICATIONS)
if (selfPermissionState == PackageManager.PERMISSION_GRANTED) return true
// if (shouldShowRequestPermissionRationale(Manifest.permission.POST_NOTIFICATIONS)) return false
requestPermissionLauncher.launch(Manifest.permission.POST_NOTIFICATIONS)
return false
}
private fun handleIntent(intent: Intent) {
Log.d("Z_TEST", "intent: ${intent.dataString}")
lifecycleScope.launch {
if (intent.action == Intent.ACTION_SEND) {
if (intent.type?.startsWith("text/") == true) {
intent.getStringExtra(Intent.EXTRA_TEXT)
?.takeIf { it.isNotEmpty() }
?.let { ExternalInputHandler.handle(it) }
}
} else {
intent.data?.toString()
?.takeIf { it.isNotEmpty() }
?.let { ExternalInputHandler.handle(it) }
}
setIntent(Intent())
}
}
override fun registerCallback(requestCode: Int, callback: ActivityResultCallback) {
callbacks[requestCode] = callback
}
override fun onActivityResult(requestCode: Int, resultCode: Int, data: Intent?) {
super.onActivityResult(requestCode, resultCode, data)
TopActivityManager.updateTopActivity(this)
callbacks[requestCode]?.invoke(resultCode, data)
}
}
================================================
FILE: app/src/main/res/drawable/ic_launcher_foreground.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="108dp"
android:height="108dp"
android:viewportWidth="482"
android:viewportHeight="326">
<group android:scaleX="0.56"
android:scaleY="0.37875518"
android:translateX="106.04"
android:translateY="101.2629">
<path
android:pathData="M143.38,29.17C132.31,25.02 119.93,22.99 106.32,23.46C40.93,25.74 8.19,83.78 10.64,153.88C13.09,223.98 49.94,279.58 115.18,277.31C142.02,276.37 177.74,256.04 193.42,239.27"
android:fillColor="#03E77A"
android:fillType="evenOdd"/>
<path
android:pathData="M143.38,29.17C132.31,25.02 119.93,22.99 106.32,23.46C40.93,25.74 8.19,83.78 10.64,153.88C13.09,223.98 49.88,277.31 115.18,277.31C142.12,277.31 162.05,268.85 177.73,252.08"
android:fillColor="#31ACFA"
android:fillType="evenOdd"/>
<path
android:pathData="M4.64,154.09C3.39,118.14 11.12,84.75 28.08,59.86C45.17,34.78 71.44,18.67 106.11,17.46C120.46,16.96 133.63,19.11 145.49,23.56C148.59,24.72 150.16,28.18 149,31.28C147.84,34.38 144.38,35.96 141.28,34.79C130.99,30.93 119.41,29.01 106.53,29.46C75.81,30.53 53.01,44.58 38,66.62C22.85,88.85 15.44,119.52 16.63,153.67C17.83,187.8 27.37,217.3 44.03,238.13C60.56,258.8 84.36,271.31 115.18,271.31C140.65,271.31 158.93,263.4 173.35,247.98C175.61,245.56 179.41,245.43 181.83,247.7C184.25,249.96 184.38,253.76 182.11,256.18C165.17,274.3 143.58,283.31 115.18,283.31C80.71,283.31 53.46,269.14 34.65,245.63C15.98,222.27 5.9,190.06 4.64,154.09Z"
android:fillColor="#0978D8"/>
<path
android:pathData="M140.48,31.33C161.56,18.79 192.82,6.4 222.27,6.4C243.26,6.4 273.52,9.95 292.97,25.51C294.89,27.05 301.64,21.95 306.56,20.85C332.32,15.03 376.04,31.33 379.52,112.7C381.04,148.09 375.04,175.07 368.98,189.68C365.66,197.71 352.54,215.98 338.11,214.09C323.68,212.21 320.26,189.09 321.13,195.68C322.58,206.78 325.74,216.97 332.32,224.21C347.57,240.99 367.64,242.45 381.11,230.96C386.57,226.92 390.12,220.51 391.76,211.74C387.46,191.78 390.31,179.28 400.32,174.22C405.5,171.61 416.37,173.46 422.39,179.58C427.7,184.96 424.15,194.96 431.46,200.41C439.93,206.73 460.6,196.96 468.3,203.72C490.18,222.94 469.19,232.72 461.15,235.44C452.82,238.27 444.69,241.28 439.09,248.7C433.49,256.11 425.21,269.23 413.25,279.95C386.65,303.8 377.89,313.16 328.98,315.08C280.07,317 217.09,297.38 179.97,263.61C162.54,247.77 157.37,247.35 157.37,247.35C157.37,247.35 140.34,31.47 140.48,31.33Z"
android:fillColor="#31ACFA"
android:fillType="evenOdd"/>
<path
android:pathData="M297.31,26.03C300.43,23.97 304.01,21.46 306.56,20.87C332.32,14.92 376.04,31.6 379.52,114.94C381.04,151.19 375.04,178.81 368.98,193.78C365.66,202 357.62,218.78 335.11,218.78"
android:fillColor="#31ACFA"
android:fillType="evenOdd"/>
<path
android:pathData="M305.21,15.02C319.95,11.62 339.41,14.77 355.52,30.07C371.61,45.34 383.73,72.07 385.52,114.69C387.06,151.65 380.97,180.14 374.55,196.03C372.8,200.34 369.6,207.51 363.48,213.61C357.2,219.88 348.07,224.78 335.11,224.78C331.8,224.78 329.11,222.1 329.11,218.78C329.11,215.47 331.8,212.78 335.11,212.78C344.67,212.78 350.81,209.3 355.01,205.12C359.37,200.77 361.84,195.44 363.42,191.54C369.11,177.48 375.01,150.73 373.53,115.19C371.83,74.48 360.35,51.19 347.26,38.77C334.21,26.38 318.92,24.17 307.91,26.72C307.62,26.79 306.77,27.13 305.23,28.05C303.78,28.92 302.29,29.93 300.61,31.04C297.85,32.87 294.13,32.1 292.3,29.34C290.48,26.57 291.24,22.85 294,21.02C295.45,20.07 297.32,18.8 299.07,17.75C300.73,16.75 302.95,15.55 305.21,15.02Z"
android:fillColor="#0978D8"/>
<path
android:pathData="M316.8,151.57C316.8,128.11 319.23,95.45 306.3,55.74C300.35,37.44 287.15,26.58 271.54,20.19C255.78,13.74 237.87,12 223.57,12C209.61,12 194.23,14.75 180.31,18.94C166.34,23.15 154.31,28.67 146.91,33.92C144.21,35.84 140.46,35.2 138.54,32.5C136.63,29.8 137.26,26.05 139.96,24.13C148.79,17.86 162.16,11.87 176.85,7.45C191.61,3.01 208.18,0 223.57,0C238.62,0 258.29,1.8 276.09,9.08C294.04,16.43 310.39,29.52 317.71,52.03C331.36,93.95 328.8,128.83 328.8,151.57C328.8,163.6 328.04,176.96 329.1,189.87C330.16,202.8 332.98,213.6 339.07,220.55C345.93,228.37 352.45,232.12 358.08,233.04C363.48,233.92 368.97,232.35 374.4,227.55L374.71,227.29C378.58,224.32 381.79,221.04 384.82,214.45C385.75,212.43 385.7,210.42 384.96,207.81C384.57,206.44 384.05,205.08 383.42,203.49C382.85,202.02 382.13,200.2 381.65,198.39C379.2,189.11 381.49,181.05 386.6,175.39C391.52,169.93 398.73,167.07 405.7,167.06C415.01,167.06 425.92,172.64 431.16,184.38C432.28,186.9 433.07,188.96 433.67,190.54C434.32,192.24 434.66,193.09 434.99,193.71C435.24,194.17 435.36,194.27 435.47,194.35C435.67,194.51 436.18,194.84 437.51,195.32C439.27,195.96 441.16,195.94 444.46,195.42C447.51,194.94 452.03,193.96 457.12,193.96C463.51,193.96 470.51,197.31 475.33,202.69C480.36,208.31 483.31,216.47 480.86,226C478.23,236.23 470.5,240.6 463.76,242.97C460.5,244.12 457,244.95 454.38,245.66C451.48,246.45 449.6,247.09 448.38,247.82C447.17,248.54 445.29,250.52 443.41,252.99C442.55,254.11 441.83,255.15 441.32,255.91C441.07,256.29 440.89,256.57 440.78,256.75C440.78,256.75 440.77,256.76 440.77,256.77C440.64,257.01 440.49,257.25 440.32,257.48C431.9,269.1 420.42,282.77 402.76,296.65C375,320.49 340.96,327.35 302.43,324.65C243.76,320.55 204.05,297.09 167.22,262.36C164.81,260.09 164.7,256.29 166.97,253.88C169.24,251.47 173.04,251.36 175.45,253.63C210.83,286.99 248.04,308.82 303.26,312.68C339.92,315.25 370.46,308.63 395.05,287.45L395.26,287.28C411.75,274.34 422.47,261.63 430.41,250.7C430.47,250.61 430.52,250.52 430.58,250.43C430.77,250.13 431.02,249.72 431.33,249.26C431.95,248.32 432.83,247.06 433.88,245.7C435.78,243.21 438.85,239.54 442.2,237.53C445.02,235.84 448.4,234.85 451.24,234.08C454.36,233.23 457.08,232.6 459.78,231.65C464.95,229.83 468.07,227.54 469.24,223.01C470.59,217.77 469.04,213.66 466.39,210.7C463.53,207.5 459.66,205.96 457.12,205.96C453.26,205.96 450.22,206.66 446.32,207.28C442.65,207.85 438.19,208.33 433.42,206.6C431.49,205.9 429.67,205.05 428.08,203.81C426.4,202.5 425.28,200.99 424.42,199.39C423.65,197.95 423.03,196.3 422.46,194.83C421.86,193.25 421.18,191.46 420.2,189.26C417,182.09 410.53,179.06 405.7,179.06C401.84,179.07 397.97,180.69 395.51,183.43C393.22,185.96 391.8,189.81 393.26,195.33C393.52,196.34 393.96,197.49 394.6,199.12C395.19,200.63 395.93,202.52 396.51,204.53C397.68,208.66 398.29,213.88 395.73,219.46C391.81,227.98 387.3,232.73 382.19,236.68C374.55,243.36 365.6,246.42 356.14,244.88C346.85,243.36 338.02,237.54 330.05,228.46C321.31,218.49 318.25,204.38 317.14,190.85C316.03,177.3 316.8,162.65 316.8,151.57ZM441,256.28C441.01,256.23 441.03,256.19 441.05,256.14C441.03,256.19 441.02,256.23 441,256.28ZM441.13,255.93C441.14,255.89 441.16,255.83 441.18,255.76C441.17,255.82 441.15,255.87 441.13,255.93ZM441.35,255.12C441.36,255.06 441.37,255 441.38,254.93C441.37,255 441.36,255.06 441.35,255.12ZM441.4,254.79C441.42,254.69 441.43,254.59 441.44,254.48C441.44,254.48 441.44,254.48 441.44,254.48C441.43,254.58 441.42,254.69 441.4,254.79ZM441.46,254.21C441.46,254.16 441.46,254.1 441.46,254.05C441.46,254.1 441.46,254.15 441.46,254.21ZM441.46,253.94C441.46,253.86 441.46,253.78 441.46,253.69C441.46,253.77 441.46,253.86 441.46,253.94ZM441.44,253.49C441.44,253.41 441.43,253.33 441.42,253.25C441.43,253.33 441.44,253.41 441.44,253.49ZM441.41,253.18C441.4,253.08 441.38,252.98 441.36,252.87C441.38,252.98 441.4,253.08 441.41,253.18ZM441.34,252.76C441.32,252.66 441.3,252.56 441.27,252.45C441.3,252.56 441.32,252.66 441.34,252.76ZM441.24,252.34C441.21,252.25 441.19,252.16 441.16,252.07C441.19,252.16 441.21,252.25 441.24,252.34ZM441.1,251.92C441.07,251.84 441.04,251.75 441.01,251.67C441.04,251.75 441.07,251.84 441.1,251.92ZM440.96,251.56C440.95,251.53 440.93,251.49 440.92,251.46C440.91,251.45 440.91,251.44 440.9,251.43C440.92,251.47 440.94,251.52 440.96,251.56ZM438.74,248.94C438.74,248.93 438.73,248.93 438.72,248.92C438.71,248.92 438.7,248.91 438.7,248.91C438.71,248.92 438.73,248.93 438.74,248.94Z"
android:fillColor="#0978D8"/>
<path
android:pathData="M232.54,79.64C240.23,81.7 247.79,78.39 249.44,72.24C251.08,66.1 246.19,59.45 238.5,57.39C230.82,55.33 223.25,58.64 221.61,64.79C219.96,70.93 224.86,77.58 232.54,79.64Z"
android:fillColor="#0978D8"/>
<path
android:pathData="M311.94,76.63C305.99,78.33 300,75.63 298.55,70.58C297.1,65.54 301.45,60.07 307.39,58.36C307.51,58.26 308.57,62.3 309.77,66.45C311.2,71.36 312.4,76.5 311.94,76.63Z"
android:fillColor="#0978D8"
android:fillType="evenOdd"/>
<path
android:pathData="M205.69,203.5C210.95,221.45 227.57,230.45 240.61,232.9C257.05,235.99 251.64,250.36 231.35,253.74C213.63,256.7 194.41,249.66 180.64,234.91C178.65,232.78 185.63,230.61 192.24,221.88C198.86,213.15 205.34,202.29 205.69,203.5Z"
android:fillColor="#ffffff"
android:fillType="evenOdd"/>
<path
android:pathData="M152.21,234C173.19,234 190.21,214.75 190.21,191C190.21,167.25 173.19,148 152.21,148C131.22,148 114.21,167.25 114.21,191C114.21,214.75 131.22,234 152.21,234Z"
android:fillColor="#31ACFA"/>
<path
android:pathData="M198.27,195.84C197.93,192.54 200.32,189.59 203.61,189.24C206.91,188.9 209.86,191.29 210.21,194.58C212.86,219.85 194.53,242.49 169.27,245.14C165.97,245.49 163.02,243.1 162.67,239.8C162.33,236.51 164.72,233.55 168.01,233.21C186.69,231.24 200.24,214.51 198.27,195.84Z"
android:fillColor="#0978D8"/>
<path
android:pathData="M360,236.94C363.26,237.51 365.44,240.62 364.86,243.88L364.86,243.88L361.39,263.57C360.81,266.83 357.7,269.01 354.44,268.44C351.18,267.86 349,264.75 349.57,261.49L349.57,261.49L353.05,241.8C353.62,238.54 356.73,236.36 360,236.94Z"
android:fillColor="#0978D8"
android:fillType="evenOdd"/>
<path
android:pathData="M331.65,208.34C332.73,211.46 331.07,214.88 327.94,215.95L327.94,215.95L305.98,223.51C302.85,224.59 299.43,222.92 298.35,219.79C297.27,216.66 298.94,213.25 302.07,212.17L302.07,212.17L324.03,204.62C327.16,203.54 330.57,205.21 331.65,208.34Z"
android:fillColor="#0978D8"
android:fillType="evenOdd"/>
<path
android:pathData="M227.88,168.38C244.66,166.92 256.86,149.67 255.13,129.86C253.39,110.06 238.38,95.19 221.6,96.66C204.82,98.13 192.63,115.37 194.36,135.18C196.09,154.99 211.1,169.85 227.88,168.38Z"
android:fillColor="#ffffff"/>
<group>
<clip-path
android:pathData="M227.88,168.38C244.66,166.92 256.86,149.67 255.13,129.86C253.39,110.06 238.38,95.19 221.6,96.66C204.82,98.13 192.63,115.37 194.36,135.18C196.09,154.99 211.1,169.85 227.88,168.38Z"/>
<path
android:pathData="M241.74,166.17C258.52,164.7 270.76,147.9 269.07,128.64C267.39,109.39 252.42,94.97 235.64,96.43C218.86,97.9 206.62,114.7 208.3,133.96C209.99,153.22 224.96,167.64 241.74,166.17Z"
android:fillColor="#2A2779"/>
</group>
<path
android:pathData="M222.04,88C238.27,88 248.35,101.47 252.65,114.29C254.45,119.67 255.68,129.78 255.07,136.97C254.79,140.27 251.88,142.72 248.58,142.43C245.28,142.15 242.83,139.25 243.11,135.94C243.6,130.26 242.51,121.81 241.27,118.1C237.6,107.16 230.53,100 222.04,100C215.15,100 209.34,102.58 204.92,107.53C200.41,112.59 197.02,120.5 196.01,131.55C195.71,134.85 192.79,137.28 189.49,136.98C186.19,136.67 183.76,133.75 184.06,130.45C185.24,117.6 189.3,107.01 195.97,99.54C202.73,91.97 211.83,88 222.04,88Z"
android:fillColor="#2A2779"/>
<path
android:pathData="M309.61,100.15C311.37,97.74 313.98,94.99 314.89,94.05C314.83,94.09 316.95,107.74 317.32,124.64C317.68,141.53 316.8,160.41 316.7,160.35C312.05,159.55 308.1,157.07 305.72,153.9C295.5,140.32 299.79,113.61 309.61,100.15Z"
android:fillColor="#2A2779"
android:fillType="evenOdd"/>
</group>
</vector>
================================================
FILE: app/src/main/res/drawable/shape_alert_dialog_background.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<corners android:radius="16.dp" />
</shape>
================================================
FILE: app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
================================================
FILE: app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/ic_launcher_background"/>
<foreground android:drawable="@drawable/ic_launcher_foreground"/>
<monochrome android:drawable="@drawable/ic_launcher_foreground"/>
</adaptive-icon>
================================================
FILE: app/src/main/res/values/colors.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="purple_200">#FFBB86FC</color>
<color name="purple_500">#FF6200EE</color>
<color name="purple_700">#FF3700B3</color>
<color name="teal_200">#FF03DAC5</color>
<color name="teal_700">#FF018786</color>
<color name="black">#FF000000</color>
<color name="white">#FFFFFFFF</color>
</resources>
================================================
FILE: app/src/main/res/values/ic_launcher_background.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#B2E1FF</color>
</resources>
================================================
FILE: app/src/main/res/values/strings.xml
================================================
<resources>
<string name="app_name">Fread</string>
</resources>
================================================
FILE: app/src/main/res/values/themes.xml
================================================
<resources>
<style name="Fread" parent="Theme.AppCompat.DayNight.NoActionBar" />
</resources>
================================================
FILE: app/src/main/res/values-zh/strings.xml
================================================
<resources>
<string name="app_name">Fread</string>
</resources>
================================================
FILE: app-hosting/build.gradle.kts
================================================
plugins {
id("fread.project.feature.kmp")
id("com.google.devtools.ksp")
id("kotlin-parcelize")
}
android {
namespace = "com.zhangke.fread.hosting"
}
kotlin {
listOf(
iosX64(),
iosArm64(),
iosSimulatorArm64()
).forEach { iosTarget ->
iosTarget.binaries.framework {
baseName = "FreadKit"
isStatic = true
}
}
sourceSets {
commonMain {
dependencies {
implementation(project(path = ":framework"))
implementation(project(path = ":bizframework:status-provider"))
implementation(project(path = ":commonbiz:common"))
implementation(project(path = ":commonbiz:analytics"))
implementation(project(path = ":commonbiz:status-ui"))
implementation(project(path = ":commonbiz:sharedscreen"))
implementation(project(path = ":feature:feeds"))
implementation(project(path = ":feature:explore"))
implementation(project(path = ":feature:profile"))
implementation(project(path = ":feature:notifications"))
implementation(project(path = ":plugins:activitypub-app"))
implementation(project(path = ":plugins:rss"))
implementation(project(path = ":plugins:bluesky"))
if (gradle.extra["enableFirebaseModule"] == true) {
implementation(project(path = ":plugins:fread-firebase"))
}
implementation(compose.components.resources)
implementation(libs.jetbrains.lifecycle.viewmodel)
implementation(libs.krouter.runtime)
implementation(libs.imageLoader)
implementation(libs.kotlinx.serialization.core)
implementation(libs.kotlinx.serialization.json)
implementation(libs.multiplatformsettings.coroutines)
implementation(libs.rssparser)
}
}
commonTest {
dependencies {
implementation(kotlin("test"))
}
}
androidMain {
dependencies {
implementation(compose.preview)
implementation(libs.androidx.core.ktx)
implementation(libs.bundles.androidx.activity)
implementation(libs.bundles.androidx.datastore)
}
}
}
configureCommonMainKsp()
}
dependencies {
kspAll(libs.krouter.reducing.compiler)
}
compose {
resources {
publicResClass = false
packageOfResClass = "com.zhangke.fread.hosting"
generateResClass = always
}
}
================================================
FILE: app-hosting/src/androidMain/kotlin/com/zhangke/fread/HostingApplication.kt
================================================
package com.zhangke.fread
import android.app.Application
import com.seiko.imageloader.ImageLoader
import com.seiko.imageloader.ImageLoaderFactory
import com.zhangke.framework.activity.TopActivityManager
import com.zhangke.framework.utils.initApplication
import com.zhangke.framework.utils.initDebuggable
import com.zhangke.framework.utils.isDebugMode
import com.zhangke.fread.di.FreadApplication
import org.koin.core.component.KoinComponent
abstract class HostingApplication : Application(),
ImageLoaderFactory,
KoinComponent {
override fun onCreate() {
super.onCreate()
initDebuggable(isDebugMode())
initApplication(this)
TopActivityManager.init(this)
FreadApplication.initialize()
}
override fun newImageLoader(): ImageLoader {
return getKoin().get()
}
}
================================================
FILE: app-hosting/src/androidMain/kotlin/com/zhangke/fread/composable/LoadingPage.android.kt
================================================
package com.zhangke.fread.composable
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.tooling.preview.Preview
@Preview
@Composable
private fun PreviewLoadingPage() {
LoadingPage(modifier = Modifier.fillMaxSize())
}
================================================
FILE: app-hosting/src/androidMain/kotlin/com/zhangke/fread/di/HostingModule.android.kt
================================================
package com.zhangke.fread.di
import com.seiko.imageloader.ImageLoader
import com.seiko.imageloader.cache.memory.maxSizePercent
import com.seiko.imageloader.component.setupDefaultComponents
import com.seiko.imageloader.intercept.bitmapMemoryCacheConfig
import com.seiko.imageloader.intercept.imageMemoryCacheConfig
import com.seiko.imageloader.intercept.painterMemoryCacheConfig
import com.seiko.imageloader.option.androidContext
import com.zhangke.fread.common.utils.StorageHelper
import com.zhangke.fread.utils.ActivityHelper
import org.koin.android.ext.koin.androidContext
import org.koin.core.module.Module
import org.koin.core.module.dsl.singleOf
actual fun Module.createPlatformModule() {
singleOf(::ActivityHelper)
single<ImageLoader> {
val context = androidContext()
val storageHelper = get<StorageHelper>()
ImageLoader {
options {
androidContext(context)
}
components {
setupDefaultComponents()
}
interceptor {
// cache 25% memory bitmap
bitmapMemoryCacheConfig {
maxSizePercent(context, 0.25)
}
// cache 50 image
imageMemoryCacheConfig {
maxSize(50)
}
// cache 50 painter
painterMemoryCacheConfig {
maxSize(50)
}
diskCacheConfig {
directory(storageHelper.cacheDir.resolve("image_cache"))
maxSizeBytes(512L * 1024 * 1024) // 512MB
}
}
}
}
}
================================================
FILE: app-hosting/src/androidMain/kotlin/com/zhangke/fread/di/PlatformedFreadApplication.android.kt
================================================
package com.zhangke.fread.di
import com.zhangke.framework.utils.appContext
import org.koin.android.ext.koin.androidContext
import org.koin.android.ext.koin.androidLogger
import org.koin.core.KoinApplication
actual class PlatformedFreadApplication {
actual fun KoinApplication.initKoin() {
androidLogger()
androidContext(appContext)
}
}
================================================
FILE: app-hosting/src/androidMain/kotlin/com/zhangke/fread/screen/DeviceCornerRadius.android.kt
================================================
package com.zhangke.fread.screen
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.platform.LocalView
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
import androidx.core.view.ViewCompat
import androidx.core.view.RoundedCornerCompat
@Composable
actual fun rememberDeviceCornerRadius(): Dp {
val view = LocalView.current
val density = LocalDensity.current
val insets = ViewCompat.getRootWindowInsets(view)
val radiusPx =
listOf(
insets?.getRoundedCorner(RoundedCornerCompat.POSITION_TOP_LEFT),
insets?.getRoundedCorner(RoundedCornerCompat.POSITION_TOP_RIGHT),
insets?.getRoundedCorner(RoundedCornerCompat.POSITION_BOTTOM_RIGHT),
insets?.getRoundedCorner(RoundedCornerCompat.POSITION_BOTTOM_LEFT),
).maxOfOrNull { it?.radius ?: 0 } ?: 0
return if (radiusPx > 0) {
with(density) { radiusPx.toDp() }
} else {
16.dp
}
}
================================================
FILE: app-hosting/src/androidMain/kotlin/com/zhangke/fread/utils/ActivityHelper.android.kt
================================================
package com.zhangke.fread.utils
import android.content.Context
import android.content.Intent
import com.zhangke.framework.utils.startActivityCompat
actual class ActivityHelper(private val context: Context) {
actual fun goHome() {
val intent = Intent(Intent.ACTION_MAIN).apply {
flags = Intent.FLAG_ACTIVITY_NEW_TASK
addCategory(Intent.CATEGORY_HOME)
}
context.startActivityCompat(intent)
}
}
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/CommonNavEntryProvider.kt
================================================
package com.zhangke.fread
import androidx.navigation3.runtime.EntryProviderScope
import androidx.navigation3.runtime.NavKey
import com.zhangke.framework.nav.NavEntryProvider
import com.zhangke.fread.screen.FreadHomeScreenContent
import com.zhangke.fread.screen.FreadHomeScreenNavKey
import kotlinx.serialization.modules.PolymorphicModuleBuilder
import kotlinx.serialization.modules.subclass
import org.koin.compose.viewmodel.koinViewModel
class CommonNavEntryProvider : NavEntryProvider {
override fun EntryProviderScope<NavKey>.build() {
entry<FreadHomeScreenNavKey> {
FreadHomeScreenContent(koinViewModel())
}
}
override fun PolymorphicModuleBuilder<NavKey>.polymorph() {
subclass(FreadHomeScreenNavKey::class)
}
}
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/auth/AuthenticationPage.kt
================================================
package com.zhangke.fread.auth
import androidx.compose.foundation.background
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.Button
import androidx.compose.material3.Card
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import com.zhangke.fread.localization.LocalizedString
import org.jetbrains.compose.resources.stringResource
@Composable
fun AuthenticationPage(
isOauthFailed: Boolean,
onCancelClick: () -> Unit,
onLoginClick: () -> Unit,
) {
val interactionSource = remember { MutableInteractionSource() }
Box(
modifier = Modifier
.fillMaxSize()
.background(Color(0xff424242))
.clickable(
interactionSource = interactionSource,
indication = null,
) {
onCancelClick()
}
) {
Card(
modifier = Modifier
.align(Alignment.Center)
.padding(start = 50.dp, end = 50.dp)
.clickable(
interactionSource = interactionSource,
indication = null,
) {}
) {
Column {
val loginMessageResId = if (isOauthFailed) {
LocalizedString.authentication_page_failed_title
} else {
LocalizedString.authentication_page_normal_title
}
Text(
modifier = Modifier
.fillMaxWidth()
.padding(start = 50.dp, top = 20.dp, end = 50.dp),
text = stringResource(loginMessageResId),
fontSize = 16.sp,
fontWeight = FontWeight.SemiBold
)
Row(
modifier = Modifier
.fillMaxWidth()
.padding(start = 15.dp, top = 15.dp, end = 15.dp, bottom = 15.dp),
horizontalArrangement = Arrangement.End,
verticalAlignment = Alignment.CenterVertically
) {
Button(
onClick = onCancelClick
) {
Text(text = stringResource(LocalizedString.cancel))
}
Button(
modifier = Modifier.padding(start = 15.dp),
onClick = onLoginClick
) {
Text(text = stringResource(LocalizedString.login))
}
}
}
}
}
}
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/composable/LoadingPage.kt
================================================
package com.zhangke.fread.composable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.CircularProgressIndicator
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
@Composable
fun LoadingPage(modifier: Modifier = Modifier) {
Box(modifier = modifier.fillMaxSize(), Alignment.Center) {
CircularProgressIndicator()
}
}
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/di/FreadApplication.kt
================================================
package com.zhangke.fread.di
import com.zhangke.framework.module.ModuleStartup
import com.zhangke.fread.activitypub.app.activityPubModule
import com.zhangke.fread.bluesky.blueskyModule
import com.zhangke.fread.common.commonModule
import com.zhangke.fread.commonbiz.shared.sharedScreenModule
import com.zhangke.fread.explore.di.exploreModule
import com.zhangke.fread.feature.message.di.notificationsModule
import com.zhangke.fread.feeds.di.feedsModule
import com.zhangke.fread.profile.di.profileModule
import com.zhangke.fread.rss.rssModule
import com.zhangke.fread.status.statusProviderModel
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.launch
import org.koin.core.KoinApplication
import org.koin.core.context.startKoin
object FreadApplication {
fun initialize() {
val koin = startKoin {
PlatformedFreadApplication().apply {
initKoin()
}
modules(
hostingModule,
commonModule,
profileModule,
activityPubModule,
statusProviderModel,
blueskyModule,
rssModule,
profileModule,
exploreModule,
notificationsModule,
feedsModule,
sharedScreenModule,
)
}
CoroutineScope(Dispatchers.Main).launch {
koin.koin.getAll<ModuleStartup>().forEach { it.onAppCreate() }
}
}
}
expect class PlatformedFreadApplication() {
fun KoinApplication.initKoin()
}
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/di/HostingModule.kt
================================================
package com.zhangke.fread.di
import com.zhangke.framework.nav.NavEntryProvider
import com.zhangke.fread.CommonNavEntryProvider
import com.zhangke.fread.screen.main.MainViewModel
import com.zhangke.fread.screen.main.drawer.MainDrawerViewModel
import org.koin.core.module.Module
import org.koin.core.module.dsl.factoryOf
import org.koin.core.module.dsl.viewModelOf
import org.koin.dsl.bind
import org.koin.dsl.module
val hostingModule = module {
createPlatformModule()
factoryOf(::CommonNavEntryProvider) bind NavEntryProvider::class
viewModelOf(::MainViewModel)
viewModelOf(::MainDrawerViewModel)
}
expect fun Module.createPlatformModule()
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/DeviceCornerRadius.kt
================================================
package com.zhangke.fread.screen
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.Dp
@Composable
expect fun rememberDeviceCornerRadius(): Dp
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/FreadApp.kt
================================================
package com.zhangke.fread.screen
import androidx.compose.animation.ExperimentalSharedTransitionApi
import androidx.compose.animation.SharedTransitionLayout
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.material.ExperimentalMaterialApi
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.ui.Modifier
import androidx.lifecycle.viewmodel.navigation3.rememberViewModelStoreNavEntryDecorator
import androidx.navigation3.runtime.NavKey
import androidx.navigation3.runtime.entryProvider
import androidx.navigation3.runtime.rememberDecoratedNavEntries
import androidx.navigation3.runtime.rememberNavBackStack
import androidx.navigation3.runtime.rememberSaveableStateHolderNavEntryDecorator
import androidx.navigation3.scene.DialogSceneStrategy
import androidx.navigation3.scene.SceneInfo
import androidx.navigation3.scene.SinglePaneSceneStrategy
import androidx.navigation3.scene.rememberSceneState
import androidx.navigation3.ui.NavDisplay
import androidx.navigationevent.compose.NavigationBackHandler
import androidx.navigationevent.compose.rememberNavigationEventState
import androidx.savedstate.serialization.SavedStateConfiguration
import com.seiko.imageloader.ImageLoader
import com.seiko.imageloader.LocalImageLoader
import com.zhangke.framework.blur.LocalEnableBlurAppBarStyle
import com.zhangke.framework.nav.LocalNavBackStack
import com.zhangke.framework.nav.LocalSharedTransitionScope
import com.zhangke.framework.nav.NavEntryProvider
import com.zhangke.framework.nav.popIfNotRoot
import com.zhangke.fread.common.action.LocalComposableActions
import com.zhangke.fread.common.browser.BrowserLauncher
import com.zhangke.fread.common.browser.LocalActivityBrowserLauncher
import com.zhangke.fread.common.bubble.BubbleManager
import com.zhangke.fread.common.bubble.LocalBubbleManager
import com.zhangke.fread.common.config.FreadConfigManager
import com.zhangke.fread.common.config.LocalConfigManager
import com.zhangke.fread.common.config.LocalFreadConfigManager
import com.zhangke.fread.common.config.LocalLocalConfigManager
import com.zhangke.fread.common.daynight.DayNightHelper
import com.zhangke.fread.common.daynight.LocalActivityDayNightHelper
import com.zhangke.fread.common.handler.LocalTextHandler
import com.zhangke.fread.common.handler.TextHandler
import com.zhangke.fread.common.language.ActivityLanguageHelper
import com.zhangke.fread.common.language.LocalActivityLanguageHelper
import com.zhangke.fread.common.review.FreadReviewManager
import com.zhangke.fread.common.review.LocalFreadReviewManager
import com.zhangke.fread.common.utils.GlobalScreenNavigation
import com.zhangke.fread.common.utils.LocalMediaFileHelper
import com.zhangke.fread.common.utils.LocalPlatformUriHelper
import com.zhangke.fread.common.utils.LocalToastHelper
import com.zhangke.fread.common.utils.MediaFileHelper
import com.zhangke.fread.common.utils.PlatformUriHelper
import com.zhangke.fread.common.utils.ToastHelper
import com.zhangke.fread.commonbiz.shared.LocalModuleScreenVisitor
import com.zhangke.fread.commonbiz.shared.ModuleScreenVisitor
import com.zhangke.fread.status.ui.style.LocalStatusUiConfig
import com.zhangke.fread.status.ui.style.StatusUiConfig
import com.zhangke.fread.utils.ActivityHelper
import com.zhangke.fread.utils.LocalActivityHelper
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.flow.debounce
import kotlinx.coroutines.launch
import kotlinx.serialization.modules.SerializersModule
import kotlinx.serialization.modules.polymorphic
import org.koin.compose.getKoin
@OptIn(
ExperimentalMaterialApi::class,
ExperimentalSharedTransitionApi::class
)
@Composable
fun FreadApp() {
val koin = getKoin()
val freadConfigManager: FreadConfigManager = koin.get()
val statusConfig by freadConfigManager.statusConfigFlow.collectAsState()
val browserLauncher = koin.get<BrowserLauncher>()
val imageLoader: ImageLoader = koin.get()
val freadReviewManager: FreadReviewManager = koin.get()
val localConfigManager: LocalConfigManager = koin.get()
val platformUriHelper: PlatformUriHelper = koin.get()
val mediaFileHelper: MediaFileHelper = koin.get()
val toastHelper: ToastHelper = koin.get()
val activityDayNightHelper: DayNightHelper = koin.get()
val activityLanguageHelper: ActivityLanguageHelper = koin.get()
val textHandler: TextHandler = koin.get()
val activityHelper: ActivityHelper = koin.get()
val moduleScreenVisitor: ModuleScreenVisitor = koin.get()
val bubbleManager: BubbleManager = koin.get()
val enableBlurAppBarStyle by freadConfigManager.enableBlurAppBarStyleFlow.collectAsState()
CompositionLocalProvider(
LocalStatusUiConfig provides StatusUiConfig.create(config = statusConfig),
LocalImageLoader provides imageLoader,
LocalLocalConfigManager provides localConfigManager,
LocalFreadConfigManager provides freadConfigManager,
LocalPlatformUriHelper provides platformUriHelper,
LocalMediaFileHelper provides mediaFileHelper,
LocalFreadReviewManager provides freadReviewManager,
LocalActivityLanguageHelper provides activityLanguageHelper,
LocalActivityDayNightHelper provides activityDayNightHelper,
LocalTextHandler provides textHandler,
LocalToastHelper provides toastHelper,
LocalActivityHelper provides activityHelper,
LocalModuleScreenVisitor provides moduleScreenVisitor,
LocalBubbleManager provides bubbleManager,
LocalActivityBrowserLauncher provides browserLauncher,
LocalEnableBlurAppBarStyle provides enableBlurAppBarStyle,
) {
val navEntryProviders = remember(koin) { koin.getAll<NavEntryProvider>() }
val backStack = rememberNavBackStack(
configuration = SavedStateConfiguration {
serializersModule = SerializersModule {
polymorphic(NavKey::class) {
for (provider in navEntryProviders) {
with(provider) {
polymorph()
}
}
}
}
},
FreadHomeScreenNavKey,
)
SharedTransitionLayout {
CompositionLocalProvider(
LocalSharedTransitionScope provides this,
LocalNavBackStack provides backStack,
) {
val onBack: () -> Unit = { backStack.popIfNotRoot() }
val entries = rememberDecoratedNavEntries(
backStack = backStack,
entryDecorators = listOf(
rememberSaveableStateHolderNavEntryDecorator(),
rememberViewModelStoreNavEntryDecorator(),
rememberPredictiveBackEntryDecorator(),
),
entryProvider = entryProvider {
for (provider in navEntryProviders) {
with(provider) { build() }
}
},
)
val sceneState = rememberSceneState(
entries = entries,
sceneStrategy = remember {
DialogSceneStrategy<NavKey>() then SinglePaneSceneStrategy()
},
onBack = onBack,
)
val currentInfo = SceneInfo(sceneState.currentScene)
val previousSceneInfos = sceneState.previousScenes.map { SceneInfo(it) }
val navigationEventState = rememberNavigationEventState(
currentInfo = currentInfo,
backInfo = previousSceneInfos,
)
NavigationBackHandler(
state = navigationEventState,
isBackEnabled = sceneState.currentScene.previousEntries.isNotEmpty(),
onBackCompleted = {
repeat(entries.size - sceneState.currentScene.previousEntries.size) {
onBack()
}
},
)
val predictiveBackState = rememberPredictiveBackState(navigationEventState)
LaunchedEffect(Unit) {
GlobalScreenNavigation.openScreenFlow
.debounce(300)
.collect { key -> backStack.add(key) }
}
CompositionLocalProvider(
LocalPredictiveBackState provides predictiveBackState,
) {
NavDisplay(
sceneState = sceneState,
navigationEventState = navigationEventState,
transitionSpec = freadTransitionSpec(),
popTransitionSpec = freadPopTransitionSpec(),
predictivePopTransitionSpec = freadPredictivePopTransitionSpec(),
)
}
val browserLauncher = LocalActivityBrowserLauncher.current
RegisterNotificationAction(browserLauncher)
val bubbles by bubbleManager.bubbleListFlow.collectAsState()
if (bubbles.isNotEmpty()) {
Column(modifier = Modifier.fillMaxWidth()) {
for (bubble in bubbles) {
with(bubble) { Content() }
}
}
}
}
}
}
}
@Composable
private fun RegisterNotificationAction(
browserLauncher: BrowserLauncher,
) {
val composableActions = LocalComposableActions.current
val coroutineScope = rememberCoroutineScope()
LaunchedEffect(composableActions) {
composableActions.actionFlow.collect { action ->
if (handleHttpUrl(action, browserLauncher, coroutineScope)) {
composableActions.resetReplayCache()
}
}
}
}
private fun handleHttpUrl(
action: String,
browserLauncher: BrowserLauncher,
coroutineScope: CoroutineScope
): Boolean {
if (!action.lowercase().startsWith("http")) return false
coroutineScope.launch {
browserLauncher.launchWebTabInApp(url = action, isFromExternal = true)
}
return true
}
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/FreadScreen.kt
================================================
package com.zhangke.fread.screen
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.animation.slideInVertically
import androidx.compose.animation.slideOutVertically
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.RowScope
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.widthIn
import androidx.compose.foundation.pager.HorizontalPager
import androidx.compose.foundation.pager.PagerState
import androidx.compose.foundation.pager.rememberPagerState
import androidx.compose.material3.DrawerState
import androidx.compose.material3.DrawerValue
import androidx.compose.material3.Icon
import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.ModalDrawerSheet
import androidx.compose.material3.ModalNavigationDrawer
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableLongStateOf
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.saveable.rememberSaveable
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.ExperimentalComposeUiApi
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.onSizeChanged
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.unit.dp
import androidx.navigation3.runtime.NavKey
import com.zhangke.framework.blur.LocalBlurController
import com.zhangke.framework.blur.rememberBlurController
import com.zhangke.framework.composable.BackHandler
import com.zhangke.framework.composable.ConsumeFlow
import com.zhangke.framework.composable.LocalContentPadding
import com.zhangke.framework.composable.NavigationBar
import com.zhangke.framework.composable.NavigationBarItem
import com.zhangke.framework.nav.Tab
import com.zhangke.framework.utils.pxToDp
import com.zhangke.fread.common.action.LocalComposableActions
import com.zhangke.fread.common.action.OpenNotificationPageAction
import com.zhangke.fread.common.review.LocalFreadReviewManager
import com.zhangke.fread.common.utils.getCurrentTimeMillis
import com.zhangke.fread.explore.screens.home.ExploreTab
import com.zhangke.fread.feature.message.screens.home.NotificationsTab
import com.zhangke.fread.feeds.pages.home.FeedsHomeTab
import com.zhangke.fread.profile.screen.home.ProfileTab
import com.zhangke.fread.screen.main.MainViewModel
import com.zhangke.fread.screen.main.drawer.MainDrawer
import com.zhangke.fread.status.ui.common.LocalNestedTabConnection
import com.zhangke.fread.status.ui.common.NestedTabConnection
import com.zhangke.fread.status.ui.style.LocalStatusUiConfig
import com.zhangke.fread.status.ui.update.AppUpdateDialog
import com.zhangke.fread.status.ui.utils.getScreenWidth
import com.zhangke.fread.utils.LocalActivityHelper
import kotlinx.coroutines.launch
import kotlinx.serialization.Serializable
@Serializable
object FreadHomeScreenNavKey : NavKey
@OptIn(ExperimentalComposeUiApi::class)
@Composable
fun FreadHomeScreenContent(viewModel: MainViewModel) {
val density = LocalDensity.current
val activityHelper = LocalActivityHelper.current
val statusUiConfig = LocalStatusUiConfig.current
val tabs = remember { createMainTabs() }
val uiState by viewModel.uiState.collectAsState()
val drawerState = remember { DrawerState(initialValue = DrawerValue.Closed) }
val coroutineScope = rememberCoroutineScope()
val nestedTabConnection = remember { NestedTabConnection() }
var inFeedsTab by rememberSaveable { mutableStateOf(false) }
var navigationBarHeight by remember { mutableStateOf(64.dp) }
ConsumeFlow(nestedTabConnection.openDrawerFlow) {
if (inFeedsTab) {
drawerState.open()
}
}
val blurController = rememberBlurController()
CompositionLocalProvider(
LocalNestedTabConnection provides nestedTabConnection,
LocalContentPadding provides PaddingValues(bottom = navigationBarHeight),
LocalBlurController provides blurController,
LocalContentColor provides MaterialTheme.colorScheme.onSurface,
) {
ModalNavigationDrawer(
drawerState = drawerState,
gesturesEnabled = inFeedsTab,
drawerContent = {
val drawerWidth = getScreenWidth() * 0.8F
ModalDrawerSheet(
modifier = Modifier.widthIn(max = drawerWidth),
drawerContainerColor = MaterialTheme.colorScheme.surface,
) {
MainDrawer(
onDismissRequest = {
coroutineScope.launch {
drawerState.close()
}
},
)
}
},
) {
val pagerState = rememberPagerState(pageCount = tabs::size)
BackHandler(true) {
if (drawerState.isOpen) {
coroutineScope.launch {
drawerState.close()
}
} else if (inFeedsTab) {
activityHelper.goHome()
} else {
pagerState.requestScrollToPage(0)
}
}
LaunchedEffect(pagerState.currentPage) {
inFeedsTab = pagerState.currentPage == 0
}
RegisterNotificationAction(tabs, pagerState)
Box(modifier = Modifier.fillMaxSize()) {
HorizontalPager(
state = pagerState,
userScrollEnabled = false,
) { page ->
Box(modifier = Modifier.fillMaxSize()) {
tabs[page].Content()
}
}
val inImmersiveMode by nestedTabConnection.inImmersiveFlow.collectAsState()
AnimatedVisibility(
modifier = Modifier
.align(Alignment.BottomCenter)
.fillMaxWidth(),
visible = !inFeedsTab || !inImmersiveMode || !statusUiConfig.immersiveNavBar,
enter = slideInVertically(
initialOffsetY = { it },
),
exit = slideOutVertically(
targetOffsetY = { it },
),
) {
NavigationBar(
modifier = Modifier.onSizeChanged {
navigationBarHeight = it.height.pxToDp(density)
},
) {
tabs.forEachIndexed { index, tab ->
TabNavigationItem(
tab = tab,
index = index,
pagerState = pagerState,
detectDoubleTap = inFeedsTab,
onDoubleTap = {
coroutineScope.launch {
nestedTabConnection.scrollToTop()
}
},
)
}
}
}
}
}
}
if (uiState.newAppReleaseInfo != null) {
AppUpdateDialog(
appReleaseInfo = uiState.newAppReleaseInfo!!,
onCancel = viewModel::onCancelClick,
onUpdateClick = viewModel::onUpdateClick,
)
}
}
private fun createMainTabs(): List<Tab> {
return listOf(
FeedsHomeTab(),
ExploreTab(),
NotificationsTab(),
ProfileTab(),
)
}
@Composable
private fun RowScope.TabNavigationItem(
tab: Tab,
index: Int,
pagerState: PagerState,
detectDoubleTap: Boolean,
onDoubleTap: () -> Unit,
) {
val selected = pagerState.currentPage == index
val latestClickTime = remember { mutableLongStateOf(0L) }
val freadReviewManager = LocalFreadReviewManager.current
NavigationBarItem(
selected = selected,
onClick = {
if (selected) {
val currentTime = getCurrentTimeMillis()
if (detectDoubleTap && currentTime - latestClickTime.value < 500) {
onDoubleTap()
}
latestClickTime.value = currentTime
return@NavigationBarItem
} else {
pagerState.requestScrollToPage(index)
latestClickTime.value = 0L
freadReviewManager.trigger()
}
},
alwaysShowLabel = false,
icon = {
Icon(
painter = tab.options!!.icon!!,
contentDescription = tab.options!!.title,
)
},
)
}
@Composable
private fun RegisterNotificationAction(
tabs: List<Tab>,
pagerState: PagerState,
) {
val composableActions = LocalComposableActions.current
LaunchedEffect(tabs, composableActions) {
composableActions.actionFlow.collect { action ->
if (handleNotificationAction(action, tabs, pagerState)) {
composableActions.resetReplayCache()
}
}
}
}
private fun handleNotificationAction(
action: String,
tabs: List<Tab>,
pagerState: PagerState,
): Boolean {
if (!action.startsWith(OpenNotificationPageAction.URI)) return false
val notificationTabIndex = tabs.indexOfFirst { it is NotificationsTab }
if (pagerState.currentPage != notificationTabIndex) {
pagerState.requestScrollToPage(notificationTabIndex)
}
return true
}
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/NavDisplayTransitions.kt
================================================
package com.zhangke.fread.screen
import androidx.compose.animation.AnimatedContentTransitionScope
import androidx.compose.animation.ContentTransform
import androidx.compose.animation.EnterTransition
import androidx.compose.animation.ExitTransition
import androidx.compose.animation.core.tween
import androidx.compose.animation.fadeIn
import androidx.compose.animation.fadeOut
import androidx.compose.animation.scaleIn
import androidx.navigation3.scene.Scene
import androidx.navigationevent.NavigationEvent.SwipeEdge
private const val DEFAULT_TRANSITION_DURATION_MILLISECOND = 700
private const val PREDICTIVE_POP_END_DURATION_MILLISECOND = 1
fun <T : Any> freadTransitionSpec(): AnimatedContentTransitionScope<Scene<T>>.() -> ContentTransform =
{
ContentTransform(
targetContentEnter = defaultFadeIn() + scaleIn(initialScale = 0.6F),
initialContentExit = defaultFadeOut(),
)
}
fun <T : Any> freadPopTransitionSpec(): AnimatedContentTransitionScope<Scene<T>>.() -> ContentTransform =
{
ContentTransform(
targetContentEnter = defaultFadeIn(),
initialContentExit = defaultFadeOut(),
)
}
fun <T : Any> freadPredictivePopTransitionSpec(): AnimatedContentTransitionScope<Scene<T>>.(@SwipeEdge Int) -> ContentTransform =
{
ContentTransform(
targetContentEnter = EnterTransition.None,
initialContentExit = ExitTransition.None,
)
}
private fun defaultFadeIn(): EnterTransition = fadeIn(
animationSpec = tween(durationMillis = DEFAULT_TRANSITION_DURATION_MILLISECOND)
)
private fun defaultFadeOut(): ExitTransition = fadeOut(
animationSpec = tween(durationMillis = DEFAULT_TRANSITION_DURATION_MILLISECOND)
)
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/PredictiveBackEntryDecorator.kt
================================================
package com.zhangke.fread.screen
import androidx.compose.animation.EnterExitState
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.shape.RoundedCornerShape
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.Immutable
import androidx.compose.runtime.SideEffect
import androidx.compose.runtime.compositionLocalOf
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.clip
import androidx.compose.ui.draw.drawWithContent
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.TransformOrigin
import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.ui.unit.dp
import androidx.navigation3.runtime.NavEntry
import androidx.navigation3.runtime.NavEntryDecorator
import androidx.navigation3.ui.LocalNavAnimatedContentScope
import androidx.navigationevent.NavigationEvent
import androidx.navigationevent.NavigationEventTransitionState
import androidx.navigationevent.compose.NavigationEventState
import com.zhangke.framework.architect.theme.dialogScrim
import com.zhangke.framework.nav.FREAD_DIALOG_METADATA_KEY
@Immutable
data class PredictiveBackState(
val inProgress: Boolean = false,
val progress: Float = 0f,
@param:NavigationEvent.SwipeEdge val swipeEdge: Int = NavigationEvent.EDGE_NONE,
)
val LocalPredictiveBackState = compositionLocalOf { PredictiveBackState() }
private const val PREDICTIVE_BACK_TARGET_SCALE = 0.8f
private const val PREDICTIVE_BACK_PIVOT_EDGE_FRACTION = 0.85f
@Immutable
private data class RetainedExitPredictiveBackState(
val progress: Float,
@param:NavigationEvent.SwipeEdge val swipeEdge: Int,
)
@Composable
fun <T : Any> rememberPredictiveBackEntryDecorator(): NavEntryDecorator<T> =
remember { NavEntryDecorator { entry -> PredictiveBackDecoratedEntry(entry) } }
@Composable
fun rememberPredictiveBackState(
navigationEventState: NavigationEventState<*>,
): PredictiveBackState {
return when (val transitionState = navigationEventState.transitionState) {
is NavigationEventTransitionState.InProgress -> {
if (transitionState.direction == NavigationEventTransitionState.TRANSITIONING_BACK) {
PredictiveBackState(
inProgress = true,
progress = transitionState.latestEvent.progress.coerceIn(0f, 1f),
swipeEdge = transitionState.latestEvent.swipeEdge,
)
} else {
PredictiveBackState()
}
}
else -> PredictiveBackState()
}
}
@Composable
private fun <T : Any> PredictiveBackDecoratedEntry(entry: NavEntry<T>) {
val isDialogEntry = entry.metadata[FREAD_DIALOG_METADATA_KEY] as? Boolean
if (isDialogEntry == true) {
entry.Content()
return
}
val predictiveBackState = LocalPredictiveBackState.current
val transition = LocalNavAnimatedContentScope.current.transition
val isExiting = transition.targetState == EnterExitState.PostExit
val isEntering =
transition.targetState == EnterExitState.Visible && transition.currentState == EnterExitState.PreEnter
val deviceCornerRadius = rememberDeviceCornerRadius()
var retainedExitPredictiveBackState by remember {
mutableStateOf<RetainedExitPredictiveBackState?>(null)
}
val activeExitPredictiveBackState =
if (predictiveBackState.inProgress && isExiting) {
RetainedExitPredictiveBackState(
progress = predictiveBackState.progress,
swipeEdge = predictiveBackState.swipeEdge,
)
} else {
null
}
SideEffect {
when {
activeExitPredictiveBackState != null -> {
retainedExitPredictiveBackState = activeExitPredictiveBackState
}
!isExiting -> {
retainedExitPredictiveBackState = null
}
}
}
// Keep the last predictive-back frame for the exiting entry until it is removed.
val effectiveExitPredictiveBackState =
activeExitPredictiveBackState ?: retainedExitPredictiveBackState?.takeIf { isExiting }
val scale =
if (effectiveExitPredictiveBackState != null) {
1f - (1f - PREDICTIVE_BACK_TARGET_SCALE) * effectiveExitPredictiveBackState.progress
} else {
1f
}
val transformOrigin =
when (effectiveExitPredictiveBackState?.swipeEdge ?: predictiveBackState.swipeEdge) {
NavigationEvent.EDGE_LEFT ->
TransformOrigin(PREDICTIVE_BACK_PIVOT_EDGE_FRACTION, 0.5f)
NavigationEvent.EDGE_RIGHT ->
TransformOrigin(1f - PREDICTIVE_BACK_PIVOT_EDGE_FRACTION, 0.5f)
else -> TransformOrigin.Center
}
val clipRadius = if (effectiveExitPredictiveBackState != null) {
deviceCornerRadius
} else {
0.dp
}
val scrimVisible = predictiveBackState.inProgress && isEntering
val scrimColor = if (scrimVisible) {
MaterialTheme.colorScheme.dialogScrim
} else {
Color.Transparent
}
val modifier = Modifier.then(
if (scale != 1f) {
Modifier.graphicsLayer {
scaleX = scale
scaleY = scale
this.transformOrigin = transformOrigin
}
} else {
Modifier
}
).then(
if (clipRadius > 0.dp) {
Modifier.clip(RoundedCornerShape(clipRadius))
} else {
Modifier
}
).then(
if (scrimColor.alpha > 0f) {
Modifier.drawWithContent {
drawContent()
drawRect(scrimColor)
}
} else {
Modifier
}
)
Box(modifier = modifier) {
entry.Content()
}
}
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/main/MainPageUiState.kt
================================================
package com.zhangke.fread.screen.main
import com.zhangke.fread.common.update.AppReleaseInfo
data class MainPageUiState(
val newAppReleaseInfo: AppReleaseInfo?,
)
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/main/MainViewModel.kt
================================================
package com.zhangke.fread.screen.main
import androidx.lifecycle.ViewModel
import com.zhangke.framework.ktx.launchInViewModel
import com.zhangke.fread.common.update.AppReleaseInfo
import com.zhangke.fread.common.update.AppUpdateManager
import kotlinx.coroutines.delay
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
class MainViewModel (
private val updateManager: AppUpdateManager,
) : ViewModel() {
private val _uiState = MutableStateFlow(MainPageUiState(null))
val uiState = _uiState.asStateFlow()
init {
launchInViewModel {
if (updateManager.enableAutoCheckUpdate) {
delay(5000)
updateManager.checkForUpdate()
.onSuccess { (needUpdate, info) ->
if (needUpdate) {
_uiState.update { it.copy(newAppReleaseInfo = info) }
}
}
}
}
}
fun onCancelClick(releaseInfo: AppReleaseInfo) {
_uiState.update { it.copy(newAppReleaseInfo = null) }
launchInViewModel {
updateManager.ignoreVersion(releaseInfo)
}
}
fun onUpdateClick(releaseInfo: AppReleaseInfo) {
_uiState.update { it.copy(newAppReleaseInfo = null) }
launchInViewModel {
updateManager.updateApp(releaseInfo)
}
}
}
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/main/drawer/MainDrawer.kt
================================================
package com.zhangke.fread.screen.main.drawer
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.foundation.lazy.itemsIndexed
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Add
import androidx.compose.material.icons.filled.Settings
import androidx.compose.material.icons.outlined.Coffee
import androidx.compose.material.icons.outlined.Settings
import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.HorizontalDivider
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Surface
import androidx.compose.material3.Text
import androidx.compose.material3.TopAppBar
import androidx.compose.runtime.Composable
import androidx.compose.runtime.collectAsState
import androidx.compose.runtime.getValue
import androidx.compose.runtime.key
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.rememberCoroutineScope
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.draw.alpha
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import com.zhangke.framework.composable.currentOrThrow
import com.zhangke.framework.composable.ConsumeOpenScreenFlow
import com.zhangke.framework.composable.SimpleIconButton
import com.zhangke.framework.nav.LocalNavBackStack
import com.zhangke.fread.commonbiz.shared.LocalModuleScreenVisitor
import com.zhangke.fread.common.composable.EmptyContent
import com.zhangke.fread.feeds.pages.manager.add.type.SelectContentTypeScreenNavKey
import com.zhangke.fread.localization.LocalizedString
import com.zhangke.fread.profile.screen.setting.SettingScreenNavKey
import com.zhangke.fread.status.model.FreadContent
import com.zhangke.fread.status.ui.common.LocalNestedTabConnection
import com.zhangke.fread.statusui.ic_drag_indicator
import kotlinx.coroutines.launch
import org.burnoutcrew.reorderable.ReorderableItem
import org.burnoutcrew.reorderable.detectReorderAfterLongPress
import org.burnoutcrew.reorderable.rememberReorderableLazyListState
import org.burnoutcrew.reorderable.reorderable
import org.jetbrains.compose.resources.painterResource
import org.jetbrains.compose.resources.stringResource
import org.koin.compose.viewmodel.koinViewModel
@Composable
fun MainDrawer(onDismissRequest: () -> Unit) {
val backStack = LocalNavBackStack.currentOrThrow
val screenVisitor = LocalModuleScreenVisitor.current
val viewModel = koinViewModel<MainDrawerViewModel>()
val uiState by viewModel.uiState.collectAsState()
val mainTabConnection = LocalNestedTabConnection.current
val coroutineScope = rememberCoroutineScope()
MainDrawerContent(
uiState = uiState,
onContentConfigClick = {
onDismissRequest()
coroutineScope.launch {
mainTabConnection.scrollToContentTab(it)
}
},
onAddContentClick = {
onDismissRequest()
backStack.add(SelectContentTypeScreenNavKey)
},
onMove = viewModel::onContentConfigMove,
onEditClick = {
onDismissRequest()
viewModel.onContentConfigEditClick(it)
},
onSettingClick = {
onDismissRequest()
backStack.add(SettingScreenNavKey)
},
onDonateClick = {
backStack.add(screenVisitor.profileScreenVisitor.getDonateScreen())
},
)
ConsumeOpenScreenFlow(viewModel.openScreenFlow)
}
@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun MainDrawerContent(
uiState: MainDrawerUiState,
onContentConfigClick: (FreadContent) -> Unit,
onAddContentClick: () -> Unit,
onMove: (from: Int, to: Int) -> Unit,
onEditClick: (FreadContent) -> Unit,
onSettingClick: () -> Unit,
onDonateClick: () -> Unit,
) {
val contentConfigList = uiState.contentConfigList
Surface(modifier = Modifier.fillMaxSize()) {
if (contentConfigList.isEmpty()) {
EmptyContent(Modifier.fillMaxSize(), onClick = onAddContentClick)
} else {
Column(
modifier = Modifier.fillMaxSize()
) {
TopAppBar(
title = {
Text(text = stringResource(LocalizedString.main_drawer_title))
},
actions = {
SimpleIconButton(
onClick = onAddContentClick,
imageVector = Icons.Default.Add,
contentDescription = "Add Content",
)
},
)
HorizontalDivider(modifier = Modifier.padding(horizontal = 16.dp))
Spacer(modifier = Modifier.height(16.dp))
var configListInUi by remember(contentConfigList) {
mutableStateOf(contentConfigList)
}
key(contentConfigList) {
val state = rememberReorderableLazyListState(
onMove = { from, to ->
if (contentConfigList.isEmpty()) return@rememberReorderableLazyListState
configListInUi = configListInUi.toMutableList().apply {
add(to.index, removeAt(from.index))
}
},
onDragEnd = { startIndex, endIndex ->
onMove(startIndex, endIndex)
}
)
LazyColumn(
state = state.listState,
modifier = Modifier
.fillMaxWidth()
.weight(1F)
.reorderable(state)
.detectReorderAfterLongPress(state)
) {
itemsIndexed(
items = configListInUi,
key = { _, item -> item.hashCode() }
) { _, contentConfig ->
ReorderableItem(state, contentConfig.hashCode()) { dragging ->
val elevation by animateDpAsState(
targetValue = if (dragging) 16.dp else 0.dp,
label = "MainDrawerItemElevation",
)
Surface(
modifier = Modifier
.fillMaxWidth(),
shadowElevation = elevation,
) {
ContentConfigItem(
modifier = Modifier
.fillMaxWidth(),
mainDrawerContent = contentConfig,
onClick = { onContentConfigClick(contentConfig.content) },
onEditClick = onEditClick,
)
}
}
}
}
}
HorizontalDivider(modifier = Modifier.padding(horizontal = 16.dp))
Row(
modifier = Modifier
.fillMaxWidth()
.height(58.dp)
.clickable {
onSettingClick()
},
verticalAlignment = Alignment.CenterVertically,
) {
Spacer(modifier = Modifier.width(16.dp))
Icon(
imageVector = Icons.Outlined.Settings,
contentDescription = "Settings",
)
Spacer(modifier = Modifier.width(16.dp))
Text(text = stringResource(LocalizedString.main_drawer_settings))
}
Row(
modifier = Modifier
.fillMaxWidth()
.height(48.dp)
.clickable { onDonateClick() },
verticalAlignment = Alignment.CenterVertically,
) {
Spacer(modifier = Modifier.width(16.dp))
Icon(
imageVector = Icons.Outlined.Coffee,
contentDescription = "Donate",
)
Spacer(modifier = Modifier.width(16.dp))
Text(text = stringResource(LocalizedString.main_drawer_donate))
}
}
}
}
}
@Composable
private fun ContentConfigItem(
modifier: Modifier,
mainDrawerContent: MainDrawerContent,
onClick: () -> Unit,
onEditClick: (FreadContent) -> Unit,
) {
Row(
modifier = modifier
.clickable { onClick() }
.padding(horizontal = 16.dp),
verticalAlignment = Alignment.CenterVertically,
) {
Column(
modifier = Modifier
.align(Alignment.CenterVertically)
.weight(1F)
.padding(top = 16.dp, bottom = 6.dp, end = 4.dp),
) {
Text(
modifier = Modifier,
text = mainDrawerContent.content.name,
style = MaterialTheme.typography.titleMedium,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
Spacer(modifier = Modifier.height(4.dp))
mainDrawerContent.content.Subtitle(mainDrawerContent.account)
}
SimpleIconButton(
modifier = Modifier
.align(Alignment.CenterVertically)
.size(24.dp)
.alpha(0.7F)
.padding(2.dp),
onClick = { onEditClick(mainDrawerContent.content) },
imageVector = Icons.Default.Settings,
contentDescription = "Edit Content Config",
)
Spacer(modifier = Modifier.width(16.dp))
Icon(
modifier = Modifier
.align(Alignment.CenterVertically)
.size(24.dp)
.alpha(0.7F)
.padding(2.dp),
painter = painterResource(com.zhangke.fread.statusui.Res.drawable.ic_drag_indicator),
contentDescription = "Drag for reorder Content Config",
)
}
}
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/main/drawer/MainDrawerUiState.kt
================================================
package com.zhangke.fread.screen.main.drawer
import com.zhangke.fread.status.account.LoggedAccount
import com.zhangke.fread.status.model.FreadContent
data class MainDrawerUiState(
val contentConfigList: List<MainDrawerContent>
)
data class MainDrawerContent(
val content: FreadContent,
val account: LoggedAccount?,
)
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/main/drawer/MainDrawerViewModel.kt
================================================
package com.zhangke.fread.screen.main.drawer
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import androidx.navigation3.runtime.NavKey
import com.zhangke.fread.common.content.FreadContentRepo
import com.zhangke.fread.feeds.pages.manager.edit.EditMixedContentScreenNavKey
import com.zhangke.fread.status.StatusProvider
import com.zhangke.fread.status.content.MixedContent
import com.zhangke.fread.status.model.FreadContent
import kotlinx.coroutines.flow.MutableSharedFlow
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.StateFlow
import kotlinx.coroutines.flow.asSharedFlow
import kotlinx.coroutines.flow.update
import kotlinx.coroutines.launch
class MainDrawerViewModel (
private val contentRepo: FreadContentRepo,
private val statusProvider: StatusProvider,
) : ViewModel() {
private val _uiState = MutableStateFlow(MainDrawerUiState(emptyList()))
val uiState: StateFlow<MainDrawerUiState> get() = _uiState
private val _openScreenFlow = MutableSharedFlow<NavKey>()
val openScreenFlow = _openScreenFlow.asSharedFlow()
init {
viewModelScope.launch {
contentRepo.getAllContentFlow()
.collect { list ->
val contentList = mapToMainDrawerContent(list)
_uiState.update { it.copy(contentConfigList = contentList) }
}
}
}
private suspend fun mapToMainDrawerContent(
contentList: List<FreadContent>,
): List<MainDrawerContent> {
val allAccounts = statusProvider.accountManager.getAllLoggedAccount()
return contentList.map { content ->
val account = allAccounts.find { it.uri == content.accountUri }
MainDrawerContent(content, account)
}
}
fun onContentConfigMove(from: Int, to: Int) {
viewModelScope.launch {
val configList = _uiState.value.contentConfigList
if (configList.isEmpty()) return@launch
contentRepo.reorderConfig(configList[from].content, configList[to].content)
}
}
fun onContentConfigEditClick(content: FreadContent) {
viewModelScope.launch {
if (content is MixedContent) {
_openScreenFlow.emit(EditMixedContentScreenNavKey(content.id))
} else {
statusProvider.screenProvider.getEditContentConfigScreenScreen(content)
?.let { _openScreenFlow.emit(it) }
}
}
}
}
================================================
FILE: app-hosting/src/commonMain/kotlin/com/zhangke/fread/utils/ActivityHelper.kt
================================================
package com.zhangke.fread.utils
import androidx.compose.runtime.staticCompositionLocalOf
expect class ActivityHelper {
fun goHome()
}
internal val LocalActivityHelper = staticCompositionLocalOf<ActivityHelper> {
error("No ActivityHelper provided")
}
================================================
FILE: app-hosting/src/iosMain/kotlin/com/zhangke/fread/di/HostingModule.ios.kt
================================================
package com.zhangke.fread.di
import com.seiko.imageloader.ImageLoader
import com.seiko.imageloader.component.setupDefaultComponents
import com.seiko.imageloader.intercept.bitmapMemoryCacheConfig
import com.seiko.imageloader.intercept.imageMemoryCacheConfig
import com.seiko.imageloader.intercept.painterMemoryCacheConfig
import com.zhangke.framework.module.ModuleStartup
import com.zhangke.fread.common.utils.StorageHelper
import com.zhangke.fread.startup.KRouterStartup
import com.zhangke.fread.utils.ActivityHelper
import org.koin.core.module.Module
import org.koin.core.module.dsl.singleOf
import platform.UIKit.UIApplication
actual fun Module.createPlatformModule() {
singleOf(::ActivityHelper)
single<ImageLoader> {
ImageLoader {
components {
setupDefaultComponents()
}
interceptor {
// cache 32MB bitmap
bitmapMemoryCacheConfig {
maxSize(32 * 1024 * 1024) // 32MB
}
// cache 50 image
imageMemoryCacheConfig {
maxSize(50)
}
// cache 50 painter
painterMemoryCacheConfig {
maxSize(50)
}
diskCacheConfig {
directory(get<StorageHelper>().cacheDir.resolve("image_cache"))
maxSizeBytes(512L * 1024 * 1024) // 512MB
}
}
}
}
factory<UIApplication> { UIApplication.sharedApplication }
factory<ModuleStartup> { KRouterStartup() }
}
================================================
FILE: app-hosting/src/iosMain/kotlin/com/zhangke/fread/di/PlatformedFreadApplication.ios.kt
================================================
package com.zhangke.fread.di
import org.koin.core.KoinApplication
actual class PlatformedFreadApplication {
actual fun KoinApplication.initKoin() {
}
}
================================================
FILE: app-hosting/src/iosMain/kotlin/com/zhangke/fread/screen/DeviceCornerRadius.ios.kt
================================================
package com.zhangke.fread.screen
import androidx.compose.runtime.Composable
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
@Composable
actual fun rememberDeviceCornerRadius(): Dp = 24.dp
================================================
FILE: app-hosting/src/iosMain/kotlin/com/zhangke/fread/screen/FreadViewController.kt
================================================
package com.zhangke.fread.screen
import androidx.compose.ui.window.ComposeUIViewController
import platform.UIKit.UIViewController
typealias FreadViewController = () -> UIViewController
@Suppress("FunctionName")
internal fun FreadViewController(
iosFreadApp: IosFreadApp,
): UIViewController = ComposeUIViewController {
iosFreadApp()
}
================================================
FILE: app-hosting/src/iosMain/kotlin/com/zhangke/fread/screen/IosFreadApp.kt
================================================
package com.zhangke.fread.screen
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import com.zhangke.fread.common.browser.BrowserLauncher
import com.zhangke.fread.common.browser.LocalActivityBrowserLauncher
typealias IosFreadApp = @Composable () -> Unit
@Composable
internal fun IosFreadApp(
activityBrowserLauncher: BrowserLauncher,
freadApp: FreadApp,
) {
CompositionLocalProvider(
LocalActivityBrowserLauncher provides activityBrowserLauncher,
) {
freadApp()
}
}
================================================
FILE: app-hosting/src/iosMain/kotlin/com/zhangke/fread/startup/KRouterStartup.kt
================================================
package com.zhangke.fread.startup
import com.zhangke.framework.module.ModuleStartup
import com.zhangke.krouter.KRouter
class KRouterStartup : ModuleStartup {
override fun onAppCreate() {
@Suppress("UNRESOLVED_REFERENCE")
KRouter.addRouterModule(com.zhangke.krouter.generated.AutoReducingModule())
}
}
================================================
FILE: app-hosting/src/iosMain/kotlin/com/zhangke/fread/utils/ActivityHelper.ios.kt
================================================
package com.zhangke.fread.utils
import platform.UIKit.UIViewController
actual class ActivityHelper(
private val viewController: Lazy<UIViewController>,
) {
actual fun goHome() {
viewController.value.dismissViewControllerAnimated(false, null)
}
}
================================================
FILE: appprivacy.html
================================================
<h1 id="fread-privacy-policy">Fread Privacy Policy</h1>
<p>ZhangKe built the Fread app. This SERVICE is provided by ZhangKe is intended for use as is.</p>
<p>This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.</p>
<p>If you choose to use my Service, then you agree to the collection and use of information in relation to this policy.
The Personal Information that I collect is used for providing and improving the Service.
I will not use or share your information with anyone except as described in this Privacy Policy.</p>
<h2 id="information-collection-and-use">Information Collection and Use</h2>
<p>For a better experience, while using our Service, I may require you to provide us with certain personally identifiable information, including but not limited to ZhangKe. </p>
<p>The app does use third-party services that may collect information used to identify you.</p>
<p>Link to the privacy policy of third-party service providers used by the app</p>
<p><a href="https://policies.google.com/privacy">Google Play Services</a></p>
<p><a href="https://firebase.google.com/policies/analytics">Google Analytics for Firebase</a></p>
<p><a href="https://firebase.google.com/support/privacy/">Firebase Crashlytics</a></p>
<p><a href="https://mastodon.social/privacy-policy">Mastodon Privacy Policy</a></p>
<h2 id="log-data">Log Data</h2>
<p>I want to inform you that whenever you use my Service, in a case of an error in the app I collect data and information (through third-party products) on your phone called Log Data. This Log Data may include information such as your device Internet Protocol (“IP”) address, device name, operating system version, the configuration of the app when utilizing my Service, the time and date of your use of the Service, and other statistics.</p>
<h2 id="service-providers">Service Providers</h2>
<p>I may employ third-party companies and individuals due to the following reasons:</p>
<p>To facilitate our Service;
To provide the Service on our behalf;
To perform Service-related services; or
To assist us in analyzing how our Service is used.
I want to inform users of this Service that these third parties have access to their Personal Information. The reason is to perform the tasks assigned to them on our behalf. However, they are obligated not to disclose or use the information for any other purpose.</p>
<h2 id="security">Security</h2>
<p>I value your trust in providing us your Personal Information, thus we are striving to use commercially acceptable means of protecting it. But remember that no method of transmission over the internet, or method of electronic storage is 100% secure and reliable, and I cannot guarantee its absolute security.</p>
<h2 id="links-to-other-sites">Links to Other Sites</h2>
<p>This Service may contain links to other sites. If you click on a third-party link, you will be directed to that site. Note that these external sites are not operated by me. Therefore, I strongly advise you to review the Privacy Policy of these websites. I have no control over and assume no responsibility for the content, privacy policies, or practices of any third-party sites or services.</p>
<h2 id="children-s-privacy">Children’s Privacy</h2>
<p>These Services do not address anyone under the age of 13. I do not knowingly collect personally identifiable information from children under 13 years of age. In the case I discover that a child under 13 has provided me with personal information, I immediately delete this from our servers. If you are a parent or guardian and you are aware that your child has provided us with personal information, please contact me so that I will be able to do the necessary actions.</p>
<h2 id="changes-to-this-privacy-policy">Changes to This Privacy Policy</h2>
<p>I may update our Privacy Policy from time to time. Thus, you are advised to review this page periodically for any changes. I will notify you of any changes by posting the new Privacy Policy on this page.</p>
<p>This policy is effective as of 2027-07-18</p>
<h2 id="contact-us">Contact Us</h2>
<p>If you have any questions or suggestions about my Privacy Policy, do not hesitate to contact me at zhangkeport@gmail.com.</p>
================================================
FILE: bizframework/status-provider/.gitignore
================================================
/build
================================================
FILE: bizframework/status-provider/build.gradle.kts
================================================
plugins {
id("fread.project.framework.kmp")
id("kotlin-parcelize")
}
android {
namespace = "com.zhangke.fread.commonbiz.status.provider"
}
kotlin {
sourceSets {
commonMain {
dependencies {
implementation(project(path = ":framework"))
implementation(compose.components.resources)
implementation(libs.arrow.core)
implementation(libs.kotlinx.serialization.core)
implementation(libs.kotlinx.serialization.json)
implementation(libs.androidx.room)
implementation(libs.ksoup)
implementation(libs.ktml)
implementation(libs.imageLoader)
implementation(project(":thirds:halilibo-richtext-ui"))
}
}
commonTest {
dependencies {
implementation(kotlin("test"))
}
}
androidMain {
dependencies {
implementation(libs.androidx.core.ktx)
}
}
}
}
================================================
FILE: bizframework/status-provider/consumer-rules.pro
================================================
================================================
FILE: bizframework/status-provider/proguard-rules.pro
================================================
# Add project specific ProGuard rules here.
# You can control the set of applied configuration files using the
# proguardFiles setting in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
# Uncomment this to preserve the line number information for
# debugging stack traces.
#-keepattributes SourceFile,LineNumberTable
# If you keep the line number information, uncomment this to
# hide the original source file name.
#-renamesourcefileattribute SourceFile
================================================
FILE: bizframework/status-provider/src/androidMain/kotlin/com/zhangke/fread/status/richtext/RichTextBuilder.android.kt
================================================
package com.zhangke.fread.status.richtext
import com.zhangke.fread.status.model.Mention
import moe.tlaster.ktml.dom.Element
import moe.tlaster.ktml.dom.Node
private fun replaceMentionAndHashtag(
mentions: List<Mention>,
node: Node,
host: String,
) {
if (node is Element) {
val href = node.attributes["href"]
val mention = mentions.firstOrNull { it.url == href }
if (mention != null) {
node.attributes["href"] = buildMentionUrl(mention, host)
}
node.children.forEach { replaceMentionAndHashtag(mentions, it, host) }
}
}
private fun buildMentionUrl(
mention: Mention,
host: String,
): String {
return "fread://${host}/user/${mention.id}"
}
================================================
FILE: bizframework/status-provider/src/androidMain/kotlin/com/zhangke/fread/status/utils/ImplementerFinder.kt
================================================
package com.zhangke.fread.status.utils
import java.util.ServiceLoader
inline fun <reified T> findImplementer(): T {
val list = findImplementers<T>()
if (list.size != 1)
throw IllegalStateException("${T::class.qualifiedName} has multiple implementers")
return list.first()
}
inline fun <reified T> findImplementers(): List<T> {
return ServiceLoader.load(T::class.java, T::class.java.classLoader)
.iterator()
.asSequence()
.toList()
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/StatusProvider.kt
================================================
package com.zhangke.fread.status
import com.zhangke.fread.status.account.AccountManager
import com.zhangke.fread.status.account.IAccountManager
import com.zhangke.fread.status.content.ContentManager
import com.zhangke.fread.status.content.IContentManager
import com.zhangke.fread.status.notification.INotificationResolver
import com.zhangke.fread.status.notification.NotificationResolver
import com.zhangke.fread.status.platform.IPlatformResolver
import com.zhangke.fread.status.platform.PlatformResolver
import com.zhangke.fread.status.publish.IPublishBlogManager
import com.zhangke.fread.status.publish.PublishBlogManager
import com.zhangke.fread.status.screen.IStatusScreenProvider
import com.zhangke.fread.status.screen.StatusScreenProvider
import com.zhangke.fread.status.search.ISearchEngine
import com.zhangke.fread.status.search.SearchEngine
import com.zhangke.fread.status.source.IStatusSourceResolver
import com.zhangke.fread.status.source.StatusSourceResolver
import com.zhangke.fread.status.status.IStatusResolver
import com.zhangke.fread.status.status.StatusResolver
/**
* Created by ZhangKe on 2022/12/9.
*/
class StatusProvider(private val providers: List<IStatusProvider>) {
val contentManager = ContentManager(providers.map { it.contentManager })
val screenProvider = StatusScreenProvider(providers.map { it.screenProvider })
val searchEngine = SearchEngine(providers.map { it.searchEngine })
val statusResolver = StatusResolver(providers.map { it.statusResolver })
val statusSourceResolver = StatusSourceResolver(providers.map { it.statusSourceResolver })
val accountManager = AccountManager(providers.map { it.accountManager })
val notificationResolver = NotificationResolver(providers.map { it.notificationResolver })
val publishManager = PublishBlogManager(providers.map { it.publishManager })
}
interface IStatusProvider {
val contentManager: IContentManager
val screenProvider: IStatusScreenProvider
val searchEngine: ISearchEngine
val statusResolver: IStatusResolver
val statusSourceResolver: IStatusSourceResolver
val accountManager: IAccountManager
val notificationResolver: INotificationResolver
val publishManager: IPublishBlogManager
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/StatusProviderModel.kt
================================================
package com.zhangke.fread.status
import org.koin.dsl.module
val statusProviderModel = module {
single { StatusProvider(getAll<IStatusProvider>()) }
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/account/AccountManager.kt
================================================
package com.zhangke.fread.status.account
import com.zhangke.fread.status.author.BlogAuthor
import com.zhangke.fread.status.model.FreadContent
import com.zhangke.fread.status.model.LoggedAccountDetail
import com.zhangke.fread.status.model.Relationships
import com.zhangke.fread.status.platform.BlogPlatform
import com.zhangke.fread.status.uri.FormalUri
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.combine
class AccountManager(
private val accountManagerList: List<IAccountManager>,
) {
suspend fun getAllLoggedAccount(): List<LoggedAccount> {
return accountManagerList.flatMap { it.getAllLoggedAccount() }
}
fun getAllAccountFlow(): Flow<List<LoggedAccount>> {
val flowList = accountManagerList.mapNotNull {
it.getAllAccountFlow()
}
return combine(*flowList.toTypedArray()) {
it.flatMap { list -> list }
}
}
fun getAllAccountDetailFlow(): Flow<List<LoggedAccountDetail>> {
val flowList = accountManagerList.mapNotNull {
it.getAllAccountDetailFlow()
}
return combine(*flowList.toTypedArray()) {
it.flatMap { list -> list }
}
}
suspend fun triggerAuthBySource(
platform: BlogPlatform,
account: LoggedAccount? = null,
) {
for (manager in accountManagerList) {
manager.triggerLaunchAuth(platform, account)
}
}
suspend fun refreshAllAccountInfo(): List<AccountRefreshResult> {
return accountManagerList.flatMap {
it.refreshAllAccountInfo()
}
}
suspend fun logout(account: LoggedAccount) {
accountManagerList.forEach {
if (it.logout(account)) return@forEach
}
}
suspend fun selectContentWithAccount(
contentList: List<FreadContent>,
account: LoggedAccount,
): List<FreadContent> {
return accountManagerList.flatMap { manager ->
manager.selectContentWithAccount(contentList, account)
}
}
fun subscribeNotification() {
for (manager in accountManagerList) {
manager.subscribeNotification()
}
}
suspend fun getRelationships(
account: LoggedAccount,
accounts: List<BlogAuthor>,
): Result<Map<FormalUri, Relationships>> {
val allResult = mutableMapOf<FormalUri, Relationships>()
for (manager in accountManagerList) {
manager.getRelationships(account, accounts).onSuccess { map -> allResult.putAll(map) }
}
return Result.success(allResult)
}
suspend fun unblockAccount(
account: LoggedAccount,
user: BlogAuthor,
): Result<Unit> {
return accountManagerList.firstNotNullOf { it.unblockAccount(account, user) }
}
suspend fun cancelFollowRequest(
account: LoggedAccount,
user: BlogAuthor,
): Result<Unit> {
return accountManagerList.firstNotNullOf { it.cancelFollowRequest(account, user) }
}
}
interface IAccountManager {
suspend fun getAllLoggedAccount(): List<LoggedAccount>
fun getAllAccountFlow(): Flow<List<LoggedAccount>>?
fun getAllAccountDetailFlow(): Flow<List<LoggedAccountDetail>>? {
return null
}
suspend fun triggerLaunchAuth(platform: BlogPlatform, account: LoggedAccount?)
suspend fun refreshAllAccountInfo(): List<AccountRefreshResult>
suspend fun logout(account: LoggedAccount): Boolean
suspend fun selectContentWithAccount(
contentList: List<FreadContent>,
account: LoggedAccount,
): List<FreadContent>
suspend fun getRelationships(
account: LoggedAccount,
accounts: List<BlogAuthor>,
): Result<Map<FormalUri, Relationships>>
suspend fun unblockAccount(
account: LoggedAccount,
user: BlogAuthor,
): Result<Unit>?
suspend fun cancelFollowRequest(
account: LoggedAccount,
user: BlogAuthor,
): Result<Unit>?
fun subscribeNotification()
}
sealed interface AccountRefreshResult {
val account: LoggedAccount
data class Success(override val account: LoggedAccount) : AccountRefreshResult
data class Failure(
override val account: LoggedAccount,
val error: Throwable,
) : AccountRefreshResult
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/account/AuthenticationFailureException.kt
================================================
package com.zhangke.fread.status.account
class AuthenticationFailureException(override val message: String?) : RuntimeException(message)
val Throwable.isAuthenticationFailure: Boolean
get() = this is AuthenticationFailureException
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/account/LoggedAccount.kt
================================================
package com.zhangke.fread.status.account
import com.zhangke.framework.utils.WebFinger
import com.zhangke.fread.status.model.Emoji
import com.zhangke.fread.status.model.PlatformLocator
import com.zhangke.fread.status.platform.BlogPlatform
import com.zhangke.fread.status.richtext.RichText
import com.zhangke.fread.status.richtext.buildRichText
import com.zhangke.fread.status.uri.FormalUri
interface LoggedAccount {
val uri: FormalUri
val webFinger: WebFinger
val platform: BlogPlatform
val id: String?
val userName: String
val description: String?
val avatar: String?
val emojis: List<Emoji>
val prettyHandle: String
val humanizedName: RichText
get() = buildRichText(
document = getFixedName(),
emojis = emojis,
)
val humanizedDescription: RichText
get() = buildRichText(
document = description.orEmpty(),
emojis = emojis,
)
val locator: PlatformLocator
get() = PlatformLocator(baseUrl = platform.baseUrl, accountUri = uri)
private fun getFixedName(): String {
if (userName.isNotEmpty()) return userName
val nameFromHandle = prettyHandle.removePrefix("@")
.split('@')
.firstOrNull()
if (!nameFromHandle.isNullOrEmpty() && nameFromHandle.isNotBlank()) return nameFromHandle
return ""
}
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/author/BlogAuthor.kt
================================================
package com.zhangke.fread.status.author
import com.zhangke.framework.utils.PlatformSerializable
import com.zhangke.framework.utils.WebFinger
import com.zhangke.framework.utils.prettyHandle
import com.zhangke.fread.status.model.Emoji
import com.zhangke.fread.status.model.Relationships
import com.zhangke.fread.status.richtext.RichText
import com.zhangke.fread.status.richtext.buildRichText
import com.zhangke.fread.status.uri.FormalUri
import kotlinx.serialization.Serializable
@Serializable
data class BlogAuthor(
// 对于 Bluesky 来说,个人数据应该通过 DID 获取 PDS endpoint,而不是直接使用 baseUrl
val uri: FormalUri,
val webFinger: WebFinger,
val handle: String,
val name: String,
val description: String,
val avatar: String?,
val emojis: List<Emoji>,
val userId: String? = null,
val bot: Boolean = false,
val banner: String? = null,
val followersCount: Long? = null,
val followingCount: Long? = null,
val statusesCount: Long? = null,
val relationships: Relationships? = null,
) : PlatformSerializable {
val humanizedName: RichText by lazy {
buildRichText(
document = getFixedName(),
mentions = emptyList(),
emojis = emojis,
hashTags = emptyList(),
)
}
val humanizedDescription: RichText by lazy {
buildRichText(
document = description,
mentions = emptyList(),
emojis = emojis,
hashTags = emptyList(),
)
}
val prettyHandle: String = handle.prettyHandle()
private fun getFixedName(): String {
if (name.isNotEmpty()) return name
val nameFromHandle = handle.removePrefix("@")
.split('@')
.firstOrNull()
if (!nameFromHandle.isNullOrEmpty() && nameFromHandle.isNotBlank()) return nameFromHandle
return ""
}
}
fun BlogAuthor.updateFollowingState(following: Boolean): BlogAuthor {
val relationships = this.relationships ?: Relationships.default()
return this.copy(relationships = relationships.copy(following = following))
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/Blog.kt
================================================
package com.zhangke.fread.status.blog
import com.zhangke.framework.datetime.Instant
import com.zhangke.framework.utils.PlatformSerializable
import com.zhangke.fread.status.author.BlogAuthor
import com.zhangke.fread.status.model.BlogFiltered
import com.zhangke.fread.status.model.Emoji
import com.zhangke.fread.status.model.Facet
import com.zhangke.fread.status.model.FormattingTime
import com.zhangke.fread.status.model.HashtagInStatus
import com.zhangke.fread.status.model.Mention
import com.zhangke.fread.status.model.StatusVisibility
import com.zhangke.fread.status.model.isActivityPub
import com.zhangke.fread.status.model.isBluesky
import com.zhangke.fread.status.model.isRss
import com.zhangke.fread.status.platform.BlogPlatform
import com.zhangke.fread.status.richtext.RichText
import com.zhangke.fread.status.richtext.RichTextType
import com.zhangke.fread.status.richtext.buildRichText
import kotlinx.serialization.Serializable
@Serializable
data class Blog(
val id: String,
val author: BlogAuthor,
val title: String?,
val description: String?,
val content: String,
val url: String,
// http link
val link: String,
val createAt: Instant,
val formattedCreateAt: String,
val supportEdit: Boolean,
val like: Like,
val forward: Forward,
val bookmark: Bookmark,
val reply: Reply,
val quote: Quote,
val sensitive: Boolean,
val spoilerText: String,
/**
* ISO 639 Part 1 two-letter language code
*/
val language: String? = null,
// 对于 Bluesky 来说,个人数据应该通过 DID 获取 PDS endpoint,而不是直接使用 baseUrl
val platform: BlogPlatform,
val mediaList: List<BlogMedia>,
val emojis: List<Emoji>,
val mentions: List<Mention>,
val tags: List<HashtagInStatus>,
val facets: List<Facet>,
val pinned: Boolean = false,
val poll: BlogPoll?,
val visibility: StatusVisibility,
val embeds: List<BlogEmbed> = emptyList(),
val supportTranslate: Boolean = false,
val editedAt: Instant? = null,
val formattedEditAt: String? = null,
val application: PostingApplication? = null,
val filtered: List<BlogFiltered>? = null,
val isReply: Boolean = false,
) : PlatformSerializable {
val richTextType: RichTextType
get() {
if (platform.protocol.isActivityPub) return RichTextType.HTML
if (platform.protocol.isBluesky) return RichTextType.PLAINTEXT
if (platform.protocol.isRss) return RichTextType.HTML
return RichTextType.UNKNOWN
}
val humanizedSpoilerText: RichText by lazy {
buildRichText(
document = spoilerText,
type = richTextType,
mentions = mentions,
emojis = emojis,
hashTags = tags,
)
}
val humanizedContent: RichText by lazy {
buildRichText(
document = content,
type = richTextType,
mentions = mentions,
emojis = emojis,
hashTags = tags,
facets = facets,
)
}
val humanizedDescription: RichText by lazy {
buildRichText(
document = description.orEmpty(),
type = richTextType,
mentions = mentions,
emojis = emojis,
hashTags = tags,
)
}
val formattingDisplayTime: FormattingTime by lazy {
FormattingTime(createAt)
}
val sensitiveByFilter: Boolean
get() {
if (filtered.isNullOrEmpty()) return false
return filtered.any {
it.action == BlogFiltered.FilterAction.WARN || it.action == BlogFiltered.FilterAction.BLUR
}
}
@Serializable
data class Like(
val support: Boolean,
val likedCount: Long? = null,
val liked: Boolean? = null,
)
@Serializable
data class Forward(
val support: Boolean,
val forwardCount: Long? = null,
val forward: Boolean? = null,
)
@Serializable
data class Bookmark(
val support: Boolean,
val bookmarked: Boolean? = null,
)
@Serializable
data class Reply(
val support: Boolean,
val repliesCount: Long? = null,
)
@Serializable
data class Quote(
val support: Boolean,
val enabled: Boolean = false,
val currentUserApproval: CurrentUserQuoteApproval? = null,
)
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogEmbed.kt
================================================
package com.zhangke.fread.status.blog
import kotlinx.serialization.Serializable
@Serializable
sealed interface BlogEmbed {
@Serializable
data class Link(
val url: String,
val title: String,
val description: String,
val video: Boolean = false,
val authorName: String? = null,
val authorUrl: String? = null,
val providerName: String? = null,
val providerUrl: String? = null,
val html: String? = null,
val width: Int? = null,
val height: Int? = null,
val image: String? = null,
val embedUrl: String? = null,
val blurhash: String? = null,
) : BlogEmbed {
companion object {
private val standardRange = 0.5f..2f
private const val DEFAULT_ASPECT_RATIO = 2F
}
val aspectRatio: Float
get() {
if (width == null || height == null) return DEFAULT_ASPECT_RATIO
val ratio = width / height.toFloat()
if (ratio.isNaN() || ratio.isInfinite()) {
return DEFAULT_ASPECT_RATIO
}
if (ratio in standardRange) {
return ratio
}
return DEFAULT_ASPECT_RATIO
}
}
@Serializable
data class Blog(
val blog: com.zhangke.fread.status.blog.Blog,
) : BlogEmbed
@Serializable
data class UnavailableQuote(
val reason: String,
val blogId: String?,
) : BlogEmbed
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogMedia.kt
================================================
package com.zhangke.fread.status.blog
import com.zhangke.framework.utils.PlatformSerializable
import kotlinx.serialization.Serializable
@Serializable
data class BlogMedia(
val id: String,
val url: String,
val type: BlogMediaType,
val previewUrl: String?,
val remoteUrl: String?,
val description: String?,
val blurhash: String?,
val meta: BlogMediaMeta?,
): PlatformSerializable
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogMediaMeta.kt
================================================
package com.zhangke.fread.status.blog
import com.zhangke.framework.utils.PlatformSerializable
import kotlinx.serialization.Serializable
@Serializable
sealed class BlogMediaMeta: PlatformSerializable {
@Serializable
data class ImageMeta(
val original: LayoutMeta?,
val small: LayoutMeta?,
val focus: FocusMeta?,
) : BlogMediaMeta(), PlatformSerializable {
@Serializable
data class LayoutMeta(
val width: Long?,
val height: Long?,
val size: String?,
val aspect: Float?,
): PlatformSerializable
@Serializable
data class FocusMeta(
val x: Float?,
val y: Float?,
): PlatformSerializable
}
@Serializable
data class VideoMeta(
val length: String?,
val duration: Double?,
val fps: Int?,
val size: String?,
val width: Long?,
val height: Long?,
val aspect: Float?,
val audioEncode: String?,
val audioBitrate: String?,
val audioChannels: String?,
val original: LayoutMeta?,
val small: LayoutMeta?,
) : BlogMediaMeta(), PlatformSerializable {
@Serializable
data class LayoutMeta(
val width: Long?,
val height: Long?,
val size: String?,
val aspect: Float?,
val frameRate: String?,
val duration: Double?,
val bitrate: Int?,
): PlatformSerializable
}
@Serializable
data class GifvMeta(
val length: String?,
val duration: Double?,
val fps: Int?,
val size: String?,
val width: Int?,
val height: Int?,
val aspect: Float?,
val original: LayoutMeta?,
val small: LayoutMeta?,
) : BlogMediaMeta(), PlatformSerializable {
@Serializable
data class LayoutMeta(
val width: Long?,
val height: Long?,
val size: String?,
val aspect: Float?,
val frameRate: String?,
val duration: Double?,
val bitrate: Int?,
): PlatformSerializable
}
@Serializable
data class AudioMeta(
val length: String?,
val duration: Double?,
val audioEncode: String?,
val audioBitrate: String?,
val audioChannels: String?,
val original: FrameMeta?,
) : BlogMediaMeta(), PlatformSerializable {
@Serializable
data class FrameMeta(
val duration: Double?,
val bitrate: Int?,
): PlatformSerializable
}
}
fun BlogMediaMeta.asImageMeta(): BlogMediaMeta.ImageMeta = this as BlogMediaMeta.ImageMeta
fun BlogMediaMeta.asImageMetaOrNull(): BlogMediaMeta.ImageMeta? = this as? BlogMediaMeta.ImageMeta
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogMediaType.kt
================================================
package com.zhangke.fread.status.blog
enum class BlogMediaType {
UNKNOWN,
IMAGE,
GIFV,
VIDEO,
AUDIO,
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogPoll.kt
================================================
package com.zhangke.fread.status.blog
import com.zhangke.framework.utils.PlatformSerializable
import kotlinx.serialization.Serializable
@Serializable
data class BlogPoll(
val id: String,
/**
* ISO 8601 Datetime
*/
val expiresAt: String?,
val expired: Boolean,
/**
* Does the poll allow multiple-choice answers?
*/
val multiple: Boolean,
/**
* How many votes have been received.
*/
val votesCount: Int,
/**
* How many unique accounts have voted on a multiple-choice poll.
*/
val votersCount: Int,
val options: List<Option>,
val voted: Boolean?,
val ownVotes: List<Int>,
): PlatformSerializable {
@Serializable
data class Option(
val index: Int,
val title: String,
val votesCount: Int?,
): PlatformSerializable
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogServer.kt
================================================
package com.zhangke.fread.status.blog
data class BlogServer(
val baseUrl: String,
val name: String,
val description: String,
val avatar: String?,
val protocol: String,
)
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogTranslation.kt
================================================
package com.zhangke.fread.status.blog
import com.zhangke.framework.utils.PlatformSerializable
import com.zhangke.fread.status.richtext.RichText
import com.zhangke.fread.status.richtext.buildRichText
import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
@Serializable
data class BlogTranslation(
val content: String,
val spoilerText: String,
val poll: Poll?,
val attachments: List<Attachment>?,
val detectedSourceLanguage: String,
val provider: String,
) : PlatformSerializable {
@Transient
private var humanizedSpoilerText: RichText? = null
@Transient
private var humanizedContent: RichText? = null
fun getHumanizedSpoilerText(blog: Blog): RichText {
if (humanizedSpoilerText != null) return humanizedSpoilerText!!
return buildRichText(
document = spoilerText,
mentions = blog.mentions,
emojis = blog.emojis,
hashTags = blog.tags,
).also { humanizedSpoilerText = it }
}
fun getHumanizedContent(blog: Blog): RichText {
if (humanizedContent != null) return humanizedContent!!
return buildRichText(
document = content,
mentions = blog.mentions,
emojis = blog.emojis,
hashTags = blog.tags,
).also { humanizedContent = it }
}
@Serializable
data class Poll(
val id: String,
val options: List<Option>,
) : PlatformSerializable {
@Serializable
data class Option(
val title: String,
)
}
@Serializable
data class Attachment(
val id: String,
val description: String,
) : PlatformSerializable
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/CurrentUserQuoteApproval.kt
================================================
package com.zhangke.fread.status.blog
import kotlinx.serialization.Serializable
@Serializable
enum class CurrentUserQuoteApproval {
AUTOMATIC,
MANUAL,
DENIED,
UNKNOWN;
val quotable: Boolean get() = this == AUTOMATIC || this == MANUAL
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/PostingApplication.kt
================================================
package com.zhangke.fread.status.blog
import com.zhangke.framework.utils.PlatformSerializable
import kotlinx.serialization.Serializable
@Serializable
data class PostingApplication(
val name: String,
val website: String?,
) : PlatformSerializable
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/content/ContentManager.kt
================================================
package com.zhangke.fread.status.content
import androidx.navigation3.runtime.NavKey
import com.zhangke.framework.composable.TextString
import com.zhangke.fread.status.model.ContentConfig
import com.zhangke.fread.status.model.FreadContent
import com.zhangke.fread.status.platform.BlogPlatform
class ContentManager(
private val providerList: List<IContentManager>
) {
suspend fun addContent(
platform: BlogPlatform,
action: AddContentAction,
) {
providerList.forEach { it.addContent(platform, action) }
}
fun restoreContent(config: ContentConfig): FreadContent? {
return providerList.firstNotNullOfOrNull { it.restoreContent(config) }
}
}
interface IContentManager {
suspend fun addContent(platform: BlogPlatform, action: AddContentAction)
fun restoreContent(config: ContentConfig): FreadContent?
}
data class AddContentAction(
val onShowSnackBarMessage: suspend (TextString) -> Unit,
val onFinishPage: suspend () -> Unit,
val onOpenNewPage: suspend (NavKey) -> Unit,
)
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/content/MixedContent.kt
================================================
package com.zhangke.fread.status.content
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.AnnotatedString
import androidx.compose.ui.text.SpanStyle
import androidx.compose.ui.text.buildAnnotatedString
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.sp
import com.zhangke.fread.localization.LocalizedString
import com.zhangke.fread.status.account.LoggedAccount
import com.zhangke.fread.status.model.FreadContent
import com.zhangke.fread.status.uri.FormalUri
import kotlinx.serialization.Serializable
import org.jetbrains.compose.resources.stringResource
@Serializable
data class MixedContent(
override val id: String,
override val order: Int,
override val name: String,
val sourceUriList: List<FormalUri>,
) : FreadContent {
override val accountUri: FormalUri? = null
override fun newOrder(newOrder: Int): FreadContent {
return copy(order = newOrder)
}
@Composable
override fun Subtitle(account: LoggedAccount?) {
Text(
modifier = Modifier,
text = buildSubtitle(),
style = MaterialTheme.typography.labelMedium,
maxLines = 1,
overflow = TextOverflow.Ellipsis,
)
}
@Composable
private fun buildSubtitle(): AnnotatedString {
return buildAnnotatedString {
val prefix = stringResource(LocalizedString.mixed_content_subtitle_1)
val suffix = stringResource(LocalizedString.mixed_content_subtitle_2)
append(prefix)
val sizeString = " " + sourceUriList.size.toString() + " "
append(sizeString)
addStyle(
style = SpanStyle(
fontSize = 14.sp,
fontWeight = FontWeight.Medium,
),
start = prefix.length,
end = prefix.length + sizeString.length,
)
append(suffix)
}
}
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/BlogFiltered.kt
================================================
package com.zhangke.fread.status.model
import kotlinx.serialization.Serializable
@Serializable
data class BlogFiltered(
val id: String,
val title: String,
val action: FilterAction,
val keywordMatches: List<String>,
) {
enum class FilterAction {
WARN,
HIDE,
BLUR,
}
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/ContentConfig.kt
================================================
package com.zhangke.fread.status.model
import com.zhangke.framework.network.FormalBaseUrl
import com.zhangke.fread.status.uri.FormalUri
import kotlinx.serialization.Serializable
@Serializable
sealed interface ContentConfig {
val id: Long
val order: Int
val configName: String
get() = when (this) {
is MixedContent -> name
is ActivityPubContent -> name
is BlueskyContent -> name
}
@Serializable
data class MixedContent(
override val id: Long,
override val order: Int,
val name: String,
val sourceUriList: List<FormalUri>,
) : ContentConfig
@Serializable
data class ActivityPubContent(
override val id: Long,
override val order: Int,
val name: String,
val baseUrl: FormalBaseUrl,
val showingTabList: List<ContentTab>,
val hiddenTabList: List<ContentTab>,
) : ContentConfig {
// hidden 列表中的 order 字段可能没有意义,因为并不会按照它在首页排序
@Serializable
sealed class ContentTab {
abstract val order: Int
abstract fun newOrder(order: Int): ContentTab
@Serializable
data class HomeTimeline(
override val order: Int,
) : ContentTab() {
override fun newOrder(order: Int): ContentTab {
return copy(order = order)
}
}
@Serializable
data class LocalTimeline(
override val order: Int,
) : ContentTab() {
override fun newOrder(order: Int): ContentTab {
return copy(order = order)
}
}
@Serializable
data class PublicTimeline(
override val order: Int,
) : ContentTab() {
override fun newOrder(order: Int): ContentTab {
return copy(order = order)
}
}
@Serializable
data class Trending(
override val order: Int,
) : ContentTab() {
override fun newOrder(order: Int): ContentTab {
return copy(order = order)
}
}
@Serializable
data class ListTimeline(
val listId: String,
val name: String,
override val order: Int,
) : ContentTab() {
override fun newOrder(order: Int): ContentTab {
return copy(order = order)
}
}
}
}
@Serializable
data class BlueskyContent(
override val id: Long,
override val order: Int,
val name: String,
val baseUrl: FormalBaseUrl,
val tabList: List<BlueskyTab>,
) : ContentConfig {
@Serializable
sealed interface BlueskyTab {
val order: Int
val title: String
val hide: Boolean
@Serializable
data class FollowingTab(
override val title: String,
override val order: Int,
override val hide: Boolean,
) : BlueskyTab {
companion object {
fun default(): FollowingTab {
return FollowingTab(
title = "Following",
order = 0,
hide = false,
)
}
}
}
@Serializable
data class FeedsTab(
val feedUri: String,
override val title: String,
override val order: Int,
override val hide: Boolean,
) : BlueskyTab
@Serializable
data class ListTab(
val listUri: String,
override val title: String,
override val order: Int,
override val hide: Boolean,
) : BlueskyTab
}
}
}
fun List<ContentConfig.ActivityPubContent.ContentTab>.dropNotExistListTab(
allListId: Set<String>
): List<ContentConfig.ActivityPubContent.ContentTab> {
return this.filter {
if (it is ContentConfig.ActivityPubContent.ContentTab.ListTimeline) {
it.listId in allListId
} else {
true
}
}
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/ContentType.kt
================================================
package com.zhangke.fread.status.model
enum class ContentType {
MIXED,
ACTIVITY_PUB,
BLUESKY,
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/Emoji.kt
================================================
package com.zhangke.fread.status.model
import com.zhangke.framework.utils.PlatformSerializable
import kotlinx.serialization.Serializable
@Serializable
data class Emoji(
val shortcode: String,
val url: String,
val staticUrl: String,
): PlatformSerializable
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/FacetFeatureUnion.kt
================================================
package com.zhangke.fread.status.model
import kotlinx.serialization.Serializable
@Serializable
data class Facet(
val byteStart: Long,
val byteEnd: Long,
val features: List<FacetFeatureUnion>,
)
@Serializable
sealed interface FacetFeatureUnion {
@Serializable
data class Mention(val did: String) : FacetFeatureUnion
@Serializable
data class Tag(val tag: String) : FacetFeatureUnion
@Serializable
data class Link(val uri: String) : FacetFeatureUnion
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/FormattingTime.kt
================================================
package com.zhangke.fread.status.model
import androidx.compose.runtime.Composable
import com.zhangke.framework.datetime.Instant
import com.zhangke.framework.utils.PlatformSerializable
import com.zhangke.fread.status.utils.DateTimeFormatter
import com.zhangke.fread.status.utils.defaultFormatConfig
import com.zhangke.fread.status.utils.defaultUiFormatConfig
import kotlinx.serialization.Serializable
@Serializable
data class FormattingTime(val time: Instant): PlatformSerializable {
private var _formattedTime: String? = null
@Composable
fun formattedTime(): String {
if (!_formattedTime.isNullOrEmpty()) return _formattedTime!!
_formattedTime = DateTimeFormatter.format(time.epochMillis, defaultUiFormatConfig())
return _formattedTime!!
}
suspend fun parse(): String {
if (!_formattedTime.isNullOrEmpty()) return _formattedTime!!
_formattedTime = DateTimeFormatter.format(time.epochMillis, defaultFormatConfig())
return _formattedTime!!
}
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/FreadContent.kt
================================================
package com.zhangke.fread.status.model
import androidx.compose.runtime.Composable
import com.zhangke.fread.status.account.LoggedAccount
import com.zhangke.fread.status.uri.FormalUri
interface FreadContent {
val id: String
val order: Int
val name: String
val accountUri: FormalUri?
fun newOrder(newOrder: Int): FreadContent
@Composable
fun Subtitle(account: LoggedAccount?)
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/Hashtag.kt
================================================
package com.zhangke.fread.status.model
import com.zhangke.framework.composable.TextString
data class Hashtag(
val name: String,
val url: String,
val description: TextString,
val history: History,
val following: Boolean,
val protocol: StatusProviderProtocol,
) {
data class History(
val history: List<Float>,
val min: Float?,
val max: Float?,
)
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/HashtagInStatus.kt
================================================
package com.zhangke.fread.status.model
import com.zhangke.framework.utils.PlatformSerializable
import kotlinx.serialization.Serializable
@Serializable
data class HashtagInStatus(
val name: String,
val url: String,
val protocol: StatusProviderProtocol,
): PlatformSerializable
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/LoggedAccountDetail.kt
================================================
package com.zhangke.fread.status.model
import com.zhangke.fread.status.account.LoggedAccount
import com.zhangke.fread.status.author.BlogAuthor
data class LoggedAccountDetail(
val account: LoggedAccount,
val author: BlogAuthor,
)
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/Mention.kt
================================================
package com.zhangke.fread.status.model
import com.zhangke.framework.utils.PlatformSerializable
import com.zhangke.framework.utils.WebFinger
import kotlinx.serialization.Serializable
@Serializable
data class Mention(
val id: String,
val username: String,
val url: String,
val webFinger: WebFinger,
val protocol: StatusProviderProtocol,
): PlatformSerializable
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/PagedData.kt
================================================
package com.zhangke.fread.status.model
import kotlinx.serialization.Serializable
@Serializable
data class PagedData<T>(
val list: List<T>,
val cursor: String?,
)
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/PlatformLocator.kt
================================================
package com.zhangke.fread.status.model
import com.zhangke.framework.network.FormalBaseUrl
import com.zhangke.framework.utils.Parcelize
import com.zhangke.framework.utils.PlatformParcelable
import com.zhangke.framework.utils.PlatformSerializable
import com.zhangke.fread.status.uri.FormalUri
import kotlinx.serialization.Serializable
@Parcelize
@Serializable
data class PlatformLocator(
val baseUrl: FormalBaseUrl,
val accountUri: FormalUri? = null,
) : PlatformParcelable, PlatformSerializable
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/PostInteractionSetting.kt
================================================
package com.zhangke.fread.status.model
data class PostInteractionSetting(
val allowQuote: Boolean,
val replySetting: ReplySetting,
) {
companion object {
fun default(): PostInteractionSetting {
return PostInteractionSetting(
allowQuote = true,
replySetting = ReplySetting.Everybody,
)
}
}
}
sealed interface ReplySetting {
data object Nobody : ReplySetting
data object Everybody : ReplySetting
data class Combined(val options: List<CombineOption>) : ReplySetting
val combinedMentions: Boolean
get() = this is Combined && options.contains(CombineOption.Mentioned)
val combinedFollowing: Boolean
get() = this is Combined && options.contains(CombineOption.Following)
val combinedFollowers: Boolean
get() = this is Combined && options.contains(CombineOption.Followers)
sealed interface CombineOption {
data object Mentioned : CombineOption
data object Following : CombineOption
data object Followers : CombineOption
data class UserInList(val listView: StatusList) : CombineOption
}
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/PublishBlogRules.kt
================================================
package com.zhangke.fread.status.model
data class PublishBlogRules(
val maxCharacters: Int,
val maxMediaCount: Int,
val mediaAltMaxCharacters: Int,
val maxPollOptions: Int,
val supportSpoiler: Boolean,
val supportPoll: Boolean,
val maxLanguageCount: Int,
)
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/QuoteApprovalPolicy.kt
================================================
package com.zhangke.fread.status.model
import kotlinx.serialization.Serializable
@Serializable
enum class QuoteApprovalPolicy {
PUBLIC,
FOLLOWERS,
FOLLOWING,
NOBODY,
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/Relationships.kt
================================================
package com.zhangke.fread.status.model
import kotlinx.serialization.Serializable
@Serializable
data class Relationships(
val blocking: Boolean,
val blockedBy: Boolean,
val following: Boolean,
val followedBy: Boolean,
val muting: Boolean,
val requested: Boolean?,
val requestedBy: Boolean?,
) {
companion object {
fun default(
blocking: Boolean = false,
blockedBy: Boolean = false,
following: Boolean = false,
followedBy: Boolean = false,
muting: Boolean = false,
requested: Boolean? = null,
requestedBy: Boolean? = null,
): Relationships {
return Relationships(
blocking = blocking,
blockedBy = blockedBy,
following = following,
followedBy = followedBy,
muting = muting,
requested = requested,
requestedBy = requestedBy,
)
}
}
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/StatusActionType.kt
================================================
package com.zhangke.fread.status.model
enum class StatusActionType {
LIKE,
FORWARD,
BOOKMARK,
REPLY,
DELETE,
SHARE,
PIN,
EDIT,
QUOTE,
}
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/StatusList.kt
================================================
package com.zhangke.fread.status.model
data class StatusList(
val name: String,
val cid: String,
val uri: String,
)
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/StatusProviderProtocol.kt
================================================
package com.zhangke.fread.status.model
import com.zhangke.framework.utils.Parcelize
import com.zhangke.framework.utils.PlatformParcelable
import com.zhangke.framework.utils.PlatformSerializable
import kotlinx.serialization.Serializable
const val ACTIVITY_PUB_PROTOCOL_ID = "ActivityPub"
const val RSS_PROTOCOL_ID = "RSS"
const val BLUESKY_PROTOCOL_ID = "Bluesky"
@Serializable
@Parcelize
data class StatusProviderProtocol(
val id: String,
val name: String,
) : PlatformParcelable, PlatformSerializable
fun createActivityPubProtocol(): StatusProviderProtocol {
return StatusProviderProtocol(
id = ACTIVITY_PUB_PROTOCOL_ID,
name = "Mastodon",
)
}
fun createBlueskyProtocol(): StatusProviderProtocol {
return StatusProviderProtocol(
id = BLUESKY_PROTOCOL_ID,
name = "Bluesky",
)
}
fun createRssProtocol(): StatusProviderProtocol {
return StatusProviderProtocol(
id = RSS_PROTOCOL_ID,
name = "RSS",
)
}
val StatusProviderProtocol.isActivityPub: Boolean
get() = id == ACTIVITY_PUB_PROTOCOL_ID
val StatusProviderProtocol.notActivityPub: Boolean
get() = !isActivityPub
val StatusProviderProtocol.isRss: Boolean
get() = id == RSS_PROTOCOL_ID
val StatusProviderProtocol.notRss: Boolean
get() = !isRss
val StatusProviderProtocol.isBluesky: Boolean
get() = id == BLUESKY_PROTOCOL_ID
val StatusProviderProtocol.notBluesky: Boolean
get() = !isBluesky
================================================
FILE: bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/StatusUiState.kt
================================================
package com.zhangke.fread.status.model
import com.zhangke.framework.utils.PlatformSerializable
import com.zha
gitextract_2f1tk_0x/
├── .codex/
│ └── skills/
│ ├── screen2navkey/
│ │ └── SKILL.md
│ └── voyager2nav3/
│ └── SKILL.md
├── .editorconfig
├── .github/
│ ├── FUNDING.yml
│ ├── ci-gradle.properties
│ └── workflows/
│ ├── build_apk.yml
│ └── check.yml
├── .gitignore
├── Agents.md
├── LICENSE
├── README.md
├── app/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── proguard-rules.pro
│ └── src/
│ └── main/
│ ├── AndroidManifest.xml
│ ├── java/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ ├── FreadAndroidApplication.kt
│ │ └── screen/
│ │ └── FreadActivity.kt
│ └── res/
│ ├── drawable/
│ │ ├── ic_launcher_foreground.xml
│ │ └── shape_alert_dialog_background.xml
│ ├── mipmap-anydpi-v26/
│ │ ├── ic_launcher.xml
│ │ └── ic_launcher_round.xml
│ ├── values/
│ │ ├── colors.xml
│ │ ├── ic_launcher_background.xml
│ │ ├── strings.xml
│ │ └── themes.xml
│ └── values-zh/
│ └── strings.xml
├── app-hosting/
│ ├── build.gradle.kts
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ ├── HostingApplication.kt
│ │ ├── composable/
│ │ │ └── LoadingPage.android.kt
│ │ ├── di/
│ │ │ ├── HostingModule.android.kt
│ │ │ └── PlatformedFreadApplication.android.kt
│ │ ├── screen/
│ │ │ └── DeviceCornerRadius.android.kt
│ │ └── utils/
│ │ └── ActivityHelper.android.kt
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ ├── CommonNavEntryProvider.kt
│ │ ├── auth/
│ │ │ └── AuthenticationPage.kt
│ │ ├── composable/
│ │ │ └── LoadingPage.kt
│ │ ├── di/
│ │ │ ├── FreadApplication.kt
│ │ │ └── HostingModule.kt
│ │ ├── screen/
│ │ │ ├── DeviceCornerRadius.kt
│ │ │ ├── FreadApp.kt
│ │ │ ├── FreadScreen.kt
│ │ │ ├── NavDisplayTransitions.kt
│ │ │ ├── PredictiveBackEntryDecorator.kt
│ │ │ └── main/
│ │ │ ├── MainPageUiState.kt
│ │ │ ├── MainViewModel.kt
│ │ │ └── drawer/
│ │ │ ├── MainDrawer.kt
│ │ │ ├── MainDrawerUiState.kt
│ │ │ └── MainDrawerViewModel.kt
│ │ └── utils/
│ │ └── ActivityHelper.kt
│ └── iosMain/
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── fread/
│ ├── di/
│ │ ├── HostingModule.ios.kt
│ │ └── PlatformedFreadApplication.ios.kt
│ ├── screen/
│ │ ├── DeviceCornerRadius.ios.kt
│ │ ├── FreadViewController.kt
│ │ └── IosFreadApp.kt
│ ├── startup/
│ │ └── KRouterStartup.kt
│ └── utils/
│ └── ActivityHelper.ios.kt
├── appprivacy.html
├── bizframework/
│ └── status-provider/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── consumer-rules.pro
│ ├── proguard-rules.pro
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── status/
│ │ ├── richtext/
│ │ │ └── RichTextBuilder.android.kt
│ │ └── utils/
│ │ └── ImplementerFinder.kt
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── status/
│ │ ├── StatusProvider.kt
│ │ ├── StatusProviderModel.kt
│ │ ├── account/
│ │ │ ├── AccountManager.kt
│ │ │ ├── AuthenticationFailureException.kt
│ │ │ └── LoggedAccount.kt
│ │ ├── author/
│ │ │ └── BlogAuthor.kt
│ │ ├── blog/
│ │ │ ├── Blog.kt
│ │ │ ├── BlogEmbed.kt
│ │ │ ├── BlogMedia.kt
│ │ │ ├── BlogMediaMeta.kt
│ │ │ ├── BlogMediaType.kt
│ │ │ ├── BlogPoll.kt
│ │ │ ├── BlogServer.kt
│ │ │ ├── BlogTranslation.kt
│ │ │ ├── CurrentUserQuoteApproval.kt
│ │ │ └── PostingApplication.kt
│ │ ├── content/
│ │ │ ├── ContentManager.kt
│ │ │ └── MixedContent.kt
│ │ ├── model/
│ │ │ ├── BlogFiltered.kt
│ │ │ ├── ContentConfig.kt
│ │ │ ├── ContentType.kt
│ │ │ ├── Emoji.kt
│ │ │ ├── FacetFeatureUnion.kt
│ │ │ ├── FormattingTime.kt
│ │ │ ├── FreadContent.kt
│ │ │ ├── Hashtag.kt
│ │ │ ├── HashtagInStatus.kt
│ │ │ ├── LoggedAccountDetail.kt
│ │ │ ├── Mention.kt
│ │ │ ├── PagedData.kt
│ │ │ ├── PlatformLocator.kt
│ │ │ ├── PostInteractionSetting.kt
│ │ │ ├── PublishBlogRules.kt
│ │ │ ├── QuoteApprovalPolicy.kt
│ │ │ ├── Relationships.kt
│ │ │ ├── StatusActionType.kt
│ │ │ ├── StatusList.kt
│ │ │ ├── StatusProviderProtocol.kt
│ │ │ ├── StatusUiState.kt
│ │ │ └── StatusVisibility.kt
│ │ ├── notification/
│ │ │ ├── NotificationResolver.kt
│ │ │ └── StatusNotification.kt
│ │ ├── platform/
│ │ │ ├── BlogPlatform.kt
│ │ │ ├── PlatformResolver.kt
│ │ │ └── PlatformSnapshot.kt
│ │ ├── publish/
│ │ │ ├── PublishBlogManager.kt
│ │ │ └── PublishingPost.kt
│ │ ├── richtext/
│ │ │ ├── OnLinkTargetClick.kt
│ │ │ ├── RichText.kt
│ │ │ ├── RichTextBuilder.kt
│ │ │ ├── model/
│ │ │ │ └── RichLinkTarget.kt
│ │ │ └── parser/
│ │ │ ├── HtmlParser.kt
│ │ │ └── PlaintextParser.kt
│ │ ├── screen/
│ │ │ └── StatusScreenProvider.kt
│ │ ├── search/
│ │ │ ├── SearchContentResult.kt
│ │ │ ├── SearchEngine.kt
│ │ │ └── SearchResult.kt
│ │ ├── source/
│ │ │ ├── StatusSource.kt
│ │ │ └── StatusSourceResolver.kt
│ │ ├── status/
│ │ │ ├── StatusResolver.kt
│ │ │ └── model/
│ │ │ ├── Status.kt
│ │ │ └── StatusContext.kt
│ │ ├── uri/
│ │ │ ├── FormalUri.kt
│ │ │ └── FormalUriParser.kt
│ │ └── utils/
│ │ ├── DateTimeFormatter.kt
│ │ └── ResultKtx.kt
│ └── commonTest/
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── fread/
│ └── status/
│ ├── richtext/
│ │ └── parser/
│ │ └── HtmlParserTest.kt
│ └── uri/
│ └── FormalUriTest.kt
├── build-logic/
│ ├── README.md
│ ├── convention/
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ └── main/
│ │ └── kotlin/
│ │ ├── AndroidApplicationConventionPlugin.kt
│ │ ├── AndroidLibraryConventionPlugin.kt
│ │ ├── ComposeMultiPlatformConventionPlugin.kt
│ │ ├── KotlinMultiplatformLibraryConventionPlugin.kt
│ │ ├── Project.kt
│ │ ├── ProjectFeatureKmpConventionPlugin.kt
│ │ ├── ProjectFrameworkKmpConventionPlugin.kt
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ ├── KotlinAndroid.kt
│ │ ├── PrintTestApks.kt
│ │ └── ProjectExt.kt
│ ├── gradle.properties
│ └── settings.gradle.kts
├── build.gradle.kts
├── commonbiz/
│ ├── analytics/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── consumer-rules.pro
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── analytics/
│ │ ├── Analytics.kt
│ │ ├── EventNames.kt
│ │ └── TrackingEventDataBuilder.kt
│ ├── common/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── kotlin/
│ │ │ │ └── com/
│ │ │ │ └── zhangke/
│ │ │ │ └── fread/
│ │ │ │ └── common/
│ │ │ │ ├── AndroidCommonModule.kt
│ │ │ │ ├── browser/
│ │ │ │ │ ├── AndroidSystemBrowserLauncher.kt
│ │ │ │ │ └── OAuthLauncher.android.kt
│ │ │ │ ├── daynight/
│ │ │ │ │ └── DayNightPlatformHelper.android.kt
│ │ │ │ ├── di/
│ │ │ │ │ └── ApplicationContext.kt
│ │ │ │ ├── handler/
│ │ │ │ │ └── TextHandler.android.kt
│ │ │ │ ├── language/
│ │ │ │ │ ├── ActivityLanguageHelper.android.kt
│ │ │ │ │ └── LanguageHelper.android.kt
│ │ │ │ ├── page/
│ │ │ │ │ └── BasePagerTabHookManager.android.kt
│ │ │ │ ├── startup/
│ │ │ │ │ └── LanguageModuleStartup.kt
│ │ │ │ ├── update/
│ │ │ │ │ └── AppPlatformUpdater.android.kt
│ │ │ │ └── utils/
│ │ │ │ ├── ActivityResultUtils.kt
│ │ │ │ ├── MediaFileHelper.android.kt
│ │ │ │ ├── PlatformUriHelper.android.kt
│ │ │ │ ├── RandomIdGenerator.android.kt
│ │ │ │ ├── ShareHelper.kt
│ │ │ │ ├── StorageHelper.android.kt
│ │ │ │ └── ToastHelper.android.kt
│ │ │ └── res/
│ │ │ ├── anim/
│ │ │ │ ├── fade_in.xml
│ │ │ │ └── fade_out.xml
│ │ │ ├── drawable/
│ │ │ │ └── ic_logo_skeleton.xml
│ │ │ └── values/
│ │ │ ├── colors.xml
│ │ │ └── theme.xml
│ │ ├── commonMain/
│ │ │ ├── composeResources/
│ │ │ │ └── drawable/
│ │ │ │ ├── bluesky_logo.xml
│ │ │ │ ├── ic_explorer.xml
│ │ │ │ ├── ic_not_found_404.xml
│ │ │ │ ├── mastodon_black_text.xml
│ │ │ │ ├── mastodon_logo.xml
│ │ │ │ └── mastodon_white_text.xml
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── common/
│ │ │ ├── CommonModule.kt
│ │ │ ├── CommonNavEntryProvider.kt
│ │ │ ├── CommonStartup.kt
│ │ │ ├── MixedContentJsonBuilder.kt
│ │ │ ├── account/
│ │ │ │ └── ActiveAccountsSynchronizer.kt
│ │ │ ├── action/
│ │ │ │ ├── ComposableActions.kt
│ │ │ │ ├── RouteAction.kt
│ │ │ │ └── RouteActions.kt
│ │ │ ├── adapter/
│ │ │ │ └── StatusUiStateAdapter.kt
│ │ │ ├── browser/
│ │ │ │ ├── BrowserInterceptor.kt
│ │ │ │ ├── BrowserLauncher.kt
│ │ │ │ ├── OAuthHandler.kt
│ │ │ │ ├── SystemBrowserLauncher.kt
│ │ │ │ └── UrlRedirectScreen.kt
│ │ │ ├── bubble/
│ │ │ │ ├── Bubble.kt
│ │ │ │ └── BubbleManager.kt
│ │ │ ├── composable/
│ │ │ │ ├── EmptyContent.kt
│ │ │ │ ├── ErrorContent.kt
│ │ │ │ └── SelectableAccount.kt
│ │ │ ├── config/
│ │ │ │ ├── AppCommonConfig.kt
│ │ │ │ ├── FreadConfigManager.kt
│ │ │ │ ├── LocalConfigManager.kt
│ │ │ │ ├── StatusConfig.kt
│ │ │ │ ├── StatusContentSize.kt
│ │ │ │ └── TimelineDefaultPosition.kt
│ │ │ ├── content/
│ │ │ │ ├── FreadContentDbMigrateManager.kt
│ │ │ │ └── FreadContentRepo.kt
│ │ │ ├── daynight/
│ │ │ │ ├── DayNightHelper.kt
│ │ │ │ └── DayNightMode.kt
│ │ │ ├── db/
│ │ │ │ ├── ContentConfigDatabases.kt
│ │ │ │ ├── FreadContentDatabase.kt
│ │ │ │ ├── MixedStatusDatabases.kt
│ │ │ │ ├── converts/
│ │ │ │ │ ├── BlogMediaConverterHelper.kt
│ │ │ │ │ ├── BlogMediaListConverter.kt
│ │ │ │ │ ├── BlogPollConverter.kt
│ │ │ │ │ ├── ContentTabConverter.kt
│ │ │ │ │ ├── ContentTypeConverter.kt
│ │ │ │ │ ├── FormalBaseUrlConverter.kt
│ │ │ │ │ ├── FormalUriConverter.kt
│ │ │ │ │ ├── FreadContentConverter.kt
│ │ │ │ │ ├── PlatformLocatorConverter.kt
│ │ │ │ │ ├── StatusConverter.kt
│ │ │ │ │ ├── StatusNotificationConverter.kt
│ │ │ │ │ ├── StatusProviderUriListConverter.kt
│ │ │ │ │ └── StatusUiStateConverter.kt
│ │ │ │ └── old/
│ │ │ │ └── OldFreadContentDatabase.kt
│ │ │ ├── deeplink/
│ │ │ │ ├── ExternalInputHandler.kt
│ │ │ │ ├── ExternalInputParser.kt
│ │ │ │ ├── SelectAccountScreen.kt
│ │ │ │ └── SelectedContentSwitcher.kt
│ │ │ ├── di/
│ │ │ │ └── ApplicationCoroutineScope.kt
│ │ │ ├── feeds/
│ │ │ │ └── model/
│ │ │ │ └── RefreshResult.kt
│ │ │ ├── handler/
│ │ │ │ └── TextHandler.kt
│ │ │ ├── language/
│ │ │ │ ├── LanguageHelper.kt
│ │ │ │ └── LanguageSettingItem.kt
│ │ │ ├── mixed/
│ │ │ │ └── MixedStatusRepo.kt
│ │ │ ├── onboarding/
│ │ │ │ └── OnboardingComponent.kt
│ │ │ ├── page/
│ │ │ │ └── BasePagerTabHookManager.kt
│ │ │ ├── publish/
│ │ │ │ └── PublishPostManager.kt
│ │ │ ├── push/
│ │ │ │ └── IPushManager.kt
│ │ │ ├── repo/
│ │ │ │ └── LinkPreviewCardRepo.kt
│ │ │ ├── resources/
│ │ │ │ └── ProtocolsSymbol.kt
│ │ │ ├── review/
│ │ │ │ ├── DefaultAppStoreReviewer.kt
│ │ │ │ └── FreadReviewManager.kt
│ │ │ ├── startup/
│ │ │ │ ├── FeedsRepoModuleStartup.kt
│ │ │ │ ├── FreadConfigModuleStartup.kt
│ │ │ │ └── StartupManager.kt
│ │ │ ├── status/
│ │ │ │ ├── StatusConfiguration.kt
│ │ │ │ ├── StatusIdGenerator.kt
│ │ │ │ ├── StatusUpdater.kt
│ │ │ │ ├── adapter/
│ │ │ │ │ └── ContentConfigAdapter.kt
│ │ │ │ ├── model/
│ │ │ │ │ └── SearchResultUiState.kt
│ │ │ │ └── usecase/
│ │ │ │ └── FormatStatusDisplayTimeUseCase.kt
│ │ │ ├── theme/
│ │ │ │ └── ThemeType.kt
│ │ │ ├── update/
│ │ │ │ ├── AppPlatformUpdater.kt
│ │ │ │ ├── AppReleaseInfo.kt
│ │ │ │ └── AppUpdateManager.kt
│ │ │ └── utils/
│ │ │ ├── GlobalScreenNavigation.kt
│ │ │ ├── HashtagTextUtils.kt
│ │ │ ├── InstantExt.kt
│ │ │ ├── LinkTextUtils.kt
│ │ │ ├── ListStringConverter.kt
│ │ │ ├── MediaFileHelper.kt
│ │ │ ├── MentionTextUtil.kt
│ │ │ ├── PlatformUriHelper.kt
│ │ │ ├── RandomIdGenerator.kt
│ │ │ ├── StorageHelper.kt
│ │ │ ├── ToastHelper.kt
│ │ │ └── WebFingerConverter.kt
│ │ ├── commonTest/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── common/
│ │ │ ├── status/
│ │ │ │ └── utils/
│ │ │ │ └── createStatus.kt
│ │ │ └── utils/
│ │ │ ├── DateTimeFormatterTest.kt
│ │ │ ├── FormalUriTest.kt
│ │ │ └── HashtagTextUtilsTest.kt
│ │ └── iosMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── common/
│ │ ├── CommonIosModule.kt
│ │ ├── browser/
│ │ │ ├── IosSystemBrowserLauncher.kt
│ │ │ └── OAuthLauncher.ios.kt
│ │ ├── daynight/
│ │ │ └── DayNightPlatformHelper.ios.kt
│ │ ├── handler/
│ │ │ └── TextHandler.ios.kt
│ │ ├── language/
│ │ │ └── LanguageHelper.ios.kt
│ │ ├── page/
│ │ │ └── BasePagerTabHookManager.ios.kt
│ │ ├── update/
│ │ │ └── AppPlatformUpdater.ios.kt
│ │ └── utils/
│ │ ├── MediaFileHelper.ios.kt
│ │ ├── PlatformUriHelper.ios.kt
│ │ ├── RandomIdGenerator.ios.kt
│ │ ├── StorageHelper.ios.kt
│ │ ├── SystemUtils.kt
│ │ └── ToastHelper.ios.kt
│ ├── sharedscreen/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── commonbiz/
│ │ │ └── shared/
│ │ │ ├── SharedScreenAndroidEntryProvider.kt
│ │ │ ├── SharedScreenAndroidModule.kt
│ │ │ ├── composable/
│ │ │ │ └── WebViewPreviewer.android.kt
│ │ │ └── screen/
│ │ │ └── ImageViewerScreen.android.kt
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── commonbiz/
│ │ │ └── shared/
│ │ │ ├── ModuleScreenVisitor.kt
│ │ │ ├── SharedScreenModule.kt
│ │ │ ├── SharedScreenNavEntryProvider.kt
│ │ │ ├── blog/
│ │ │ │ └── detail/
│ │ │ │ ├── RssBlogDetailScreen.kt
│ │ │ │ └── RssBlogDetailViewModel.kt
│ │ │ ├── composable/
│ │ │ │ ├── BlogUi.kt
│ │ │ │ ├── FeedsContent.kt
│ │ │ │ ├── FeedsStatusNode.kt
│ │ │ │ ├── ObserveForFeedsConnection.kt
│ │ │ │ ├── OnBlogMediaClick.kt
│ │ │ │ ├── SearchResultUi.kt
│ │ │ │ ├── UserInfoCard.kt
│ │ │ │ └── WebViewPreviewer.kt
│ │ │ ├── db/
│ │ │ │ └── SelectedAccountPublishingDatabase.kt
│ │ │ ├── feeds/
│ │ │ │ ├── CommonFeedsUiState.kt
│ │ │ │ ├── FeedsViewModelController.kt
│ │ │ │ ├── IFeedsViewModelController.kt
│ │ │ │ ├── IInteractiveHandler.kt
│ │ │ │ ├── InteractiveHandleResult.kt
│ │ │ │ └── InteractiveHandler.kt
│ │ │ ├── notification/
│ │ │ │ ├── FollowNotification.kt
│ │ │ │ ├── FollowRequestNotification.kt
│ │ │ │ ├── NotificationHeadLine.kt
│ │ │ │ ├── NotificationWithWholeStatus.kt
│ │ │ │ ├── SeveredRelationshipsNotification.kt
│ │ │ │ ├── StatusNotificationUi.kt
│ │ │ │ └── UnknownNotification.kt
│ │ │ ├── repo/
│ │ │ │ └── SelectedAccountPublishingRepo.kt
│ │ │ ├── screen/
│ │ │ │ ├── ImageViewerScreen.kt
│ │ │ │ ├── SelectLanguageScreen.kt
│ │ │ │ ├── publish/
│ │ │ │ │ ├── PublishBlogScreen.kt
│ │ │ │ │ ├── PublishBlogUiState.kt
│ │ │ │ │ ├── PublishPostBottomPanel.kt
│ │ │ │ │ ├── PublishPostMediaAttachment.kt
│ │ │ │ │ ├── PublishPostScaffold.kt
│ │ │ │ │ ├── PublishSettingLabel.kt
│ │ │ │ │ ├── PublishTopBar.kt
│ │ │ │ │ ├── composable/
│ │ │ │ │ │ ├── AvatarsHorizontalStack.kt
│ │ │ │ │ │ ├── BlogMediaAttachment.kt
│ │ │ │ │ │ ├── InputBlogTextField.kt
│ │ │ │ │ │ ├── PostInteractionSettingLabel.kt
│ │ │ │ │ │ ├── PostStatusVisibilityUi.kt
│ │ │ │ │ │ └── PostStatusWarning.kt
│ │ │ │ │ ├── model/
│ │ │ │ │ │ └── PublishBlogMediaAttachment.kt
│ │ │ │ │ └── multi/
│ │ │ │ │ ├── MultiAccountPublishingScreen.kt
│ │ │ │ │ ├── MultiAccountPublishingUiState.kt
│ │ │ │ │ ├── MultiAccountPublishingViewModel.kt
│ │ │ │ │ └── PublishingAccounts.kt
│ │ │ │ ├── search/
│ │ │ │ │ ├── AbstractSearchStatusScreen.kt
│ │ │ │ │ ├── AbstractSearchStatusViewModel.kt
│ │ │ │ │ └── SearchStatusUiState.kt
│ │ │ │ ├── status/
│ │ │ │ │ ├── account/
│ │ │ │ │ │ ├── SelectAccountOpenStatusScreen.kt
│ │ │ │ │ │ ├── SelectAccountOpenStatusUiState.kt
│ │ │ │ │ │ └── SelectAccountOpenStatusViewModel.kt
│ │ │ │ │ └── context/
│ │ │ │ │ ├── StatusContextScreen.kt
│ │ │ │ │ ├── StatusContextSubViewModel.kt
│ │ │ │ │ ├── StatusContextUiState.kt
│ │ │ │ │ └── StatusContextViewModel.kt
│ │ │ │ └── video/
│ │ │ │ └── FullVideoScreen.kt
│ │ │ ├── usecase/
│ │ │ │ ├── PublishPostOnMultiAccountUseCase.kt
│ │ │ │ ├── RefactorToNewBlogUseCase.kt
│ │ │ │ └── RefactorToNewStatusUseCase.kt
│ │ │ └── utils/
│ │ │ └── LoadableStatusController.kt
│ │ └── iosMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── commonbiz/
│ │ └── shared/
│ │ ├── SharedScreenIosModule.kt
│ │ ├── composable/
│ │ │ └── WebViewPreviewer.ios.kt
│ │ └── screen/
│ │ └── ImageViewerScreen.ios.kt
│ └── status-ui/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── consumer-rules.pro
│ ├── proguard-rules.pro
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── status/
│ │ └── ui/
│ │ ├── StatusPlaceHolder.preview.kt
│ │ ├── common/
│ │ │ └── FormattingTimeText.kt
│ │ ├── poll/
│ │ │ └── BlogPollOption.preview.kt
│ │ ├── utils/
│ │ │ └── ScreenSize.android.kt
│ │ └── video/
│ │ ├── BlogVideos.kt
│ │ ├── LocalInlineVideoPlayer.kt
│ │ └── inline/
│ │ └── InlineVideo.kt
│ ├── commonMain/
│ │ ├── composeResources/
│ │ │ └── drawable/
│ │ │ ├── ic_drag_indicator.xml
│ │ │ ├── ic_format_quote.xml
│ │ │ ├── ic_format_quote_in_left.xml
│ │ │ ├── ic_mode_edit.xml
│ │ │ ├── ic_more.xml
│ │ │ ├── ic_post_status_spoiler.xml
│ │ │ ├── ic_share.xml
│ │ │ ├── ic_status_comment.xml
│ │ │ ├── ic_status_forward.xml
│ │ │ ├── img_banner_background.xml
│ │ │ └── status_ui_baseline_visibility_off_24.xml
│ │ └── kotlin/
│ │ ├── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── status/
│ │ │ └── ui/
│ │ │ ├── BlogAuthorAvatar.kt
│ │ │ ├── BlogAuthorUi.kt
│ │ │ ├── BlogContent.kt
│ │ │ ├── BlogDivider.kt
│ │ │ ├── BlogUi.kt
│ │ │ ├── ComposedStatusInteraction.kt
│ │ │ ├── StatusInfoLine.kt
│ │ │ ├── StatusPlaceHolder.kt
│ │ │ ├── StatusUi.kt
│ │ │ ├── action/
│ │ │ │ ├── ModalDropdownMenuItem.kt
│ │ │ │ ├── StatusActions.kt
│ │ │ │ ├── StatusBottomInteractionPanel.kt
│ │ │ │ ├── StatusIconButton.kt
│ │ │ │ ├── StatusInteractiveExts.kt
│ │ │ │ └── StatusMoreInteractionPanel.kt
│ │ │ ├── bar/
│ │ │ │ └── EditContentTopBar.kt
│ │ │ ├── common/
│ │ │ │ ├── BlogTranslaction.kt
│ │ │ │ ├── ContentToolbar.kt
│ │ │ │ ├── DetailHeaderContent.kt
│ │ │ │ ├── DetailPageScaffold.kt
│ │ │ │ ├── DetailTopBar.kt
│ │ │ │ ├── HomeContentTabsTopBar.kt
│ │ │ │ ├── LinkPreviewCard.kt
│ │ │ │ ├── NestedTabConnection.kt
│ │ │ │ ├── NewStatusNotifyBar.kt
│ │ │ │ ├── ObserveMaxReadItem.kt
│ │ │ │ ├── ObserveScrollStopedPosition.kt
│ │ │ │ ├── PostStatusTextVisualTransformation.kt
│ │ │ │ ├── ProgressedAvatar.kt
│ │ │ │ ├── ProgressedBanner.kt
│ │ │ │ ├── PublishingFab.kt
│ │ │ │ ├── RelationshipStateButton.kt
│ │ │ │ ├── RemainingTextStatus.kt
│ │ │ │ ├── SelectAccountDialog.kt
│ │ │ │ ├── StatusSharedElementConfig.kt
│ │ │ │ └── UserFollowLine.kt
│ │ │ ├── embed/
│ │ │ │ ├── BlogEmbedsUi.kt
│ │ │ │ ├── BlogInEmbedding.kt
│ │ │ │ ├── StatusEmbedLinkUi.kt
│ │ │ │ └── UnavailableQuoteInEmbedding.kt
│ │ │ ├── hashtag/
│ │ │ │ └── HashtagUi.kt
│ │ │ ├── image/
│ │ │ │ ├── BlogImageMedia.kt
│ │ │ │ ├── DoubleBlogImageLayout.kt
│ │ │ │ ├── FivefoldImageMediaFrameLayout.kt
│ │ │ │ ├── HorizontalImageMediaFrameLayout.kt
│ │ │ │ ├── HorizontalImageMediaListLayout.kt
│ │ │ │ ├── QuadrupleImageMediaLayout.kt
│ │ │ │ ├── SingleBlogImageLayout.kt
│ │ │ │ ├── SixfoldImageMediaLayout.kt
│ │ │ │ ├── TripleImageMediaLayout.kt
│ │ │ │ ├── VerticalImageMediaFrameLayout.kt
│ │ │ │ └── VerticalImageMediaListLayout.kt
│ │ │ ├── label/
│ │ │ │ ├── StatusBottomEditedLabel.kt
│ │ │ │ ├── StatusBottomInteractionLabel.kt
│ │ │ │ ├── StatusBottomTimeLabel.kt
│ │ │ │ └── StatusTopLabel.kt
│ │ │ ├── media/
│ │ │ │ └── BlogMedias.kt
│ │ │ ├── placeholder/
│ │ │ │ └── ListWithAvatarPlaceholder.kt
│ │ │ ├── poll/
│ │ │ │ ├── BlogPoll.kt
│ │ │ │ ├── BlogPollOption.kt
│ │ │ │ ├── MultipleChoicePoll.kt
│ │ │ │ └── SingleChoicePoll.kt
│ │ │ ├── publish/
│ │ │ │ ├── BlogInQuoting.kt
│ │ │ │ ├── NameAndAccountInfo.kt
│ │ │ │ └── PublishBlogStyle.kt
│ │ │ ├── richtext/
│ │ │ │ ├── FreadRichText.kt
│ │ │ │ └── RichTextWithIcon.kt
│ │ │ ├── source/
│ │ │ │ ├── BlogPlatformUi.kt
│ │ │ │ ├── SearchPlatformResultUi.kt
│ │ │ │ ├── SourceCommonUi.kt
│ │ │ │ └── StatusSourceUi.kt
│ │ │ ├── style/
│ │ │ │ ├── LocalStatusStyle.kt
│ │ │ │ ├── StatusInfoStyle.kt
│ │ │ │ ├── StatusStyle.kt
│ │ │ │ └── StatusUiConfig.kt
│ │ │ ├── threads/
│ │ │ │ ├── Threads.kt
│ │ │ │ └── ThreadsType.kt
│ │ │ ├── update/
│ │ │ │ └── AppUpdateDialog.kt
│ │ │ ├── user/
│ │ │ │ ├── CommonUserUi.kt
│ │ │ │ └── UserHandleLine.kt
│ │ │ ├── utils/
│ │ │ │ ├── CardInfoSection.kt
│ │ │ │ └── ScreenSize.kt
│ │ │ └── video/
│ │ │ ├── BlogVideos.kt
│ │ │ ├── VideoDurationFormatter.kt
│ │ │ └── full/
│ │ │ └── FullScreenVideoPlayer.kt
│ │ └── org/
│ │ └── burnoutcrew/
│ │ └── reorderable/
│ │ ├── DetectReorder.kt
│ │ ├── DragCancelledAnimation.kt
│ │ ├── DragGesture.kt
│ │ ├── ItemPosition.kt
│ │ ├── Reorderable.kt
│ │ ├── ReorderableItem.kt
│ │ ├── ReorderableLazyGridState.kt
│ │ ├── ReorderableLazyListState.kt
│ │ └── ReorderableState.kt
│ └── iosMain/
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── fread/
│ └── status/
│ └── ui/
│ ├── utils/
│ │ └── ScreenSize.ios.kt
│ └── video/
│ └── BlogVideos.ios.kt
├── deleteuserdata.html
├── di-dependencis.md
├── documents/
│ ├── UserSource.drawio
│ └── architecture.xmind
├── fastlane/
│ ├── Fastfile
│ └── metadata/
│ └── android/
│ ├── en-US/
│ │ ├── full_description.txt
│ │ └── short_description.txt
│ └── zh-CN/
│ ├── full_description.txt
│ └── short_description.txt
├── feature/
│ ├── explore/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── consumer-rules.pro
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── explore/
│ │ ├── ExploreNavEntryProvider.kt
│ │ ├── ExplorerElements.kt
│ │ ├── di/
│ │ │ └── ExploreModule.kt
│ │ ├── model/
│ │ │ └── ExplorerItem.kt
│ │ ├── screens/
│ │ │ ├── home/
│ │ │ │ ├── ExploreTab.kt
│ │ │ │ ├── ExplorerHomeUiState.kt
│ │ │ │ ├── ExplorerHomeViewModel.kt
│ │ │ │ └── ExplorerScreen.kt
│ │ │ └── search/
│ │ │ ├── SearchScreen.kt
│ │ │ ├── SearchUiState.kt
│ │ │ ├── SearchViewModel.kt
│ │ │ ├── author/
│ │ │ │ ├── SearchAuthorViewModel.kt
│ │ │ │ └── SearchedAuthorTab.kt
│ │ │ ├── bar/
│ │ │ │ ├── ExplorerSearchBar.kt
│ │ │ │ ├── SearchBarUiState.kt
│ │ │ │ └── SearchBarViewModel.kt
│ │ │ ├── hashtag/
│ │ │ │ ├── SearchHashtagViewModel.kt
│ │ │ │ └── SearchedHashtagTab.kt
│ │ │ ├── platform/
│ │ │ │ ├── SearchPlatformViewModel.kt
│ │ │ │ ├── SearchedPlatformTab.kt
│ │ │ │ └── SearchedPlatformUiState.kt
│ │ │ └── status/
│ │ │ ├── SearchStatusViewModel.kt
│ │ │ └── SearchedStatusTab.kt
│ │ └── usecase/
│ │ └── BuildSearchResultUiStateUseCase.kt
│ ├── feeds/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── consumer-rules.pro
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── feeds/
│ │ │ └── pages/
│ │ │ └── manager/
│ │ │ └── importing/
│ │ │ └── OpenDocumentContainer.android.kt
│ │ ├── commonMain/
│ │ │ ├── composeResources/
│ │ │ │ └── drawable/
│ │ │ │ ├── ic_home.xml
│ │ │ │ └── ic_import.xml
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── feeds/
│ │ │ ├── FeedsNavEntryProvider.kt
│ │ │ ├── FeedsScreenVisitor.kt
│ │ │ ├── composable/
│ │ │ │ └── StatusSource.kt
│ │ │ ├── di/
│ │ │ │ └── FeedsModule.kt
│ │ │ └── pages/
│ │ │ ├── home/
│ │ │ │ ├── ContentHomeUiState.kt
│ │ │ │ ├── ContentHomeViewModel.kt
│ │ │ │ ├── FeedsContentHomeTab.kt
│ │ │ │ ├── FeedsHomeTab.kt
│ │ │ │ └── feeds/
│ │ │ │ ├── MixedContentSubViewModel.kt
│ │ │ │ ├── MixedContentTab.kt
│ │ │ │ ├── MixedContentUiState.kt
│ │ │ │ └── MixedContentViewModel.kt
│ │ │ └── manager/
│ │ │ ├── add/
│ │ │ │ ├── mixed/
│ │ │ │ │ ├── AddMixedFeedsScreen.kt
│ │ │ │ │ ├── AddMixedFeedsUiState.kt
│ │ │ │ │ └── AddMixedFeedsViewModel.kt
│ │ │ │ └── type/
│ │ │ │ ├── SelectContentTypeScreen.kt
│ │ │ │ └── SelectContentTypeViewModel.kt
│ │ │ ├── edit/
│ │ │ │ ├── EditMixedContentScreen.kt
│ │ │ │ ├── EditMixedContentUiState.kt
│ │ │ │ └── EditMixedContentViewModel.kt
│ │ │ ├── importing/
│ │ │ │ ├── ImportFeedsScreen.kt
│ │ │ │ ├── ImportFeedsUiState.kt
│ │ │ │ ├── ImportFeedsViewModel.kt
│ │ │ │ └── OpenDocumentContainer.kt
│ │ │ └── search/
│ │ │ ├── SearchForAddUiState.kt
│ │ │ ├── SearchSourceForAddScreen.kt
│ │ │ └── SearchSourceForAddViewModel.kt
│ │ └── iosMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── feeds/
│ │ └── pages/
│ │ └── manager/
│ │ └── importing/
│ │ └── OpenDocumentContainer.ios.kt
│ ├── notifications/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── consumer-rules.pro
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── feature/
│ │ │ └── message/
│ │ │ └── di/
│ │ │ └── NotificationsAndroidModule.kt
│ │ ├── commonMain/
│ │ │ ├── composeResources/
│ │ │ │ └── drawable/
│ │ │ │ └── ic_notification_tab.xml
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── feature/
│ │ │ └── message/
│ │ │ ├── NotificationElements.kt
│ │ │ ├── NotificationsNavEntryProvider.kt
│ │ │ ├── di/
│ │ │ │ └── NotificationsModule.kt
│ │ │ ├── repo/
│ │ │ │ └── notification/
│ │ │ │ ├── NotificationsDatabase.kt
│ │ │ │ └── NotificationsRepo.kt
│ │ │ └── screens/
│ │ │ ├── home/
│ │ │ │ ├── NotificationScreen.kt
│ │ │ │ ├── NotificationsHomeUiState.kt
│ │ │ │ ├── NotificationsHomeViewModel.kt
│ │ │ │ └── NotificationsTab.kt
│ │ │ └── notification/
│ │ │ ├── NotificationContainerViewModel.kt
│ │ │ ├── NotificationTab.kt
│ │ │ ├── NotificationUiState.kt
│ │ │ └── NotificationViewModel.kt
│ │ └── iosMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── feature/
│ │ └── message/
│ │ └── di/
│ │ └── NotificationsIosModule.kt
│ └── profile/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── consumer-rules.pro
│ ├── proguard-rules.pro
│ └── src/
│ └── commonMain/
│ ├── composeResources/
│ │ └── drawable/
│ │ ├── ic_code.xml
│ │ ├── ic_github_logo.xml
│ │ ├── ic_profile_tab.xml
│ │ ├── ic_ratting.xml
│ │ ├── ic_telegram.xml
│ │ └── kofi_symbol.xml
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── fread/
│ └── profile/
│ ├── ProfileNavEntryProvider.kt
│ ├── ProfileScreenVisitor.kt
│ ├── di/
│ │ └── ProfileModule.kt
│ └── screen/
│ ├── donate/
│ │ └── DonateScreen.kt
│ ├── home/
│ │ ├── ProfileHomeUiState.kt
│ │ ├── ProfileHomeViewModel.kt
│ │ ├── ProfileScreen.kt
│ │ └── ProfileTab.kt
│ ├── opensource/
│ │ └── OpenSourceScreen.kt
│ └── setting/
│ ├── FeedbackBottomSheet.kt
│ ├── SettingComponents.kt
│ ├── SettingItemNames.kt
│ ├── SettingScreen.kt
│ ├── SettingScreenModel.kt
│ ├── SettingUiState.kt
│ ├── about/
│ │ ├── AboutScreen.kt
│ │ ├── AboutUiState.kt
│ │ └── AboutViewModel.kt
│ ├── appearance/
│ │ ├── AppearanceSettingsScreen.kt
│ │ ├── AppearanceSettingsUiState.kt
│ │ └── AppearanceSettingsViewModel.kt
│ └── behavior/
│ ├── BehaviorSettingsScreen.kt
│ ├── BehaviorSettingsUiState.kt
│ └── BehaviorSettingsViewModel.kt
├── framework/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── consumer-rules.pro
│ ├── proguard-rules.pro
│ └── src/
│ ├── androidInstrumentedTest/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── framework/
│ │ ├── ExampleInstrumentedTest.kt
│ │ └── utils/
│ │ └── UtiUtilsTest.kt
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── framework/
│ │ ├── activity/
│ │ │ └── TopActivityManager.kt
│ │ ├── architect/
│ │ │ ├── http/
│ │ │ │ ├── GlobalOkHttpClient.kt
│ │ │ │ └── HttpClientEngine.android.kt
│ │ │ └── theme/
│ │ │ └── FreadTheme.android.kt
│ │ ├── blurhash/
│ │ │ └── BitmapExt.android.kt
│ │ ├── composable/
│ │ │ ├── AnimatableExt.kt
│ │ │ ├── Loading.android.kt
│ │ │ ├── TextString.android.kt
│ │ │ └── pick/
│ │ │ └── PickVisualMediaLauncherContainer.android.kt
│ │ ├── date/
│ │ │ └── InstantFormater.android.kt
│ │ ├── datetime/
│ │ │ └── Instant.android.kt
│ │ ├── ktx/
│ │ │ └── SingletonDelegate.kt
│ │ ├── media/
│ │ │ └── MediaFileUtil.kt
│ │ ├── permission/
│ │ │ ├── PermissionUtils.kt
│ │ │ ├── RequireLocalStoragePermission.android.kt
│ │ │ └── RequirePermission.kt
│ │ ├── serialize/
│ │ │ └── DateSerializer.kt
│ │ ├── toast/
│ │ │ └── Toast.android.kt
│ │ └── utils/
│ │ ├── ActivityLifecycleCallbacksAdapter.kt
│ │ ├── ActivityResultContractsExt.kt
│ │ ├── BitmapUtils.kt
│ │ ├── ContextUtils.kt
│ │ ├── DensityUtils.android.kt
│ │ ├── DrawableExt.kt
│ │ ├── DrawableWrapper.kt
│ │ ├── ExoPlayerUtils.kt
│ │ ├── FileUtils.kt
│ │ ├── IDNUtils.android.kt
│ │ ├── ImageCompressUtils.android.kt
│ │ ├── ImageLoaderUtils.kt
│ │ ├── LanguageUtils.android.kt
│ │ ├── PlatformIgnoredOnParcel.android.kt
│ │ ├── PlatformParcelable.android.kt
│ │ ├── PlatformTransient.android.kt
│ │ ├── PlatformUri.android.kt
│ │ ├── Serializable.android.kt
│ │ ├── SignatureUtils.kt
│ │ ├── SystemPageUtils.kt
│ │ ├── SystemUtils.kt
│ │ ├── UriUtils.android.kt
│ │ └── VideoUtils.android.kt
│ ├── androidUnitTest/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── framework/
│ │ ├── ExampleUnitTest.kt
│ │ ├── RegexFactoryTest.kt
│ │ ├── date/
│ │ │ └── DateParserTest.kt
│ │ ├── feeds/
│ │ │ └── fetcher/
│ │ │ ├── FeedsFetcherTest.kt
│ │ │ └── FeedsGeneratorTest.kt
│ │ └── utils/
│ │ ├── RegexFactoryTest.kt
│ │ ├── StorageSizeTest.kt
│ │ └── WebFingerTest.kt
│ ├── commonMain/
│ │ ├── kotlin/
│ │ │ └── com/
│ │ │ ├── sd/
│ │ │ │ └── lib/
│ │ │ │ └── compose/
│ │ │ │ └── wheel_picker/
│ │ │ │ ├── WheelPicker.kt
│ │ │ │ ├── WheelPickerDefault.kt
│ │ │ │ └── WheelPickerState.kt
│ │ │ └── zhangke/
│ │ │ └── framework/
│ │ │ ├── architect/
│ │ │ │ ├── coroutines/
│ │ │ │ │ ├── ApplicationScope.kt
│ │ │ │ │ └── Flows.kt
│ │ │ │ ├── http/
│ │ │ │ │ └── HttpClientEngine.kt
│ │ │ │ ├── json/
│ │ │ │ │ ├── Json.kt
│ │ │ │ │ └── JsonModuleBuilder.kt
│ │ │ │ └── theme/
│ │ │ │ ├── Color.kt
│ │ │ │ └── FreadTheme.kt
│ │ │ ├── blur/
│ │ │ │ ├── BlurController.kt
│ │ │ │ └── LocalEnableBlurAppBarStyle.kt
│ │ │ ├── blurhash/
│ │ │ │ ├── BitmapExt.kt
│ │ │ │ ├── BlurHashDecoder.kt
│ │ │ │ └── BlurHashModifier.kt
│ │ │ ├── collections/
│ │ │ │ └── Collections.kt
│ │ │ ├── composable/
│ │ │ │ ├── AlertConfirmDialog.kt
│ │ │ │ ├── AvatarStatck.kt
│ │ │ │ ├── BackHandler.kt
│ │ │ │ ├── BezierCurve.kt
│ │ │ │ ├── BottomSheetState.kt
│ │ │ │ ├── Bounds.kt
│ │ │ │ ├── CollapsableTopBarScrollConnection.kt
│ │ │ │ ├── CompositionLocal.kt
│ │ │ │ ├── DatePickerDialog.kt
│ │ │ │ ├── DirectionalLazyListState.kt
│ │ │ │ ├── DpSaver.kt
│ │ │ │ ├── DurationSelector.kt
│ │ │ │ ├── FlowUtils.android.kt
│ │ │ │ ├── FlowUtils.kt
│ │ │ │ ├── FreadDialog.kt
│ │ │ │ ├── FreadTabRow.kt
│ │ │ │ ├── Grid.kt
│ │ │ │ ├── HorizontalPageIndicator.kt
│ │ │ │ ├── IconButton.kt
│ │ │ │ ├── InsetAwareSearchBar.kt
│ │ │ │ ├── Keyboard.kt
│ │ │ │ ├── LazyListStateUtils.kt
│ │ │ │ ├── LoadableLayout.kt
│ │ │ │ ├── Loading.kt
│ │ │ │ ├── LoadingDialog.kt
│ │ │ │ ├── LocalContentPadding.kt
│ │ │ │ ├── LocalSnackMessage.kt
│ │ │ │ ├── NavigationBar.kt
│ │ │ │ ├── NestedScrollConnection.kt
│ │ │ │ ├── NoDoubleClick.kt
│ │ │ │ ├── NoRippleClick.kt
│ │ │ │ ├── Offset.kt
│ │ │ │ ├── PaddingValuesUtils.kt
│ │ │ │ ├── Placeholder.kt
│ │ │ │ ├── PopupFloatingActionButton.kt
│ │ │ │ ├── PopupMenu.kt
│ │ │ │ ├── PredictiveBackProgressState.kt
│ │ │ │ ├── ScreenUtils.kt
│ │ │ │ ├── ScrollTopAppBar.kt
│ │ │ │ ├── SearchToolbar.kt
│ │ │ │ ├── Size.kt
│ │ │ │ ├── SlickRoundCornerShape.kt
│ │ │ │ ├── Snackbar.kt
│ │ │ │ ├── StateSaver.kt
│ │ │ │ ├── StyledIconButton.kt
│ │ │ │ ├── StyledTextButton.kt
│ │ │ │ ├── SystemUi.kt
│ │ │ │ ├── TabIndicator.kt
│ │ │ │ ├── TabsTopAppBar.kt
│ │ │ │ ├── TextString.kt
│ │ │ │ ├── TextWithIcon.kt
│ │ │ │ ├── Toolbar.kt
│ │ │ │ ├── TopAppBar.kt
│ │ │ │ ├── TopBarWithTabLayout.kt
│ │ │ │ ├── TwoTextsInRow.kt
│ │ │ │ ├── VelocityExt.kt
│ │ │ │ ├── VerticalIndentLayout.kt
│ │ │ │ ├── collapsable/
│ │ │ │ │ ├── CollapsableTopBarLayout.kt
│ │ │ │ │ ├── CollapsableTopBarLayoutConnection.kt
│ │ │ │ │ └── ScrollUpTopBarLayout.kt
│ │ │ │ ├── icons/
│ │ │ │ │ └── Toufu.kt
│ │ │ │ ├── image/
│ │ │ │ │ └── viewer/
│ │ │ │ │ ├── ImageViewer.kt
│ │ │ │ │ ├── ImageViewerState.kt
│ │ │ │ │ └── TransformGestureDetector.kt
│ │ │ │ ├── infinite/
│ │ │ │ │ ├── InfiniteBox.kt
│ │ │ │ │ └── InfinityBoxState.kt
│ │ │ │ ├── inline/
│ │ │ │ │ ├── InlineVideoLazyColumn.kt
│ │ │ │ │ └── PlayableIndexRecorderLocal.kt
│ │ │ │ ├── pick/
│ │ │ │ │ └── PickVisualMediaLauncherContainer.kt
│ │ │ │ ├── sensitive/
│ │ │ │ │ ├── SensitiveLazyColumn.kt
│ │ │ │ │ └── SensitiveLazyColumnState.kt
│ │ │ │ ├── topout/
│ │ │ │ │ ├── TopOutTopBarLayout.kt
│ │ │ │ │ └── TopOutTopBarLayoutConnection.kt
│ │ │ │ └── video/
│ │ │ │ └── VideoPlayer.kt
│ │ │ ├── controller/
│ │ │ │ ├── CommonLoadableController.kt
│ │ │ │ └── LoadableController.kt
│ │ │ ├── coroutines/
│ │ │ │ └── JobExt.kt
│ │ │ ├── date/
│ │ │ │ ├── DateParser.kt
│ │ │ │ └── InstantFormater.kt
│ │ │ ├── datetime/
│ │ │ │ └── Instant.kt
│ │ │ ├── imageloader/
│ │ │ │ └── ImageLoaderUtils.kt
│ │ │ ├── ktx/
│ │ │ │ ├── CollectionsExt.kt
│ │ │ │ ├── FlowExt.kt
│ │ │ │ ├── LazyBackingFieldDelegate.kt
│ │ │ │ ├── StringExt.kt
│ │ │ │ └── ViewModels.kt
│ │ │ ├── lifecycle/
│ │ │ │ ├── ContainerViewModel.kt
│ │ │ │ └── SubViewModel.kt
│ │ │ ├── loadable/
│ │ │ │ ├── lazycolumn/
│ │ │ │ │ ├── LoadMoreUi.kt
│ │ │ │ │ ├── LoadableInlineVideoLazyColumn.kt
│ │ │ │ │ ├── LoadableLazyColumn.kt
│ │ │ │ │ └── PullToRefreshIndicator.kt
│ │ │ │ └── previous/
│ │ │ │ └── PreviousPageLoadingState.kt
│ │ │ ├── module/
│ │ │ │ └── ModuleStartup.kt
│ │ │ ├── nav/
│ │ │ │ ├── DialogNavMetadata.kt
│ │ │ │ ├── LocalNavBackStack.kt
│ │ │ │ ├── NavBackStackExt.kt
│ │ │ │ ├── NavEntryProvider.kt
│ │ │ │ ├── ScreenEventFlow.kt
│ │ │ │ ├── SharedElementScope.kt
│ │ │ │ └── Tab.kt
│ │ │ ├── network/
│ │ │ │ ├── FormalBaseUrl.kt
│ │ │ │ ├── GlobalRoutes.kt
│ │ │ │ ├── HttpScheme.kt
│ │ │ │ └── SimpleUri.kt
│ │ │ ├── opml/
│ │ │ │ ├── OpmlOutline.kt
│ │ │ │ └── OpmlParser.kt
│ │ │ ├── permission/
│ │ │ │ └── RequireLocalStoragePermission.kt
│ │ │ ├── security/
│ │ │ │ └── Md5.kt
│ │ │ ├── serialize/
│ │ │ │ └── TimestampAsInstantSerializer.kt
│ │ │ ├── toast/
│ │ │ │ └── Toast.kt
│ │ │ └── utils/
│ │ │ ├── AspectRatio.kt
│ │ │ ├── BlendColorUtils.kt
│ │ │ ├── ContentProviderFile.kt
│ │ │ ├── DebugUtils.kt
│ │ │ ├── DensityUtils.kt
│ │ │ ├── DomainValidator.kt
│ │ │ ├── DurationFormatUtils.kt
│ │ │ ├── ExtractUrlFromTextUtils.kt
│ │ │ ├── FloatExt.kt
│ │ │ ├── Handle.kt
│ │ │ ├── HighlightTextBuildUtil.kt
│ │ │ ├── IDNUtils.kt
│ │ │ ├── ImageCompressUtils.kt
│ │ │ ├── IntExt.kt
│ │ │ ├── LanguageUtils.kt
│ │ │ ├── LinkPreviewUtils.kt
│ │ │ ├── LoadState.kt
│ │ │ ├── Log.kt
│ │ │ ├── Parcelize.kt
│ │ │ ├── PlatformIgnoredOnParcel.kt
│ │ │ ├── PlatformParcelable.kt
│ │ │ ├── PlatformSerializable.kt
│ │ │ ├── PlatformTransient.kt
│ │ │ ├── PlatformUri.kt
│ │ │ ├── RegexFactory.kt
│ │ │ ├── ResultExt.kt
│ │ │ ├── Rfc822InstantParser.kt
│ │ │ ├── SizeUtils.kt
│ │ │ ├── Standard.kt
│ │ │ ├── StorageSize.kt
│ │ │ ├── TextFieldUtils.kt
│ │ │ ├── ThrowableUtils.kt
│ │ │ ├── UriUtils.kt
│ │ │ ├── UrlEncoder.kt
│ │ │ ├── VideoUtils.kt
│ │ │ └── WebFinger.kt
│ │ └── res/
│ │ └── values/
│ │ ├── colors.xml
│ │ └── ids.xml
│ ├── commonTest/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── framework/
│ │ ├── network/
│ │ │ └── SimpleUriTest.kt
│ │ ├── opml/
│ │ │ └── OpmlParserTest.kt
│ │ ├── security/
│ │ │ └── Md5Test.kt
│ │ └── utils/
│ │ ├── ExtractUrlFromTextUtilsTest.kt
│ │ ├── IntExtTest.kt
│ │ └── WebFingerTest.kt
│ └── iosMain/
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── framework/
│ ├── architect/
│ │ ├── http/
│ │ │ └── HttpClientEngine.ios.kt
│ │ └── theme/
│ │ └── FreadTheme.ios.kt
│ ├── blurhash/
│ │ └── BitmapExt.ios.kt
│ ├── composable/
│ │ ├── TextString.ios.kt
│ │ └── pick/
│ │ └── PickVisualMediaLauncherContainer.ios.kt
│ ├── date/
│ │ └── InstantFormater.ios.kt
│ ├── datetime/
│ │ └── Instant.ios.kt
│ ├── permission/
│ │ └── RequireLocalStoragePermission.ios.kt
│ ├── toast/
│ │ └── Toast.ios.kt
│ └── utils/
│ ├── IDNUtils.ios.kt
│ ├── ImageCompressUtils.kt
│ ├── LanguageUtils.ios.kt
│ ├── PlatformIgnoredOnParcel.ios.kt
│ ├── PlatformParcelable.ios.kt
│ ├── PlatformTransient.ios.kt
│ ├── PlatformUri.ios.kt
│ ├── Serializable.ios.kt
│ └── VideoUtils.ios.kt
├── gradle/
│ ├── libs.versions.toml
│ └── wrapper/
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── iosApp/
│ ├── .gitignore
│ ├── Configuration/
│ │ └── Config.xcconfig
│ ├── iosApp/
│ │ ├── Assets.xcassets/
│ │ │ ├── AccentColor.colorset/
│ │ │ │ └── Contents.json
│ │ │ ├── AppIcon.appiconset/
│ │ │ │ └── Contents.json
│ │ │ └── Contents.json
│ │ ├── ContentView.swift
│ │ ├── GoogleService-Info.plist
│ │ ├── Info.plist
│ │ ├── Preview Content/
│ │ │ └── Preview Assets.xcassets/
│ │ │ └── Contents.json
│ │ └── iOSApp.swift
│ └── iosApp.xcodeproj/
│ └── project.pbxproj
├── kotlin-inject-relative.md
├── localization/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── consumer-rules.pro
│ ├── proguard-rules.pro
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── localization/
│ │ └── LanguageCodeUtils.kt
│ └── commonMain/
│ ├── composeResources/
│ │ ├── values/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-de-rDE/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-es-rES/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-fr-rFR/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-ja-rJP/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-pt-rPT/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-ru-rRU/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-zh-rCN/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ ├── values-zh-rHK/
│ │ │ ├── strings.xml
│ │ │ ├── strings_mastodon.xml
│ │ │ └── strings_status_ui.xml
│ │ └── values-zh-rTW/
│ │ ├── strings.xml
│ │ ├── strings_mastodon.xml
│ │ └── strings_status_ui.xml
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── fread/
│ └── localization/
│ ├── LanguageCode.kt
│ ├── LanguageCodeNames.kt
│ ├── Localization.kt
│ └── LocalizedString.kt
├── plugins/
│ ├── activitypub-app/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── consumer-rules.pro
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ ├── androidMain/
│ │ │ ├── AndroidManifest.xml
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── activitypub/
│ │ │ └── app/
│ │ │ ├── ActivityPubAndroidModule.kt
│ │ │ └── internal/
│ │ │ ├── auth/
│ │ │ │ └── ActivityPubOAuthRedirectActivity.kt
│ │ │ └── push/
│ │ │ ├── ActivityPubPushManager.android.kt
│ │ │ ├── ActivityPubPushMessageReceiverHelper.android.kt
│ │ │ ├── CryptoUtil.kt
│ │ │ ├── PushInfoRepo.kt
│ │ │ └── notification/
│ │ │ ├── ActivityPubPushMessage.kt
│ │ │ └── PushNotificationManager.kt
│ │ ├── androidUnitTest/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── utopia/
│ │ │ └── activitypubapp/
│ │ │ └── ExampleUnitTest.kt
│ │ ├── commonMain/
│ │ │ ├── composeResources/
│ │ │ │ └── drawable/
│ │ │ │ └── detail_page_banner_background.xml
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── activitypub/
│ │ │ └── app/
│ │ │ ├── ActivityPubAccountManager.kt
│ │ │ ├── ActivityPubContentManager.kt
│ │ │ ├── ActivityPubJsonBuilder.kt
│ │ │ ├── ActivityPubModule.kt
│ │ │ ├── ActivityPubNavEntryProvider.kt
│ │ │ ├── ActivityPubNotificationResolver.kt
│ │ │ ├── ActivityPubProvider.kt
│ │ │ ├── ActivityPubPublishManager.kt
│ │ │ ├── ActivityPubScreenProvider.kt
│ │ │ ├── ActivityPubSearchEngine.kt
│ │ │ ├── ActivityPubSourceResolver.kt
│ │ │ ├── ActivityPubStartup.kt
│ │ │ ├── ActivityPubStatusResolver.kt
│ │ │ ├── ActivityPubUrlInterceptor.kt
│ │ │ └── internal/
│ │ │ ├── DataTrackingElements.kt
│ │ │ ├── adapter/
│ │ │ │ ├── ActivityPubAccountEntityAdapter.kt
│ │ │ │ ├── ActivityPubApplicationEntityAdapter.kt
│ │ │ │ ├── ActivityPubBlogMetaAdapter.kt
│ │ │ │ ├── ActivityPubContentAdapter.kt
│ │ │ │ ├── ActivityPubCustomEmojiEntityAdapter.kt
│ │ │ │ ├── ActivityPubInstanceAdapter.kt
│ │ │ │ ├── ActivityPubLoggedAccountAdapter.kt
│ │ │ │ ├── ActivityPubPlatformEntityAdapter.kt
│ │ │ │ ├── ActivityPubPollAdapter.kt
│ │ │ │ ├── ActivityPubSearchAdapter.kt
│ │ │ │ ├── ActivityPubStatusAdapter.kt
│ │ │ │ ├── ActivityPubTagAdapter.kt
│ │ │ │ ├── ActivityPubTranslationEntityAdapter.kt
│ │ │ │ ├── PostStatusAttachmentAdapter.kt
│ │ │ │ ├── QuoteApprovalPolicyExt.kt
│ │ │ │ ├── RegisterApplicationEntryAdapter.kt
│ │ │ │ └── StatusVisibilityExt.kt
│ │ │ ├── auth/
│ │ │ │ ├── ActivityPubClientManager.kt
│ │ │ │ ├── ActivityPubOAuthor.kt
│ │ │ │ └── LoggedAccountProvider.kt
│ │ │ ├── composable/
│ │ │ │ └── ActivityPubTabNames.kt
│ │ │ ├── content/
│ │ │ │ └── ActivityPubContent.kt
│ │ │ ├── db/
│ │ │ │ ├── ActivityPubApplicationTable.kt
│ │ │ │ ├── ActivityPubDatabases.kt
│ │ │ │ ├── ActivityPubLoggedAccountDatabase.kt
│ │ │ │ ├── ActivityPubPlatformTable.kt
│ │ │ │ ├── UserIdTable.kt
│ │ │ │ ├── converter/
│ │ │ │ │ ├── ActivityPubAccountEntityConverter.kt
│ │ │ │ │ ├── ActivityPubInstanceEntityConverter.kt
│ │ │ │ │ ├── ActivityPubLoggedAccountConverter.kt
│ │ │ │ │ ├── ActivityPubStatusEntityConverter.kt
│ │ │ │ │ ├── ActivityPubStatusSourceTypeConverter.kt
│ │ │ │ │ ├── ActivityPubUserTokenConverter.kt
│ │ │ │ │ ├── BlogAuthorConverter.kt
│ │ │ │ │ ├── EmojiListConverter.kt
│ │ │ │ │ ├── FormalBaseUrlConverter.kt
│ │ │ │ │ ├── PlatformEntityTypeConverter.kt
│ │ │ │ │ ├── RelationshipSeveranceEventConverter.kt
│ │ │ │ │ └── StatusNotificationTypeConverter.kt
│ │ │ │ ├── old/
│ │ │ │ │ └── ActivityPubLoggedAccountTable.kt
│ │ │ │ └── status/
│ │ │ │ ├── ActivityPubStatusDatabases.kt
│ │ │ │ └── ActivityPubStatusReadStateDatabases.kt
│ │ │ ├── migrate/
│ │ │ │ └── ActivityPubContentMigrator.kt
│ │ │ ├── model/
│ │ │ │ ├── ActivityPubApplication.kt
│ │ │ │ ├── ActivityPubInstanceRule.kt
│ │ │ │ ├── ActivityPubLoggedAccount.kt
│ │ │ │ ├── ActivityPubStatusSourceType.kt
│ │ │ │ ├── ActivityPubTimelineType.kt
│ │ │ │ ├── CustomEmoji.kt
│ │ │ │ ├── PlatformUriInsights.kt
│ │ │ │ ├── RelationshipSeveranceEvent.kt
│ │ │ │ ├── ServerDetailContract.kt
│ │ │ │ ├── StatusNotification.kt
│ │ │ │ ├── StatusNotificationType.kt
│ │ │ │ ├── UserSource.kt
│ │ │ │ └── UserUriInsights.kt
│ │ │ ├── platform/
│ │ │ │ └── FreadApplicationRegisterInfo.kt
│ │ │ ├── push/
│ │ │ │ ├── ActivityPubPushManager.kt
│ │ │ │ └── ActivityPubPushMessageReceiver.kt
│ │ │ ├── repo/
│ │ │ │ ├── WebFingerBaseUrlToUserIdRepo.kt
│ │ │ │ ├── account/
│ │ │ │ │ ├── ActivityPubLoggedAccountRepo.kt
│ │ │ │ │ └── LoggedAccountMigrateUtil.kt
│ │ │ │ ├── application/
│ │ │ │ │ └── ActivityPubApplicationRepo.kt
│ │ │ │ ├── platform/
│ │ │ │ │ ├── ActivityPubPlatformRepo.kt
│ │ │ │ │ ├── BlogPlatformResourceLoader.kt
│ │ │ │ │ └── MastodonInstanceRepo.kt
│ │ │ │ ├── status/
│ │ │ │ │ ├── ActivityPubStatusReadStateRepo.kt
│ │ │ │ │ └── ActivityPubTimelineStatusRepo.kt
│ │ │ │ └── user/
│ │ │ │ └── UserRepo.kt
│ │ │ ├── route/
│ │ │ │ └── ActivityPubRoutes.kt
│ │ │ ├── screen/
│ │ │ │ ├── account/
│ │ │ │ │ ├── EditAccountInfoScreen.kt
│ │ │ │ │ ├── EditAccountInfoViewModel.kt
│ │ │ │ │ └── EditAccountUiState.kt
│ │ │ │ ├── add/
│ │ │ │ │ ├── AddActivityPubContentScreen.kt
│ │ │ │ │ ├── AddActivityPubContentViewModel.kt
│ │ │ │ │ └── select/
│ │ │ │ │ ├── SelectPlatformScreen.kt
│ │ │ │ │ ├── SelectPlatformUiState.kt
│ │ │ │ │ └── SelectPlatformViewModel.kt
│ │ │ │ ├── content/
│ │ │ │ │ ├── ActivityPubContentSubViewModel.kt
│ │ │ │ │ ├── ActivityPubContentTab.kt
│ │ │ │ │ ├── ActivityPubContentUiState.kt
│ │ │ │ │ ├── ActivityPubContentViewModel.kt
│ │ │ │ │ ├── edit/
│ │ │ │ │ │ ├── EditContentConfigScreen.kt
│ │ │ │ │ │ ├── EditContentConfigUiState.kt
│ │ │ │ │ │ └── EditContentConfigViewModel.kt
│ │ │ │ │ └── timeline/
│ │ │ │ │ ├── ActivityPubTimelineContainerViewModel.kt
│ │ │ │ │ ├── ActivityPubTimelineTab.kt
│ │ │ │ │ ├── ActivityPubTimelineViewModel.kt
│ │ │ │ │ └── ActivityPubUiState.kt
│ │ │ │ ├── explorer/
│ │ │ │ │ ├── ExplorerContainerTab.kt
│ │ │ │ │ ├── ExplorerContainerViewModel.kt
│ │ │ │ │ ├── ExplorerFeedsTabType.kt
│ │ │ │ │ ├── ExplorerItem.kt
│ │ │ │ │ ├── ExplorerTab.kt
│ │ │ │ │ ├── ExplorerUiState.kt
│ │ │ │ │ └── ExplorerViewModel.kt
│ │ │ │ ├── filters/
│ │ │ │ │ ├── edit/
│ │ │ │ │ │ ├── EditFilterScreen.kt
│ │ │ │ │ │ ├── EditFilterUiState.kt
│ │ │ │ │ │ ├── EditFilterViewModel.kt
│ │ │ │ │ │ ├── FilterContext.kt
│ │ │ │ │ │ └── HiddenKeywordScreen.kt
│ │ │ │ │ └── list/
│ │ │ │ │ ├── FiltersListScreen.kt
│ │ │ │ │ ├── FiltersListUiState.kt
│ │ │ │ │ └── FiltersListViewModel.kt
│ │ │ │ ├── hashtag/
│ │ │ │ │ ├── HashtagTimelineContainerViewModel.kt
│ │ │ │ │ ├── HashtagTimelineScreen.kt
│ │ │ │ │ ├── HashtagTimelineUiState.kt
│ │ │ │ │ └── HashtagTimelineViewModel.kt
│ │ │ │ ├── instance/
│ │ │ │ │ ├── InstanceDetailScreen.kt
│ │ │ │ │ ├── InstanceDetailUiState.kt
│ │ │ │ │ ├── InstanceDetailViewModel.kt
│ │ │ │ │ ├── about/
│ │ │ │ │ │ ├── ServerAboutPage.kt
│ │ │ │ │ │ ├── ServerAboutUiState.kt
│ │ │ │ │ │ └── ServerAboutViewModel.kt
│ │ │ │ │ └── tags/
│ │ │ │ │ ├── ServerTrendsTagsPage.kt
│ │ │ │ │ ├── ServerTrendsTagsUiState.kt
│ │ │ │ │ └── ServerTrendsTagsViewModel.kt
│ │ │ │ ├── list/
│ │ │ │ │ ├── CreatedListsScreen.kt
│ │ │ │ │ ├── CreatedListsUiState.kt
│ │ │ │ │ ├── CreatedListsViewModel.kt
│ │ │ │ │ ├── ListDetailPageContent.kt
│ │ │ │ │ ├── ListItem.kt
│ │ │ │ │ ├── add/
│ │ │ │ │ │ ├── AddListScreen.kt
│ │ │ │ │ │ ├── AddListUiState.kt
│ │ │ │ │ │ └── AddListViewModel.kt
│ │ │ │ │ └── edit/
│ │ │ │ │ ├── EditListScreen.kt
│ │ │ │ │ ├── EditListUiState.kt
│ │ │ │ │ └── EditListViewModel.kt
│ │ │ │ ├── search/
│ │ │ │ │ ├── SearchStatusScreen.kt
│ │ │ │ │ └── SearchStatusViewModel.kt
│ │ │ │ ├── status/
│ │ │ │ │ └── post/
│ │ │ │ │ ├── PostStatusScreen.kt
│ │ │ │ │ ├── PostStatusScreenRoute.kt
│ │ │ │ │ ├── PostStatusUiState.kt
│ │ │ │ │ ├── PostStatusViewModel.kt
│ │ │ │ │ ├── PublishInteractionSettingLabel.kt
│ │ │ │ │ ├── adapter/
│ │ │ │ │ │ └── CustomEmojiAdapter.kt
│ │ │ │ │ ├── composable/
│ │ │ │ │ │ ├── CustomEmojiPicker.kt
│ │ │ │ │ │ ├── PostStatusBottomBar.kt
│ │ │ │ │ │ └── PostStatusPoll.kt
│ │ │ │ │ └── usecase/
│ │ │ │ │ ├── GenerateInitPostStatusUiStateUseCase.kt
│ │ │ │ │ └── PublishPostUseCase.kt
│ │ │ │ ├── trending/
│ │ │ │ │ ├── TrendingStatusSubViewModel.kt
│ │ │ │ │ ├── TrendingStatusTab.kt
│ │ │ │ │ └── TrendingStatusViewModel.kt
│ │ │ │ └── user/
│ │ │ │ ├── UserDetailContainerViewModel.kt
│ │ │ │ ├── UserDetailScreen.kt
│ │ │ │ ├── UserDetailUiState.kt
│ │ │ │ ├── UserDetailViewModel.kt
│ │ │ │ ├── list/
│ │ │ │ │ ├── UserListScreen.kt
│ │ │ │ │ ├── UserListType.kt
│ │ │ │ │ ├── UserListUiState.kt
│ │ │ │ │ └── UserListViewModel.kt
│ │ │ │ ├── search/
│ │ │ │ │ ├── SearchUserScreen.kt
│ │ │ │ │ ├── SearchUserUiState.kt
│ │ │ │ │ └── SearchUserViewModel.kt
│ │ │ │ ├── status/
│ │ │ │ │ ├── StatusListContainerViewModel.kt
│ │ │ │ │ ├── StatusListScreen.kt
│ │ │ │ │ ├── StatusListTab.kt
│ │ │ │ │ ├── StatusListType.kt
│ │ │ │ │ └── StatusListViewModel.kt
│ │ │ │ ├── tags/
│ │ │ │ │ ├── TagListScreen.kt
│ │ │ │ │ ├── TagListUiState.kt
│ │ │ │ │ └── TagListViewModel.kt
│ │ │ │ └── timeline/
│ │ │ │ ├── UserTimelineContainerViewModel.kt
│ │ │ │ ├── UserTimelineTab.kt
│ │ │ │ ├── UserTimelineTabType.kt
│ │ │ │ ├── UserTimelineUiState.kt
│ │ │ │ └── UserTimelineViewModel.kt
│ │ │ ├── source/
│ │ │ │ └── UserSourceTransformer.kt
│ │ │ ├── uri/
│ │ │ │ ├── ActivityPubUriHost.kt
│ │ │ │ ├── ActivityPubUriPath.kt
│ │ │ │ ├── PlatformUriTransformer.kt
│ │ │ │ ├── StatusProviderUriExts.kt
│ │ │ │ └── UserUriTransformer.kt
│ │ │ ├── usecase/
│ │ │ │ ├── ActivityPubAccountLogoutUseCase.kt
│ │ │ │ ├── GetDefaultBaseUrlUseCase.kt
│ │ │ │ ├── GetInstanceAnnouncementUseCase.kt
│ │ │ │ ├── GetServerTrendTagsUseCase.kt
│ │ │ │ ├── UpdateActivityPubUserListUseCase.kt
│ │ │ │ ├── content/
│ │ │ │ │ ├── GetUserCreatedListUseCase.kt
│ │ │ │ │ └── ReorderActivityPubTabUseCase.kt
│ │ │ │ ├── emoji/
│ │ │ │ │ ├── GetCustomEmojiUseCase.kt
│ │ │ │ │ └── MapCustomEmojiUseCase.kt
│ │ │ │ ├── media/
│ │ │ │ │ └── UploadMediaAttachmentUseCase.kt
│ │ │ │ ├── platform/
│ │ │ │ │ └── GetInstancePostStatusRulesUseCase.kt
│ │ │ │ ├── source/
│ │ │ │ │ └── user/
│ │ │ │ │ └── SearchUserSourceNoTokenUseCase.kt
│ │ │ │ └── status/
│ │ │ │ ├── GetStatusContextUseCase.kt
│ │ │ │ ├── GetTimelineStatusUseCase.kt
│ │ │ │ ├── GetUserStatusUseCase.kt
│ │ │ │ ├── StatusInteractiveUseCase.kt
│ │ │ │ └── VotePollUseCase.kt
│ │ │ └── utils/
│ │ │ ├── Base64Utils.kt
│ │ │ ├── DeleteTextUtil.kt
│ │ │ ├── MastodonHelper.kt
│ │ │ └── PlatformLocatorUtils.kt
│ │ └── iosMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── activitypub/
│ │ └── app/
│ │ ├── ActivityPubIosModule.kt
│ │ └── internal/
│ │ └── push/
│ │ ├── ActivityPubPushManager.ios.kt
│ │ └── ActivityPubPushMessageReceiverHelper.ios.kt
│ ├── bluesky/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── consumer-rules.pro
│ │ ├── proguard-rules.pro
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── bluesky/
│ │ │ └── BlueskyAndroidModule.kt
│ │ ├── androidTest/
│ │ │ └── java/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── bluesky/
│ │ │ └── ExampleInstrumentedTest.kt
│ │ ├── commonMain/
│ │ │ ├── composeResources/
│ │ │ │ └── drawable/
│ │ │ │ └── bluesky_logo.xml
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── bluesky/
│ │ │ ├── BlueskyAccountManager.kt
│ │ │ ├── BlueskyModule.kt
│ │ │ ├── BlueskyNavEntryProvider.kt
│ │ │ ├── BlueskyNotificationResolver.kt
│ │ │ ├── BlueskyProvider.kt
│ │ │ ├── BlueskyPublishManager.kt
│ │ │ ├── BlueskyScreenProvider.kt
│ │ │ ├── BlueskySearchEngine.kt
│ │ │ ├── BlueskyStatusResolver.kt
│ │ │ ├── BlueskyStatusSourceResolver.kt
│ │ │ ├── BskyStartup.kt
│ │ │ ├── BskyUrlInterceptor.kt
│ │ │ └── internal/
│ │ │ ├── account/
│ │ │ │ ├── BlueskyLoggedAccount.kt
│ │ │ │ └── BlueskyLoggedAccountManager.kt
│ │ │ ├── adapter/
│ │ │ │ ├── BlueskyAccountAdapter.kt
│ │ │ │ ├── BlueskyFeedsAdapter.kt
│ │ │ │ ├── BlueskyNotificationAdapter.kt
│ │ │ │ ├── BlueskyProfileAdapter.kt
│ │ │ │ └── BlueskyStatusAdapter.kt
│ │ │ ├── client/
│ │ │ │ ├── BlueskyClient.kt
│ │ │ │ ├── BlueskyClientManager.kt
│ │ │ │ ├── BlueskyResponseUtils.kt
│ │ │ │ ├── BskyCollections.kt
│ │ │ │ ├── BskyHttpPlugin.kt
│ │ │ │ ├── records.kt
│ │ │ │ └── rkeys.kt
│ │ │ ├── composable/
│ │ │ │ ├── BlueskyFeedsUi.kt
│ │ │ │ └── DetailTopBar.kt
│ │ │ ├── content/
│ │ │ │ ├── BlueskyContent.kt
│ │ │ │ └── BlueskyContentManager.kt
│ │ │ ├── db/
│ │ │ │ ├── BlueskyLoggedAccountDatabase.kt
│ │ │ │ └── converter/
│ │ │ │ ├── BlueskyLoggedAccountConverter.kt
│ │ │ │ └── GeneratorViewConverter.kt
│ │ │ ├── migrate/
│ │ │ │ └── BlueskyContentMigrator.kt
│ │ │ ├── model/
│ │ │ │ ├── BlueskyFeeds.kt
│ │ │ │ ├── BlueskyProfile.kt
│ │ │ │ ├── BskyPagingFeeds.kt
│ │ │ │ └── CompletedBskyNotification.kt
│ │ │ ├── repo/
│ │ │ │ ├── BlueskyLoggedAccountRepo.kt
│ │ │ │ └── BlueskyPlatformRepo.kt
│ │ │ ├── screen/
│ │ │ │ ├── BlueskyRoutes.kt
│ │ │ │ ├── add/
│ │ │ │ │ ├── AddBlueskyContentScreen.kt
│ │ │ │ │ ├── AddBlueskyContentUiState.kt
│ │ │ │ │ └── AddBlueskyContentViewModel.kt
│ │ │ │ ├── content/
│ │ │ │ │ ├── BlueskyContentContainerViewModel.kt
│ │ │ │ │ ├── BlueskyContentTab.kt
│ │ │ │ │ ├── BlueskyContentUiState.kt
│ │ │ │ │ └── BlueskyContentViewModel.kt
│ │ │ │ ├── explorer/
│ │ │ │ │ └── BlueskyExplorerTab.kt
│ │ │ │ ├── feeds/
│ │ │ │ │ ├── detail/
│ │ │ │ │ │ ├── FeedsDetailScreen.kt
│ │ │ │ │ │ ├── FeedsDetailUiState.kt
│ │ │ │ │ │ └── FeedsDetailViewModel.kt
│ │ │ │ │ ├── explorer/
│ │ │ │ │ │ ├── ExplorerFeedsScreen.kt
│ │ │ │ │ │ ├── ExplorerFeedsUiState.kt
│ │ │ │ │ │ └── ExplorerFeedsViewModel.kt
│ │ │ │ │ ├── following/
│ │ │ │ │ │ ├── BskyFollowingFeedsPage.kt
│ │ │ │ │ │ ├── BskyFollowingFeedsUiState.kt
│ │ │ │ │ │ └── BskyFollowingFeedsViewModel.kt
│ │ │ │ │ └── home/
│ │ │ │ │ ├── HomeFeedsContainerViewModel.kt
│ │ │ │ │ ├── HomeFeedsScreen.kt
│ │ │ │ │ ├── HomeFeedsTab.kt
│ │ │ │ │ └── HomeFeedsViewModel.kt
│ │ │ │ ├── publish/
│ │ │ │ │ ├── MentionCandidateBar.kt
│ │ │ │ │ ├── PublishPostEmbed.kt
│ │ │ │ │ ├── PublishPostMediaAttachment.kt
│ │ │ │ │ ├── PublishPostScreen.kt
│ │ │ │ │ ├── PublishPostUiState.kt
│ │ │ │ │ └── PublishPostViewModel.kt
│ │ │ │ ├── search/
│ │ │ │ │ ├── SearchStatusScreen.kt
│ │ │ │ │ └── SearchStatusViewModel.kt
│ │ │ │ └── user/
│ │ │ │ ├── detail/
│ │ │ │ │ ├── BskyUserDetailScreen.kt
│ │ │ │ │ ├── BskyUserDetailUiState.kt
│ │ │ │ │ └── BskyUserDetailViewModel.kt
│ │ │ │ ├── edit/
│ │ │ │ │ ├── EditProfileScreen.kt
│ │ │ │ │ ├── EditProfileUiState.kt
│ │ │ │ │ └── EditProfileViewModel.kt
│ │ │ │ └── list/
│ │ │ │ ├── UserListItemUiState.kt
│ │ │ │ ├── UserListScreen.kt
│ │ │ │ ├── UserListType.kt
│ │ │ │ └── UserListViewModel.kt
│ │ │ ├── tracking/
│ │ │ │ └── BskyTrackingElements.kt
│ │ │ ├── uri/
│ │ │ │ ├── BlueskyUriHost.kt
│ │ │ │ ├── BlueskyUriPath.kt
│ │ │ │ ├── platform/
│ │ │ │ │ ├── PlatformUriInsights.kt
│ │ │ │ │ └── PlatformUriTransformer.kt
│ │ │ │ └── user/
│ │ │ │ ├── UserUriInsights.kt
│ │ │ │ └── UserUriTransformer.kt
│ │ │ ├── usecase/
│ │ │ │ ├── BskyStatusInteractiveUseCase.kt
│ │ │ │ ├── CreateRecordUseCase.kt
│ │ │ │ ├── DeleteRecordUseCase.kt
│ │ │ │ ├── GetAllListsUseCase.kt
│ │ │ │ ├── GetAtIdentifierUseCase.kt
│ │ │ │ ├── GetCompletedNotificationUseCase.kt
│ │ │ │ ├── GetFeedsStatusUseCase.kt
│ │ │ │ ├── GetFollowingFeedsUseCase.kt
│ │ │ │ ├── GetStatusContextUseCase.kt
│ │ │ │ ├── LoginToBskyUseCase.kt
│ │ │ │ ├── PinFeedsUseCase.kt
│ │ │ │ ├── PublishingPostUseCase.kt
│ │ │ │ ├── RefreshSessionUseCase.kt
│ │ │ │ ├── UnblockUserWithoutUriUseCase.kt
│ │ │ │ ├── UnpinFeedsUseCase.kt
│ │ │ │ ├── UpdateBlockUseCase.kt
│ │ │ │ ├── UpdateHomeTabUseCase.kt
│ │ │ │ ├── UpdatePinnedFeedsOrderUseCase.kt
│ │ │ │ ├── UpdatePreferencesUseCase.kt
│ │ │ │ ├── UpdateProfileRecordUseCase.kt
│ │ │ │ ├── UpdateRelationshipUseCase.kt
│ │ │ │ ├── UploadBlobUseCase.kt
│ │ │ │ └── UploadImageByImageUrlUseCase.kt
│ │ │ └── utils/
│ │ │ ├── AtResponseUtils.kt
│ │ │ ├── PlatformLocatorUtils.kt
│ │ │ └── Tid.kt
│ │ ├── iosMain/
│ │ │ └── kotlin/
│ │ │ └── com/
│ │ │ └── zhangke/
│ │ │ └── fread/
│ │ │ └── bluesky/
│ │ │ └── BlueskyIosModule.kt
│ │ └── test/
│ │ └── java/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── bluesky/
│ │ └── ExampleUnitTest.kt
│ └── rss/
│ ├── .gitignore
│ ├── build.gradle.kts
│ ├── consumer-rules.pro
│ ├── proguard-rules.pro
│ └── src/
│ ├── androidMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── rss/
│ │ ├── RssAndroidModule.kt
│ │ └── internal/
│ │ └── utils/
│ │ └── AvatarUtils.android.kt
│ ├── commonMain/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── rss/
│ │ ├── RssAccountManager.kt
│ │ ├── RssContentManager.kt
│ │ ├── RssModule.kt
│ │ ├── RssNavEntryProvider.kt
│ │ ├── RssNotificationResolver.kt
│ │ ├── RssPublishManager.kt
│ │ ├── RssScreenProvider.kt
│ │ ├── RssSearchEngine.kt
│ │ ├── RssStatusProvider.kt
│ │ ├── RssStatusResolver.kt
│ │ ├── RssStatusSourceResolver.kt
│ │ └── internal/
│ │ ├── adapter/
│ │ │ ├── BlogAuthorAdapter.kt
│ │ │ ├── RssBlogMediaExtractor.kt
│ │ │ └── RssStatusAdapter.kt
│ │ ├── db/
│ │ │ ├── RssChannelTable.kt
│ │ │ ├── RssDatabases.kt
│ │ │ └── converter/
│ │ │ ├── FormalUriConverter.kt
│ │ │ └── InstantConverter.kt
│ │ ├── model/
│ │ │ ├── RssChannelItem.kt
│ │ │ └── RssSource.kt
│ │ ├── platform/
│ │ │ └── RssPlatformTransformer.kt
│ │ ├── repo/
│ │ │ ├── RssRepo.kt
│ │ │ └── RssStatusRepo.kt
│ │ ├── rss/
│ │ │ ├── RssChannel.kt
│ │ │ ├── RssFetcher.kt
│ │ │ ├── RssImage.kt
│ │ │ ├── RssItem.kt
│ │ │ ├── RssParserWrapper.kt
│ │ │ └── adapter/
│ │ │ ├── RssChannelAdapter.kt
│ │ │ ├── RssImageAdapter.kt
│ │ │ └── RssItemAdapter.kt
│ │ ├── screen/
│ │ │ ├── RssRoutes.kt
│ │ │ └── source/
│ │ │ ├── RssSourceScreen.kt
│ │ │ ├── RssSourceUiState.kt
│ │ │ └── RssSourceViewModel.kt
│ │ ├── source/
│ │ │ └── RssSourceTransformer.kt
│ │ ├── uri/
│ │ │ ├── RssUri.kt
│ │ │ ├── RssUriHost.kt
│ │ │ ├── RssUriInsight.kt
│ │ │ ├── RssUriPath.kt
│ │ │ └── RssUriTransformer.kt
│ │ ├── utils/
│ │ │ └── AvatarUtils.kt
│ │ └── webfinger/
│ │ └── RssSourceWebFingerTransformer.kt
│ ├── commonTest/
│ │ └── kotlin/
│ │ └── com/
│ │ └── zhangke/
│ │ └── fread/
│ │ └── rss/
│ │ └── internal/
│ │ └── adapter/
│ │ └── RssBlogMediaExtractorTest.kt
│ └── iosMain/
│ └── kotlin/
│ └── com/
│ └── zhangke/
│ └── fread/
│ └── rss/
│ ├── RssIosModule.kt
│ └── internal/
│ └── utils/
│ └── AvatarUtils.ios.kt
├── privacy_cn.md
├── privacy_en.md
├── settings.gradle.kts
└── thirds/
├── halilibo-richtext-material3/
│ ├── build.gradle.kts
│ └── src/
│ ├── androidMain/
│ │ └── AndroidManifest.xml
│ └── commonMain/
│ └── kotlin/
│ └── com/
│ └── halilibo/
│ └── richtext/
│ └── ui/
│ └── material3/
│ └── RichText.kt
└── halilibo-richtext-ui/
├── build.gradle.kts
└── src/
├── androidMain/
│ ├── AndroidManifest.xml
│ └── kotlin/
│ └── com/
│ └── halilibo/
│ └── richtext/
│ └── ui/
│ ├── CodeBlock.android.kt
│ └── util/
│ └── UUID.android.kt
├── commonMain/
│ └── kotlin/
│ └── com/
│ └── halilibo/
│ └── richtext/
│ └── ui/
│ ├── BasicRichText.kt
│ ├── BlockQuote.kt
│ ├── CodeBlock.kt
│ ├── FormattedList.kt
│ ├── Heading.kt
│ ├── HorizontalRule.kt
│ ├── InfoPanel.kt
│ ├── RichTextLocals.kt
│ ├── RichTextScope.kt
│ ├── RichTextStyle.kt
│ ├── RichTextThemeConfiguration.kt
│ ├── RichTextThemeProvider.kt
│ ├── SimpleTableLayout.kt
│ ├── Table.kt
│ ├── string/
│ │ ├── InlineContent.kt
│ │ ├── RichTextString.kt
│ │ └── Text.kt
│ └── util/
│ ├── ConditionalTapGestureDetector.kt
│ └── UUID.kt
└── iosMain/
└── kotlin/
└── com/
└── halilibo/
└── richtext/
└── ui/
├── CodeBlock.ios.kt
└── util/
└── UUID.ios.kt
Condensed preview — 1343 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (4,173K chars).
[
{
"path": ".codex/skills/screen2navkey/SKILL.md",
"chars": 2994,
"preview": "---\nname: screen2navkey\ndescription: convert Voyager Screen to navigation 3\n---\n\n## 任务背景\n目前项目中使用了 Voyager(cafe.adriel.vo"
},
{
"path": ".codex/skills/voyager2nav3/SKILL.md",
"chars": 2378,
"preview": "---\nname: voyager2nav3\ndescription: convert Voyager Screen to navigation 3\n---\n\n目前项目中使用了 Voyager(cafe.adriel.voyager:voy"
},
{
"path": ".editorconfig",
"chars": 61,
"preview": "[*.kt]\nmax_line_length = 100\n\n[*.java]\nmax_line_length = 100\n"
},
{
"path": ".github/FUNDING.yml",
"chars": 909,
"preview": "# These are supported funding model platforms\n\ngithub: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [u"
},
{
"path": ".github/ci-gradle.properties",
"chars": 274,
"preview": "org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=2g -Dfile.encoding=UTF-8\norg.gradle.daemon=false\norg.gradle.parallel=true"
},
{
"path": ".github/workflows/build_apk.yml",
"chars": 1989,
"preview": "on:\n push:\n tags:\n - '**'\n\nconcurrency:\n group: ${{ github.event.pull_request.number }}-build-ci\n cancel-in-p"
},
{
"path": ".github/workflows/check.yml",
"chars": 1238,
"preview": "name: Check CI\n\non:\n pull_request:\n paths-ignore:\n - 'documents/**'\n - '**.md'\n\nconcurrency:\n group: ${{ "
},
{
"path": ".gitignore",
"chars": 1320,
"preview": "*.iml\n.gradle\n.idea/\n/local.properties\n.DS_Store\n/build\n/captures\n.externalNativeBuild\n.cxx\nlocal.properties\n# Built app"
},
{
"path": "Agents.md",
"chars": 283,
"preview": "## Compact Instructions\n\nWhen compressing, preserve in priority order:\n\n1. Architecture decisions (NEVER summarize)\n2. M"
},
{
"path": "LICENSE",
"chars": 11341,
"preview": " Apache License\n Version 2.0, January 2004\n "
},
{
"path": "README.md",
"chars": 3393,
"preview": "<div align=\"center\">\n <img src=\"/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.webp\">\n <h1>Fread</h1>\n</div>\n\nFrea"
},
{
"path": "app/.gitignore",
"chars": 45,
"preview": "/build\n/debug\n/release\n/google-services.json\n"
},
{
"path": "app/build.gradle.kts",
"chars": 4485,
"preview": "import java.io.FileInputStream\nimport java.util.Properties\n\nplugins {\n id(\"fread.android.application\")\n id(\"fread."
},
{
"path": "app/proguard-rules.pro",
"chars": 3266,
"preview": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguar"
},
{
"path": "app/src/main/AndroidManifest.xml",
"chars": 19278,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:to"
},
{
"path": "app/src/main/java/com/zhangke/fread/FreadAndroidApplication.kt",
"chars": 125,
"preview": "package com.zhangke.fread\n\n/**\n * Created by ZhangKe on 2022/11/27.\n */\nclass FreadAndroidApplication : HostingApplicati"
},
{
"path": "app/src/main/java/com/zhangke/fread/screen/FreadActivity.kt",
"chars": 5136,
"preview": "package com.zhangke.fread.screen\n\nimport android.Manifest\nimport android.content.Intent\nimport android.content.pm.Packag"
},
{
"path": "app/src/main/res/drawable/ic_launcher_foreground.xml",
"chars": 11886,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"108dp\"\n android:height=\"108dp\"\n"
},
{
"path": "app/src/main/res/drawable/shape_alert_dialog_background.xml",
"chars": 184,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:sha"
},
{
"path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
"chars": 337,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n <b"
},
{
"path": "app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml",
"chars": 337,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n <b"
},
{
"path": "app/src/main/res/values/colors.xml",
"chars": 378,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n <color name=\"purple_200\">#FFBB86FC</color>\n <color name=\"purpl"
},
{
"path": "app/src/main/res/values/ic_launcher_background.xml",
"chars": 120,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n <color name=\"ic_launcher_background\">#B2E1FF</color>\n</resources>"
},
{
"path": "app/src/main/res/values/strings.xml",
"chars": 67,
"preview": "<resources>\n <string name=\"app_name\">Fread</string>\n</resources>"
},
{
"path": "app/src/main/res/values/themes.xml",
"chars": 98,
"preview": "<resources>\n <style name=\"Fread\" parent=\"Theme.AppCompat.DayNight.NoActionBar\" />\n</resources>\n"
},
{
"path": "app/src/main/res/values-zh/strings.xml",
"chars": 67,
"preview": "<resources>\n <string name=\"app_name\">Fread</string>\n</resources>"
},
{
"path": "app-hosting/build.gradle.kts",
"chars": 2709,
"preview": "plugins {\n id(\"fread.project.feature.kmp\")\n id(\"com.google.devtools.ksp\")\n id(\"kotlin-parcelize\")\n}\n\nandroid {\n"
},
{
"path": "app-hosting/src/androidMain/kotlin/com/zhangke/fread/HostingApplication.kt",
"chars": 833,
"preview": "package com.zhangke.fread\n\nimport android.app.Application\nimport com.seiko.imageloader.ImageLoader\nimport com.seiko.imag"
},
{
"path": "app-hosting/src/androidMain/kotlin/com/zhangke/fread/composable/LoadingPage.android.kt",
"chars": 332,
"preview": "package com.zhangke.fread.composable\n\nimport androidx.compose.foundation.layout.fillMaxSize\nimport androidx.compose.runt"
},
{
"path": "app-hosting/src/androidMain/kotlin/com/zhangke/fread/di/HostingModule.android.kt",
"chars": 1675,
"preview": "package com.zhangke.fread.di\n\nimport com.seiko.imageloader.ImageLoader\nimport com.seiko.imageloader.cache.memory.maxSize"
},
{
"path": "app-hosting/src/androidMain/kotlin/com/zhangke/fread/di/PlatformedFreadApplication.android.kt",
"chars": 363,
"preview": "package com.zhangke.fread.di\n\nimport com.zhangke.framework.utils.appContext\nimport org.koin.android.ext.koin.androidCont"
},
{
"path": "app-hosting/src/androidMain/kotlin/com/zhangke/fread/screen/DeviceCornerRadius.android.kt",
"chars": 1016,
"preview": "package com.zhangke.fread.screen\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.platform.LocalDe"
},
{
"path": "app-hosting/src/androidMain/kotlin/com/zhangke/fread/utils/ActivityHelper.android.kt",
"chars": 450,
"preview": "package com.zhangke.fread.utils\n\nimport android.content.Context\nimport android.content.Intent\nimport com.zhangke.framewo"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/CommonNavEntryProvider.kt",
"chars": 773,
"preview": "package com.zhangke.fread\n\nimport androidx.navigation3.runtime.EntryProviderScope\nimport androidx.navigation3.runtime.Na"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/auth/AuthenticationPage.kt",
"chars": 3351,
"preview": "package com.zhangke.fread.auth\n\nimport androidx.compose.foundation.background\nimport androidx.compose.foundation.clickab"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/composable/LoadingPage.kt",
"chars": 483,
"preview": "package com.zhangke.fread.composable\n\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundation.l"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/di/FreadApplication.kt",
"chars": 1610,
"preview": "package com.zhangke.fread.di\n\nimport com.zhangke.framework.module.ModuleStartup\nimport com.zhangke.fread.activitypub.app"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/di/HostingModule.kt",
"chars": 660,
"preview": "package com.zhangke.fread.di\n\nimport com.zhangke.framework.nav.NavEntryProvider\nimport com.zhangke.fread.CommonNavEntryP"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/DeviceCornerRadius.kt",
"chars": 169,
"preview": "package com.zhangke.fread.screen\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.unit.Dp\n\n@Compos"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/FreadApp.kt",
"chars": 10684,
"preview": "package com.zhangke.fread.screen\n\nimport androidx.compose.animation.ExperimentalSharedTransitionApi\nimport androidx.comp"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/FreadScreen.kt",
"chars": 10151,
"preview": "package com.zhangke.fread.screen\n\nimport androidx.compose.animation.AnimatedVisibility\nimport androidx.compose.animation"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/NavDisplayTransitions.kt",
"chars": 1757,
"preview": "package com.zhangke.fread.screen\n\nimport androidx.compose.animation.AnimatedContentTransitionScope\nimport androidx.compo"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/PredictiveBackEntryDecorator.kt",
"chars": 6045,
"preview": "package com.zhangke.fread.screen\n\nimport androidx.compose.animation.EnterExitState\nimport androidx.compose.foundation.la"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/main/MainPageUiState.kt",
"chars": 168,
"preview": "package com.zhangke.fread.screen.main\n\nimport com.zhangke.fread.common.update.AppReleaseInfo\n\ndata class MainPageUiState"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/main/MainViewModel.kt",
"chars": 1446,
"preview": "package com.zhangke.fread.screen.main\n\nimport androidx.lifecycle.ViewModel\nimport com.zhangke.framework.ktx.launchInView"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/main/drawer/MainDrawer.kt",
"chars": 11285,
"preview": "package com.zhangke.fread.screen.main.drawer\n\nimport androidx.compose.animation.core.animateDpAsState\nimport androidx.co"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/main/drawer/MainDrawerUiState.kt",
"chars": 332,
"preview": "package com.zhangke.fread.screen.main.drawer\n\nimport com.zhangke.fread.status.account.LoggedAccount\nimport com.zhangke.f"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/screen/main/drawer/MainDrawerViewModel.kt",
"chars": 2506,
"preview": "package com.zhangke.fread.screen.main.drawer\n\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelSco"
},
{
"path": "app-hosting/src/commonMain/kotlin/com/zhangke/fread/utils/ActivityHelper.kt",
"chars": 261,
"preview": "package com.zhangke.fread.utils\n\nimport androidx.compose.runtime.staticCompositionLocalOf\n\nexpect class ActivityHelper {"
},
{
"path": "app-hosting/src/iosMain/kotlin/com/zhangke/fread/di/HostingModule.ios.kt",
"chars": 1605,
"preview": "package com.zhangke.fread.di\n\nimport com.seiko.imageloader.ImageLoader\nimport com.seiko.imageloader.component.setupDefau"
},
{
"path": "app-hosting/src/iosMain/kotlin/com/zhangke/fread/di/PlatformedFreadApplication.ios.kt",
"chars": 163,
"preview": "package com.zhangke.fread.di\n\nimport org.koin.core.KoinApplication\n\nactual class PlatformedFreadApplication {\n\n actua"
},
{
"path": "app-hosting/src/iosMain/kotlin/com/zhangke/fread/screen/DeviceCornerRadius.ios.kt",
"chars": 212,
"preview": "package com.zhangke.fread.screen\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.unit.Dp\nimport a"
},
{
"path": "app-hosting/src/iosMain/kotlin/com/zhangke/fread/screen/FreadViewController.kt",
"chars": 346,
"preview": "package com.zhangke.fread.screen\n\nimport androidx.compose.ui.window.ComposeUIViewController\nimport platform.UIKit.UIView"
},
{
"path": "app-hosting/src/iosMain/kotlin/com/zhangke/fread/screen/IosFreadApp.kt",
"chars": 556,
"preview": "package com.zhangke.fread.screen\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.Composition"
},
{
"path": "app-hosting/src/iosMain/kotlin/com/zhangke/fread/startup/KRouterStartup.kt",
"chars": 327,
"preview": "package com.zhangke.fread.startup\n\nimport com.zhangke.framework.module.ModuleStartup\nimport com.zhangke.krouter.KRouter\n"
},
{
"path": "app-hosting/src/iosMain/kotlin/com/zhangke/fread/utils/ActivityHelper.ios.kt",
"chars": 268,
"preview": "package com.zhangke.fread.utils\n\nimport platform.UIKit.UIViewController\n\nactual class ActivityHelper(\n private val vi"
},
{
"path": "appprivacy.html",
"chars": 4308,
"preview": "<h1 id=\"fread-privacy-policy\">Fread Privacy Policy</h1>\n<p>ZhangKe built the Fread app. This SERVICE is provided by Zhan"
},
{
"path": "bizframework/status-provider/.gitignore",
"chars": 6,
"preview": "/build"
},
{
"path": "bizframework/status-provider/build.gradle.kts",
"chars": 1065,
"preview": "plugins {\n id(\"fread.project.framework.kmp\")\n id(\"kotlin-parcelize\")\n}\n\nandroid {\n namespace = \"com.zhangke.fre"
},
{
"path": "bizframework/status-provider/consumer-rules.pro",
"chars": 0,
"preview": ""
},
{
"path": "bizframework/status-provider/proguard-rules.pro",
"chars": 750,
"preview": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguar"
},
{
"path": "bizframework/status-provider/src/androidMain/kotlin/com/zhangke/fread/status/richtext/RichTextBuilder.android.kt",
"chars": 725,
"preview": "package com.zhangke.fread.status.richtext\n\nimport com.zhangke.fread.status.model.Mention\nimport moe.tlaster.ktml.dom.Ele"
},
{
"path": "bizframework/status-provider/src/androidMain/kotlin/com/zhangke/fread/status/utils/ImplementerFinder.kt",
"chars": 484,
"preview": "package com.zhangke.fread.status.utils\n\nimport java.util.ServiceLoader\n\ninline fun <reified T> findImplementer(): T {\n "
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/StatusProvider.kt",
"chars": 2250,
"preview": "package com.zhangke.fread.status\n\nimport com.zhangke.fread.status.account.AccountManager\nimport com.zhangke.fread.status"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/StatusProviderModel.kt",
"chars": 157,
"preview": "package com.zhangke.fread.status\n\nimport org.koin.dsl.module\n\nval statusProviderModel = module {\n\n single { StatusPro"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/account/AccountManager.kt",
"chars": 4319,
"preview": "package com.zhangke.fread.status.account\n\nimport com.zhangke.fread.status.author.BlogAuthor\nimport com.zhangke.fread.sta"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/account/AuthenticationFailureException.kt",
"chars": 237,
"preview": "package com.zhangke.fread.status.account\n\nclass AuthenticationFailureException(override val message: String?) : RuntimeE"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/account/LoggedAccount.kt",
"chars": 1393,
"preview": "package com.zhangke.fread.status.account\n\nimport com.zhangke.framework.utils.WebFinger\nimport com.zhangke.fread.status.m"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/author/BlogAuthor.kt",
"chars": 2085,
"preview": "package com.zhangke.fread.status.author\n\nimport com.zhangke.framework.utils.PlatformSerializable\nimport com.zhangke.fram"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/Blog.kt",
"chars": 4392,
"preview": "package com.zhangke.fread.status.blog\n\nimport com.zhangke.framework.datetime.Instant\nimport com.zhangke.framework.utils."
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogEmbed.kt",
"chars": 1536,
"preview": "package com.zhangke.fread.status.blog\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\nsealed interface BlogEmb"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogMedia.kt",
"chars": 411,
"preview": "package com.zhangke.fread.status.blog\n\nimport com.zhangke.framework.utils.PlatformSerializable\nimport kotlinx.serializat"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogMediaMeta.kt",
"chars": 2832,
"preview": "package com.zhangke.fread.status.blog\n\nimport com.zhangke.framework.utils.PlatformSerializable\nimport kotlinx.serializat"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogMediaType.kt",
"chars": 125,
"preview": "package com.zhangke.fread.status.blog\n\nenum class BlogMediaType {\n\n UNKNOWN,\n IMAGE,\n GIFV,\n VIDEO,\n AUDI"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogPoll.kt",
"chars": 842,
"preview": "package com.zhangke.fread.status.blog\n\nimport com.zhangke.framework.utils.PlatformSerializable\nimport kotlinx.serializat"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogServer.kt",
"chars": 190,
"preview": "package com.zhangke.fread.status.blog\n\ndata class BlogServer(\n val baseUrl: String,\n val name: String,\n val des"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/BlogTranslation.kt",
"chars": 1715,
"preview": "package com.zhangke.fread.status.blog\n\nimport com.zhangke.framework.utils.PlatformSerializable\nimport com.zhangke.fread."
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/CurrentUserQuoteApproval.kt",
"chars": 260,
"preview": "package com.zhangke.fread.status.blog\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\nenum class CurrentUserQu"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/blog/PostingApplication.kt",
"chars": 256,
"preview": "package com.zhangke.fread.status.blog\n\nimport com.zhangke.framework.utils.PlatformSerializable\nimport kotlinx.serializat"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/content/ContentManager.kt",
"chars": 1052,
"preview": "package com.zhangke.fread.status.content\n\nimport androidx.navigation3.runtime.NavKey\nimport com.zhangke.framework.compos"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/content/MixedContent.kt",
"chars": 2143,
"preview": "package com.zhangke.fread.status.content\n\nimport androidx.compose.material3.MaterialTheme\nimport androidx.compose.materi"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/BlogFiltered.kt",
"chars": 318,
"preview": "package com.zhangke.fread.status.model\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class BlogFiltered"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/ContentConfig.kt",
"chars": 4459,
"preview": "package com.zhangke.fread.status.model\n\nimport com.zhangke.framework.network.FormalBaseUrl\nimport com.zhangke.fread.stat"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/ContentType.kt",
"chars": 111,
"preview": "package com.zhangke.fread.status.model\n\nenum class ContentType {\n\n MIXED,\n ACTIVITY_PUB,\n BLUESKY,\n\n}\n"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/Emoji.kt",
"chars": 270,
"preview": "package com.zhangke.fread.status.model\n\nimport com.zhangke.framework.utils.PlatformSerializable\nimport kotlinx.serializa"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/FacetFeatureUnion.kt",
"chars": 492,
"preview": "package com.zhangke.fread.status.model\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class Facet(\n v"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/FormattingTime.kt",
"chars": 1019,
"preview": "package com.zhangke.fread.status.model\n\nimport androidx.compose.runtime.Composable\nimport com.zhangke.framework.datetime"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/FreadContent.kt",
"chars": 411,
"preview": "package com.zhangke.fread.status.model\n\nimport androidx.compose.runtime.Composable\nimport com.zhangke.fread.status.accou"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/Hashtag.kt",
"chars": 405,
"preview": "package com.zhangke.fread.status.model\n\nimport com.zhangke.framework.composable.TextString\n\ndata class Hashtag(\n val "
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/HashtagInStatus.kt",
"chars": 290,
"preview": "package com.zhangke.fread.status.model\n\nimport com.zhangke.framework.utils.PlatformSerializable\nimport kotlinx.serializa"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/LoggedAccountDetail.kt",
"chars": 239,
"preview": "package com.zhangke.fread.status.model\n\nimport com.zhangke.fread.status.account.LoggedAccount\nimport com.zhangke.fread.s"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/Mention.kt",
"chars": 381,
"preview": "package com.zhangke.fread.status.model\n\nimport com.zhangke.framework.utils.PlatformSerializable\nimport com.zhangke.frame"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/PagedData.kt",
"chars": 172,
"preview": "package com.zhangke.fread.status.model\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class PagedData<T>"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/PlatformLocator.kt",
"chars": 504,
"preview": "package com.zhangke.fread.status.model\n\nimport com.zhangke.framework.network.FormalBaseUrl\nimport com.zhangke.framework."
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/PostInteractionSetting.kt",
"chars": 1171,
"preview": "package com.zhangke.fread.status.model\n\ndata class PostInteractionSetting(\n val allowQuote: Boolean,\n val replySet"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/PublishBlogRules.kt",
"chars": 286,
"preview": "package com.zhangke.fread.status.model\n\ndata class PublishBlogRules(\n val maxCharacters: Int,\n val maxMediaCount: "
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/QuoteApprovalPolicy.kt",
"chars": 186,
"preview": "package com.zhangke.fread.status.model\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\nenum class QuoteApprova"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/Relationships.kt",
"chars": 1013,
"preview": "package com.zhangke.fread.status.model\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class Relationship"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/StatusActionType.kt",
"chars": 174,
"preview": "package com.zhangke.fread.status.model\n\nenum class StatusActionType {\n\n LIKE,\n FORWARD,\n BOOKMARK,\n REPLY,\n "
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/StatusList.kt",
"chars": 128,
"preview": "package com.zhangke.fread.status.model\n\ndata class StatusList(\n val name: String,\n val cid: String,\n val uri: S"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/StatusProviderProtocol.kt",
"chars": 1454,
"preview": "package com.zhangke.fread.status.model\n\nimport com.zhangke.framework.utils.Parcelize\nimport com.zhangke.framework.utils."
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/StatusUiState.kt",
"chars": 1847,
"preview": "package com.zhangke.fread.status.model\n\nimport com.zhangke.framework.utils.PlatformSerializable\nimport com.zhangke.fread"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/model/StatusVisibility.kt",
"chars": 259,
"preview": "package com.zhangke.fread.status.model\n\nimport com.zhangke.framework.utils.PlatformSerializable\nimport kotlinx.serializa"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/notification/NotificationResolver.kt",
"chars": 2563,
"preview": "package com.zhangke.fread.status.notification\n\nimport com.zhangke.fread.status.account.LoggedAccount\nimport com.zhangke."
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/notification/StatusNotification.kt",
"chars": 7001,
"preview": "package com.zhangke.fread.status.notification\n\nimport com.zhangke.framework.datetime.Instant\nimport com.zhangke.fread.st"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/platform/BlogPlatform.kt",
"chars": 666,
"preview": "package com.zhangke.fread.status.platform\n\nimport com.zhangke.framework.network.FormalBaseUrl\nimport com.zhangke.framewo"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/platform/PlatformResolver.kt",
"chars": 681,
"preview": "package com.zhangke.fread.status.platform\n\nimport com.zhangke.framework.collections.mapFirst\n\nclass PlatformResolver(\n "
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/platform/PlatformSnapshot.kt",
"chars": 344,
"preview": "package com.zhangke.fread.status.platform\n\nimport com.zhangke.fread.status.model.StatusProviderProtocol\n\ndata class Plat"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/publish/PublishBlogManager.kt",
"chars": 787,
"preview": "package com.zhangke.fread.status.publish\n\nimport com.zhangke.fread.status.account.LoggedAccount\nimport com.zhangke.fread"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/publish/PublishingPost.kt",
"chars": 598,
"preview": "package com.zhangke.fread.status.publish\n\nimport com.zhangke.framework.utils.ContentProviderFile\nimport com.zhangke.frea"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/richtext/OnLinkTargetClick.kt",
"chars": 160,
"preview": "package com.zhangke.fread.status.richtext\n\nimport com.zhangke.fread.status.richtext.model.RichLinkTarget\n\ntypealias OnLi"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/richtext/RichText.kt",
"chars": 1756,
"preview": "package com.zhangke.fread.status.richtext\n\nimport androidx.compose.ui.text.AnnotatedString\nimport com.zhangke.framework."
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/richtext/RichTextBuilder.kt",
"chars": 1496,
"preview": "package com.zhangke.fread.status.richtext\n\nimport com.zhangke.fread.status.blog.Blog\nimport com.zhangke.fread.status.mod"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/richtext/model/RichLinkTarget.kt",
"chars": 531,
"preview": "package com.zhangke.fread.status.richtext.model\n\nimport com.zhangke.fread.status.model.HashtagInStatus\nimport com.zhangk"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/richtext/parser/HtmlParser.kt",
"chars": 11849,
"preview": "package com.zhangke.fread.status.richtext.parser\n\nimport androidx.compose.foundation.text.appendInlineContent\nimport and"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/richtext/parser/PlaintextParser.kt",
"chars": 3176,
"preview": "package com.zhangke.fread.status.richtext.parser\n\nimport androidx.compose.ui.text.AnnotatedString\nimport androidx.compos"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/screen/StatusScreenProvider.kt",
"chars": 6181,
"preview": "package com.zhangke.fread.status.screen\n\nimport androidx.navigation3.runtime.NavKey\nimport com.zhangke.framework.nav.Tab"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/search/SearchContentResult.kt",
"chars": 965,
"preview": "package com.zhangke.fread.status.search\n\nimport com.zhangke.fread.status.model.StatusProviderProtocol\nimport com.zhangke"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/search/SearchEngine.kt",
"chars": 3138,
"preview": "package com.zhangke.fread.status.search\n\nimport com.zhangke.fread.status.author.BlogAuthor\nimport com.zhangke.fread.stat"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/search/SearchResult.kt",
"chars": 600,
"preview": "package com.zhangke.fread.status.search\n\nimport com.zhangke.fread.status.author.BlogAuthor\nimport com.zhangke.fread.stat"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/source/StatusSource.kt",
"chars": 553,
"preview": "package com.zhangke.fread.status.source\n\nimport com.zhangke.framework.utils.Parcelize\nimport com.zhangke.framework.utils"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/source/StatusSourceResolver.kt",
"chars": 835,
"preview": "package com.zhangke.fread.status.source\n\nimport com.zhangke.framework.collections.mapFirst\nimport com.zhangke.fread.stat"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/status/StatusResolver.kt",
"chars": 4278,
"preview": "package com.zhangke.fread.status.status\n\nimport com.zhangke.framework.collections.mapFirst\nimport com.zhangke.fread.stat"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/status/model/Status.kt",
"chars": 1577,
"preview": "package com.zhangke.fread.status.status.model\n\nimport com.zhangke.framework.datetime.Instant\nimport com.zhangke.framewor"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/status/model/StatusContext.kt",
"chars": 353,
"preview": "package com.zhangke.fread.status.status.model\n\nimport com.zhangke.fread.status.model.StatusUiState\n\ndata class StatusCon"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/uri/FormalUri.kt",
"chars": 2506,
"preview": "package com.zhangke.fread.status.uri\n\nimport com.zhangke.framework.utils.Parcelize\nimport com.zhangke.framework.utils.Pl"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/uri/FormalUriParser.kt",
"chars": 1982,
"preview": "package com.zhangke.fread.status.uri\n\nimport io.ktor.http.decodeURLQueryComponent\n\nprivate val defaultUriDecoder: (Strin"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/utils/DateTimeFormatter.kt",
"chars": 3617,
"preview": "package com.zhangke.fread.status.utils\n\nimport androidx.compose.runtime.Composable\nimport com.zhangke.fread.localization"
},
{
"path": "bizframework/status-provider/src/commonMain/kotlin/com/zhangke/fread/status/utils/ResultKtx.kt",
"chars": 461,
"preview": "package com.zhangke.fread.status.utils\n\nfun <T> List<Result<List<T>>>.collect(): Result<List<T>> {\n if (this.isEmpty("
},
{
"path": "bizframework/status-provider/src/commonTest/kotlin/com/zhangke/fread/status/richtext/parser/HtmlParserTest.kt",
"chars": 1075,
"preview": "package com.zhangke.fread.status.richtext.parser\n\nimport androidx.compose.foundation.text.appendInlineContent\nimport and"
},
{
"path": "bizframework/status-provider/src/commonTest/kotlin/com/zhangke/fread/status/uri/FormalUriTest.kt",
"chars": 5228,
"preview": "package com.zhangke.fread.status.uri\n\nimport kotlin.test.Test\nimport kotlin.test.assertEquals\nimport kotlin.test.assertT"
},
{
"path": "build-logic/README.md",
"chars": 2063,
"preview": "# Convention Plugins\n\nThe `build-logic` folder defines project-specific convention plugins, used to keep a single\nsource"
},
{
"path": "build-logic/convention/build.gradle.kts",
"chars": 2451,
"preview": "/*\n * Copyright 2022 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt",
"chars": 1835,
"preview": "/*\n * Copyright 2022 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licens"
},
{
"path": "build-logic/convention/src/main/kotlin/AndroidLibraryConventionPlugin.kt",
"chars": 1429,
"preview": "/*\n * Copyright 2022 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licens"
},
{
"path": "build-logic/convention/src/main/kotlin/ComposeMultiPlatformConventionPlugin.kt",
"chars": 2401,
"preview": "/*\n * Copyright 2022 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licens"
},
{
"path": "build-logic/convention/src/main/kotlin/KotlinMultiplatformLibraryConventionPlugin.kt",
"chars": 2469,
"preview": "/*\n * Copyright 2022 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licens"
},
{
"path": "build-logic/convention/src/main/kotlin/Project.kt",
"chars": 549,
"preview": "import org.gradle.kotlin.dsl.DependencyHandlerScope\nimport org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension\n"
},
{
"path": "build-logic/convention/src/main/kotlin/ProjectFeatureKmpConventionPlugin.kt",
"chars": 303,
"preview": "import org.gradle.api.Plugin\nimport org.gradle.api.Project\n\nclass ProjectFeatureKmpConventionPlugin: Plugin<Project> {\n\n"
},
{
"path": "build-logic/convention/src/main/kotlin/ProjectFrameworkKmpConventionPlugin.kt",
"chars": 2666,
"preview": "import com.zhangke.fread.compose\nimport com.zhangke.fread.kotlinMultiplatform\nimport com.zhangke.fread.libs\nimport org.g"
},
{
"path": "build-logic/convention/src/main/kotlin/com/zhangke/fread/KotlinAndroid.kt",
"chars": 4172,
"preview": "/*\n * Copyright 2022 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "build-logic/convention/src/main/kotlin/com/zhangke/fread/PrintTestApks.kt",
"chars": 3685,
"preview": "/*\n * Copyright 2022 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"Licens"
},
{
"path": "build-logic/convention/src/main/kotlin/com/zhangke/fread/ProjectExt.kt",
"chars": 2363,
"preview": "package com.zhangke.fread\n\nimport com.android.build.api.dsl.ApplicationExtension\nimport com.android.build.api.dsl.Librar"
},
{
"path": "build-logic/gradle.properties",
"chars": 182,
"preview": "# Gradle properties are not passed to included builds https://github.com/gradle/gradle/issues/2534\norg.gradle.parallel=t"
},
{
"path": "build-logic/settings.gradle.kts",
"chars": 893,
"preview": "/*\n * Copyright 2022 The Android Open Source Project\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\""
},
{
"path": "build.gradle.kts",
"chars": 598,
"preview": "plugins {\n alias(libs.plugins.android.application) apply false\n alias(libs.plugins.android.library) apply false\n "
},
{
"path": "commonbiz/analytics/.gitignore",
"chars": 6,
"preview": "/build"
},
{
"path": "commonbiz/analytics/build.gradle.kts",
"chars": 1036,
"preview": "plugins {\n id(\"fread.project.framework.kmp\")\n id(\"com.google.devtools.ksp\")\n id(\"kotlin-parcelize\")\n}\n\nandroid "
},
{
"path": "commonbiz/analytics/consumer-rules.pro",
"chars": 0,
"preview": ""
},
{
"path": "commonbiz/analytics/proguard-rules.pro",
"chars": 750,
"preview": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguar"
},
{
"path": "commonbiz/analytics/src/commonMain/kotlin/com/zhangke/fread/analytics/Analytics.kt",
"chars": 854,
"preview": "package com.zhangke.fread.analytics\n\nimport com.zhangke.krouter.KRouter\n\ninterface LogReporter {\n\n fun report(eventNa"
},
{
"path": "commonbiz/analytics/src/commonMain/kotlin/com/zhangke/fread/analytics/EventNames.kt",
"chars": 257,
"preview": "package com.zhangke.fread.analytics\n\nobject EventNames {\n\n const val PAGE_SHOW = \"page_show\"\n const val CLICK = \"c"
},
{
"path": "commonbiz/analytics/src/commonMain/kotlin/com/zhangke/fread/analytics/TrackingEventDataBuilder.kt",
"chars": 263,
"preview": "package com.zhangke.fread.analytics\n\n\nclass TrackingEventDataBuilder : MutableMap<String, String> by mutableMapOf() {\n\n "
},
{
"path": "commonbiz/common/.gitignore",
"chars": 6,
"preview": "/build"
},
{
"path": "commonbiz/common/build.gradle.kts",
"chars": 3083,
"preview": "plugins {\n id(\"fread.project.framework.kmp\")\n id(\"com.google.devtools.ksp\")\n id(\"kotlin-parcelize\")\n alias(l"
},
{
"path": "commonbiz/common/src/androidMain/AndroidManifest.xml",
"chars": 62,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest>\n\n</manifest>"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/AndroidCommonModule.kt",
"chars": 3122,
"preview": "package com.zhangke.fread.common\n\nimport android.content.Context\nimport androidx.datastore.core.DataStore\nimport android"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/browser/AndroidSystemBrowserLauncher.kt",
"chars": 1105,
"preview": "package com.zhangke.fread.common.browser\n\nimport android.content.Context\nimport android.content.Intent\nimport androidx.b"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/browser/OAuthLauncher.android.kt",
"chars": 956,
"preview": "package com.zhangke.fread.common.browser\n\nimport android.content.Intent\nimport androidx.browser.customtabs.CustomTabsInt"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/daynight/DayNightPlatformHelper.android.kt",
"chars": 906,
"preview": "package com.zhangke.fread.common.daynight\n\nimport androidx.appcompat.app.AppCompatDelegate\nimport com.zhangke.framework."
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/di/ApplicationContext.kt",
"chars": 92,
"preview": "package com.zhangke.fread.common.di\n\ntypealias ApplicationContext = android.content.Context\n"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/handler/TextHandler.android.kt",
"chars": 1397,
"preview": "package com.zhangke.fread.common.handler\n\nimport android.content.Context\nimport android.content.Intent\nimport androidx.c"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/language/ActivityLanguageHelper.android.kt",
"chars": 1369,
"preview": "package com.zhangke.fread.common.language\n\nimport android.content.Context\nimport android.os.Build.VERSION\nimport android"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/language/LanguageHelper.android.kt",
"chars": 3975,
"preview": "package com.zhangke.fread.common.language\n\nimport android.app.Activity\nimport android.app.Application\nimport android.con"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/page/BasePagerTabHookManager.android.kt",
"chars": 203,
"preview": "package com.zhangke.fread.common.page\n\nimport com.zhangke.fread.status.utils.findImplementers\n\ninternal actual fun findB"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/startup/LanguageModuleStartup.kt",
"chars": 317,
"preview": "package com.zhangke.fread.common.startup\n\nimport com.zhangke.framework.module.ModuleStartup\nimport com.zhangke.fread.com"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/update/AppPlatformUpdater.android.kt",
"chars": 1707,
"preview": "package com.zhangke.fread.common.update\n\nimport android.widget.Toast\nimport androidx.browser.customtabs.CustomTabsIntent"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/utils/ActivityResultUtils.kt",
"chars": 255,
"preview": "package com.zhangke.fread.common.utils\n\nimport android.content.Intent\n\ntypealias ActivityResultCallback = (resultCode: I"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/utils/MediaFileHelper.android.kt",
"chars": 1220,
"preview": "package com.zhangke.fread.common.utils\n\nimport com.zhangke.framework.media.MediaFileUtil\nimport com.zhangke.framework.to"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/utils/PlatformUriHelper.android.kt",
"chars": 1069,
"preview": "package com.zhangke.fread.common.utils\n\nimport com.zhangke.framework.media.MediaFileUtil\nimport com.zhangke.framework.ut"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/utils/RandomIdGenerator.android.kt",
"chars": 187,
"preview": "package com.zhangke.fread.common.utils\n\nimport java.util.UUID\n\nactual class RandomIdGenerator {\n\n actual fun generate"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/utils/ShareHelper.kt",
"chars": 721,
"preview": "package com.zhangke.fread.common.utils\n\nimport android.content.Context\nimport android.content.Intent\nimport androidx.cor"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/utils/StorageHelper.android.kt",
"chars": 327,
"preview": "package com.zhangke.fread.common.utils\n\nimport com.zhangke.fread.common.di.ApplicationContext\nimport okio.Path\nimport ok"
},
{
"path": "commonbiz/common/src/androidMain/kotlin/com/zhangke/fread/common/utils/ToastHelper.android.kt",
"chars": 419,
"preview": "package com.zhangke.fread.common.utils\n\nimport android.view.Gravity\nimport android.widget.Toast\nimport com.zhangke.fread"
},
{
"path": "commonbiz/common/src/androidMain/res/anim/fade_in.xml",
"chars": 184,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<alpha xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:dur"
},
{
"path": "commonbiz/common/src/androidMain/res/anim/fade_out.xml",
"chars": 184,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<alpha xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:dur"
},
{
"path": "commonbiz/common/src/androidMain/res/drawable/ic_logo_skeleton.xml",
"chars": 1828,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"157dp\"\n android:height=\"117dp\"\n"
},
{
"path": "commonbiz/common/src/androidMain/res/values/colors.xml",
"chars": 122,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n <color name=\"color_logo_background\">#FF00A5FF</color>\n</resources"
},
{
"path": "commonbiz/common/src/androidMain/res/values/theme.xml",
"chars": 495,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <style name=\"DialogActivity\" parent=\"Theme.AppCompat.Dialog\">\n "
},
{
"path": "commonbiz/common/src/commonMain/composeResources/drawable/bluesky_logo.xml",
"chars": 828,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"600dp\"\n android:height=\"530dp\"\n"
},
{
"path": "commonbiz/common/src/commonMain/composeResources/drawable/ic_explorer.xml",
"chars": 910,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"25dp\"\n android:height=\"26dp\"\n "
},
{
"path": "commonbiz/common/src/commonMain/composeResources/drawable/ic_not_found_404.xml",
"chars": 1588,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"256dp\"\n android:height="
},
{
"path": "commonbiz/common/src/commonMain/composeResources/drawable/mastodon_black_text.xml",
"chars": 6203,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:aapt=\"http://schemas.android.com/aapt\"\n "
},
{
"path": "commonbiz/common/src/commonMain/composeResources/drawable/mastodon_logo.xml",
"chars": 1293,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"61.08dp\"\n android:height=\"65.48"
},
{
"path": "commonbiz/common/src/commonMain/composeResources/drawable/mastodon_white_text.xml",
"chars": 6181,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:aapt=\"http://schemas.android.com/aapt\"\n "
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/CommonModule.kt",
"chars": 3624,
"preview": "package com.zhangke.fread.common\n\nimport com.zhangke.framework.architect.coroutines.ApplicationScope\nimport com.zhangke."
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/CommonNavEntryProvider.kt",
"chars": 1488,
"preview": "package com.zhangke.fread.common\n\nimport androidx.navigation3.runtime.EntryProviderScope\nimport androidx.navigation3.run"
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/CommonStartup.kt",
"chars": 724,
"preview": "package com.zhangke.fread.common\n\nimport com.zhangke.framework.module.ModuleStartup\nimport com.zhangke.fread.common.acco"
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/MixedContentJsonBuilder.kt",
"chars": 656,
"preview": "package com.zhangke.fread.common\n\nimport com.zhangke.framework.architect.json.JsonModuleBuilder\nimport com.zhangke.fread"
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/account/ActiveAccountsSynchronizer.kt",
"chars": 909,
"preview": "package com.zhangke.fread.common.account\n\nimport com.zhangke.framework.architect.coroutines.ApplicationScope\nimport com."
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/action/ComposableActions.kt",
"chars": 572,
"preview": "package com.zhangke.fread.common.action\n\nimport androidx.compose.runtime.staticCompositionLocalOf\nimport kotlinx.corouti"
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/action/RouteAction.kt",
"chars": 95,
"preview": "package com.zhangke.fread.common.action\n\ninterface RouteAction {\n\n fun execute(): Boolean\n}\n"
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/action/RouteActions.kt",
"chars": 393,
"preview": "package com.zhangke.fread.common.action\n\nobject RouteActions {\n\n const val ACTION_KEY = \"route_action\"\n\n const val"
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/adapter/StatusUiStateAdapter.kt",
"chars": 1588,
"preview": "package com.zhangke.fread.common.adapter\n\nimport com.zhangke.fread.status.model.BlogTranslationUiState\nimport com.zhangk"
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/browser/BrowserInterceptor.kt",
"chars": 777,
"preview": "package com.zhangke.fread.common.browser\n\nimport androidx.navigation3.runtime.NavKey\nimport com.zhangke.fread.status.mod"
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/browser/BrowserLauncher.kt",
"chars": 2885,
"preview": "package com.zhangke.fread.common.browser\n\nimport androidx.compose.runtime.staticCompositionLocalOf\nimport com.zhangke.fr"
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/browser/OAuthHandler.kt",
"chars": 120,
"preview": "package com.zhangke.fread.common.browser\n\nexpect class OAuthHandler {\n suspend fun startOAuth(url: String): String\n}\n"
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/browser/SystemBrowserLauncher.kt",
"chars": 220,
"preview": "package com.zhangke.fread.common.browser\n\nimport com.zhangke.framework.utils.PlatformUri\n\ninterface SystemBrowserLaunche"
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/browser/UrlRedirectScreen.kt",
"chars": 8851,
"preview": "package com.zhangke.fread.common.browser\n\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose.foundati"
},
{
"path": "commonbiz/common/src/commonMain/kotlin/com/zhangke/fread/common/bubble/Bubble.kt",
"chars": 207,
"preview": "package com.zhangke.fread.common.bubble\n\nimport androidx.compose.foundation.layout.ColumnScope\nimport androidx.compose.r"
}
]
// ... and 1143 more files (download for full content)
About this extraction
This page contains the full source code of the 0xZhangKe/Fread GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 1343 files (3.7 MB), approximately 1.1M tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.