Showing preview only (2,609K chars total). Download the full file or copy to clipboard to get everything.
Repository: OpenHub-Store/GitHub-Store
Branch: main
Commit: 223c091207e9
Files: 593
Total size: 2.3 MB
Directory structure:
gitextract_ol6wqqha/
├── .claude/
│ └── memory/
│ └── feedback_coding_boundaries.md
├── .coderabbit.yaml
├── .editorconfig
├── .github/
│ ├── FUNDING.yml
│ ├── ISSUE_TEMPLATE/
│ │ ├── bug_report.md
│ │ ├── custom.md
│ │ └── feature_request.md
│ └── workflows/
│ └── build-desktop-platforms.yml
├── .gitignore
├── CLAUDE.md
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── LICENSE
├── README.md
├── SECURITY.md
├── build-logic/
│ ├── convention/
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ └── main/
│ │ └── kotlin/
│ │ ├── AndroidApplicationComposeConventionPlugin.kt
│ │ ├── AndroidApplicationConventionPlugin.kt
│ │ ├── BuildKonfigConventionPlugin.kt
│ │ ├── CmpApplicationConventionPlugin.kt
│ │ ├── CmpFeatureConventionPlugin.kt
│ │ ├── CmpLibraryConventionPlugin.kt
│ │ ├── KmpLibraryConventionPlugin.kt
│ │ ├── KtlintConventionPlugin.kt
│ │ ├── RoomConventionPlugin.kt
│ │ └── zed/
│ │ └── rainxch/
│ │ └── githubstore/
│ │ └── convention/
│ │ ├── AndroidCompose.kt
│ │ ├── KotlinAndroid.kt
│ │ ├── KotlinAndroidTarget.kt
│ │ ├── KotlinJvmTarget.kt
│ │ ├── KotlinMultiplatform.kt
│ │ ├── PathUtil.kt
│ │ └── ProjectExt.kt
│ ├── gradle.properties
│ └── settings.gradle.kts
├── build.gradle.kts
├── composeApp/
│ ├── build.gradle.kts
│ ├── proguard-rules.pro
│ └── src/
│ ├── androidMain/
│ │ ├── AndroidManifest.xml
│ │ ├── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── githubstore/
│ │ │ ├── MainActivity.kt
│ │ │ └── app/
│ │ │ └── GithubStoreApp.kt
│ │ └── res/
│ │ ├── drawable/
│ │ │ ├── ic_launcher_monochrome.xml
│ │ │ └── ic_splash.xml
│ │ ├── mipmap-anydpi-v26/
│ │ │ ├── ic_launcher.xml
│ │ │ └── ic_launcher_round.xml
│ │ ├── values/
│ │ │ ├── colors.xml
│ │ │ ├── splash.xml
│ │ │ └── strings.xml
│ │ └── xml/
│ │ ├── filepaths.xml
│ │ └── network_security_config.xml
│ ├── commonMain/
│ │ ├── composeResources/
│ │ │ └── drawable/
│ │ │ └── ic_github.xml
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── githubstore/
│ │ ├── Main.kt
│ │ ├── MainAction.kt
│ │ ├── MainState.kt
│ │ ├── MainViewModel.kt
│ │ └── app/
│ │ ├── components/
│ │ │ ├── RateLimitDialog.kt
│ │ │ └── SessionExpiredDialog.kt
│ │ ├── deeplink/
│ │ │ └── DeepLinkParser.kt
│ │ ├── desktop/
│ │ │ ├── KeyboardNavigation.kt
│ │ │ └── KeyboardNavigationEvent.kt
│ │ ├── di/
│ │ │ ├── SharedModules.kt
│ │ │ ├── ViewModelsModule.kt
│ │ │ └── initKoin.kt
│ │ └── navigation/
│ │ ├── AppNavigation.kt
│ │ ├── BottomNavigation.kt
│ │ ├── BottomNavigationUtils.kt
│ │ ├── GithubStoreGraph.kt
│ │ └── NavigationUtils.kt
│ └── jvmMain/
│ ├── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── githubstore/
│ │ ├── DesktopApp.kt
│ │ └── DesktopDeepLink.kt
│ └── resources/
│ └── logo/
│ └── app_icon.icns
├── core/
│ ├── data/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ ├── schemas/
│ │ │ └── zed.rainxch.core.data.local.db.AppDatabase/
│ │ │ ├── 3.json
│ │ │ ├── 4.json
│ │ │ ├── 5.json
│ │ │ └── 6.json
│ │ └── src/
│ │ ├── androidMain/
│ │ │ ├── AndroidManifest.xml
│ │ │ ├── aidl/
│ │ │ │ └── zed/
│ │ │ │ └── rainxch/
│ │ │ │ └── core/
│ │ │ │ └── data/
│ │ │ │ └── services/
│ │ │ │ └── shizuku/
│ │ │ │ └── IShizukuInstallerService.aidl
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── core/
│ │ │ └── data/
│ │ │ ├── di/
│ │ │ │ └── PlatformModule.android.kt
│ │ │ ├── local/
│ │ │ │ ├── data_store/
│ │ │ │ │ └── createDataStore.kt
│ │ │ │ └── db/
│ │ │ │ ├── initDatabase.kt
│ │ │ │ └── migrations/
│ │ │ │ ├── MIGRATION_1_2.kt
│ │ │ │ ├── MIGRATION_2_3.kt
│ │ │ │ ├── MIGRATION_3_4.kt
│ │ │ │ ├── MIGRATION_4_5.kt
│ │ │ │ └── MIGRATION_5_6.kt
│ │ │ ├── network/
│ │ │ │ └── HttpClientFactory.android.kt
│ │ │ ├── services/
│ │ │ │ ├── AndroidDownloader.kt
│ │ │ │ ├── AndroidFileLocationsProvider.kt
│ │ │ │ ├── AndroidInstaller.kt
│ │ │ │ ├── AndroidInstallerInfoExtractor.kt
│ │ │ │ ├── AndroidLocalizationManager.kt
│ │ │ │ ├── AndroidPackageMonitor.kt
│ │ │ │ ├── AndroidUpdateScheduleManager.kt
│ │ │ │ ├── AutoUpdateWorker.kt
│ │ │ │ ├── BootReceiver.kt
│ │ │ │ ├── PackageEventReceiver.kt
│ │ │ │ ├── UpdateCheckWorker.kt
│ │ │ │ ├── UpdateScheduler.kt
│ │ │ │ └── shizuku/
│ │ │ │ ├── AndroidInstallerStatusProvider.kt
│ │ │ │ ├── ShizukuInstallerServiceImpl.kt
│ │ │ │ ├── ShizukuInstallerWrapper.kt
│ │ │ │ ├── ShizukuServiceManager.kt
│ │ │ │ └── model/
│ │ │ │ └── ShizukuStatus.kt
│ │ │ └── utils/
│ │ │ ├── AndroidAppLauncher.kt
│ │ │ ├── AndroidBrowserHelper.kt
│ │ │ ├── AndroidClipboardHelper.kt
│ │ │ └── AndroidShareManager.kt
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── core/
│ │ │ └── data/
│ │ │ ├── cache/
│ │ │ │ └── CacheManager.kt
│ │ │ ├── data_source/
│ │ │ │ ├── TokenStore.kt
│ │ │ │ └── impl/
│ │ │ │ └── DefaultTokenStore.kt
│ │ │ ├── di/
│ │ │ │ ├── PlatformModule.kt
│ │ │ │ └── SharedModule.kt
│ │ │ ├── dto/
│ │ │ │ ├── AssetNetwork.kt
│ │ │ │ ├── GitHubStarredResponse.kt
│ │ │ │ ├── GithubDeviceStartDto.kt
│ │ │ │ ├── GithubDeviceTokenErrorDto.kt
│ │ │ │ ├── GithubDeviceTokenSuccessDto.kt
│ │ │ │ ├── GithubOwnerNetworkModel.kt
│ │ │ │ ├── GithubRepoNetworkModel.kt
│ │ │ │ ├── GithubRepoSearchResponse.kt
│ │ │ │ ├── OwnerNetwork.kt
│ │ │ │ ├── ReleaseNetwork.kt
│ │ │ │ ├── RepoByIdNetwork.kt
│ │ │ │ ├── RepoInfoNetwork.kt
│ │ │ │ └── UserProfileNetwork.kt
│ │ │ ├── local/
│ │ │ │ ├── data_store/
│ │ │ │ │ └── createDataStoreCore.kt
│ │ │ │ └── db/
│ │ │ │ ├── AppDatabase.kt
│ │ │ │ ├── dao/
│ │ │ │ │ ├── CacheDao.kt
│ │ │ │ │ ├── FavoriteRepoDao.kt
│ │ │ │ │ ├── InstalledAppDao.kt
│ │ │ │ │ ├── SeenRepoDao.kt
│ │ │ │ │ ├── StarredRepoDao.kt
│ │ │ │ │ └── UpdateHistoryDao.kt
│ │ │ │ └── entities/
│ │ │ │ ├── CacheEntryEntity.kt
│ │ │ │ ├── FavoriteRepoEntity.kt
│ │ │ │ ├── InstalledAppEntity.kt
│ │ │ │ ├── SeenRepoEntity.kt
│ │ │ │ ├── StarredRepositoryEntity.kt
│ │ │ │ └── UpdateHistoryEntity.kt
│ │ │ ├── logging/
│ │ │ │ └── KermitLogger.kt
│ │ │ ├── mappers/
│ │ │ │ ├── AssetNetwork.kt
│ │ │ │ ├── FavouriteRepoMappers.kt
│ │ │ │ ├── GithubAuthMappers.kt
│ │ │ │ ├── GithubRepoMapper.kt
│ │ │ │ ├── InstalledAppsMappers.kt
│ │ │ │ ├── ReleaseNetwork.kt
│ │ │ │ ├── StarredRepoMapper.kt
│ │ │ │ └── UpdateHistoryMapper.kt
│ │ │ ├── network/
│ │ │ │ ├── GitHubClientProvider.kt
│ │ │ │ ├── HttpClientFactory.kt
│ │ │ │ ├── ProxyManager.kt
│ │ │ │ └── interceptor/
│ │ │ │ ├── RateLimitInterceptor.kt
│ │ │ │ └── UnauthorizedInterceptor.kt
│ │ │ ├── repository/
│ │ │ │ ├── AuthenticationStateImpl.kt
│ │ │ │ ├── FavouritesRepositoryImpl.kt
│ │ │ │ ├── InstalledAppsRepositoryImpl.kt
│ │ │ │ ├── ProxyRepositoryImpl.kt
│ │ │ │ ├── RateLimitRepositoryImpl.kt
│ │ │ │ ├── SeenReposRepositoryImpl.kt
│ │ │ │ ├── StarredRepositoryImpl.kt
│ │ │ │ └── TweaksRepositoryImpl.kt
│ │ │ └── services/
│ │ │ ├── FileLocationsProvider.kt
│ │ │ └── LocalizationManager.kt
│ │ └── jvmMain/
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── core/
│ │ └── data/
│ │ ├── di/
│ │ │ └── PlatformModule.jvm.kt
│ │ ├── local/
│ │ │ ├── data_store/
│ │ │ │ └── createDataStore.kt
│ │ │ └── db/
│ │ │ └── initDatabase.kt
│ │ ├── model/
│ │ │ ├── LinuxPackageType.kt
│ │ │ └── LinuxTerminal.kt
│ │ ├── network/
│ │ │ └── HttpClientFactory.jvm.kt
│ │ ├── services/
│ │ │ ├── DesktopDownloader.kt
│ │ │ ├── DesktopFileLocationsProvider.kt
│ │ │ ├── DesktopInstaller.kt
│ │ │ ├── DesktopInstallerInfoExtractor.kt
│ │ │ ├── DesktopInstallerStatusProvider.kt
│ │ │ ├── DesktopLocalizationManager.kt
│ │ │ ├── DesktopPackageMonitor.kt
│ │ │ └── DesktopUpdateScheduleManager.kt
│ │ └── utils/
│ │ ├── DesktopAppLauncher.kt
│ │ ├── DesktopBrowserHelper.kt
│ │ ├── DesktopClipboardHelper.kt
│ │ └── DesktopShareManager.kt
│ ├── domain/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ ├── AndroidManifest.xml
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── core/
│ │ │ └── domain/
│ │ │ └── Platform.android.kt
│ │ ├── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── core/
│ │ │ └── domain/
│ │ │ ├── Platform.kt
│ │ │ ├── logging/
│ │ │ │ └── GitHubStoreLogger.kt
│ │ │ ├── model/
│ │ │ │ ├── ApkPackageInfo.kt
│ │ │ │ ├── AppTheme.kt
│ │ │ │ ├── AssetArchitectureMatcher.kt
│ │ │ │ ├── DeviceApp.kt
│ │ │ │ ├── DiscoveryPlatform.kt
│ │ │ │ ├── DownloadProgress.kt
│ │ │ │ ├── ExportedApp.kt
│ │ │ │ ├── FavoriteRepo.kt
│ │ │ │ ├── FontTheme.kt
│ │ │ │ ├── GithubAsset.kt
│ │ │ │ ├── GithubDeviceStart.kt
│ │ │ │ ├── GithubDeviceTokenError.kt
│ │ │ │ ├── GithubDeviceTokenSuccess.kt
│ │ │ │ ├── GithubRelease.kt
│ │ │ │ ├── GithubRepoSummary.kt
│ │ │ │ ├── GithubUser.kt
│ │ │ │ ├── GithubUserProfile.kt
│ │ │ │ ├── InstallSource.kt
│ │ │ │ ├── InstalledApp.kt
│ │ │ │ ├── InstallerType.kt
│ │ │ │ ├── PackageChangeType.kt
│ │ │ │ ├── PaginatedDiscoveryRepositories.kt
│ │ │ │ ├── Platform.kt
│ │ │ │ ├── ProxyConfig.kt
│ │ │ │ ├── RateLimitException.kt
│ │ │ │ ├── RateLimitInfo.kt
│ │ │ │ ├── ShizukuAvailability.kt
│ │ │ │ ├── StarredRepository.kt
│ │ │ │ ├── SystemArchitecture.kt
│ │ │ │ ├── SystemPackageInfo.kt
│ │ │ │ └── UpdateHistory.kt
│ │ │ ├── network/
│ │ │ │ └── Downloader.kt
│ │ │ ├── repository/
│ │ │ │ ├── AuthenticationState.kt
│ │ │ │ ├── FavouritesRepository.kt
│ │ │ │ ├── InstalledAppsRepository.kt
│ │ │ │ ├── ProxyRepository.kt
│ │ │ │ ├── RateLimitRepository.kt
│ │ │ │ ├── SeenReposRepository.kt
│ │ │ │ ├── StarredRepository.kt
│ │ │ │ └── TweaksRepository.kt
│ │ │ ├── system/
│ │ │ │ ├── Installer.kt
│ │ │ │ ├── InstallerInfoExtractor.kt
│ │ │ │ ├── InstallerStatusProvider.kt
│ │ │ │ ├── PackageMonitor.kt
│ │ │ │ └── UpdateScheduleManager.kt
│ │ │ ├── use_cases/
│ │ │ │ └── SyncInstalledAppsUseCase.kt
│ │ │ └── utils/
│ │ │ ├── AppLauncher.kt
│ │ │ ├── BrowserHelper.kt
│ │ │ ├── ClipboardHelper.kt
│ │ │ └── ShareManager.kt
│ │ └── jvmMain/
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── core/
│ │ └── domain/
│ │ └── Platform.jvm.kt
│ └── presentation/
│ ├── .gitignore
│ ├── build.gradle.kts
│ └── src/
│ ├── androidMain/
│ │ ├── AndroidManifest.xml
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── core/
│ │ └── presentation/
│ │ ├── theme/
│ │ │ └── Theme.android.kt
│ │ └── utils/
│ │ ├── ApplyAndroidSystemBars.android.kt
│ │ └── isLiquidFrostAvailable.android.kt
│ ├── commonMain/
│ │ ├── composeResources/
│ │ │ ├── drawable/
│ │ │ │ ├── ic_github.xml
│ │ │ │ ├── ic_platform_android.xml
│ │ │ │ ├── ic_platform_linux.xml
│ │ │ │ ├── ic_platform_macos.xml
│ │ │ │ └── ic_platform_windows.xml
│ │ │ ├── values/
│ │ │ │ └── strings.xml
│ │ │ ├── values-ar/
│ │ │ │ └── strings-ar.xml
│ │ │ ├── values-bn/
│ │ │ │ └── strings-bn.xml
│ │ │ ├── values-es/
│ │ │ │ └── strings-es.xml
│ │ │ ├── values-fr/
│ │ │ │ └── strings-fr.xml
│ │ │ ├── values-hi/
│ │ │ │ └── strings-hi.xml
│ │ │ ├── values-it/
│ │ │ │ └── strings-it.xml
│ │ │ ├── values-ja/
│ │ │ │ └── strings-ja.xml
│ │ │ ├── values-ko/
│ │ │ │ └── strings-ko.xml
│ │ │ ├── values-pl/
│ │ │ │ └── strings-pl.xml
│ │ │ ├── values-ru/
│ │ │ │ └── strings-ru.xml
│ │ │ ├── values-tr/
│ │ │ │ └── strings-tr.xml
│ │ │ └── values-zh-rCN/
│ │ │ └── strings-zh-rCN.xml
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── core/
│ │ └── presentation/
│ │ ├── components/
│ │ │ ├── ExpressiveCard.kt
│ │ │ ├── GitHubStoreImage.kt
│ │ │ ├── GithubStoreButton.kt
│ │ │ └── RepositoryCard.kt
│ │ ├── locals/
│ │ │ ├── LocalBottomNavigationHeight.kt
│ │ │ └── LocalBottomNavigationLiquid.kt
│ │ ├── model/
│ │ │ ├── DiscoveryRepositoryUi.kt
│ │ │ ├── GithubRepoSummaryUi.kt
│ │ │ └── GithubUserUi.kt
│ │ ├── theme/
│ │ │ ├── Color.kt
│ │ │ ├── Theme.kt
│ │ │ └── Type.kt
│ │ └── utils/
│ │ ├── AppThemeUtil.kt
│ │ ├── ApplyAndroidSystemBars.kt
│ │ ├── CountFormatter.kt
│ │ ├── DiscoveryPlatformUiResources.kt
│ │ ├── GithubRepoSummaryMappers.kt
│ │ ├── GithubUserMappers.kt
│ │ ├── ObserveAsEvents.kt
│ │ ├── TimeFormatters.kt
│ │ └── isLiquidFrostAvailable.kt
│ └── jvmMain/
│ └── kotlin/
│ └── zed/
│ └── rainxch/
│ └── core/
│ └── presentation/
│ ├── theme/
│ │ └── Theme.jvm.kt
│ └── utils/
│ ├── ApplyAndroidSystemBars.jvm.kt
│ └── isLiquidFrostAvailable.jvm.kt
├── docs/
│ ├── README-BN.md
│ ├── README-ES.md
│ ├── README-FR.md
│ ├── README-HI.md
│ ├── README-IT.md
│ ├── README-JA.md
│ ├── README-KR.md
│ ├── README-PL.md
│ ├── README-RU.md
│ ├── README-TR.md
│ └── README-ZH.md
├── fastlane/
│ └── metadata/
│ └── android/
│ └── en-US/
│ ├── full_description.txt
│ ├── short_description.txt
│ └── title.txt
├── feature/
│ ├── apps/
│ │ ├── CLAUDE.md
│ │ ├── data/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── apps/
│ │ │ └── data/
│ │ │ ├── di/
│ │ │ │ └── SharedModule.kt
│ │ │ └── repository/
│ │ │ └── AppsRepositoryImpl.kt
│ │ ├── domain/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── apps/
│ │ │ └── domain/
│ │ │ ├── model/
│ │ │ │ ├── GithubRepoInfo.kt
│ │ │ │ └── ImportResult.kt
│ │ │ └── repository/
│ │ │ └── AppsRepository.kt
│ │ └── presentation/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── AndroidManifest.xml
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── apps/
│ │ └── presentation/
│ │ ├── AppsAction.kt
│ │ ├── AppsEvent.kt
│ │ ├── AppsRoot.kt
│ │ ├── AppsState.kt
│ │ ├── AppsViewModel.kt
│ │ ├── components/
│ │ │ └── LinkAppBottomSheet.kt
│ │ ├── mappers/
│ │ │ ├── DeviceAppMapper.kt
│ │ │ ├── GithubAssetMapper.kt
│ │ │ ├── GithubRepoInfoMapper.kt
│ │ │ └── InstalledAppMapper.kt
│ │ └── model/
│ │ ├── AppItem.kt
│ │ ├── DeviceAppUi.kt
│ │ ├── GithubAssetUi.kt
│ │ ├── GithubRepoInfoUi.kt
│ │ ├── GithubUserUi.kt
│ │ ├── InstalledAppUi.kt
│ │ ├── UpdateAllProgress.kt
│ │ └── UpdateState.kt
│ ├── auth/
│ │ ├── CLAUDE.md
│ │ ├── data/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── auth/
│ │ │ └── data/
│ │ │ ├── di/
│ │ │ │ └── SharedModule.kt
│ │ │ ├── network/
│ │ │ │ └── GitHubAuthApi.kt
│ │ │ └── repository/
│ │ │ └── AuthenticationRepositoryImpl.kt
│ │ ├── domain/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── auth/
│ │ │ └── domain/
│ │ │ └── repository/
│ │ │ └── AuthenticationRepository.kt
│ │ └── presentation/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── AndroidManifest.xml
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── auth/
│ │ └── presentation/
│ │ ├── AuthenticationAction.kt
│ │ ├── AuthenticationEvents.kt
│ │ ├── AuthenticationRoot.kt
│ │ ├── AuthenticationState.kt
│ │ ├── AuthenticationViewModel.kt
│ │ ├── mapper/
│ │ │ └── GithubDeviceStartMapper.kt
│ │ └── model/
│ │ ├── AuthLoginState.kt
│ │ └── GithubDeviceStartUi.kt
│ ├── details/
│ │ ├── CLAUDE.md
│ │ ├── data/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── details/
│ │ │ └── data/
│ │ │ ├── di/
│ │ │ │ └── SharedModule.kt
│ │ │ ├── dto/
│ │ │ │ └── AttestationsResponse.kt
│ │ │ ├── model/
│ │ │ │ └── ReadmeAttempt.kt
│ │ │ ├── repository/
│ │ │ │ ├── DetailsRepositoryImpl.kt
│ │ │ │ └── TranslationRepositoryImpl.kt
│ │ │ └── utils/
│ │ │ ├── ReadmeLocalizationHelper.kt
│ │ │ └── preprocessMarkdown.kt
│ │ ├── domain/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── details/
│ │ │ └── domain/
│ │ │ ├── model/
│ │ │ │ ├── ReleaseCategory.kt
│ │ │ │ ├── RepoStats.kt
│ │ │ │ ├── SupportedLanguage.kt
│ │ │ │ └── TranslationResult.kt
│ │ │ └── repository/
│ │ │ ├── DetailsRepository.kt
│ │ │ └── TranslationRepository.kt
│ │ └── presentation/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── AndroidManifest.xml
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── details/
│ │ └── presentation/
│ │ ├── DetailsAction.kt
│ │ ├── DetailsEvent.kt
│ │ ├── DetailsRoot.kt
│ │ ├── DetailsState.kt
│ │ ├── DetailsViewModel.kt
│ │ ├── components/
│ │ │ ├── AppHeader.kt
│ │ │ ├── LanguagePicker.kt
│ │ │ ├── ReleaseAssetsPicker.kt
│ │ │ ├── SmartInstallButton.kt
│ │ │ ├── StatItem.kt
│ │ │ ├── TranslationControls.kt
│ │ │ ├── VersionPicker.kt
│ │ │ ├── VersionTypePicker.kt
│ │ │ ├── sections/
│ │ │ │ ├── About.kt
│ │ │ │ ├── Header.kt
│ │ │ │ ├── Logs.kt
│ │ │ │ ├── Owner.kt
│ │ │ │ ├── ReportIssue.kt
│ │ │ │ ├── Stats.kt
│ │ │ │ └── WhatsNew.kt
│ │ │ └── states/
│ │ │ └── ErrorState.kt
│ │ ├── model/
│ │ │ ├── AttestationStatus.kt
│ │ │ ├── DownloadStage.kt
│ │ │ ├── InstallLogItem.kt
│ │ │ ├── LogResult.kt
│ │ │ ├── ShowDowngradeWarning.kt
│ │ │ ├── SigningKeyWarning.kt
│ │ │ ├── SupportedLanguages.kt
│ │ │ ├── TranslationState.kt
│ │ │ └── TranslationTarget.kt
│ │ └── utils/
│ │ ├── LocalTopbarLiquidState.kt
│ │ ├── LogResultAsText.kt
│ │ ├── MarkdownImageTransformer.kt
│ │ ├── MarkdownUtils.kt
│ │ └── SystemArchitecture.kt
│ ├── dev-profile/
│ │ ├── CLAUDE.md
│ │ ├── data/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── devprofile/
│ │ │ └── data/
│ │ │ ├── di/
│ │ │ │ └── SharedModule.kt
│ │ │ ├── dto/
│ │ │ │ ├── GitHubRepoResponse.kt
│ │ │ │ └── GitHubUserResponse.kt
│ │ │ ├── mappers/
│ │ │ │ ├── GitHubRepoToDomain.kt
│ │ │ │ └── GitHubUserToDomain.kt
│ │ │ └── repository/
│ │ │ └── DeveloperProfileRepositoryImpl.kt
│ │ ├── domain/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── devprofile/
│ │ │ └── domain/
│ │ │ ├── model/
│ │ │ │ ├── DeveloperProfile.kt
│ │ │ │ ├── DeveloperRepository.kt
│ │ │ │ ├── RepoFilterType.kt
│ │ │ │ └── RepoSortType.kt
│ │ │ └── repository/
│ │ │ └── DeveloperProfileRepository.kt
│ │ └── presentation/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── AndroidManifest.xml
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── devprofile/
│ │ └── presentation/
│ │ ├── DeveloperProfileAction.kt
│ │ ├── DeveloperProfileRoot.kt
│ │ ├── DeveloperProfileState.kt
│ │ ├── DeveloperProfileViewModel.kt
│ │ └── components/
│ │ ├── DeveloperRepoItem.kt
│ │ ├── FilterSortControls.kt
│ │ ├── ProfileInfoCard.kt
│ │ └── StatsRow.kt
│ ├── favourites/
│ │ ├── CLAUDE.md
│ │ ├── data/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ └── androidMain/
│ │ │ └── AndroidManifest.xml
│ │ ├── domain/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ └── androidMain/
│ │ │ └── AndroidManifest.xml
│ │ └── presentation/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── AndroidManifest.xml
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── favourites/
│ │ └── presentation/
│ │ ├── FavouritesAction.kt
│ │ ├── FavouritesRoot.kt
│ │ ├── FavouritesState.kt
│ │ ├── FavouritesViewModel.kt
│ │ ├── components/
│ │ │ └── FavouriteRepositoryItem.kt
│ │ ├── mappers/
│ │ │ └── FavouriteRepositoryMapper.kt
│ │ └── model/
│ │ └── FavouriteRepository.kt
│ ├── home/
│ │ ├── CLAUDE.md
│ │ ├── data/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── home/
│ │ │ └── data/
│ │ │ ├── data_source/
│ │ │ │ ├── CachedRepositoriesDataSource.kt
│ │ │ │ └── impl/
│ │ │ │ └── CachedRepositoriesDataSourceImpl.kt
│ │ │ ├── di/
│ │ │ │ └── SharedModule.kt
│ │ │ ├── dto/
│ │ │ │ ├── CachedGithubOwner.kt
│ │ │ │ ├── CachedGithubRepoSummary.kt
│ │ │ │ └── CachedRepoResponse.kt
│ │ │ ├── mappers/
│ │ │ │ └── CachedGithubRepoSummaryMappers.kt
│ │ │ └── repository/
│ │ │ └── HomeRepositoryImpl.kt
│ │ ├── domain/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── home/
│ │ │ └── domain/
│ │ │ ├── model/
│ │ │ │ └── HomeCategory.kt
│ │ │ └── repository/
│ │ │ └── HomeRepository.kt
│ │ └── presentation/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── AndroidManifest.xml
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── home/
│ │ └── presentation/
│ │ ├── HomeAction.kt
│ │ ├── HomeEvent.kt
│ │ ├── HomeRoot.kt
│ │ ├── HomeState.kt
│ │ ├── HomeViewModel.kt
│ │ ├── components/
│ │ │ └── HomeFilterChips.kt
│ │ ├── locals/
│ │ │ └── LocalHomeTopBarLiquid.kt
│ │ └── utils/
│ │ └── HomeCategoryMapper.kt
│ ├── profile/
│ │ ├── CLAUDE.md
│ │ ├── data/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── profile/
│ │ │ └── data/
│ │ │ ├── di/
│ │ │ │ └── SharedModule.kt
│ │ │ ├── mappers/
│ │ │ │ └── UserProfileMappers.kt
│ │ │ └── repository/
│ │ │ └── ProfileRepositoryImpl.kt
│ │ ├── domain/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── profile/
│ │ │ └── domain/
│ │ │ ├── model/
│ │ │ │ └── UserProfile.kt
│ │ │ └── repository/
│ │ │ └── ProfileRepository.kt
│ │ └── presentation/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── AndroidManifest.xml
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── profile/
│ │ └── presentation/
│ │ ├── ProfileAction.kt
│ │ ├── ProfileEvent.kt
│ │ ├── ProfileRoot.kt
│ │ ├── ProfileState.kt
│ │ ├── ProfileViewModel.kt
│ │ ├── SponsorScreen.kt
│ │ ├── components/
│ │ │ ├── LogoutDialog.kt
│ │ │ ├── SectionText.kt
│ │ │ └── sections/
│ │ │ ├── About.kt
│ │ │ ├── Account.kt
│ │ │ ├── AccountSection.kt
│ │ │ ├── Appearance.kt
│ │ │ ├── Installation.kt
│ │ │ ├── Network.kt
│ │ │ ├── Options.kt
│ │ │ ├── Others.kt
│ │ │ ├── ProfileSection.kt
│ │ │ └── SettingsSection.kt
│ │ └── model/
│ │ └── ProxyType.kt
│ ├── search/
│ │ ├── CLAUDE.md
│ │ ├── data/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── search/
│ │ │ └── data/
│ │ │ ├── di/
│ │ │ │ └── SharedModule.kt
│ │ │ ├── dto/
│ │ │ │ ├── AssetNetworkModel.kt
│ │ │ │ └── GithubReleaseNetworkModel.kt
│ │ │ ├── repository/
│ │ │ │ └── SearchRepositoryImpl.kt
│ │ │ └── utils/
│ │ │ └── LruCache.kt
│ │ ├── domain/
│ │ │ ├── .gitignore
│ │ │ ├── build.gradle.kts
│ │ │ └── src/
│ │ │ ├── androidMain/
│ │ │ │ └── AndroidManifest.xml
│ │ │ └── commonMain/
│ │ │ └── kotlin/
│ │ │ └── zed/
│ │ │ └── rainxch/
│ │ │ └── domain/
│ │ │ ├── model/
│ │ │ │ ├── ProgrammingLanguage.kt
│ │ │ │ ├── SortBy.kt
│ │ │ │ └── SortOrder.kt
│ │ │ └── repository/
│ │ │ └── SearchRepository.kt
│ │ └── presentation/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ ├── androidMain/
│ │ │ └── AndroidManifest.xml
│ │ └── commonMain/
│ │ └── kotlin/
│ │ └── zed/
│ │ └── rainxch/
│ │ └── search/
│ │ └── presentation/
│ │ ├── SearchAction.kt
│ │ ├── SearchEvent.kt
│ │ ├── SearchRoot.kt
│ │ ├── SearchState.kt
│ │ ├── SearchViewModel.kt
│ │ ├── components/
│ │ │ ├── LanguageFilterBottomSheet.kt
│ │ │ └── SortByBottomSheet.kt
│ │ ├── mappers/
│ │ │ ├── PlatformLanguageMappers.kt
│ │ │ ├── SearchPlatformMappers.kt
│ │ │ ├── SortByMappers.kt
│ │ │ └── SortOrderMapper.kt
│ │ ├── model/
│ │ │ ├── ParsedGithubLink.kt
│ │ │ ├── ProgrammingLanguageUi.kt
│ │ │ ├── SearchPlatformUi.kt
│ │ │ ├── SortByUi.kt
│ │ │ └── SortOrderUi.kt
│ │ └── utils/
│ │ ├── GithubUrlParser.kt
│ │ ├── ProgrammingLanguageMapper.kt
│ │ ├── SortByMapper.kt
│ │ └── SortOrderMapper.kt
│ └── starred/
│ ├── CLAUDE.md
│ ├── data/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ └── androidMain/
│ │ └── AndroidManifest.xml
│ ├── domain/
│ │ ├── .gitignore
│ │ ├── build.gradle.kts
│ │ └── src/
│ │ └── androidMain/
│ │ └── AndroidManifest.xml
│ └── presentation/
│ ├── .gitignore
│ ├── build.gradle.kts
│ └── src/
│ ├── androidMain/
│ │ └── AndroidManifest.xml
│ └── commonMain/
│ └── kotlin/
│ └── zed/
│ └── rainxch/
│ └── starred/
│ └── presentation/
│ ├── StarredReposAction.kt
│ ├── StarredReposRoot.kt
│ ├── StarredReposState.kt
│ ├── StarredReposViewModel.kt
│ ├── components/
│ │ └── StarredRepositoryItem.kt
│ ├── mappers/
│ │ └── StarredRepoToUiMapper.kt
│ ├── model/
│ │ └── StarredRepositoryUi.kt
│ └── utils/
│ └── TimeFormatUtils.kt
├── gradle/
│ ├── libs.versions.toml
│ └── wrapper/
│ ├── gradle-wrapper.jar
│ └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── packaging/
│ └── flatpak/
│ ├── README.md
│ ├── disable-android-for-flatpak.sh
│ ├── flatpak-sources.json
│ ├── githubstore.sh
│ ├── zed.rainxch.githubstore.desktop
│ ├── zed.rainxch.githubstore.metainfo.xml
│ └── zed.rainxch.githubstore.yml
└── settings.gradle.kts
================================================
FILE CONTENTS
================================================
================================================
FILE: .claude/memory/feedback_coding_boundaries.md
================================================
---
name: coding_boundaries
description: User wants to write all non-trivial logic themselves — Claude should only review, suggest, and handle boilerplate
type: feedback
---
Never write the "hard parts" — architecture decisions, core business logic, state management patterns, bug fix implementations, algorithm design. Instead, review the user's code, point out issues, suggest approaches, and explain tradeoffs. Let the user implement it.
**Why:** The user noticed their coding instincts and skills declining from over-delegating to Claude. They want to stay sharp by doing the thinking and implementation themselves.
**How to apply:**
- **Hard parts** (user codes): ViewModel logic, repository implementations, state flows, bug fixes, architectural patterns, cache strategies, concurrency handling, UI interaction logic. For these — review, suggest, explain, but don't write the code.
- **Boilerplate** (Claude codes): repetitive refactors, string resources, migration scaffolding, import fixes, build config, copy-paste patterns, test scaffolding, file moves/renames.
- When the user asks to fix a bug or implement a feature, describe what's wrong and suggest an approach — then let them write it.
- If the user explicitly asks "just do it" for something non-trivial, remind them of this agreement first.
================================================
FILE: .coderabbit.yaml
================================================
language: "en-US"
early_access: false
reviews:
profile: "chill"
request_changes_workflow: false
high_level_summary: true
poem: true
review_status: true
collapse_walkthrough: false
auto_review:
enabled: true
drafts: false
================================================
FILE: .editorconfig
================================================
root = true
[*.{kt,kts}]
ktlint_standard_filename = disabled
ktlint_standard_no-wildcard-imports = disabled
ktlint_function_naming_ignore_when_annotated_with = Composable
================================================
FILE: .github/FUNDING.yml
================================================
# These are supported funding model platforms
github: [rainxchzed]
buy_me_a_coffee: rainxchzed
custom: https://golden-kodee.awardsplatform.com/entry/vote/mNKjQxkX/vnZAamgg?search=8154c88ed0eccba9-70
================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.md
================================================
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]
**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
**Additional context**
Add any other context about the problem here.
================================================
FILE: .github/ISSUE_TEMPLATE/custom.md
================================================
---
name: Custom issue template
about: Describe this issue template's purpose here.
title: ''
labels: ''
assignees: ''
---
================================================
FILE: .github/ISSUE_TEMPLATE/feature_request.md
================================================
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''
---
**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
**Describe the solution you'd like**
A clear and concise description of what you want to happen.
**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.
**Additional context**
Add any other context or screenshots about the feature request here.
================================================
FILE: .github/workflows/build-desktop-platforms.yml
================================================
name: Build Desktop Platform Installers
on:
push:
branches:
- generate-installers
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
JAVA_VERSION: '21'
JAVA_DISTRIBUTION: 'temurin'
GRADLE_OPTS: >-
-Dorg.gradle.daemon=false
-Dorg.gradle.parallel=true
-Dorg.gradle.caching=true
-Dorg.gradle.vfs.watch=false
jobs:
build-windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
gradle-home-cache-cleanup: true
- name: Grant execute permission for gradlew
run: chmod +x gradlew
shell: bash
- name: Build Windows installers (EXE & MSI)
run: |
set -euo pipefail
retry() {
local n=1 max=3 delay=5
while true; do
echo "Attempt #$n: $*"
"$@" && break
[ $n -ge $max ] && { echo "Failed after $n attempts."; return 1; }
n=$((n+1)); echo "Retrying in ${delay}s..."; sleep $delay; delay=$((delay*2))
done
}
retry ./gradlew :composeApp:packageExe :composeApp:packageMsi
shell: bash
- name: Upload Windows installers
uses: actions/upload-artifact@v4
with:
name: windows-installers
path: |
composeApp/build/compose/binaries/main/exe/*.exe
composeApp/build/compose/binaries/main/msi/*.msi
retention-days: 30
compression-level: 6
build-macos:
strategy:
matrix:
include:
- os: macos-15-intel
arch: x64
- os: macos-latest
arch: arm64
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
gradle-home-cache-cleanup: true
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build macOS installers (DMG & PKG)
run: |
set -euo pipefail
retry() {
local n=1 max=3 delay=5
while true; do
echo "Attempt #$n: $*"
"$@" && break
[ $n -ge $max ] && { echo "Failed after $n attempts."; return 1; }
n=$((n+1)); echo "Retrying in ${delay}s..."; sleep $delay; delay=$((delay*2))
done
}
retry ./gradlew :composeApp:packageDmg :composeApp:packagePkg
shell: bash
- name: Upload macOS installers
uses: actions/upload-artifact@v4
with:
name: macos-installers-${{ matrix.arch }}
path: |
composeApp/build/compose/binaries/main/dmg/*.dmg
composeApp/build/compose/binaries/main/pkg/*.pkg
retention-days: 30
compression-level: 6
build-linux:
strategy:
matrix:
include:
- os: ubuntu-latest
label: modern
gradle-tasks: >-
:composeApp:packageDeb
:composeApp:packageRpm
:composeApp:packageAppImage
- os: ubuntu-22.04
label: debian12-compat
gradle-tasks: >-
:composeApp:packageDeb
:composeApp:packageRpm
runs-on: ${{ matrix.os }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Set up JDK ${{ env.JAVA_VERSION }}
uses: actions/setup-java@v4
with:
distribution: ${{ env.JAVA_DISTRIBUTION }}
java-version: ${{ env.JAVA_VERSION }}
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
cache-read-only: false
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
gradle-home-cache-cleanup: true
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Build Linux installers
run: |
set -euo pipefail
retry() {
local n=1 max=3 delay=5
while true; do
echo "Attempt #$n: $*"
"$@" && break
[ $n -ge $max ] && { echo "Failed after $n attempts."; return 1; }
n=$((n+1)); echo "Retrying in ${delay}s..."; sleep $delay; delay=$((delay*2))
done
}
retry ./gradlew ${{ matrix.gradle-tasks }}
shell: bash
- name: List AppImage build output
if: matrix.label == 'modern'
run: |
echo "=== Listing build output ==="
find composeApp/build/compose/binaries/main -maxdepth 3 -type d 2>/dev/null || echo "Directory not found"
echo "=== All files ==="
find composeApp/build/compose/binaries/main -maxdepth 4 -type f 2>/dev/null | head -30 || echo "No files found"
shell: bash
- name: Build AppImage with appimagetool
if: matrix.label == 'modern'
run: |
set -euo pipefail
# Find the directory containing the app launcher (bin/GitHub-Store)
APP_ROOT=""
for candidate in \
composeApp/build/compose/binaries/main/app-image/GitHub-Store \
composeApp/build/compose/binaries/main/app/GitHub-Store \
composeApp/build/compose/binaries/main/app-image \
composeApp/build/compose/binaries/main/app; do
if [ -f "$candidate/bin/GitHub-Store" ]; then
APP_ROOT="$candidate"
echo "Found app root at: $candidate"
break
fi
done
if [ -z "$APP_ROOT" ]; then
echo "ERROR: Could not find app launcher (bin/GitHub-Store)"
find composeApp/build/compose/binaries/main -type f -name "GitHub-Store" 2>/dev/null || true
exit 1
fi
# Download appimagetool
wget -q https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
chmod +x appimagetool-x86_64.AppImage
# Create AppDir from Compose output
APPDIR="GitHub-Store.AppDir"
mv "$APP_ROOT" "$APPDIR"
# Create AppRun entry point
cat > "$APPDIR/AppRun" << 'EOF'
#!/bin/bash
SELF=$(readlink -f "$0")
HERE=${SELF%/*}
exec "${HERE}/bin/GitHub-Store" "$@"
EOF
chmod +x "$APPDIR/AppRun"
# Create .desktop file
cat > "$APPDIR/github-store.desktop" << 'EOF'
[Desktop Entry]
Type=Application
Name=GitHub Store
Exec=GitHub-Store
Icon=github-store
Categories=Development;
Comment=Cross-platform app store for GitHub releases
EOF
# Copy icon to AppDir root (required by appimagetool)
cp "$APPDIR/lib/GitHub-Store.png" "$APPDIR/github-store.png"
# Build .AppImage
OUTPUT="composeApp/build/compose/binaries/main/GitHub-Store-x86_64.AppImage"
UPINFO="gh-releases-zsync|rainxchzed|Github-Store|latest|*x86_64.AppImage.zsync"
ARCH=x86_64 APPIMAGE_EXTRACT_AND_RUN=1 ./appimagetool-x86_64.AppImage -u "$UPINFO" "$APPDIR" "$OUTPUT"
# appimagetool may place .zsync in the working directory; move it next to the AppImage
ZSYNC_NAME="$(basename "$OUTPUT").zsync"
if [ -f "$ZSYNC_NAME" ] && [ ! -f "$OUTPUT.zsync" ]; then
mv "$ZSYNC_NAME" "$OUTPUT.zsync"
fi
echo "Created AppImage and zsync:"
ls -lh "$OUTPUT" "$OUTPUT.zsync"
shell: bash
- name: Upload Linux installers
uses: actions/upload-artifact@v4
with:
name: linux-installers-${{ matrix.label }}
path: |
composeApp/build/compose/binaries/main/deb/*.deb
composeApp/build/compose/binaries/main/rpm/*.rpm
retention-days: 30
compression-level: 6
- name: Upload Linux AppImage
if: matrix.label == 'modern'
uses: actions/upload-artifact@v4
with:
name: linux-appimage
path: |
composeApp/build/compose/binaries/main/GitHub-Store-x86_64.AppImage
composeApp/build/compose/binaries/main/GitHub-Store-x86_64.AppImage.zsync
if-no-files-found: error
retention-days: 30
compression-level: 0
================================================
FILE: .gitignore
================================================
# Gradle files
.gradle/
build/
# Local configuration file (sdk path, etc)
local.properties
# Log/OS Files
*.log
# Android Studio generated files and folders
captures/
.externalNativeBuild/
.cxx/
*.aab
*.apk
output-metadata.json
# IntelliJ
*.iml
.idea/
misc.xml
deploymentTargetDropDown.xml
render.experimental.xml
# Keystore files
*.jks
*.keystore
# Google Services (e.g. APIs or Firebase)
google-services.json
# Android Profiling
*.hprof
.kotlin/
composeApp/release/baselineProfiles/
composeApp/kotzilla.json
================================================
FILE: CLAUDE.md
================================================
# CLAUDE.md - GitHub Store
## Project Overview
GitHub Store is a cross-platform app store for GitHub releases, built with **Kotlin Multiplatform (KMP)** and **Compose Multiplatform**. Targets **Android** (min API 26) and **Desktop** (Windows, macOS, Linux via JVM).
Package: `zed.rainxch.githubstore` | Version: 1.6.2 (code 13) | Target SDK: 36
## Build & Run Commands
```bash
# Android
./gradlew :composeApp:assembleDebug
./gradlew :composeApp:assembleRelease
# Desktop (run in dev mode)
./gradlew :composeApp:run
# Desktop installers
./gradlew :composeApp:packageExe :composeApp:packageMsi # Windows
./gradlew :composeApp:packageDmg :composeApp:packagePkg # macOS
./gradlew :composeApp:packageDeb :composeApp:packageRpm # Linux
# Full build check
./gradlew build
```
**Requirements:** JDK 21+ (Temurin recommended), Android SDK for Android builds.
## Project Structure
```
composeApp/ # Main app module (entry points, navigation, DI wiring)
src/commonMain/ # Shared UI & app wiring
src/androidMain/ # Android entry point (MainActivity)
src/jvmMain/ # Desktop entry point (DesktopApp.kt)
core/
domain/ # Shared interfaces, models, use cases (no framework deps)
data/ # Shared repos, networking (Ktor), database (Room), DI
presentation/ # Shared theming (Material 3) & reusable UI components
feature/
apps/ # Installed applications management
auth/ # GitHub OAuth device flow authentication
details/ # Repository details, releases, readme, downloads
dev-profile/ # Developer/user profile display
favourites/ # Saved favorite repositories (presentation-only)
home/ # Main discovery screen (trending, hot, popular)
profile/ # User profile, settings, appearance, proxy, Shizuku installer
search/ # Repository search with filters
starred/ # Starred repositories (presentation-only)
build-logic/convention/ # Custom Gradle convention plugins
```
Each feature has up to 3 sub-modules: `domain/` (interfaces & models), `data/` (implementations & DI), `presentation/` (screens & ViewModels). Some features (favourites, starred) are presentation-only and use core repositories directly.
## Architecture
**Clean Architecture + MVVM** with strict layer separation per feature module:
- **Domain** - Repository interfaces, models, use cases (no framework dependencies)
- **Data** - Repository implementations, Ktor API clients, Room DAOs, DTOs, mappers
- **Presentation** - ViewModels with `StateFlow`/`Channel`, Compose screens
### State Management Pattern
Every screen follows the same State/Action/Event pattern:
```kotlin
class XViewModel : ViewModel() {
private val _state = MutableStateFlow(XState())
val state = _state.asStateFlow() // or .stateIn() with WhileSubscribed
private val _events = Channel<XEvent>()
val events = _events.receiveAsFlow()
fun onAction(action: XAction) { ... }
}
```
- `State` - data class holding all UI state
- `Action` - sealed interface for user input (clicks, refreshes, etc.)
- `Event` - sealed interface for one-off effects (navigation, toasts, scroll)
### Navigation
Type-safe navigation using `@Serializable` sealed interface `GithubStoreGraph`:
```
HomeScreen, SearchScreen, AuthenticationScreen, ProfileScreen,
FavouritesScreen, StarredReposScreen, AppsScreen, SponsorScreen
DetailsScreen(repositoryId, owner, repo, isComingFromUpdate)
DeveloperProfileScreen(username)
```
Routes defined in `composeApp/.../app/navigation/GithubStoreGraph.kt`, wired in `AppNavigation.kt`.
### Dependency Injection
**Koin** - modules defined in each feature's `data/di/SharedModule.kt`, registered in `composeApp/.../app/di/initKoin.kt`. ViewModels injected via `koinViewModel()`.
### Core Modules
| Module | Purpose | Key Contents |
|--------|---------|--------------|
| `core/domain` | Shared contracts | Repository interfaces (`FavouritesRepository`, `StarredRepository`, `InstalledAppsRepository`, `ThemesRepository`, `ProxyRepository`, `RateLimitRepository`), models (`GithubRepoSummary`, `GithubRelease`, `InstalledApp`, `ProxyConfig`, `InstallerType`, `ShizukuAvailability`), system interfaces (`Installer`, `InstallerInfoExtractor`, `InstallerStatusProvider`, `PackageMonitor`) |
| `core/data` | Shared implementations | `HttpClientFactory` (Ktor + interceptors), `AppDatabase` (Room), `ProxyManager`, `TokenStore`, `LocalizationManager`, platform-specific clients (OkHttp for Android, CIO for Desktop), Shizuku integration (Android: `ShizukuServiceManager`, `ShizukuInstallerWrapper`, `ShizukuInstallerServiceImpl`, `AndroidInstallerStatusProvider`; Desktop: `DesktopInstallerStatusProvider`) |
| `core/presentation` | Shared UI | `GithubStoreTheme` (Material 3), reusable components (`RepositoryCard`, `GithubStoreButton`), formatting utils, localized strings (11 languages) |
## Tech Stack
| Area | Library | Version |
|------|---------|---------|
| Language | Kotlin | 2.3.10 |
| UI | Compose Multiplatform | 1.10.1 |
| HTTP | Ktor | 3.4.0 |
| Database | Room | 2.8.4 |
| DI | Koin | 4.1.1 |
| Serialization | Kotlinx Serialization | 1.10.0 |
| Preferences | DataStore | 1.2.0 |
| Image Loading | Landscapist (Coil3) | 2.9.5 |
| Logging | Kermit | 2.0.8 |
| Permissions | MOKO Permissions | 0.20.1 |
| Navigation | Navigation Compose | 2.9.2 |
| Markdown | Multiplatform Markdown Renderer | 0.39.2 |
| Shizuku | Shizuku API | 13.1.5 |
| Background Work | WorkManager | 2.11.1 |
| Date/Time | Kotlinx Datetime | 0.7.1 |
All versions managed in `gradle/libs.versions.toml` (Version Catalog).
## Convention Plugins
Custom Gradle plugins in `build-logic/convention/` standardize module setup:
| Plugin | Use For |
|--------|---------|
| `convention.kmp.library` | KMP shared library modules (domain, data) |
| `convention.cmp.library` | Compose Multiplatform library modules (core/presentation) |
| `convention.cmp.feature` | Feature presentation modules (auto-adds Compose + Koin + core:presentation) |
| `convention.cmp.application` | Main app module |
| `convention.room` | Room database modules |
| `convention.buildkonfig` | Build-time config (API keys from local.properties) |
## Adding a New Feature
1. Create `feature/<name>/domain/`, `feature/<name>/data/`, `feature/<name>/presentation/`
2. Add `build.gradle.kts` in each using the appropriate convention plugin
3. Add `include` entries in `settings.gradle.kts`
4. Define domain interfaces/models in `domain/`
5. Implement repository + Koin DI module in `data/di/SharedModule.kt`
6. Create ViewModel (State/Action/Event pattern) and Screen in `presentation/`
7. Add navigation route to `GithubStoreGraph.kt` and wire in `AppNavigation.kt`
8. Register the Koin module in `initKoin.kt`
## Key Configuration
- **GitHub OAuth:** Set `GITHUB_CLIENT_ID` in `local.properties`. Callback URL: `githubstore://callback`. Deep link: `githubstore://repo`
- **Shizuku (Android):** Optional silent install via `ShizukuProvider` (registered in AndroidManifest). Requires Shizuku app running with ADB or root. AIDL service passes APK via `ParcelFileDescriptor` to `pm install -S`. Falls back to standard installer on failure.
- **Gradle properties:** Config cache enabled, build cache enabled, 4GB Gradle heap, 3GB Kotlin daemon heap
- **Code style:** Official Kotlin style (`kotlin.code.style=official`)
## Coding Conventions
- Packages follow `zed.rainxch.{module}.{layer}` pattern
- Private state properties use underscore prefix: `_state`
- Sealed classes/interfaces for type-safe navigation routes, actions, events
- Repository pattern: interface in `domain/`, implementation in `data/`
- Composition over inheritance via Koin DI
- Source sets: `commonMain` for shared, `androidMain` for Android, `jvmMain` for Desktop
- Feature CLAUDE.md files exist in each `feature/` directory for module-specific guidance
================================================
FILE: CODE_OF_CONDUCT.md
================================================
# Contributor Covenant Code of Conduct
## Our Pledge
We as members, contributors, and leaders pledge to make participation in our
community a harassment-free experience for everyone, regardless of age, body
size, visible or invisible disability, ethnicity, sex characteristics, gender
identity and expression, level of experience, education, socio-economic status,
nationality, personal appearance, race, religion, or sexual identity
and orientation.
We pledge to act and interact in ways that contribute to an open, welcoming,
diverse, inclusive, and healthy community.
## Our Standards
Examples of behavior that contributes to a positive environment for our
community include:
* Demonstrating empathy and kindness toward other people
* Being respectful of differing opinions, viewpoints, and experiences
* Giving and gracefully accepting constructive feedback
* Accepting responsibility and apologizing to those affected by our mistakes,
and learning from the experience
* Focusing on what is best not just for us as individuals, but for the
overall community
Examples of unacceptable behavior include:
* The use of sexualized language or imagery, and sexual attention or
advances of any kind
* Trolling, insulting or derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or email
address, without their explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting
## Enforcement Responsibilities
Community leaders are responsible for clarifying and enforcing our standards of
acceptable behavior and will take appropriate and fair corrective action in
response to any behavior that they deem inappropriate, threatening, offensive,
or harmful.
Community leaders have the right and responsibility to remove, edit, or reject
comments, commits, code, wiki edits, issues, and other contributions that are
not aligned to this Code of Conduct, and will communicate reasons for moderation
decisions when appropriate.
## Scope
This Code of Conduct applies within all community spaces, and also applies when
an individual is officially representing the community in public spaces.
Examples of representing our community include using an official e-mail address,
posting via an official social media account, or acting as an appointed
representative at an online or offline event.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported to the community leaders responsible for enforcement at
rainxchzed@gmail.com.
All complaints will be reviewed and investigated promptly and fairly.
All community leaders are obligated to respect the privacy and security of the
reporter of any incident.
## Enforcement Guidelines
Community leaders will follow these Community Impact Guidelines in determining
the consequences for any action they deem in violation of this Code of Conduct:
### 1. Correction
**Community Impact**: Use of inappropriate language or other behavior deemed
unprofessional or unwelcome in the community.
**Consequence**: A private, written warning from community leaders, providing
clarity around the nature of the violation and an explanation of why the
behavior was inappropriate. A public apology may be requested.
### 2. Warning
**Community Impact**: A violation through a single incident or series
of actions.
**Consequence**: A warning with consequences for continued behavior. No
interaction with the people involved, including unsolicited interaction with
those enforcing the Code of Conduct, for a specified period of time. This
includes avoiding interactions in community spaces as well as external channels
like social media. Violating these terms may lead to a temporary or
permanent ban.
### 3. Temporary Ban
**Community Impact**: A serious violation of community standards, including
sustained inappropriate behavior.
**Consequence**: A temporary ban from any sort of interaction or public
communication with the community for a specified period of time. No public or
private interaction with the people involved, including unsolicited interaction
with those enforcing the Code of Conduct, is allowed during this period.
Violating these terms may lead to a permanent ban.
### 4. Permanent Ban
**Community Impact**: Demonstrating a pattern of violation of community
standards, including sustained inappropriate behavior, harassment of an
individual, or aggression toward or disparagement of classes of individuals.
**Consequence**: A permanent ban from any sort of public interaction within
the community.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
version 2.0, available at
https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
Community Impact Guidelines were inspired by [Mozilla's code of conduct
enforcement ladder](https://github.com/mozilla/diversity).
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see the FAQ at
https://www.contributor-covenant.org/faq. Translations are available at
https://www.contributor-covenant.org/translations.
================================================
FILE: CONTRIBUTING.md
================================================
## How to contribute
We'd love to accept your patches and contributions to this project. There are just a few small guidelines you need to follow.
## Preparing a pull request for review
Before opening a pull request, please:
- Make sure the code builds on all supported targets (Android + Desktop).
- Add or update tests where it makes sense.
- Keep changes focused and reasonably small.
If you introduce new dependencies or modules, briefly explain why in the PR description.
## Code reviews
All submissions, including submissions by project members, require review. We use GitHub pull requests for this purpose. Consult
[GitHub Help](https://docs.github.com/en/github/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/about-pull-requests)
for more information on using pull requests.
================================================
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 [yyyy] [name of copyright owner]
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">
</br>
<img src="media-resources/app_icon.png" width="200" />
</div>
<div align="center">
# GitHub Store
</div>
</br>
<p align="center">
<img alt="API" src="https://img.shields.io/badge/Api%2024+-50f270?logo=android&logoColor=black&style=for-the-badge"/>
<img alt="Kotlin" src="https://img.shields.io/badge/Kotlin-Multiplatform-a503fc?logo=kotlin&logoColor=white&style=for-the-badge"/>
<img alt="Compose Multiplatform" src="https://img.shields.io/static/v1?style=for-the-badge&message=Compose+Multiplatform&color=4285F4&logo=Jetpack+Compose&logoColor=FFFFFF&label="/>
<img alt="material" src="https://custom-icon-badges.demolab.com/badge/material%20you-lightblue?style=for-the-badge&logoColor=333&logo=material-you"/>
</br>
</br>
<img src="https://img.shields.io/github/downloads/OpenHub-Store/GitHub-Store/total?color=aeff4d&style=for-the-badge&logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHRpdGxlPmRvd25sb2FkPC90aXRsZT48cGF0aCBkPSJNNSwyMEgxOVYxOEg1TTE5LDlIMTVWM0g5VjlINUwxMiwxNkwxOSw5WiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+&label=Downloads&labelColor=4b731a"/>
<a href="https://github.com/OpenHub-Store/GitHub-Store/stargazers">
<img src="https://img.shields.io/github/stars/OpenHub-Store/GitHub-Store?color=ffff00&style=for-the-badge&labelColor=a1a116&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHRpdGxlPnN0YXI8L3RpdGxlPjxwYXRoIGQ9Ik0xMiwxNy4yN0wxOC4xOCwyMUwxNi41NCwxMy45N0wyMiw5LjI0TDE0LjgxLDguNjJMMTIsMkw5LjE5LDguNjJMMiw5LjI0TDcuNDUsMTMuOTdMNS44MiwyMUwxMiwxNy4yN1oiIGZpbGw9IndoaXRlIiAvPjwvc3ZnPg=="/>
</a>
<img src="https://img.shields.io/badge/65K+-Users-8ce2ff?style=for-the-badge&logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCI+PHRpdGxlPmFjY291bnQtZ3JvdXA8L3RpdGxlPjxwYXRoIGQ9Ik0xMiwxMi43NUM3LDEyLjc1IDMsMTMuMzUgMywxNi4yNVYxOEgyMVYxNi4yNUMyMSwxMy4zNSAxNywxMi43NSAxMiwxMi43NU0xNyw3QTE3LDE3IDAgMCwxIDE3LDdNMjEsMTYuMjVWMThIMjRWMTYuMjVDMjQsMTQuNDMgMjEuNSwxMy44NyAxOSwxMy41QzIwLjEyLDE0LjEgMjEsMTUgMjEsMTYuMjVNMiw3QTIsMiAwIDAsMSA0LDVIMjBBMiwyIDAgMCwxIDIyLDdBMiwyIDAgMCwxIDIwLDlINEEyLDIgMCAwLDEgMiw3TTEyLDEwQTMsMyAwIDAsMSA5LDdBMywzIDAgMCwxIDEyLDRBMywzIDAgMCwxIDE1LDdBMywzIDAgMCwxIDEyLDEwWiIgZmlsbD0id2hpdGUiIC8+PC9zdmc+&labelColor=0782ab"/>
</br>
</br>
<a href="https://github.com/OpenHub-Store/GitHub-Store/releases/latest">
<img src="https://img.shields.io/github/v/release/OpenHub-Store/GitHub-Store?color=a1168e&include_prereleases&logo=github&style=for-the-badge&labelColor=700f63"/>
</a>
<a href="https://f-droid.org/packages/zed.rainxch.githubstore">
<img src="https://img.shields.io/f-droid/v/zed.rainxch.githubstore?color=a1168e&include_prereleases&logo=FDROID&style=for-the-badge&labelColor=700f63"/>
</a>
</br>
</br>
<p align="center">
<a href="https://trendshift.io/repositories/22313" target="_blank"><img src="https://trendshift.io/api/badge/repositories/22313" alt="OpenHub-Store%2FGitHub-Store | Trendshift" style="width: 250px; height: 55px;" width="250" height="55"/></a>
<a href="https://hellogithub.com/en/repository/OpenHub-Store/GitHub-Store" target="_blank">
<img src="https://abroad.hellogithub.com/v1/widgets/recommend.svg?rid=OpenHub-Store%2FGitHub-Store&claim_uid=&theme=dark" alt="Featured|HelloGitHub" style="width: 250px; height: 54px;" width="250" height="54" />
</a>
</p>
</p>
<div align="center">
# 🗺️ Project Overview
GitHub Store is a cross-platform app store for GitHub releases, designed to simplify discovering and installing open-source software. It automatically detects installable binaries (APK, EXE, DMG, AppImage, DEB, RPM), provides one-click installation, tracks updates, and presents repository information in a clean, app-store style interface.
Built with Kotlin Multiplatform and Compose Multiplatform for Android and Desktop platforms.
</div>
<div align="center"><a href="https://github.com/Safouene1/support-palestine-banner/blob/master/Markdown-pages/Support.md"><img src="https://raw.githubusercontent.com/Safouene1/support-palestine-banner/master/banner-project.svg" alt="Support Palestine" style="width: 100%;"></a></div>
> [!CAUTION]
> Free and Open-Source Android is under threat. Google will turn Android into a locked-down platform, restricting your essential freedom to install apps of your choice. Make your voice heard – [keepandroidopen.org](https://keepandroidopen.org/).
<p align="middle">
<img src="media-resources/banner.jpeg" width="99%" />
<img src="media-resources/screenshots/mobile/01.jpg" width="18%" />
<img src="media-resources/screenshots/mobile/02.jpg" width="18%" />
<img src="media-resources/screenshots/mobile/03.jpg" width="18%" />
<img src="media-resources/screenshots/mobile/04.jpg" width="18%" />
<img src="media-resources/screenshots/mobile/05.jpg" width="18%" />
</p>
<div align="center">
# 📔 Wiki & Resources
Check out GitHub Store [Wiki](https://github.com/OpenHub-Store/GitHub-Store/wiki) for FAQ and useful information
🌐 **Website:** [github-store.org](https://github-store.org)
💬 **Discord:** [Join the community](https://discord.gg/x9Cvh2Z9qS)
📜 **Privacy Policy:** [github-store.org/privacy-policy](https://github-store.org/privacy-policy/)
</div>
---
<div align="center">
### 📋 Legal Notice
GitHub Store is an independent, open-source project not affiliated with GitHub, Inc.
The name describes the app's functionality (discovering GitHub releases) and does not imply trademark ownership.
GitHub® is a registered trademark of GitHub, Inc.
</div>
---
<p align="center">
# 🔃 Download
</p>
<p align="center">
<a href="https://github.com/OpenHub-Store/GitHub-Store/releases">
<img src="https://i.ibb.co/q0mdc4Z/get-it-on-github.png" height="70"/>
</a>
<a href="https://f-droid.org/en/packages/zed.rainxch.githubstore/">
<img src="https://f-droid.org/badge/get-it-on.png" height="80"/>
</a>
</p>
<p align="center">
<a href="https://apps.obtainium.imranr.dev/redirect.html?r=obtainium://add/https://github.com/OpenHub-Store/GitHub-Store/">
<img src="https://raw.githubusercontent.com/ImranR98/Obtainium/main/assets/graphics/badge_obtainium.png" height="60" alt="Get it on Obtainium">
</a>
<a href="https://github-store.org/app?repo=OpenHub-Store/GitHub-Store">
<img src="media-resources/ghs_download_badge.png" alt="Get it on GitHub Store" height="64">
</a>
</p>
> [!IMPORTANT]
> **macOS Users:** You may see a warning that Apple cannot verify GitHub Store. This happens because the app is distributed outside the App Store and is not notarized yet. Allow it via System Settings → Privacy & Security → Open Anyway.
---
<p align="center">
# 🏆 Featured In
</p>
<p align="center">
<a href="https://www.youtube.com/@howtomen">
<img src="https://img.shields.io/badge/HowToMen-red?style=for-the-badge&logo=youtube&logoColor=white" alt="Featured by HowToMen">
</a>
</br>
<strong>HowToMen:</strong> <a href="https://www.youtube.com/watch?v=7favc9MDedQ">Top 20 Best Android Apps 2026</a> | <a href="https://www.youtube.com/watch?v=VR-MEwPDw4k">Top 12 App Stores that are Better than Google Play Store </a>
</br>
<strong>HelloGitHub:</strong> <a href="https://hellogithub.com/en/repository/OpenHub-Store/GitHub-Store">Featured Project</a>
</p>
---
## 🚀 Features
- **Smart discovery**
- Home sections for “Trending”, “Hot Release”, and “Most Popular” projects with time‑based filters.
- Only repos with valid installable assets are shown.
- Platform‑aware topic scoring so Android/desktop users see relevant apps first.
- Overhauled search with improved relevance ranking and performance.
- **Release browser & installs**
- Release picker to browse and install from any release, not just the latest.
- Fetches all releases for each repository.
- Single “Install latest” action, plus an expandable list of all available releases and their installers.
- Manual install option with automatic compatibility checks.
- **Rich details screen**
- App name, version and share action.
- Stars, forks, open issues.
- Rendered README content (“About this app”).
- Release notes with Markdown formatting for any selected release.
- List of installers with platform labels and file sizes.
- Deep linking support — open repository details directly via URL.
- Developer profile screen to explore a developer’s repositories and activity.
- **App management**
- Open, uninstall, and downgrade installed apps directly from GitHub Store.
- Android: APK architecture matching (armv7/armv8), package monitoring, and update tracking.
- Desktop (Windows/macOS/Linux): downloads installers to the user’s Downloads folder and opens them with the default handler.
- **Starred repositories**
- Save and browse your starred GitHub repositories from within the app.
- **Network & performance**
- Dynamic proxy support for configurable network routing.
- Enhanced caching system for faster loading and reduced API usage.
---
## 🔍 How does my app appear in GitHub Store?
GitHub Store does not use any private indexing or manual curation rules.
Your project can appear automatically if it follows these conditions:
1. **Public repository on GitHub**
- Visibility must be `public`.
2. **Installable assets in the latest release**
- The latest release must contain at least one asset file with a supported extension:
- Android: `.apk`
- Windows: `.exe`, `.msi`
- macOS: `.dmg`, `.pkg`
- Linux: `.deb`, `.rpm`, `.AppImage`
- GitHub Store ignores GitHub’s auto‑generated source artifacts (`Source code (zip)` /
`Source code (tar.gz)`).
3. **Discoverable by search / topics**
- Repositories are fetched via the public GitHub Search API.
- Topic, language, and description help the ranking:
- Android apps: topics like `android`, `mobile`, `apk`.
- Desktop apps: topics like `desktop`, `windows`, `linux`, `macos`, `compose-desktop`,
`electron`.
- Having at least a few stars makes it more likely to appear under Trending/Hot Release/Most Popular sections.
If your repo meets these conditions, GitHub Store can find it through search and show it
automatically—no manual submission required.
---
## ✅ Pros / Why use GitHub Store?
- **No more hunting through GitHub releases**
See only repos that actually ship binaries for your platform.
- **Knows what you installed**
Tracks apps installed via GitHub Store (Android) and highlights when new releases are available, so you can update them without hunting through GitHub again.
- **Always up to date**
Installs default to the latest published release, with the option to browse and install from
any previous release via the release picker.
- **Open source & extensible**
Written in KMP with a clear separation between networking, domain logic, and UI—easy to fork,
extend, or adapt.
---
## 🔐 GitHub Store APK Signing Certificate
All official GitHub Store releases are signed with the following certificate fingerprint:
SHA-256:
`B7:F2:8E:19:8E:48:C1:93:B0:38:C6:5D:92:DD:F7:BC:07:7B:0D:B5:9E:BC:9B:25:0A:6D:AC:48:C1:18:03:CA`
---
## 🔑 GitHub OAuth Configuration
**TL;DR**
1. Create a GitHub OAuth App
2. Copy **Client ID**
3. Put it in `local.properties`
<details>
<summary><strong>Show full setup guide</strong></summary>
<br/>
### 1 - Create a GitHub OAuth App
Go to:
**GitHub → Settings → Developer settings → OAuth Apps → New OAuth App**
| Field | Value |
| ------------------------------ | ------------------------------------------- |
| **Application name** | Anything you like (e.g. *GitHub Store Dev*) |
| **Homepage URL** | `https://github.com/username/repo_name` |
| **Authorization callback URL** | `githubstore://callback` |
Then click **Create application**.
### 2 - Copy Your Client ID
After creating the app, GitHub will show:
- **Client ID** ← you need this
- **Client Secret** ← ❗ NOT required for this project
### 3 - Add It to Your Project
Open your project’s `local.properties` file (root of the project) and add:
```properties
GITHUB_CLIENT_ID=YOUR_CLIENT_ID_HERE
```
### 4 - Sync & Run
Sync the project and run the app. You should now be able to sign in with GitHub.
### ❗ Important Notes
- `local.properties` is **not committed to Git**, so your Client ID stays local.
- This project only needs the **Client ID** (not the Client Secret).
- Each developer should create their own OAuth app for development.
</details>
---
## ☕ Support the project
GitHub Store is built and maintained by high school student. Your support helps him:
✅ **Keep the app bug-free** — respond to issues and ship fixes quickly
✅ **Add community-requested features** — implement what users actually need
### 💖 Ways to Support
<a href="https://www.buymeacoffee.com/rainxchzed">
<img src="https://img.shields.io/badge/Buy%20Me%20a%20Coffee-☕%20$3-FFDD00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black" alt="Buy Me a Coffee">
</a>
<a href="https://github.com/sponsors/rainxchzed">
<img src="https://img.shields.io/badge/GitHub%20Sponsors-💖%20Monthly-pink?style=for-the-badge&logo=github&logoColor=white" alt="GitHub Sponsors">
</a>
**Can't sponsor right now?** That's okay! You can still help by:
- ⭐ **Starring this repo** — helps others discover GitHub Store
- 🐛 **Reporting bugs** — makes the app better for everyone
- 📢 **Sharing with friends** — spread the word to other developers and tech and non-tech buddies!
- 💬 **Joining our [Discord](https://discord.gg/x9Cvh2Z9qS)** — your feedback shapes the roadmap
Every bit of support—financial or not—means the world and keeps this project alive. Thank you!
---
## ⚠️ Disclaimer
GitHub Store only helps you discover and download release assets that are already published on
GitHub by third‑party developers.
The contents, safety, and behavior of those downloads are entirely the responsibility of their
respective authors and distributors, not this project.
By using GithubStore, you understand and agree that you install and run any downloaded software at
your own risk.
This project does not review, validate, or guarantee that any installer is safe, free of malware, or
fit for any particular purpose.
---
## Star History
<a href="https://www.star-history.com/#OpenHub-Store/GitHub-Store&type=timeline&legend=top-left">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=OpenHub-Store/GitHub-Store&type=timeline&theme=dark&legend=top-left" />
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=OpenHub-Store/GitHub-Store&type=timeline&legend=top-left" />
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=OpenHub-Store/GitHub-Store&type=timeline&legend=top-left" />
</picture>
</a>

## 📄 License
GitHub Store will be released under the **Apache License, Version 2.0**.
```
Copyright 2025 rainxchzed
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this project 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: SECURITY.md
================================================
## Security Policy
## Reporting a Vulnerability
We take the security of this repository seriously. If you discover a security vulnerability, please report it responsibly.
**Please do not open a public GitHub issue for security vulnerabilities.**
Instead, use one of the following methods:
- **GitHub Security Advisories**
Use the "Report a vulnerability" feature available in the repository’s **Security** tab.
- **Email**
Send a detailed report to: [rainxch.dev@gmail.com](mailto:rainxch.dev@gmail.com)
---
## What to Include in Your Report
To help us assess and resolve the issue quickly, please include:
- A clear description of the vulnerability
- Steps to reproduce the issue
- Proof of concept (PoC), if available
- Affected files, endpoints, or components
- Potential impact of the vulnerability
---
## Response Timeline
We aim to follow this general timeline:
- **Acknowledgement:** Within 48 hours
- **Initial assessment:** Within 5 business days
- **Fix or mitigation:** Based on severity and complexity
Timelines may vary depending on the nature of the vulnerability.
---
## Coordinated Disclosure
We kindly request that you practice responsible disclosure and avoid sharing details publicly until the vulnerability has been addressed or a fix has been released.
---
## Security Best Practices
Contributors are encouraged to:
- Follow secure coding practices
- Avoid committing secrets or credentials
- Use dependency scanning and security tools where possible
- Review pull requests for potential security issues
---
## Thank You
We appreciate the efforts of the security community and responsible researchers who help keep this project secure.
================================================
FILE: build-logic/convention/build.gradle.kts
================================================
import org.gradle.kotlin.dsl.compileOnly
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
plugins {
`kotlin-dsl`
}
group = "zed.rainxch.convention.buildlogic"
dependencies {
compileOnly(libs.android.gradlePlugin)
compileOnly(libs.android.tools.common)
compileOnly(libs.kotlin.gradlePlugin)
compileOnly(libs.compose.gradlePlugin)
compileOnly(libs.androidx.room.gradle.plugin)
implementation(libs.buildkonfig.gradlePlugin)
implementation(libs.buildkonfig.compiler)
implementation(libs.ktlint.gradlePlugin)
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}
kotlin {
compilerOptions {
jvmTarget = JvmTarget.JVM_17
}
}
tasks {
validatePlugins {
enableStricterValidation = true
failOnWarning = true
}
}
gradlePlugin {
plugins {
register("androidApplication") {
id = "zed.rainxch.convention.android.application"
implementationClass = "AndroidApplicationConventionPlugin"
}
register("androidComposeApplication") {
id = "zed.rainxch.convention.android.application.compose"
implementationClass = "AndroidApplicationComposeConventionPlugin"
}
register("cmpApplication") {
id = "zed.rainxch.convention.cmp.application"
implementationClass = "CmpApplicationConventionPlugin"
}
register("kmpLibrary") {
id = "zed.rainxch.convention.kmp.library"
implementationClass = "KmpLibraryConventionPlugin"
}
register("cmpLibrary") {
id = "zed.rainxch.convention.cmp.library"
implementationClass = "CmpLibraryConventionPlugin"
}
register("cmpFeature") {
id = "zed.rainxch.convention.cmp.feature"
implementationClass = "CmpFeatureConventionPlugin"
}
register("buildKonfig") {
id = "zed.rainxch.convention.buildkonfig"
implementationClass = "BuildKonfigConventionPlugin"
}
register("room") {
id = "zed.rainxch.convention.room"
implementationClass = "RoomConventionPlugin"
}
register("ktlint") {
id = "zed.rainxch.convention.ktlint"
implementationClass = "KtlintConventionPlugin"
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/AndroidApplicationComposeConventionPlugin.kt
================================================
import com.android.build.api.dsl.ApplicationExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.getByType
import zed.rainxch.githubstore.convention.configureAndroidCompose
class AndroidApplicationComposeConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager) {
apply("zed.rainxch.convention.android.application")
apply("org.jetbrains.kotlin.plugin.compose")
apply("zed.rainxch.convention.ktlint")
}
val commonExtension = extensions.getByType<ApplicationExtension>()
configureAndroidCompose(commonExtension)
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt
================================================
import com.android.build.api.dsl.ApplicationExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import zed.rainxch.githubstore.convention.configureKotlinAndroid
import zed.rainxch.githubstore.convention.libs
class AndroidApplicationConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager) {
apply("com.android.application")
}
extensions.configure<ApplicationExtension> {
namespace = "zed.rainxch.githubstore"
compileSdk =
libs
.findVersion("projectCompileSdkVersion")
.get()
.toString()
.toInt()
defaultConfig {
applicationId = libs.findVersion("projectApplicationId").get().toString()
minSdk =
libs
.findVersion("projectMinSdkVersion")
.get()
.toString()
.toInt()
targetSdk =
libs
.findVersion("projectTargetSdkVersion")
.get()
.toString()
.toInt()
versionCode =
libs
.findVersion("projectVersionCode")
.get()
.toString()
.toInt()
versionName = libs.findVersion("projectVersionName").get().toString()
}
packaging {
resources {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
buildTypes {
getByName("release") {
isMinifyEnabled = true
isShrinkResources = true
proguardFiles(
getDefaultProguardFile("proguard-android-optimize.txt"),
"proguard-rules.pro",
)
}
}
configureKotlinAndroid(this)
}
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/BuildKonfigConventionPlugin.kt
================================================
import com.codingfeline.buildkonfig.compiler.FieldSpec
import com.codingfeline.buildkonfig.gradle.BuildKonfigExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import zed.rainxch.githubstore.convention.libs
import zed.rainxch.githubstore.convention.pathToPackageName
import java.util.Properties
class BuildKonfigConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager) {
apply("com.codingfeline.buildkonfig")
}
extensions.configure<BuildKonfigExtension> {
packageName = target.pathToPackageName()
defaultConfigs {
val localProps =
Properties().apply {
val file = rootProject.file("local.properties")
if (file.exists()) file.inputStream().use { this.load(it) }
}
val githubClientId =
(
localProps.getProperty("GITHUB_CLIENT_ID")
?: "Ov23linTY28VFpFjFiI9"
).trim()
val versionName = libs.findVersion("projectVersionName").get().toString()
buildConfigField(FieldSpec.Type.STRING, "GITHUB_CLIENT_ID", githubClientId)
buildConfigField(FieldSpec.Type.STRING, "VERSION_NAME", versionName)
}
}
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/CmpApplicationConventionPlugin.kt
================================================
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
import zed.rainxch.githubstore.convention.configureAndroidTarget
import zed.rainxch.githubstore.convention.configureJvmTarget
import zed.rainxch.githubstore.convention.libs
class CmpApplicationConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager) {
apply("zed.rainxch.convention.android.application.compose")
apply("org.jetbrains.kotlin.multiplatform")
apply("org.jetbrains.compose")
apply("org.jetbrains.kotlin.plugin.compose")
}
configureAndroidTarget()
configureJvmTarget()
dependencies {
"debugImplementation"(libs.findLibrary("androidx-compose-ui-tooling").get())
}
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/CmpFeatureConventionPlugin.kt
================================================
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
import zed.rainxch.githubstore.convention.libs
class CmpFeatureConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager) {
apply("zed.rainxch.convention.cmp.library")
}
dependencies {
"commonMainImplementation"(project(":core:presentation"))
"commonMainImplementation"(platform(libs.findLibrary("koin-bom").get()))
"androidMainImplementation"(platform(libs.findLibrary("koin-bom").get()))
"commonMainImplementation"(libs.findLibrary("koin-compose").get())
"commonMainImplementation"(libs.findLibrary("koin-compose-viewmodel").get())
"commonMainImplementation"(libs.findLibrary("jetbrains-compose-runtime").get())
"commonMainImplementation"(libs.findLibrary("jetbrains-compose-viewmodel").get())
"commonMainImplementation"(libs.findLibrary("jetbrains-lifecycle-viewmodel").get())
"commonMainImplementation"(libs.findLibrary("jetbrains-lifecycle-compose").get())
"commonMainImplementation"(libs.findLibrary("jetbrains-lifecycle-viewmodel-savedstate").get())
"commonMainImplementation"(libs.findLibrary("jetbrains-savedstate").get())
"commonMainImplementation"(libs.findLibrary("jetbrains-bundle").get())
"commonMainImplementation"(libs.findLibrary("jetbrains-compose-navigation").get())
"androidMainImplementation"(libs.findLibrary("koin-android").get())
"androidMainImplementation"(libs.findLibrary("koin-androidx-compose").get())
"androidMainImplementation"(libs.findLibrary("koin-androidx-navigation").get())
"androidMainImplementation"(libs.findLibrary("koin-core-viewmodel").get())
}
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/CmpLibraryConventionPlugin.kt
================================================
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
import zed.rainxch.githubstore.convention.libs
import kotlin.text.get
class CmpLibraryConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager) {
apply("zed.rainxch.convention.kmp.library")
apply("org.jetbrains.kotlin.plugin.compose")
apply("org.jetbrains.compose")
}
dependencies {
"commonMainImplementation"(libs.findLibrary("jetbrains-compose-ui").get())
"commonMainImplementation"(libs.findLibrary("jetbrains-compose-foundation").get())
"commonMainImplementation"(libs.findLibrary("jetbrains-compose-material3").get())
"commonMainImplementation"(libs.findLibrary("jetbrains-compose-material-icons-extended").get())
"debugImplementation"(libs.findLibrary("androidx-compose-ui-tooling").get())
}
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/KmpLibraryConventionPlugin.kt
================================================
import com.android.build.api.dsl.LibraryExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
import zed.rainxch.githubstore.convention.configureKotlinAndroid
import zed.rainxch.githubstore.convention.configureKotlinMultiplatform
import zed.rainxch.githubstore.convention.libs
import zed.rainxch.githubstore.convention.pathToResourcePrefix
class KmpLibraryConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager) {
apply("com.android.library")
apply("org.jetbrains.kotlin.multiplatform")
apply("org.jetbrains.kotlin.plugin.serialization")
}
configureKotlinMultiplatform()
extensions.configure<LibraryExtension> {
configureKotlinAndroid(this)
resourcePrefix = this@with.pathToResourcePrefix()
experimentalProperties["android.experimental.kmp.enableAndroidResources"] = "true"
}
dependencies {
"commonMainImplementation"(libs.findLibrary("kotlinx-serialization-json").get())
}
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/KtlintConventionPlugin.kt
================================================
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.jlleitschuh.gradle.ktlint.KtlintExtension
class KtlintConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
pluginManager.apply("org.jlleitschuh.gradle.ktlint")
extensions.configure(KtlintExtension::class.java) {
version.set("1.8.0")
outputToConsole.set(true)
ignoreFailures.set(true)
filter {
exclude("**/generated/**")
exclude("**/build/**")
exclude("**/*.g.kt")
exclude("**/schemas/**")
}
reporters {
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.PLAIN)
reporter(org.jlleitschuh.gradle.ktlint.reporter.ReporterType.HTML)
}
}
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/RoomConventionPlugin.kt
================================================
import androidx.room.gradle.RoomExtension
import org.gradle.api.Plugin
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.dependencies
import zed.rainxch.githubstore.convention.libs
class RoomConventionPlugin : Plugin<Project> {
override fun apply(target: Project) {
with(target) {
with(pluginManager) {
apply("com.google.devtools.ksp")
apply("androidx.room")
}
extensions.configure<RoomExtension> {
schemaDirectory("$projectDir/schemas")
}
dependencies {
"commonMainApi"(libs.findLibrary("androidx-room-runtime").get())
"commonMainApi"(libs.findLibrary("sqlite-bundled").get())
"kspAndroid"(libs.findLibrary("androidx-room-compiler").get())
"kspJvm"(libs.findLibrary("androidx-room-compiler").get())
}
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/AndroidCompose.kt
================================================
package zed.rainxch.githubstore.convention
import com.android.build.api.dsl.CommonExtension
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
fun Project.configureAndroidCompose(commonExtension: CommonExtension<*, *, *, *, *, *>) {
with(commonExtension) {
buildFeatures {
compose = true
}
dependencies {
val composeBom = libs.findLibrary("androidx-compose-bom").get()
"implementation"(platform(composeBom))
"testImplementation"(platform(composeBom))
"debugImplementation"(libs.findLibrary("androidx-compose-ui-tooling-preview").get())
"debugImplementation"(libs.findLibrary("androidx-compose-ui-tooling").get())
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/KotlinAndroid.kt
================================================
package zed.rainxch.githubstore.convention
import com.android.build.api.dsl.CommonExtension
import org.gradle.api.JavaVersion
import org.gradle.api.Project
import org.gradle.kotlin.dsl.dependencies
import org.gradle.kotlin.dsl.withType
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
internal fun Project.configureKotlinAndroid(commonExtension: CommonExtension<*, *, *, *, *, *>) {
with(commonExtension) {
compileSdk =
libs
.findVersion("projectCompileSdkVersion")
.get()
.toString()
.toInt()
defaultConfig.minSdk =
libs
.findVersion("projectMinSdkVersion")
.get()
.toString()
.toInt()
compileOptions {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
isCoreLibraryDesugaringEnabled = true
}
configureKotlin()
dependencies {
"coreLibraryDesugaring" {
libs.findLibrary("android-desugarJdkLibs").get()
}
}
}
}
internal fun Project.configureKotlin() {
tasks.withType<KotlinCompile>().configureEach {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
freeCompilerArgs.add(
"-opt-in=kotlinx.coroutines.ExperimentalCoroutinesApi",
)
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/KotlinAndroidTarget.kt
================================================
package zed.rainxch.githubstore.convention
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
internal fun Project.configureAndroidTarget() {
extensions.configure<KotlinMultiplatformExtension> {
androidTarget {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_17)
}
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/KotlinJvmTarget.kt
================================================
package zed.rainxch.githubstore.convention
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.gradle.kotlin.dsl.getting
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import java.util.Properties
internal fun Project.configureJvmTarget() {
extensions.configure<KotlinMultiplatformExtension> {
jvm()
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/KotlinMultiplatform.kt
================================================
package zed.rainxch.githubstore.convention
import com.android.build.api.dsl.LibraryExtension
import org.gradle.api.Project
import org.gradle.kotlin.dsl.configure
import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
internal fun Project.configureKotlinMultiplatform() {
extensions.configure<LibraryExtension> {
namespace = this@configureKotlinMultiplatform.pathToPackageName()
}
configureAndroidTarget()
configureJvmTarget()
extensions.configure<KotlinMultiplatformExtension> {
compilerOptions {
freeCompilerArgs.add("-Xexpect-actual-classes")
freeCompilerArgs.add("-Xmulti-dollar-interpolation")
freeCompilerArgs.add("-opt-in=kotlin.RequiresOptIn")
freeCompilerArgs.add("-opt-in=kotlin.time.ExperimentalTime")
}
}
}
================================================
FILE: build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/PathUtil.kt
================================================
package zed.rainxch.githubstore.convention
import org.gradle.api.Project
import java.util.Locale
fun Project.pathToPackageName(): String {
val relativePackageName =
path
.replace(":", ".")
.replace("-", "_")
.lowercase()
return "zed.rainxch$relativePackageName"
}
fun Project.pathToResourcePrefix(): String =
path
.replace(":", "_ ")
.lowercase()
.drop(1) + "_"
================================================
FILE: build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/ProjectExt.kt
================================================
package zed.rainxch.githubstore.convention
import org.gradle.api.Project
import org.gradle.api.artifacts.VersionCatalog
import org.gradle.api.artifacts.VersionCatalogsExtension
import org.gradle.kotlin.dsl.getByType
val Project.libs: VersionCatalog
get() = extensions.getByType<VersionCatalogsExtension>().named("libs")
================================================
FILE: build-logic/gradle.properties
================================================
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.configureondemand=true
================================================
FILE: build-logic/settings.gradle.kts
================================================
@file:Suppress("UnstableApiUsage")
rootProject.name = "build-logic"
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
}
}
include(":convention")
================================================
FILE: build.gradle.kts
================================================
plugins {
id("io.github.jwharm.flatpak-gradle-generator") version "1.7.0"
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
alias(libs.plugins.compose.hot.reload) apply false
alias(libs.plugins.compose.multiplatform) apply false
alias(libs.plugins.compose.compiler) apply false
alias(libs.plugins.kotlin.multiplatform) apply false
alias(libs.plugins.android.kotlin.multiplatform.library) apply false
alias(libs.plugins.kotlin.serialization) apply false
alias(libs.plugins.ksp) apply false
alias(libs.plugins.room) apply false
}
tasks.named<io.github.jwharm.flatpakgradlegenerator.FlatpakGradleGeneratorTask>("flatpakGradleGenerator") {
outputFile.set(layout.buildDirectory.file("flatpak-sources.json"))
}
subprojects {
afterEvaluate {
tasks.configureEach {
when (name) {
"preBuild",
"compileKotlinJvm",
"compileKotlinAndroid",
-> {
val ktlintFormat = tasks.findByName("ktlintFormat")
if (ktlintFormat != null) dependsOn(ktlintFormat)
}
}
}
}
}
================================================
FILE: composeApp/build.gradle.kts
================================================
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
plugins {
alias(libs.plugins.convention.cmp.application)
alias(libs.plugins.kotlin.serialization)
alias(libs.plugins.compose.hot.reload)
}
android {
dependenciesInfo {
includeInApk = false
includeInBundle = false
}
}
kotlin {
sourceSets {
androidMain.dependencies {
implementation(libs.androidx.compose.ui.tooling.preview)
implementation(libs.androidx.activity.compose)
implementation(libs.core.splashscreen)
implementation(libs.koin.android)
}
commonMain.dependencies {
implementation(projects.core.data)
implementation(projects.core.domain)
implementation(projects.core.presentation)
implementation(projects.feature.apps.domain)
implementation(projects.feature.apps.data)
implementation(projects.feature.apps.presentation)
implementation(projects.feature.auth.domain)
implementation(projects.feature.auth.data)
implementation(projects.feature.auth.presentation)
implementation(projects.feature.details.domain)
implementation(projects.feature.details.data)
implementation(projects.feature.details.presentation)
implementation(projects.feature.devProfile.domain)
implementation(projects.feature.devProfile.data)
implementation(projects.feature.devProfile.presentation)
implementation(projects.feature.favourites.domain)
implementation(projects.feature.favourites.data)
implementation(projects.feature.favourites.presentation)
implementation(projects.feature.home.domain)
implementation(projects.feature.home.data)
implementation(projects.feature.home.presentation)
implementation(projects.feature.search.domain)
implementation(projects.feature.search.data)
implementation(projects.feature.search.presentation)
implementation(projects.feature.profile.domain)
implementation(projects.feature.profile.data)
implementation(projects.feature.profile.presentation)
implementation(projects.feature.starred.domain)
implementation(projects.feature.starred.data)
implementation(projects.feature.starred.presentation)
implementation(libs.jetbrains.compose.navigation)
implementation(libs.bundles.koin.common)
implementation(libs.liquid)
implementation(libs.jetbrains.compose.material.icons.extended)
implementation(libs.touchlab.kermit)
implementation(libs.kotlinx.collections.immutable)
implementation(compose.runtime)
implementation(compose.foundation)
implementation(libs.jetbrains.compose.material3)
implementation(compose.ui)
implementation(compose.components.resources)
implementation(libs.androidx.compose.ui.tooling.preview)
implementation(libs.jetbrains.compose.viewmodel)
implementation(libs.jetbrains.lifecycle.compose)
}
jvmMain {
dependencies {
implementation(projects.core.presentation)
implementation(compose.desktop.currentOs)
implementation(libs.kotlinx.coroutines.swing)
implementation(libs.kotlin.stdlib)
implementation(libs.koin.compose)
implementation(libs.koin.compose.viewmodel)
implementation(libs.koin.compose.viewmodel)
implementation(compose.desktop.linux_x64)
implementation(compose.desktop.linux_arm64)
implementation(compose.desktop.macos_x64)
implementation(compose.desktop.macos_arm64)
implementation(compose.desktop.windows_x64)
implementation(compose.desktop.windows_arm64)
implementation(libs.slf4j.simple)
}
}
}
}
compose.desktop {
application {
mainClass = "zed.rainxch.githubstore.DesktopAppKt"
nativeDistributions {
packageName = "GitHub-Store"
packageVersion =
libs.versions.projectVersionName
.get()
.toString()
vendor = "rainxchzed"
includeAllModules = true
val currentOs =
org.gradle.internal.os.OperatingSystem
.current()
targetFormats(
*when {
currentOs.isWindows -> arrayOf(TargetFormat.Exe, TargetFormat.Msi)
currentOs.isMacOsX -> arrayOf(TargetFormat.Dmg, TargetFormat.Pkg)
currentOs.isLinux -> arrayOf(TargetFormat.Deb, TargetFormat.Rpm, TargetFormat.AppImage)
else -> emptyArray()
},
)
windows {
iconFile.set(project.file("src/jvmMain/resources/logo/app_icon.ico"))
menuGroup = "Github Store"
shortcut = true
perUserInstall = true
}
macOS {
iconFile.set(project.file("src/jvmMain/resources/logo/app_icon.icns"))
bundleID = "zed.rainxch.githubstore"
infoPlist {
extraKeysRawXml =
"""
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>GitHub Store Deep Link</string>
<key>CFBundleURLSchemes</key>
<array>
<string>githubstore</string>
</array>
</dict>
</array>
""".trimIndent()
}
}
linux {
iconFile.set(project.file("src/jvmMain/resources/logo/app_icon.png"))
appRelease =
libs.versions.projectVersionName
.get()
.toString()
debPackageVersion =
libs.versions.projectVersionName
.get()
.toString()
menuGroup = "Development"
appCategory = "Development"
}
}
}
}
================================================
FILE: composeApp/proguard-rules.pro
================================================
# ============================================================================
# ProGuard / R8 Rules for GitHub Store (KMP + Compose Multiplatform)
# ============================================================================
# Used with: proguard-android-optimize.txt (enables optimization passes)
# ============================================================================
# ── General Attributes ──────────────────────────────────────────────────────
-keepattributes Signature
-keepattributes *Annotation*
-keepattributes InnerClasses,EnclosingMethod
-keepattributes SourceFile,LineNumberTable
-keepattributes Exceptions
# ── Kotlin Core ─────────────────────────────────────────────────────────────
# Keep Kotlin metadata for reflection used by serialization & Koin
-keep class kotlin.Metadata { *; }
-keep class kotlin.reflect.jvm.internal.** { *; }
-dontwarn kotlin.**
-dontwarn kotlinx.**
# ── Kotlin Coroutines ──────────────────────────────────────────────────────
-keepnames class kotlinx.coroutines.internal.MainDispatcherFactory {}
-keepnames class kotlinx.coroutines.CoroutineExceptionHandler {}
-keepclassmembernames class kotlinx.** { volatile <fields>; }
-dontwarn kotlinx.coroutines.**
# ── Kotlinx Serialization ──────────────────────────────────────────────────
# Serialization engine internals
-keep class kotlinx.serialization.** { *; }
-keepclassmembers class kotlinx.serialization.json.** { *** Companion; }
-dontnote kotlinx.serialization.**
# Generated serializers for ALL @Serializable classes
-keep class **$$serializer { *; }
-keepclassmembers @kotlinx.serialization.Serializable class ** {
*** Companion;
*** INSTANCE;
kotlinx.serialization.KSerializer serializer(...);
}
# App @Serializable classes (DTOs, models, navigation routes) across all packages
-keep @kotlinx.serialization.Serializable class zed.rainxch.** { *; }
-keep,includedescriptorclasses class zed.rainxch.**$$serializer { *; }
-keepclassmembers @kotlinx.serialization.Serializable class zed.rainxch.** {
*** Companion;
}
# ── Navigation Routes ──────────────────────────────────────────────────────
# Type-safe navigation requires these classes to survive R8
-keep class zed.rainxch.githubstore.app.navigation.GithubStoreGraph { *; }
-keep class zed.rainxch.githubstore.app.navigation.GithubStoreGraph$* { *; }
# ── Network DTOs – Core Module ─────────────────────────────────────────────
-keep class zed.rainxch.core.data.dto.** { *; }
# ── Network DTOs – Feature Modules ─────────────────────────────────────────
-keep class zed.rainxch.search.data.dto.** { *; }
-keep class zed.rainxch.devprofile.data.dto.** { *; }
-keep class zed.rainxch.home.data.dto.** { *; }
# ── Domain Models ──────────────────────────────────────────────────────────
-keep class zed.rainxch.core.domain.model.GithubRepoSummary { *; }
-keep class zed.rainxch.core.domain.model.GithubUser { *; }
# Keep enums used by Room TypeConverters and serialization
-keep class zed.rainxch.core.domain.model.InstallSource { *; }
-keep class zed.rainxch.core.domain.model.AppTheme { *; }
-keep class zed.rainxch.core.domain.model.FontTheme { *; }
-keep class zed.rainxch.core.domain.model.Platform { *; }
-keep class zed.rainxch.core.domain.model.SystemArchitecture { *; }
-keep class zed.rainxch.core.domain.model.PackageChangeType { *; }
# ── Room Database ──────────────────────────────────────────────────────────
# Database class and generated implementation
-keep class zed.rainxch.core.data.local.db.AppDatabase { *; }
-keep class zed.rainxch.core.data.local.db.AppDatabase_Impl { *; }
# Entities
-keep class zed.rainxch.core.data.local.db.entities.** { *; }
# DAOs
-keep interface zed.rainxch.core.data.local.db.dao.** { *; }
-keep class zed.rainxch.core.data.local.db.dao.** { *; }
# Room runtime
-keep class androidx.room.** { *; }
-dontwarn androidx.room.**
# ── Ktor ───────────────────────────────────────────────────────────────────
# Engine discovery, plugin system, and content negotiation use reflection
-keep class io.ktor.client.engine.** { *; }
-keep class io.ktor.client.plugins.** { *; }
-keep class io.ktor.serialization.** { *; }
-keep class io.ktor.utils.io.** { *; }
-keep class io.ktor.http.** { *; }
-keepnames class io.ktor.** { *; }
-dontwarn io.ktor.**
-dontwarn java.lang.management.**
# ── OkHttp (Ktor engine) ──────────────────────────────────────────────────
-keep class okhttp3.internal.platform.** { *; }
-keepnames class okhttp3.internal.publicsuffix.PublicSuffixDatabase
-dontwarn okhttp3.**
-dontwarn org.bouncycastle.**
-dontwarn org.openjsse.**
# ── Okio ───────────────────────────────────────────────────────────────────
-dontwarn okio.**
# ── SSL/TLS ────────────────────────────────────────────────────────────────
-keep class org.conscrypt.** { *; }
-dontwarn org.conscrypt.**
# ── Koin DI ────────────────────────────────────────────────────────────────
# Koin uses reflection for constructor injection
-keep class org.koin.** { *; }
-keep interface org.koin.** { *; }
-dontwarn org.koin.**
# Keep ViewModels so Koin can instantiate them
-keep class zed.rainxch.**.presentation.**ViewModel { *; }
-keep class zed.rainxch.**.presentation.**ViewModel$* { *; }
# ── Compose / AndroidX ────────────────────────────────────────────────────
# Compose runtime and navigation (most rules come bundled with the library)
-dontwarn androidx.compose.**
-dontwarn androidx.lifecycle.**
# ── DataStore ──────────────────────────────────────────────────────────────
-keep class androidx.datastore.** { *; }
-keepclassmembers class androidx.datastore.preferences.** { *; }
-dontwarn androidx.datastore.**
# ── Landscapist / Coil3 (Image Loading) ────────────────────────────────────
-keep class com.skydoves.landscapist.** { *; }
-keep interface com.skydoves.landscapist.** { *; }
-keep class coil3.** { *; }
-dontwarn coil3.**
-dontwarn com.skydoves.landscapist.**
# ── Multiplatform Markdown Renderer ────────────────────────────────────────
-keep class com.mikepenz.markdown.** { *; }
-keep class org.intellij.markdown.** { *; }
-dontwarn com.mikepenz.markdown.**
-dontwarn org.intellij.markdown.**
# ── Kermit Logging ─────────────────────────────────────────────────────────
-keep class co.touchlab.kermit.** { *; }
-dontwarn co.touchlab.kermit.**
# ── MOKO Permissions ──────────────────────────────────────────────────────
-keep class dev.icerock.moko.permissions.** { *; }
-dontwarn dev.icerock.moko.**
# ── BuildKonfig (Generated Build Constants) ────────────────────────────────
-keep class zed.rainxch.githubstore.BuildConfig { *; }
-keep class zed.rainxch.**.BuildKonfig { *; }
-keep class **.BuildKonfig { *; }
# ── AndroidX Security / Crypto ─────────────────────────────────────────────
-keep class androidx.security.crypto.** { *; }
-keep class com.google.crypto.tink.** { *; }
-dontwarn com.google.crypto.tink.**
-dontwarn com.google.errorprone.annotations.**
# ── Firebase (if integrated) ──────────────────────────────────────────────
-keep class com.google.firebase.** { *; }
-dontwarn com.google.firebase.**
# ── Enum safety ────────────────────────────────────────────────────────────
# Keep all enum values and valueOf methods (used by serialization/Room)
-keepclassmembers enum * {
public static **[] values();
public static ** valueOf(java.lang.String);
}
# ── Parcelable ─────────────────────────────────────────────────────────────
-keepclassmembers class * implements android.os.Parcelable {
public static final ** CREATOR;
}
# ── Java Serializable Compatibility ───────────────────────────────────────
-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();
}
# ── Suppress Warnings for Missing Classes ──────────────────────────────────
-dontwarn java.lang.invoke.StringConcatFactory
-dontwarn javax.annotation.**
-dontwarn org.slf4j.**
-dontwarn org.codehaus.mojo.animal_sniffer.**
================================================
FILE: composeApp/src/androidMain/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.POST_NOTIFICATIONS" />
<uses-permission
android:name="android.permission.QUERY_ALL_PACKAGES"
tools:ignore="PackageVisibilityPolicy,QueryAllPackagesPermission" />
<uses-permission
android:name="android.permission.REQUEST_INSTALL_PACKAGES"
tools:ignore="RequestInstallPackagesPolicy" />
<uses-permission android:name="android.permission.REQUEST_DELETE_PACKAGES" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE_DATA_SYNC" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" />
<application
android:name=".app.GithubStoreApp"
android:allowBackup="true"
android:hasFragileUserData="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:networkSecurityConfig="@xml/network_security_config"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/Theme.GitHubStore.Splash"
android:usesCleartextTraffic="false"
tools:targetApi="29">
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTask">
<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:host="callback"
android:scheme="githubstore" />
</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:host="repo"
android:scheme="githubstore" />
</intent-filter>
<intent-filter>
<action android:name="android.intent.action.SEND" />
<category android:name="android.intent.category.DEFAULT" />
<data android:mimeType="text/plain" />
<data android:mimeType="text/html" />
</intent-filter>
<intent-filter android:autoVerify="false">
<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" />
<data android:host="github.com" />
<data android:pathPattern="/.*/.*" />
</intent-filter>
<intent-filter android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="http" />
<data android:scheme="https" />
<data android:host="github-store.org" />
<data android:pathPrefix="/app/" />
</intent-filter>
</activity>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/filepaths" />
</provider>
<!-- Reschedule update checks after device reboot -->
<receiver
android:name="zed.rainxch.core.data.services.BootReceiver"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.BOOT_COMPLETED" />
</intent-filter>
</receiver>
<!-- Static receiver for package install/remove events (works even when process is dead) -->
<receiver
android:name="zed.rainxch.core.data.services.PackageEventReceiver"
android:exported="false">
<intent-filter>
<action android:name="android.intent.action.PACKAGE_ADDED" />
<action android:name="android.intent.action.PACKAGE_REPLACED" />
<action android:name="android.intent.action.PACKAGE_FULLY_REMOVED" />
<data android:scheme="package" />
</intent-filter>
</receiver>
<!-- WorkManager foreground service declaration for update workers -->
<service
android:name="androidx.work.impl.foreground.SystemForegroundService"
android:foregroundServiceType="dataSync"
tools:node="merge" />
<!-- Shizuku provider for optional silent install support -->
<provider
android:name="rikka.shizuku.ShizukuProvider"
android:authorities="${applicationId}.shizuku"
android:multiprocess="false"
android:enabled="true"
android:exported="true"
android:permission="android.permission.INTERACT_ACROSS_USERS_FULL" />
</application>
</manifest>
================================================
FILE: composeApp/src/androidMain/kotlin/zed/rainxch/githubstore/MainActivity.kt
================================================
package zed.rainxch.githubstore
import android.content.Intent
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.activity.enableEdgeToEdge
import androidx.compose.runtime.Composable
import androidx.compose.runtime.DisposableEffect
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.compose.ui.tooling.preview.Preview
import androidx.core.splashscreen.SplashScreen.Companion.installSplashScreen
import androidx.core.util.Consumer
import org.koin.android.ext.android.inject
import zed.rainxch.core.data.utils.AndroidShareManager
import zed.rainxch.core.domain.utils.ShareManager
import zed.rainxch.githubstore.app.deeplink.DeepLinkParser
class MainActivity : ComponentActivity() {
private var deepLinkUri by mutableStateOf<String?>(null)
private val shareManager: ShareManager by inject()
override fun onCreate(savedInstanceState: Bundle?) {
installSplashScreen()
enableEdgeToEdge()
// Register activity result launcher for file picker (must be before STARTED)
(shareManager as? AndroidShareManager)?.registerActivityResultLauncher(this)
super.onCreate(savedInstanceState)
handleIncomingIntent(intent)
setContent {
DisposableEffect(Unit) {
val listener =
Consumer<Intent> { newIntent ->
handleIncomingIntent(newIntent)
}
addOnNewIntentListener(listener)
onDispose {
removeOnNewIntentListener(listener)
}
}
App(deepLinkUri = deepLinkUri)
}
}
private fun handleIncomingIntent(intent: Intent?) {
if (intent == null) return
val uriString =
when (intent.action) {
Intent.ACTION_VIEW -> {
intent.data?.toString()
}
Intent.ACTION_SEND -> {
val sharedText = intent.getStringExtra(Intent.EXTRA_TEXT)
sharedText?.let { DeepLinkParser.extractSupportedUrl(it) }
}
else -> {
null
}
}
uriString?.let { deepLinkUri = it }
}
}
@Preview
@Composable
fun AppAndroidPreview() {
App()
}
================================================
FILE: composeApp/src/androidMain/kotlin/zed/rainxch/githubstore/app/GithubStoreApp.kt
================================================
package zed.rainxch.githubstore.app
import android.app.Application
import android.app.NotificationChannel
import android.app.NotificationManager
import android.os.Build
import co.touchlab.kermit.Logger
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.flow.first
import kotlinx.coroutines.launch
import org.koin.android.ext.android.get
import org.koin.android.ext.koin.androidContext
import zed.rainxch.core.data.services.PackageEventReceiver
import zed.rainxch.core.data.services.UpdateScheduler
import zed.rainxch.core.domain.model.InstallSource
import zed.rainxch.core.domain.model.InstalledApp
import zed.rainxch.core.domain.repository.InstalledAppsRepository
import zed.rainxch.core.domain.repository.TweaksRepository
import zed.rainxch.core.domain.system.PackageMonitor
import zed.rainxch.githubstore.app.di.initKoin
class GithubStoreApp : Application() {
private var packageEventReceiver: PackageEventReceiver? = null
private val appScope = CoroutineScope(SupervisorJob() + Dispatchers.IO)
override fun onCreate() {
super.onCreate()
initKoin {
androidContext(this@GithubStoreApp)
}
createNotificationChannels()
registerPackageEventReceiver()
scheduleBackgroundUpdateChecks()
registerSelfAsInstalledApp()
}
private fun createNotificationChannels() {
val notificationManager = getSystemService(NotificationManager::class.java)
val updatesChannel =
NotificationChannel(
UPDATES_CHANNEL_ID,
"App Updates",
NotificationManager.IMPORTANCE_HIGH,
).apply {
description = "Notifications when app updates are available"
}
notificationManager.createNotificationChannel(updatesChannel)
val serviceChannel =
NotificationChannel(
UPDATE_SERVICE_CHANNEL_ID,
"Update Service",
NotificationManager.IMPORTANCE_LOW,
).apply {
description = "Background update check and auto-update progress"
setShowBadge(false)
}
notificationManager.createNotificationChannel(serviceChannel)
}
private fun registerPackageEventReceiver() {
val receiver =
PackageEventReceiver(
installedAppsRepository = get<InstalledAppsRepository>(),
packageMonitor = get<PackageMonitor>(),
)
val filter = PackageEventReceiver.createIntentFilter()
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
registerReceiver(receiver, filter, RECEIVER_NOT_EXPORTED)
} else {
registerReceiver(receiver, filter)
}
packageEventReceiver = receiver
}
private fun scheduleBackgroundUpdateChecks() {
appScope.launch {
try {
val intervalHours = get<TweaksRepository>().getUpdateCheckInterval().first()
UpdateScheduler.schedule(
context = this@GithubStoreApp,
intervalHours = intervalHours,
)
} catch (e: Exception) {
Logger.e(e) { "Failed to schedule background update checks" }
}
}
}
private fun registerSelfAsInstalledApp() {
appScope.launch {
try {
val repo = get<InstalledAppsRepository>()
val selfPackageName = packageName
val existing = repo.getAppByPackage(selfPackageName)
if (existing != null) return@launch
val packageMonitor = get<PackageMonitor>()
val systemInfo = packageMonitor.getInstalledPackageInfo(selfPackageName)
if (systemInfo == null) {
Logger.w { "GithubStoreApp: Skip self-registration, package info missing for $selfPackageName" }
return@launch
}
val now = System.currentTimeMillis()
val versionName = systemInfo.versionName
val versionCode = systemInfo.versionCode
val selfApp =
InstalledApp(
packageName = selfPackageName,
repoId = SELF_REPO_ID,
repoName = SELF_REPO_NAME,
repoOwner = SELF_REPO_OWNER,
repoOwnerAvatarUrl = SELF_AVATAR_URL,
repoDescription = "A cross-platform app store for GitHub releases",
primaryLanguage = "Kotlin",
repoUrl = "https://github.com/$SELF_REPO_OWNER/$SELF_REPO_NAME",
installedVersion = versionName,
installedAssetName = null,
installedAssetUrl = null,
latestVersion = null,
latestAssetName = null,
latestAssetUrl = null,
latestAssetSize = null,
appName = "GitHub Store",
installSource = InstallSource.THIS_APP,
installedAt = now,
lastCheckedAt = 0L,
lastUpdatedAt = now,
isUpdateAvailable = false,
updateCheckEnabled = true,
releaseNotes = null,
systemArchitecture = "",
fileExtension = "apk",
isPendingInstall = false,
installedVersionName = versionName,
installedVersionCode = versionCode,
signingFingerprint = SELF_SHA256_FINGERPRINT,
)
repo.saveInstalledApp(selfApp)
Logger.i("GitHub Store App: App added")
} catch (e: Exception) {
Logger.e(e) { "GitHub Store App: Failed to register self as installed app" }
}
}
}
companion object {
private const val SELF_REPO_ID = 1101281251L
private const val SELF_SHA256_FINGERPRINT =
@Suppress("ktlint:standard:max-line-length")
"B7:F2:8E:19:8E:48:C1:93:B0:38:C6:5D:92:DD:F7:BC:07:7B:0D:B5:9E:BC:9B:25:0A:6D:AC:48:C1:18:03:CA"
private const val SELF_REPO_OWNER = "OpenHub-Store"
private const val SELF_REPO_NAME = "GitHub-Store"
private const val SELF_AVATAR_URL =
@Suppress("ktlint:standard:max-line-length")
"https://raw.githubusercontent.com/OpenHub-Store/GitHub-Store/refs/heads/main/media-resources/app_icon.png"
const val UPDATES_CHANNEL_ID = "app_updates"
const val UPDATE_SERVICE_CHANNEL_ID = "update_service"
}
}
================================================
FILE: composeApp/src/androidMain/res/drawable/ic_launcher_monochrome.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android"
android:width="24dp"
android:height="24dp"
android:viewportWidth="1800"
android:viewportHeight="1800">
<group
android:translateX="0"
android:translateY="1800"
android:scaleX="0.1"
android:scaleY="-0.1">
<path
android:fillColor="#FF000000"
android:pathData="M5100 14990 c-72 -8 -179 -32 -223 -49 -16 -6 -39 -11 -51 -11 -13 0
-29 -7 -36 -15 -7 -8 -19 -15 -27 -15 -7 0 -51 -18 -95 -40 -45 -22 -86 -40
-91 -40 -15 0 -205 -141 -211 -156 -3 -8 -11 -14 -19 -14 -19 0 -267 -264
-267 -284 0 -4 -15 -28 -34 -55 -72 -102 -136 -258 -186 -456 l-34 -130 0
-4720 -1 -4720 13 -45 c8 -25 18 -70 23 -100 6 -30 14 -64 18 -75 5 -11 16
-40 26 -65 9 -25 25 -62 36 -82 10 -20 19 -44 19 -52 0 -17 35 -78 119 -206
l55 -85 97 -95 c53 -52 118 -110 144 -129 79 -56 194 -131 201 -131 3 0 38
-15 77 -34 141 -68 272 -101 459 -117 l143 -11 85 6 c47 4 121 11 165 15 l80
8 105 33 105 33 145 75 c80 41 154 82 165 92 26 24 209 120 304 160 l74 32 24
-13 c28 -15 30 -29 4 -29 -11 0 -22 -4 -26 -9 -6 -10 9 -16 66 -25 l36 -6 23
-25 c13 -14 32 -25 42 -25 l18 0 0 15 0 16 48 -1 c60 -2 108 8 123 26 6 8 20
14 31 14 10 0 21 7 24 15 4 8 14 15 23 15 26 0 121 48 127 65 3 8 35 24 70 35
56 19 84 40 54 40 -5 0 -10 5 -10 11 l0 11 25 -6 25 -6 50 25 c27 14 50 29 50
34 0 5 24 21 53 35 30 14 59 32 66 40 7 9 50 34 95 55 44 22 92 47 106 55 14
8 51 27 83 40 31 14 57 30 57 34 0 5 12 15 28 22 15 8 39 25 54 39 24 21 39
27 84 30 18 1 104 75 104 88 0 7 14 19 30 28 17 9 30 20 30 25 0 5 10 12 23
15 12 4 31 15 42 26 11 10 31 28 43 39 13 12 43 29 67 37 24 8 49 21 56 29 6
8 22 14 35 14 13 0 27 7 32 17 l10 16 33 -1 c18 0 57 10 86 24 30 13 60 24 67
24 8 0 20 10 28 23 9 12 47 37 86 56 l71 35 -10 13 -11 13 16 6 c9 4 33 4 52
1 l36 -6 -12 14 c-7 8 -10 22 -6 30 7 20 36 19 36 -2 0 -9 3 -13 7 -9 5 4 8
13 8 19 0 6 11 17 24 23 13 7 49 37 80 68 31 31 64 56 73 56 9 0 26 14 38 30
l21 30 55 25 55 25 19 45 19 45 21 0 c12 0 31 11 43 24 l22 23 70 7 c39 4 80
7 92 7 12 -1 26 7 31 15 9 16 20 19 122 31 30 3 62 11 70 18 8 8 29 15 45 17
l30 3 0 15 0 15 96 47 96 46 14 31 14 31 16 0 c9 0 20 7 23 16 l6 15 11 -6
c12 -8 59 32 59 49 0 6 8 16 19 23 l18 11 7 44 7 43 20 16 21 15 -22 38 -21
39 15 -7 c9 -3 23 -9 31 -12 l15 -6 0 18 c0 9 -7 25 -16 35 l-15 17 12 20 c7
11 23 25 36 31 13 6 51 32 86 58 66 52 270 179 365 228 31 17 101 56 154 88
53 31 101 57 106 57 5 0 17 9 27 20 10 11 23 20 30 20 9 0 179 94 287 159 89
54 283 165 308 177 8 4 76 43 150 87 74 44 151 89 170 100 19 11 80 45 135 76
55 32 146 83 203 115 56 32 105 62 108 67 3 5 11 9 19 9 8 0 34 14 58 30 25
17 48 30 52 30 5 0 51 26 104 59 53 32 119 71 146 86 123 67 302 169 327 186
15 11 31 19 36 19 5 0 17 9 27 20 10 11 24 20 31 20 7 0 36 13 64 30 28 16 53
30 56 30 7 0 195 110 214 126 8 6 38 24 65 38 28 15 77 43 110 62 33 19 83 46
110 60 181 96 505 379 505 442 0 6 8 17 18 24 15 11 92 130 92 143 0 2 13 26
28 52 16 26 31 57 35 68 3 11 24 74 46 140 23 66 41 133 41 148 0 16 5 38 11
49 6 11 15 83 20 159 l9 139 -9 143 -10 142 -21 88 c-11 49 -29 110 -39 135
-10 26 -28 70 -40 98 -11 28 -45 95 -76 149 -30 54 -55 101 -55 105 0 4 -13
19 -30 33 -16 15 -30 34 -30 42 0 45 -396 382 -452 385 -4 0 -35 17 -70 37
-35 21 -72 43 -83 50 -11 6 -39 21 -62 32 -24 11 -67 36 -96 55 -30 20 -56 36
-59 36 -3 0 -38 18 -77 39 -39 22 -81 43 -92 46 -11 4 -46 24 -77 44 -31 21
-89 54 -128 74 -61 30 -170 92 -224 127 -36 24 -110 60 -121 60 -7 0 -20 6
-28 14 -9 7 -36 25 -61 38 -56 32 -200 115 -220 128 -8 6 -25 14 -37 19 -11 6
-24 14 -27 19 -3 6 -17 13 -31 16 -13 3 -44 20 -69 36 -25 17 -65 39 -89 50
-24 11 -49 25 -55 32 -6 7 -50 33 -99 58 -48 25 -89 48 -91 53 -2 4 -8 7 -13
7 -8 0 -100 51 -244 137 -27 16 -75 41 -105 56 -30 15 -73 37 -95 50 -87 50
-101 57 -125 67 -14 6 -37 18 -51 28 -14 9 -50 32 -80 50 -30 19 -85 56 -124
83 -38 27 -86 61 -105 74 -19 13 -46 33 -60 44 l-25 20 17 6 c9 4 22 4 28 0 5
-3 15 -3 21 0 l10 7 -20 15 c-12 8 -21 20 -21 26 0 7 -9 18 -21 25 l-20 13 6
30 7 29 -70 70 -70 70 -29 0 -29 0 -17 20 c-22 26 -28 25 -61 -5 -15 -14 -31
-25 -37 -25 -17 0 -9 18 18 40 l26 21 -11 11 -12 12 -18 -17 c-10 -9 -28 -17
-40 -17 l-22 0 0 -15 c0 -16 -33 -27 -69 -23 l-24 3 -4 -12 -5 -13 41 0 41 0
0 -10 c0 -5 -9 -10 -20 -10 l-20 0 0 -14 c0 -8 12 -17 28 -21 15 -3 38 -17 52
-30 29 -26 198 -125 216 -125 6 0 18 -8 26 -17 l16 -18 6 -95 c4 -52 14 -144
23 -205 l16 -110 -1 -325 -1 -325 -11 -88 -11 -89 18 -29 c10 -16 41 -66 70
-111 68 -111 122 -217 190 -373 107 -248 130 -320 208 -640 23 -94 45 -235 45
-288 l0 -48 15 -5 c8 -4 80 10 159 30 176 44 174 44 215 2 l32 -33 -7 -38 -7
-37 -31 -19 c-17 -10 -47 -21 -66 -24 -116 -17 -272 -50 -279 -59 -5 -6 -11
-63 -15 -127 l-7 -117 16 -16 16 -16 42 0 c66 0 286 -20 351 -32 l58 -11 24
-26 24 -26 0 -28 c0 -15 -10 -41 -22 -57 l-22 -30 -65 0 c-36 0 -97 7 -135 15
-39 8 -119 20 -180 26 l-110 12 -18 -23 c-10 -12 -18 -31 -18 -41 0 -10 -11
-47 -24 -83 l-23 -65 16 -15 c9 -8 30 -18 46 -22 17 -4 52 -18 79 -30 28 -13
54 -24 59 -24 21 0 240 -105 260 -124 l17 -17 0 -35 0 -35 -25 -24 -24 -25
-30 0 c-29 0 -94 22 -171 57 -67 30 -225 104 -257 120 l-32 16 -15 -12 c-8 -7
-36 -44 -62 -83 -108 -158 -332 -352 -582 -501 -260 -155 -706 -345 -873 -372
-20 -3 -43 -13 -52 -23 l-16 -17 23 -65 c13 -36 40 -110 60 -165 48 -133 51
-142 92 -270 19 -60 39 -123 45 -140 11 -31 35 -108 49 -160 4 -16 18 -66 30
-110 13 -44 26 -98 31 -120 7 -37 31 -140 65 -280 38 -153 88 -459 80 -480 -2
-7 -58 -39 -123 -71 -65 -32 -145 -74 -178 -94 -33 -20 -68 -39 -77 -43 -10
-3 -48 -26 -85 -50 -37 -24 -108 -70 -158 -102 -49 -31 -102 -65 -116 -75 -14
-10 -37 -20 -50 -22 l-24 -3 1 39 c1 21 9 63 17 95 37 135 50 203 54 306 l5
110 -20 25 -20 25 -28 -10 -29 -10 -14 -29 c-7 -15 -18 -58 -23 -95 -5 -36
-13 -88 -18 -116 -5 -27 -16 -95 -25 -150 -9 -55 -23 -125 -30 -155 -8 -30
-17 -67 -20 -82 -6 -31 -51 -88 -70 -88 -24 0 -45 43 -105 220 -5 14 -18 50
-30 80 -12 30 -25 66 -29 80 -5 14 -17 45 -28 70 -11 25 -28 65 -38 90 -18 44
-77 168 -103 216 -16 29 -55 40 -88 25 l-24 -11 0 -28 c0 -34 27 -129 44 -157
7 -11 30 -63 50 -115 20 -52 43 -108 51 -125 7 -16 21 -50 30 -75 10 -25 24
-58 31 -75 36 -77 97 -233 101 -258 l5 -27 -14 0 c-14 0 -160 -72 -239 -118
-19 -11 -65 -37 -104 -57 -38 -21 -77 -43 -85 -50 -8 -7 -35 -23 -60 -35 -53
-26 -182 -109 -193 -125 l-8 -10 -58 62 c-31 34 -76 89 -99 123 -24 34 -47 67
-53 73 -15 18 -139 208 -139 214 0 2 -15 28 -34 56 -18 29 -61 104 -94 167
-33 63 -70 125 -82 138 l-22 23 -26 -3 -26 -3 -15 -27 -16 -27 19 -58 c17 -50
56 -132 116 -238 98 -174 126 -220 172 -285 29 -41 87 -116 130 -166 42 -50
78 -99 80 -108 l3 -18 -35 -19 c-19 -10 -73 -37 -120 -59 -47 -22 -103 -50
-125 -63 -22 -12 -71 -40 -110 -62 -38 -21 -108 -62 -155 -90 -47 -29 -114
-68 -150 -88 -36 -19 -88 -51 -115 -69 -28 -19 -78 -48 -112 -66 -35 -18 -119
-66 -188 -107 -70 -41 -129 -75 -131 -75 -3 0 -35 -20 -72 -44 -37 -24 -105
-67 -152 -95 -47 -28 -96 -60 -110 -72 l-26 -20 -16 6 c-9 4 -21 19 -27 33 -6
15 -27 54 -46 87 -19 33 -53 96 -76 140 -22 44 -50 96 -61 115 -37 64 -57 104
-98 195 -23 50 -50 108 -60 130 -10 22 -26 62 -36 88 -23 63 -8 60 -243 61
l-206 1 -100 33 c-55 19 -113 40 -130 47 -16 8 -61 28 -100 46 -297 134 -515
428 -560 754 -3 22 -9 90 -15 150 l-10 110 9 177 9 176 -9 114 c-20 274 -89
415 -258 530 l-73 50 -25 55 -26 55 5 62 c6 64 23 107 64 163 l25 32 62 31 62
30 67 0 67 0 73 -34 74 -33 53 -47 c271 -241 313 -385 312 -1066 l-1 -345 14
-75 c58 -312 226 -467 557 -515 59 -8 123 -15 142 -15 l36 0 11 19 c5 11 10
50 10 88 0 78 29 250 76 453 14 60 23 94 61 240 27 102 45 165 55 190 6 14 14
41 18 60 13 59 38 141 75 245 20 55 47 132 60 170 51 147 97 271 111 300 9 17
32 71 51 120 35 87 68 161 158 350 73 155 95 200 105 215 5 8 17 33 26 54 l18
39 -23 18 c-13 11 -33 19 -46 19 -12 0 -35 4 -51 9 -16 5 -83 26 -149 46 -66
20 -132 43 -147 50 -14 8 -31 15 -37 15 -9 0 -239 105 -284 131 -10 5 -46 24
-80 41 -200 100 -412 248 -567 397 -103 99 -102 98 -120 76 -7 -8 -20 -15 -30
-15 -10 0 -23 -7 -30 -15 -7 -8 -20 -15 -30 -15 -10 0 -23 -7 -30 -15 -6 -8
-22 -17 -33 -21 -12 -4 -39 -17 -59 -30 -20 -13 -81 -47 -134 -75 l-98 -51
-29 6 c-16 3 -37 16 -47 28 l-19 23 -1 36 0 35 33 31 32 30 160 77 c88 42 176
86 195 96 l35 19 -2 25 c-1 13 -13 42 -27 64 -14 22 -28 52 -32 66 -3 15 -15
33 -26 40 l-20 14 -37 -5 c-45 -6 -166 -28 -289 -54 -51 -10 -106 -19 -123
-19 l-30 0 -29 22 -30 22 0 41 0 42 19 17 c32 29 134 51 351 77 52 7 101 17
108 22 l14 11 -5 35 c-14 113 -31 207 -38 217 -8 10 -71 19 -262 40 l-58 6
-32 22 -32 22 -3 46 -3 47 26 17 27 17 126 -13 c70 -7 138 -17 152 -22 13 -5
35 -7 47 -3 l23 5 0 98 c0 141 34 386 77 547 25 94 73 257 85 285 5 14 21 59
35 100 13 41 35 97 49 123 13 27 24 53 24 59 0 14 91 194 125 247 l25 41 0 42
c-1 24 -5 63 -10 88 -5 25 -18 126 -30 224 l-20 179 0 296 1 296 14 80 c8 44
15 96 15 115 0 19 9 80 20 135 12 55 27 132 34 170 46 238 150 509 216 562 16
13 55 30 88 38 l60 16 38 -10 c79 -18 150 -40 189 -56 46 -20 311 -152 370
-185 108 -60 177 -103 217 -133 24 -18 61 -44 83 -57 105 -63 391 -294 517
-417 l98 -96 52 7 c29 4 78 13 108 21 303 74 840 87 1215 29 132 -21 287 -52
316 -63 l24 -9 71 72 c38 39 113 109 165 156 51 47 96 88 99 91 37 42 502 369
526 369 8 0 183 -88 199 -100 21 -16 128 -70 140 -70 7 0 22 -9 35 -20 34 -29
73 -9 42 22 l-11 11 12 19 12 19 -34 64 c-19 36 -40 65 -47 65 -6 0 -14 7 -18
15 -3 8 -12 15 -21 15 -8 0 -20 11 -25 25 -5 14 -16 25 -25 25 -8 0 -15 4 -15
10 0 5 -22 22 -50 38 l-50 29 -70 -3 -71 -2 -18 -16 c-10 -9 -22 -16 -28 -16
-5 0 -15 -11 -21 -25 -16 -34 -37 -41 -75 -22 -18 8 -75 36 -127 61 -52 25
-102 50 -110 55 -8 5 -49 25 -90 45 -74 36 -120 62 -270 146 -71 40 -183 101
-260 143 -19 10 -48 27 -65 37 -16 10 -61 35 -99 55 -38 21 -83 46 -100 56
-17 10 -55 30 -83 44 -29 13 -53 28 -53 32 0 5 -24 19 -52 32 -29 13 -70 35
-91 48 -20 13 -76 44 -125 69 -48 25 -93 51 -101 57 -16 14 -26 19 -154 84
-89 46 -228 123 -402 224 -27 16 -88 50 -135 75 -47 26 -132 74 -190 107 -58
33 -132 75 -165 92 -161 85 -263 140 -295 160 -19 12 -60 34 -90 49 -30 15
-68 35 -85 45 -16 10 -61 35 -100 56 -38 21 -82 46 -97 56 -14 11 -30 19 -36
19 -5 0 -20 8 -33 19 -13 10 -35 22 -48 26 -14 4 -52 24 -85 44 -34 21 -99 58
-146 83 -47 25 -123 67 -170 92 -101 56 -199 93 -295 112 -38 7 -88 18 -110
24 -52 13 -372 21 -455 10z m406 -135 c4 -8 17 -15 29 -15 13 0 27 -4 30 -10
3 -5 23 -10 43 -10 20 0 50 -7 66 -15 15 -8 37 -15 47 -15 10 0 21 -4 24 -10
3 -5 30 -21 58 -34 l52 -24 30 5 30 4 29 -30 29 -31 13 11 c17 14 36 2 32 -19
-1 -10 1 -22 5 -29 l7 -12 31 11 31 11 28 -32 c16 -17 40 -35 54 -41 l26 -10
0 -20 0 -20 17 0 c21 0 74 -17 144 -46 31 -13 63 -24 72 -24 8 0 35 -18 59
-41 24 -22 50 -46 58 -53 20 -17 163 -86 178 -86 7 0 25 -8 40 -18 61 -42 109
-70 140 -82 17 -7 32 -17 32 -22 0 -5 15 -16 33 -24 17 -8 39 -18 47 -23 8 -5
36 -19 63 -30 l47 -21 0 -19 0 -20 21 -6 22 -7 9 16 c5 9 16 16 23 16 l15 0 0
-21 0 -20 33 -14 c19 -8 39 -21 46 -29 7 -8 26 -18 42 -21 16 -4 29 -12 29
-19 0 -7 9 -21 21 -32 l20 -18 18 11 c22 14 31 8 31 -19 0 -10 5 -18 11 -18 7
0 22 -11 34 -24 l23 -25 62 -7 63 -7 16 -18 c8 -11 20 -19 26 -19 6 0 27 -13
46 -29 20 -17 58 -38 85 -49 27 -10 69 -37 94 -60 25 -23 77 -58 115 -77 39
-19 82 -46 95 -60 l24 -26 43 7 43 6 0 -16 0 -16 25 -6 c13 -3 29 -12 36 -20
6 -8 20 -14 30 -14 10 0 26 -8 36 -19 10 -10 36 -28 59 -39 22 -11 46 -28 53
-36 l13 -16 24 6 24 6 26 -16 25 -17 -6 -19 -6 -19 21 -11 c12 -6 44 -18 71
-26 27 -8 49 -19 49 -24 0 -14 115 -70 144 -70 14 0 28 -5 32 -11 l7 -12 -17
-9 c-9 -5 -16 -18 -16 -28 l0 -20 15 0 c9 0 18 7 21 15 l6 15 33 0 32 0 25
-19 c13 -11 37 -23 51 -26 l27 -7 0 -19 0 -19 25 -6 c13 -3 29 -12 36 -20 l12
-14 18 5 18 6 8 -14 c4 -7 26 -22 48 -34 l40 -20 3 -24 c5 -33 41 -69 68 -69
13 0 25 -3 28 -8 8 -13 -18 -82 -32 -82 -7 0 -21 -13 -30 -29 -9 -17 -25 -32
-34 -35 -10 -2 -21 -12 -25 -23 -5 -10 -25 -41 -46 -70 l-38 -52 -32 -7 c-18
-3 -42 -18 -55 -31 l-23 -25 -20 5 c-20 5 -34 1 -108 -30 l-33 -15 -27 6 c-14
4 -46 6 -69 6 -24 -1 -50 4 -58 11 l-15 12 -25 -13 -25 -14 -58 12 -57 12
-272 0 c-149 0 -273 4 -276 8 -3 5 -28 9 -56 10 l-51 1 -5 -14 -6 -14 -102 6
-103 6 -7 -12 -7 -11 -64 0 c-35 0 -67 5 -70 10 -3 6 -22 10 -41 10 l-36 0
-61 29 c-34 15 -71 38 -81 50 -11 11 -25 21 -33 21 -7 0 -16 7 -20 16 -3 8
-15 20 -27 25 -11 5 -55 34 -96 64 -41 30 -80 55 -87 55 -7 0 -20 14 -28 31
l-16 30 -44 19 c-24 10 -48 27 -54 38 -6 11 -26 27 -46 36 -19 9 -46 28 -60
41 -13 14 -33 25 -43 25 -10 0 -39 13 -63 30 -25 16 -85 46 -134 66 -50 20
-99 45 -110 54 -34 29 -208 113 -250 121 -22 4 -69 15 -105 24 -36 9 -78 19
-95 22 -16 3 -35 13 -41 20 l-10 15 -65 -6 c-35 -3 -82 -7 -104 -9 -59 -6
-142 -54 -215 -125 -36 -35 -76 -70 -90 -77 -14 -8 -37 -29 -52 -47 -15 -18
-41 -49 -57 -69 -17 -20 -43 -62 -57 -93 -14 -30 -30 -58 -35 -62 l-10 -6 6
-29 7 -30 -12 -15 c-7 -8 -16 -31 -21 -52 -4 -20 -11 -50 -15 -67 -4 -16 -12
-37 -19 -45 -12 -14 -29 -84 -30 -122 0 -9 -3 -20 -7 -24 -5 -4 -8 -26 -8 -49
0 -22 -4 -45 -9 -51 -8 -8 -29 -172 -35 -279 -2 -22 -8 -68 -15 -102 l-12 -62
7 -493 c8 -573 8 -573 -11 -601 -8 -12 -15 -34 -15 -49 l0 -27 -29 -33 c-16
-18 -32 -48 -36 -66 -4 -18 -18 -52 -31 -75 -13 -23 -24 -51 -24 -62 0 -11
-10 -38 -22 -60 -12 -22 -22 -49 -23 -60 -1 -11 -10 -40 -22 -65 -33 -71 -44
-115 -49 -189 l-4 -68 -26 -46 c-14 -26 -23 -51 -19 -57 3 -5 -1 -20 -9 -32
l-15 -22 6 -24 6 -25 -14 -11 c-8 -6 -23 -38 -33 -71 -11 -33 -25 -67 -32 -75
-19 -25 -44 -78 -44 -96 0 -9 -20 -34 -45 -56 l-45 -40 0 -24 0 -24 -20 0 -20
0 -11 -22 c-5 -13 -20 -38 -33 -56 l-24 -32 -7 -50 c-8 -60 1 -122 25 -170 40
-78 29 -144 -50 -300 l-27 -55 2 -61 3 -62 18 -37 c9 -20 23 -39 31 -42 7 -3
13 -11 13 -19 0 -7 10 -24 23 -38 79 -87 90 -107 67 -121 -6 -3 -10 -26 -10
-50 l0 -44 20 -11 20 -11 0 -22 c0 -12 11 -39 25 -59 14 -20 25 -47 25 -58 l0
-21 83 -80 c45 -43 89 -79 98 -79 8 0 24 -7 35 -15 l19 -14 97 -1 97 0 7 11 6
11 30 -6 c16 -3 38 -2 47 4 l18 9 27 -14 28 -15 22 6 22 5 70 -37 c38 -20 76
-43 85 -50 8 -8 30 -14 47 -14 l31 0 6 -21 c4 -11 18 -24 31 -29 13 -5 24 -14
24 -20 0 -5 34 -26 75 -45 41 -19 75 -39 75 -45 0 -11 134 -80 156 -80 7 0 25
-5 39 -12 l25 -11 0 -19 0 -18 25 0 c13 0 59 -20 101 -45 41 -25 84 -45 93
-45 10 0 26 -10 37 -21 10 -12 35 -32 54 -44 l36 -23 11 -37 12 -37 -10 -25
c-5 -13 -9 -39 -9 -56 0 -18 -7 -45 -15 -61 -8 -15 -15 -36 -15 -45 0 -9 -13
-41 -30 -71 -16 -30 -30 -64 -30 -75 0 -11 -14 -47 -30 -80 -17 -33 -30 -70
-30 -82 l0 -22 -20 -11 -20 -11 0 -22 c0 -12 -11 -43 -25 -69 -14 -26 -25 -54
-25 -63 0 -9 -9 -35 -20 -57 -11 -23 -20 -49 -20 -57 0 -9 -11 -38 -25 -64
l-26 -47 16 -6 c8 -3 15 -12 15 -20 l0 -14 -20 0 -20 0 0 -21 c0 -12 -6 -35
-14 -52 -7 -18 -21 -54 -31 -80 l-17 -48 11 -12 10 -13 -19 -29 c-11 -17 -17
-37 -14 -47 2 -9 0 -19 -6 -23 -5 -3 -10 -15 -10 -27 0 -11 -6 -34 -14 -51
-15 -35 -27 -82 -27 -109 0 -10 -4 -20 -10 -23 -5 -4 -9 -15 -9 -26 l0 -19
-21 0 -21 0 5 -19 5 -20 -13 -5 c-7 -2 -16 -23 -20 -45 -8 -49 -15 -54 -72
-54 l-44 1 -24 26 c-14 15 -25 36 -25 46 0 10 -5 22 -11 26 l-12 7 6 63 c2 34
1 66 -4 71 -4 4 -10 114 -12 243 -3 129 -7 255 -10 280 -3 25 -8 83 -12 130
l-6 85 -15 12 -16 12 6 19 7 20 -22 41 -21 42 5 34 6 35 -14 0 -13 0 -41 85
c-22 47 -45 85 -51 85 -6 0 -20 21 -33 48 l-23 47 -28 -3 -28 -3 6 24 6 24
-50 49 c-27 27 -66 66 -87 86 l-38 37 -48 12 -48 12 6 18 6 19 -28 0 c-15 0
-37 7 -47 15 -11 8 -32 15 -46 15 -14 0 -31 5 -36 10 -6 6 -42 13 -80 16 -38
3 -90 10 -115 15 l-47 10 -47 -16 c-69 -23 -85 -33 -137 -87 -25 -26 -51 -48
-57 -48 -6 0 -16 -9 -23 -20 -7 -11 -17 -20 -22 -20 -15 0 -66 -52 -66 -67 0
-7 -11 -18 -24 -23 -13 -5 -30 -22 -38 -37 l-13 -28 -18 0 c-9 0 -41 -26 -71
-59 l-55 -59 -15 6 -16 6 6 29 6 30 -14 23 c-16 29 -16 52 0 100 l13 36 -11
24 c-5 13 -14 31 -18 39 -5 8 -14 25 -20 37 l-12 22 10 6 10 6 0 149 0 149 -9
5 -9 6 6 83 c3 45 7 142 9 215 l4 134 -9 11 -10 12 6 95 c3 52 7 146 9 208 l4
113 -9 12 -10 12 3 140 c2 77 7 148 10 158 4 9 4 30 0 45 -3 15 -5 35 -4 45 4
43 2 367 -3 412 l-5 50 10 13 10 13 -12 25 -11 25 9 17 9 17 -7 575 -7 575 9
12 c10 14 11 498 1 514 -4 7 -8 48 -9 93 -1 45 -6 147 -10 228 l-8 148 13 15
13 16 4 212 3 212 11 42 11 43 -7 22 c-19 57 -38 569 -22 585 11 10 8 61 -3
68 l-10 6 0 123 0 122 11 11 10 10 -5 94 c-4 52 -9 148 -12 213 l-5 119 10 10
11 11 0 153 0 154 14 27 14 27 -4 53 -3 52 9 0 c6 0 10 6 10 13 0 7 9 29 20
50 11 20 20 44 20 52 0 8 4 15 9 15 4 0 20 23 35 51 l26 52 -5 18 -6 18 20 10
c11 6 26 9 33 6 l13 -5 33 49 c35 54 38 67 20 75 l-13 5 23 17 c12 9 22 23 22
30 0 8 4 14 9 14 5 0 11 9 14 20 l5 21 27 -7 27 -7 -6 21 c-9 27 10 62 32 62
10 0 38 22 62 50 l45 50 20 0 c24 0 85 36 103 61 6 9 25 20 41 24 16 3 35 13
42 21 6 8 16 14 22 14 17 0 87 33 87 41 0 12 66 49 88 49 11 0 33 7 48 15 16
8 45 15 65 15 19 0 39 4 45 10 8 8 41 11 124 12 81 0 227 11 233 17 5 5 31 9
58 10 l50 1 5 -15z m5824 -3235 l10 -20 45 2 44 2 18 -16 18 -16 32 5 32 5 58
-32 c32 -18 68 -46 81 -61 l22 -27 41 -7 40 -7 9 -24 10 -24 32 0 c44 0 114
-36 138 -71 l21 -29 75 -35 c41 -19 100 -47 132 -62 31 -14 63 -34 70 -44 7
-11 18 -19 24 -19 7 0 21 -9 33 -20 12 -12 44 -26 71 -33 l49 -12 -3 -23 -3
-22 15 -6 c9 -4 23 -1 31 6 l15 12 6 -15 c3 -9 19 -20 35 -26 16 -5 29 -14 29
-20 0 -5 30 -24 68 -42 37 -18 72 -40 79 -48 l11 -16 37 4 38 3 -7 -25 -6 -24
50 5 50 5 0 -12 c0 -6 -11 -13 -25 -17 -31 -8 -23 -24 11 -24 30 0 166 -63
185 -86 7 -8 37 -27 68 -42 31 -15 62 -33 69 -39 7 -7 20 -13 27 -13 8 0 19
-9 25 -21 l11 -20 42 3 42 3 3 -20 3 -20 102 -50 c93 -45 140 -74 220 -135
l27 -22 6 16 c3 9 15 16 26 16 l19 0 -2 -17 c-3 -33 1 -43 16 -43 8 0 24 -14
37 -30 21 -30 69 -60 93 -60 6 0 29 -18 50 -40 21 -22 45 -40 52 -40 8 0 29
-16 49 -35 19 -19 46 -42 59 -51 14 -9 25 -20 25 -25 0 -14 61 -99 71 -99 6 0
17 -16 25 -35 8 -19 25 -42 38 -50 l23 -15 54 -108 c29 -59 52 -111 50 -116
-1 -5 12 -38 29 -73 l31 -63 -6 -55 -7 -55 17 -26 16 -25 -5 -92 c-6 -91 -6
-114 -4 -275 l1 -83 -11 -11 -12 -12 -15 20 c-8 10 -15 14 -15 9 0 -6 5 -16
11 -22 l12 -12 -5 -58 -5 -58 -51 -106 c-29 -58 -52 -111 -52 -117 0 -7 -9
-21 -19 -31 -11 -11 -23 -36 -26 -55 l-7 -35 -21 -3 -21 -3 -17 -49 c-21 -58
-43 -83 -86 -101 l-32 -13 -15 -31 c-9 -16 -16 -36 -16 -44 0 -8 -12 -23 -27
-32 -16 -10 -31 -24 -35 -30 -4 -7 -23 -16 -43 -19 -19 -4 -38 -13 -42 -20 -5
-7 -33 -25 -63 -39 -71 -35 -120 -71 -135 -100 l-11 -22 -29 0 c-17 0 -44 -10
-62 -22 -17 -13 -36 -23 -43 -23 l-11 0 6 -20 6 -19 -28 -8 c-15 -4 -35 -6
-45 -5 -9 2 -22 -6 -30 -17 -12 -17 -55 -40 -130 -70 -30 -11 -38 -31 -14 -31
8 0 18 -5 22 -11 l7 -12 -39 5 -38 4 -42 -28 c-24 -16 -44 -33 -46 -38 -2 -6
-36 -21 -75 -35 -101 -34 -125 -48 -171 -100 -42 -48 -71 -57 -79 -26 -6 24
-32 36 -47 21 l-10 -10 18 -13 18 -13 -41 -37 c-23 -20 -48 -37 -57 -37 -9 0
-51 -16 -93 -36 l-76 -37 -38 -40 -38 -41 -21 13 -22 13 -25 -30 c-29 -33
-103 -82 -125 -82 -8 0 -28 -12 -45 -26 -17 -14 -66 -44 -108 -66 l-77 -40
-29 5 c-15 2 -30 0 -33 -5 -3 -4 2 -8 10 -8 l16 0 0 -20 0 -20 -17 0 c-23 0
-143 -60 -143 -71 0 -5 -10 -9 -22 -9 -48 -1 -203 -110 -178 -125 6 -4 8 -11
5 -16 -8 -13 -49 -11 -62 2 l-12 12 -23 -7 c-13 -3 -49 -31 -82 -61 -32 -30
-67 -55 -77 -55 -10 0 -20 -4 -23 -9 -3 -5 -46 -28 -96 -52 l-90 -42 2 -15 3
-14 -49 -18 c-26 -11 -56 -26 -65 -34 -10 -9 -26 -16 -37 -16 -27 -1 -59 -21
-85 -54 -24 -31 -90 -65 -126 -66 l-21 0 -11 -31 -10 -31 -20 7 c-18 5 -32 1
-81 -26 -77 -43 -100 -49 -200 -52 l-65 -2 -37 38 c-36 37 -43 53 -38 87 2 16
-17 85 -31 112 -5 10 -9 29 -9 42 l0 24 -16 6 -16 6 6 15 c3 9 2 23 -3 33 -24
45 -41 107 -41 152 0 27 -4 51 -9 54 -5 3 -11 20 -14 38 -5 34 -22 88 -39 121
-5 10 -6 22 -3 27 3 5 0 20 -6 32 -17 30 -30 104 -36 200 l-4 77 20 20 c12 12
21 28 21 36 l0 15 26 6 26 7 9 26 10 26 116 55 c63 30 125 60 137 67 11 6 47
23 78 38 31 15 67 38 79 51 12 13 30 24 40 24 10 0 21 5 24 10 3 6 14 10 24
10 9 0 32 16 51 35 18 19 46 37 61 40 15 4 33 13 40 21 6 8 17 14 23 14 7 0
23 11 36 25 13 14 29 25 36 25 7 0 29 14 47 30 19 17 39 30 45 30 6 0 25 20
42 45 17 25 37 45 43 45 7 0 18 5 25 12 l12 12 -12 13 -11 14 18 17 17 17 4
-10 c3 -5 9 -17 14 -25 l10 -15 29 31 c15 17 43 39 62 49 l34 17 115 8 c115 9
225 31 244 50 5 5 23 10 38 10 l29 0 49 47 c28 26 50 55 51 63 l0 15 9 -22 c5
-13 16 -23 25 -23 l15 0 0 25 c0 15 -7 39 -15 55 l-15 29 11 7 12 7 9 -17 c15
-26 29 -8 28 37 0 23 3 63 6 90 l6 47 -16 25 c-20 31 -21 61 -1 69 8 3 15 14
15 25 0 10 7 21 14 24 8 3 20 24 26 46 l11 41 19 10 c11 6 30 29 41 52 l22 42
0 63 1 63 -27 28 c-15 15 -27 34 -27 42 0 7 -15 31 -33 54 -19 23 -36 49 -40
59 l-6 17 -23 0 -23 1 20 15 20 14 -12 19 -11 18 13 14 14 14 -9 40 c-5 22
-10 48 -10 59 l0 18 15 -6 15 -5 10 19 c14 27 12 72 -4 96 -8 11 -19 39 -25
62 l-12 42 -25 -6 -25 -6 -17 14 c-9 8 -25 18 -35 21 -21 8 -18 31 5 35 l15 3
6 -21 5 -20 21 0 c12 0 21 2 21 5 0 15 -34 55 -46 55 -8 0 -38 23 -66 52 l-53
51 0 21 0 21 -23 10 -22 10 -24 50 c-13 27 -27 57 -31 65 -3 8 -12 26 -20 40
l-14 24 10 12 10 13 -10 20 c-6 11 -11 28 -11 39 0 11 -13 36 -30 57 -16 21
-30 46 -30 56 0 11 -9 36 -20 56 -11 21 -20 45 -20 53 0 9 -9 35 -20 58 -11
22 -20 47 -20 54 0 7 -11 36 -25 63 -13 28 -25 58 -25 68 0 26 -27 74 -45 80
l-15 6 0 25 c0 14 -7 31 -15 40 -8 8 -15 22 -15 31 0 8 -22 60 -50 114 -27 54
-50 108 -50 121 0 12 -10 30 -22 40 l-23 18 3 153 3 153 11 13 10 12 -3 90 -4
90 12 12 13 13 -15 16 -16 17 15 12 c8 7 12 19 9 27 -3 8 0 28 7 44 l12 30 19
0 c10 0 23 -9 29 -20z m-7231 -5009 c22 -22 48 -55 57 -73 9 -18 23 -37 31
-41 l14 -8 -6 -19 -6 -18 36 -29 35 -28 0 -23 c0 -12 6 -25 14 -28 8 -3 24
-25 35 -50 12 -24 26 -44 31 -44 6 0 16 -12 22 -27 7 -16 17 -35 24 -43 19
-24 38 -93 35 -127 -2 -31 11 -88 30 -125 13 -25 11 -131 -2 -165 -6 -15 -11
-76 -11 -136 l0 -107 11 -13 c6 -8 11 -27 11 -43 0 -53 12 -129 22 -142 6 -7
8 -15 5 -19 -4 -3 -2 -13 3 -22 4 -9 11 -57 14 -107 l5 -90 15 -29 c9 -17 16
-39 16 -51 0 -11 8 -28 18 -38 17 -15 46 -66 87 -156 44 -97 93 -169 153 -223
12 -11 22 -27 22 -34 0 -7 8 -13 18 -13 l19 0 31 -48 c17 -27 51 -67 76 -90
l44 -41 21 6 21 5 43 -28 c23 -16 44 -32 45 -37 6 -12 181 -97 201 -97 10 0
30 -11 45 -25 15 -14 37 -25 50 -25 13 0 31 -9 40 -19 l17 -19 116 -18 116
-18 26 -22 c14 -12 53 -35 86 -52 l60 -30 43 -46 c23 -25 42 -50 42 -55 0 -5
14 -14 30 -20 33 -11 39 -25 15 -35 l-16 -6 15 -29 c9 -16 20 -31 26 -33 l11
-3 -1 -80 c-1 -44 -3 -99 -3 -122 l-1 -43 -13 -4 c-7 -3 -15 -1 -18 4 -11 18
-22 10 -50 -35 l-28 -44 -66 -32 c-36 -17 -79 -35 -96 -38 l-30 -7 -3 -19 c-6
-33 -16 -37 -103 -42 -84 -5 -109 -14 -109 -39 0 -16 -14 -18 -40 -4 l-18 10
-39 -16 -38 -17 -153 6 -154 6 -14 12 -14 11 -30 -12 c-35 -15 -54 -5 -27 14
9 7 17 18 17 24 0 17 -20 25 -34 13 -7 -6 -37 -13 -67 -17 l-55 -6 -35 17
c-19 9 -41 26 -50 38 l-16 20 -24 -17 c-32 -22 -36 -21 -77 22 -39 41 -93 72
-124 72 l-18 0 -9 23 c-5 13 -29 40 -55 60 l-45 38 5 13 5 13 -33 13 c-18 7
-50 29 -72 49 l-39 36 -4 -12 c-7 -18 -23 -16 -23 2 0 23 -26 69 -74 133 -24
31 -54 82 -67 112 -12 30 -27 58 -32 61 l-9 7 7 30 6 31 -20 20 c-12 12 -28
21 -36 21 -17 0 -18 6 -15 77 l2 53 -16 6 -16 6 0 31 0 30 20 -18 20 -18 0 36
0 37 -15 0 -15 0 0 43 c0 24 -7 58 -16 76 l-16 32 6 187 c3 103 5 196 4 207 0
11 -1 43 0 70 1 28 0 61 0 75 -1 14 -1 82 0 153 4 256 3 347 -5 582 l-9 240 9
6 9 6 -1 261 -2 260 10 6 c11 7 52 90 50 102 -6 36 14 31 60 -15z"/>
<path
android:fillColor="#FF000000"
android:pathData="M10265 12395 c-203 -58 -416 -200 -683 -458 -87 -83 -83 -91 66 -145
221 -82 589 -281 657 -356 6 -6 30 -27 55 -45 25 -19 50 -39 55 -45 6 -6 43
-39 82 -74 l72 -64 18 4 18 3 3 280 2 280 -21 149 c-22 156 -56 294 -90 359
-10 21 -19 49 -19 62 l0 25 -16 0 c-9 0 -29 11 -46 25 -35 30 -49 30 -153 0z"/>
<path
android:fillColor="#FF000000"
android:pathData="M5962 12390 c-131 -31 -198 -273 -209 -760 -5 -236 6 -462 26 -498
l11 -21 20 7 c10 4 56 43 102 87 158 153 272 240 483 366 130 79 321 179 341
179 19 0 141 57 149 70 l7 11 -115 112 c-330 322 -636 490 -815 447z"/>
<path
android:fillColor="#FF000000"
android:pathData="M9545 10266 c-137 -27 -228 -78 -324 -181 l-64 -68 -34 -75 c-19 -40
-39 -101 -45 -135 l-10 -62 6 -95 5 -95 25 -62 c75 -192 190 -304 370 -361
l51 -16 135 -1 135 0 68 28 c88 36 134 65 206 133 l60 56 42 80 c183 352 -6
754 -402 852 -75 18 -139 19 -224 2z m20 -249 l40 -23 22 -45 22 -44 1 -51 c1
-223 -301 -283 -375 -75 -35 99 0 196 85 242 l35 18 65 0 65 0 40 -22z"/>
<path
android:fillColor="#FF000000"
android:pathData="M6730 10202 c-30 -10 -82 -31 -115 -47 l-60 -29 -72 -72 -71 -72 -44
-89 -43 -88 -3 -132 -4 -132 22 -65 c12 -36 26 -68 31 -71 5 -4 9 -14 9 -24 0
-22 77 -129 123 -172 71 -65 194 -120 316 -140 l66 -10 85 11 85 12 75 31 c86
35 102 46 187 129 l63 61 39 81 40 81 12 74 13 73 -13 100 c-18 147 -57 229
-156 333 l-70 73 -65 32 c-36 17 -90 40 -120 51 l-54 19 -111 -1 -110 -1 -55
-16z m69 -207 c16 -8 43 -32 60 -54 l31 -39 10 -50 9 -50 -9 -33 c-5 -19 -24
-51 -41 -73 l-32 -38 -44 -19 c-85 -36 -174 -13 -230 59 l-28 37 0 80 0 80 23
37 22 36 43 21 42 21 58 0 58 0 28 -15z"/>
<path
android:fillColor="#FF000000"
android:pathData="M8215 9393 c-16 -2 -46 -9 -67 -14 l-36 -9 -31 -35 -31 -36 0 -37 0
-38 29 -45 28 -45 77 -58 76 -57 0 -28 0 -28 -29 -44 -30 -44 -33 -16 c-98
-48 -130 -50 -199 -12 l-49 26 -10 37 c-6 21 -17 43 -24 49 l-15 12 -42 -3
-43 -3 -10 -33 -9 -32 11 -38 11 -37 53 -53 c29 -30 68 -60 87 -68 l33 -14 79
0 78 0 54 24 c30 13 72 40 94 60 50 45 69 45 113 -1 19 -19 59 -46 88 -59 l53
-24 73 0 73 0 49 26 c96 50 154 123 154 192 l0 40 -25 16 c-41 27 -105 4 -105
-38 0 -7 -15 -29 -32 -49 l-33 -37 -46 -12 -46 -11 -49 13 -48 14 -43 43 c-46
45 -63 78 -63 118 l0 24 57 38 c31 21 74 59 96 86 l40 47 5 55 4 55 -35 34
-35 33 -70 11 c-68 12 -164 13 -227 5z"/>
</group>
</vector>
================================================
FILE: composeApp/src/androidMain/res/drawable/ic_splash.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:drawable="@drawable/app_icon"
android:inset="48dp"
/>
================================================
FILE: composeApp/src/androidMain/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="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
================================================
FILE: composeApp/src/androidMain/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="@mipmap/ic_launcher_foreground"/>
<monochrome android:drawable="@mipmap/ic_launcher_foreground"/>
</adaptive-icon>
================================================
FILE: composeApp/src/androidMain/res/values/colors.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="ic_launcher_background">#101010</color>
</resources>
================================================
FILE: composeApp/src/androidMain/res/values/splash.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.GitHubStore.Splash" parent="Theme.SplashScreen">
<item name="windowSplashScreenAnimatedIcon">@drawable/ic_splash</item>
<item name="windowSplashScreenBackground">@color/ic_launcher_background</item>
<item name="postSplashScreenTheme">@style/Theme.AppCompat.DayNight.NoActionBar</item>
</style>
</resources>
================================================
FILE: composeApp/src/androidMain/res/values/strings.xml
================================================
<resources>
<string name="app_name">GitHub Store</string>
</resources>
================================================
FILE: composeApp/src/androidMain/res/xml/filepaths.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<paths xmlns:android="http://schemas.android.com/apk/res/android">
<external-files-path
name="ghs_downloads"
path="/" />
<cache-path
name="exports"
path="exports/" />
</paths>
================================================
FILE: composeApp/src/androidMain/res/xml/network_security_config.xml
================================================
<?xml version="1.0" encoding="utf-8"?>
<network-security-config>
<base-config cleartextTrafficPermitted="false">
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</base-config>
<domain-config cleartextTrafficPermitted="false">
<domain includeSubdomains="true">github.com</domain>
<domain includeSubdomains="true">api.github.com</domain>
<trust-anchors>
<certificates src="system" />
</trust-anchors>
</domain-config>
</network-security-config>
================================================
FILE: composeApp/src/commonMain/composeResources/drawable/ic_github.xml
================================================
<vector xmlns:android="http://schemas.android.com/apk/res/android" android:height="24dp" android:viewportHeight="20" android:viewportWidth="20" android:width="24dp">
<path android:fillColor="#000000" android:fillType="evenOdd" android:pathData="M10,0C15.523,0 20,4.59 20,10.253C20,14.782 17.138,18.624 13.167,19.981C12.66,20.082 12.48,19.762 12.48,19.489C12.48,19.151 12.492,18.047 12.492,16.675C12.492,15.719 12.172,15.095 11.813,14.777C14.04,14.523 16.38,13.656 16.38,9.718C16.38,8.598 15.992,7.684 15.35,6.966C15.454,6.707 15.797,5.664 15.252,4.252C15.252,4.252 14.414,3.977 12.505,5.303C11.706,5.076 10.85,4.962 10,4.958C9.15,4.962 8.295,5.076 7.497,5.303C5.586,3.977 4.746,4.252 4.746,4.252C4.203,5.664 4.546,6.707 4.649,6.966C4.01,7.684 3.619,8.598 3.619,9.718C3.619,13.646 5.954,14.526 8.175,14.785C7.889,15.041 7.63,15.493 7.54,16.156C6.97,16.418 5.522,16.871 4.63,15.304C4.63,15.304 4.101,14.319 3.097,14.247C3.097,14.247 2.122,14.234 3.029,14.87C3.029,14.87 3.684,15.185 4.139,16.37C4.139,16.37 4.726,18.2 7.508,17.58C7.513,18.437 7.522,19.245 7.522,19.489C7.522,19.76 7.338,20.077 6.839,19.982C2.865,18.627 0,14.783 0,10.253C0,4.59 4.478,0 10,0" android:strokeColor="#00000000" android:strokeWidth="1"/>
</vector>
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/Main.kt
================================================
package zed.rainxch.githubstore
import androidx.compose.foundation.isSystemInDarkTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.navigation.compose.currentBackStackEntryAsState
import androidx.navigation.compose.rememberNavController
import org.koin.compose.viewmodel.koinViewModel
import zed.rainxch.core.presentation.theme.GithubStoreTheme
import zed.rainxch.core.presentation.utils.ApplyAndroidSystemBars
import zed.rainxch.core.presentation.utils.ObserveAsEvents
import zed.rainxch.githubstore.app.components.RateLimitDialog
import zed.rainxch.githubstore.app.components.SessionExpiredDialog
import zed.rainxch.githubstore.app.deeplink.DeepLinkDestination
import zed.rainxch.githubstore.app.deeplink.DeepLinkParser
import zed.rainxch.githubstore.app.desktop.KeyboardNavigation
import zed.rainxch.githubstore.app.desktop.KeyboardNavigationEvent
import zed.rainxch.githubstore.app.navigation.AppNavigation
import zed.rainxch.githubstore.app.navigation.GithubStoreGraph
import zed.rainxch.githubstore.app.navigation.getCurrentScreen
@Composable
fun App(deepLinkUri: String? = null) {
val viewModel: MainViewModel = koinViewModel()
val state by viewModel.state.collectAsStateWithLifecycle()
val navController = rememberNavController()
val currentScreen = navController.currentBackStackEntryAsState().value.getCurrentScreen()
LaunchedEffect(deepLinkUri) {
deepLinkUri?.let { uri ->
when (val destination = DeepLinkParser.parse(uri)) {
is DeepLinkDestination.Repository -> {
navController.navigate(
GithubStoreGraph.DetailsScreen(
owner = destination.owner,
repo = destination.repo,
),
)
}
DeepLinkDestination.None -> {
// ignore unrecognized deep links
}
}
}
}
ObserveAsEvents(KeyboardNavigation.events) { event ->
when (event) {
KeyboardNavigationEvent.OnCtrlFClick -> {
if (currentScreen !is GithubStoreGraph.SearchScreen) {
navController.navigate(GithubStoreGraph.SearchScreen) {
popUpTo(GithubStoreGraph.HomeScreen) {
saveState = true
}
launchSingleTop = true
restoreState = true
}
}
}
}
}
GithubStoreTheme(
fontTheme = state.currentFontTheme,
appTheme = state.currentColorTheme,
isAmoledTheme = state.isAmoledTheme,
isDarkTheme = state.isDarkTheme ?: isSystemInDarkTheme(),
) {
ApplyAndroidSystemBars(state.isDarkTheme)
if (state.showRateLimitDialog && state.rateLimitInfo != null) {
RateLimitDialog(
rateLimitInfo = state.rateLimitInfo!!,
isAuthenticated = state.isLoggedIn,
onDismiss = {
viewModel.onAction(MainAction.DismissRateLimitDialog)
},
onSignIn = {
viewModel.onAction(MainAction.DismissRateLimitDialog)
navController.navigate(GithubStoreGraph.AuthenticationScreen)
},
)
}
if (state.showSessionExpiredDialog) {
SessionExpiredDialog(
onDismiss = {
viewModel.onAction(MainAction.DismissSessionExpiredDialog)
},
onSignIn = {
viewModel.onAction(MainAction.DismissSessionExpiredDialog)
navController.navigate(GithubStoreGraph.AuthenticationScreen)
},
)
}
AppNavigation(
navController = navController,
isLiquidGlassEnabled = state.isLiquidGlassEnabled,
)
}
}
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/MainAction.kt
================================================
package zed.rainxch.githubstore
sealed interface MainAction {
data object DismissRateLimitDialog : MainAction
data object DismissSessionExpiredDialog : MainAction
}
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/MainState.kt
================================================
package zed.rainxch.githubstore
import zed.rainxch.core.domain.model.AppTheme
import zed.rainxch.core.domain.model.FontTheme
import zed.rainxch.core.domain.model.RateLimitInfo
data class MainState(
val isLoggedIn: Boolean = false,
val rateLimitInfo: RateLimitInfo? = null,
val showRateLimitDialog: Boolean = false,
val showSessionExpiredDialog: Boolean = false,
val currentColorTheme: AppTheme = AppTheme.OCEAN,
val isAmoledTheme: Boolean = false,
val isDarkTheme: Boolean? = null,
val currentFontTheme: FontTheme = FontTheme.CUSTOM,
val isLiquidGlassEnabled: Boolean = true,
)
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/MainViewModel.kt
================================================
package zed.rainxch.githubstore
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.flow.MutableStateFlow
import kotlinx.coroutines.flow.asStateFlow
import kotlinx.coroutines.flow.update
import kotlinx.coroutines.launch
import zed.rainxch.core.domain.repository.AuthenticationState
import zed.rainxch.core.domain.repository.InstalledAppsRepository
import zed.rainxch.core.domain.repository.RateLimitRepository
import zed.rainxch.core.domain.repository.TweaksRepository
import zed.rainxch.core.domain.use_cases.SyncInstalledAppsUseCase
class MainViewModel(
private val tweaksRepository: TweaksRepository,
private val installedAppsRepository: InstalledAppsRepository,
private val authenticationState: AuthenticationState,
private val rateLimitRepository: RateLimitRepository,
private val syncUseCase: SyncInstalledAppsUseCase,
) : ViewModel() {
private val _state = MutableStateFlow(MainState())
val state = _state.asStateFlow()
init {
viewModelScope.launch(Dispatchers.IO) {
authenticationState
.isUserLoggedIn()
.collect { isLoggedIn ->
_state.update { it.copy(isLoggedIn = isLoggedIn) }
if (isLoggedIn) {
rateLimitRepository.clear()
}
}
}
viewModelScope.launch {
tweaksRepository
.getThemeColor()
.collect { theme ->
_state.update {
it.copy(currentColorTheme = theme)
}
}
}
viewModelScope.launch {
tweaksRepository
.getAmoledTheme()
.collect { isAmoled ->
_state.update {
it.copy(isAmoledTheme = isAmoled)
}
}
}
viewModelScope.launch {
tweaksRepository
.getIsDarkTheme()
.collect { isDarkTheme ->
_state.update {
it.copy(isDarkTheme = isDarkTheme)
}
}
}
viewModelScope.launch {
tweaksRepository
.getFontTheme()
.collect { fontTheme ->
_state.update {
it.copy(currentFontTheme = fontTheme)
}
}
}
viewModelScope.launch {
tweaksRepository.getLiquidGlassEnabled().collect { enabled ->
_state.update { it.copy(isLiquidGlassEnabled = enabled) }
}
}
viewModelScope.launch {
rateLimitRepository.rateLimitState.collect { rateLimitInfo ->
_state.update { currentState ->
currentState.copy(rateLimitInfo = rateLimitInfo)
}
}
}
viewModelScope.launch {
rateLimitRepository.rateLimitExhaustedEvent.collect { info ->
_state.update { it.copy(showRateLimitDialog = true, rateLimitInfo = info) }
}
}
viewModelScope.launch {
authenticationState.sessionExpiredEvent.collect {
_state.update { it.copy(showSessionExpiredDialog = true) }
}
}
viewModelScope.launch(Dispatchers.IO) {
syncUseCase().onSuccess {
installedAppsRepository.checkAllForUpdates()
}
}
}
fun onAction(action: MainAction) {
when (action) {
MainAction.DismissRateLimitDialog -> {
_state.update { it.copy(showRateLimitDialog = false) }
}
MainAction.DismissSessionExpiredDialog -> {
_state.update { it.copy(showSessionExpiredDialog = false) }
}
}
}
}
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/components/RateLimitDialog.kt
================================================
package zed.rainxch.githubstore.app.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.height
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Warning
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Button
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import org.jetbrains.compose.resources.stringResource
import zed.rainxch.core.domain.model.RateLimitInfo
import zed.rainxch.core.presentation.theme.GithubStoreTheme
import zed.rainxch.githubstore.core.presentation.res.Res
import zed.rainxch.githubstore.core.presentation.res.rate_limit_close
import zed.rainxch.githubstore.core.presentation.res.rate_limit_exceeded
import zed.rainxch.githubstore.core.presentation.res.rate_limit_ok
import zed.rainxch.githubstore.core.presentation.res.rate_limit_resets_in_minutes
import zed.rainxch.githubstore.core.presentation.res.rate_limit_sign_in
import zed.rainxch.githubstore.core.presentation.res.rate_limit_tip_sign_in
import zed.rainxch.githubstore.core.presentation.res.rate_limit_used_all
import zed.rainxch.githubstore.core.presentation.res.rate_limit_used_all_free
@Composable
fun RateLimitDialog(
rateLimitInfo: RateLimitInfo,
isAuthenticated: Boolean,
onDismiss: () -> Unit,
onSignIn: () -> Unit,
) {
val timeUntilReset =
remember(rateLimitInfo) {
rateLimitInfo.timeUntilReset().inWholeMinutes.toInt()
}
AlertDialog(
onDismissRequest = onDismiss,
icon = {
Icon(
imageVector = Icons.Default.Warning,
contentDescription = null,
tint = MaterialTheme.colorScheme.error,
)
},
title = {
Text(
text = stringResource(Res.string.rate_limit_exceeded),
style = MaterialTheme.typography.headlineSmall,
fontWeight = FontWeight.Black,
color = MaterialTheme.colorScheme.onSurface,
)
},
text = {
Column(
verticalArrangement = Arrangement.spacedBy(8.dp),
) {
Text(
text =
if (isAuthenticated) {
stringResource(
Res.string.rate_limit_used_all,
rateLimitInfo.limit,
)
} else {
stringResource(
Res.string.rate_limit_used_all_free,
60,
)
},
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.outline,
)
Text(
text =
stringResource(
Res.string.rate_limit_resets_in_minutes,
timeUntilReset,
),
style = MaterialTheme.typography.bodyMedium,
fontWeight = FontWeight.Bold,
color = MaterialTheme.colorScheme.onSurface,
)
if (!isAuthenticated) {
Spacer(modifier = Modifier.height(8.dp))
Text(
text = stringResource(Res.string.rate_limit_tip_sign_in),
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.primary,
)
}
}
},
confirmButton = {
if (!isAuthenticated) {
Button(onClick = onSignIn) {
Text(
text = stringResource(Res.string.rate_limit_sign_in),
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onPrimary,
)
}
} else {
Button(onClick = onDismiss) {
Text(
text = stringResource(Res.string.rate_limit_ok),
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onSurface,
)
}
}
},
dismissButton = {
TextButton(onClick = onDismiss) {
Text(
text = stringResource(Res.string.rate_limit_close),
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onSurface,
)
}
},
)
}
@Preview
@Composable
fun RateLimitDialogPreview() {
GithubStoreTheme {
RateLimitDialog(
rateLimitInfo =
RateLimitInfo(
limit = 1000,
remaining = 2000,
resetTimestamp = 0L,
),
isAuthenticated = false,
onDismiss = {
},
onSignIn = {
},
)
}
}
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/components/SessionExpiredDialog.kt
================================================
package zed.rainxch.githubstore.app.components
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.LockOpen
import androidx.compose.material3.AlertDialog
import androidx.compose.material3.Button
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.material3.TextButton
import androidx.compose.runtime.Composable
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.unit.dp
import org.jetbrains.compose.resources.stringResource
import zed.rainxch.githubstore.core.presentation.res.*
@Composable
fun SessionExpiredDialog(
onDismiss: () -> Unit,
onSignIn: () -> Unit,
) {
AlertDialog(
onDismissRequest = onDismiss,
icon = {
Icon(
imageVector = Icons.Default.LockOpen,
contentDescription = null,
tint = MaterialTheme.colorScheme.error,
)
},
title = {
Text(
text = stringResource(Res.string.session_expired_title),
style = MaterialTheme.typography.headlineSmall,
fontWeight = FontWeight.Black,
color = MaterialTheme.colorScheme.onSurface,
)
},
text = {
Column(
verticalArrangement = Arrangement.spacedBy(8.dp),
) {
Text(
text = stringResource(Res.string.session_expired_message),
style = MaterialTheme.typography.bodyMedium,
color = MaterialTheme.colorScheme.outline,
)
Text(
text = stringResource(Res.string.session_expired_hint),
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.primary,
)
}
},
confirmButton = {
Button(onClick = onSignIn) {
Text(
text = stringResource(Res.string.sign_in_again),
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onPrimary,
)
}
},
dismissButton = {
TextButton(onClick = onDismiss) {
Text(
text = stringResource(Res.string.continue_as_guest),
style = MaterialTheme.typography.bodySmall,
color = MaterialTheme.colorScheme.onSurface,
)
}
},
)
}
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/deeplink/DeepLinkParser.kt
================================================
package zed.rainxch.githubstore.app.deeplink
sealed interface DeepLinkDestination {
data class Repository(
val owner: String,
val repo: String,
) : DeepLinkDestination
data object None : DeepLinkDestination
}
object DeepLinkParser {
private val INVALID_CHARS = setOf('/', '\\', '?', '#', '@', ':', '*', '"', '<', '>', '|', '%', '&', '=')
private val FORBIDDEN_PATTERNS = listOf("..", "~", "\u0000")
private val EXCLUDED_PATHS =
setOf(
"about",
"account",
"admin",
"api",
"apps",
"articles",
"blog",
"business",
"collections",
"contact",
"dashboard",
"enterprises",
"events",
"explore",
"features",
"home",
"issues",
"marketplace",
"new",
"notifications",
"orgs",
"pricing",
"pulls",
"search",
"security",
"settings",
"showcases",
"site",
"sponsors",
"topics",
"trending",
"team",
)
fun parse(uri: String): DeepLinkDestination {
return when {
uri.startsWith("githubstore://repo/") -> {
val path = uri.removePrefix("githubstore://repo/")
val decoded = urlDecode(path)
parseOwnerRepo(decoded)
}
uri.startsWith("https://github.com/") -> {
val path =
uri
.removePrefix("https://github.com/")
.substringBefore('?')
.substringBefore('#')
val decoded = urlDecode(path)
val parts = decoded.split("/").filter { it.isNotEmpty() }
if (parts.size >= 2) {
val owner = parts[0]
val repo = parts[1]
if (isStrictlyValidOwnerRepo(owner, repo)) {
return DeepLinkDestination.Repository(owner, repo)
}
}
DeepLinkDestination.None
}
uri.startsWith("https://github-store.org/app/") -> {
extractQueryParam(uri, "repo")?.let { encodedRepoParam ->
val decoded = urlDecode(encodedRepoParam)
parseOwnerRepo(decoded)
} ?: DeepLinkDestination.None
}
else -> {
DeepLinkDestination.None
}
}
}
/**
* URL-decode a string, handling percent-encoded characters.
* Returns the original string if decoding fails.
*/
private fun urlDecode(value: String): String =
try {
val result = StringBuilder()
var i = 0
while (i < value.length) {
when (val c = value[i]) {
'%' -> {
if (i + 2 < value.length) {
val hex = value.substring(i + 1, i + 3)
val code = hex.toIntOrNull(16)
if (code != null) {
result.append(code.toChar())
i += 3
continue
}
}
result.append(c)
i++
}
'+' -> {
result.append(' ')
i++
}
else -> {
result.append(c)
i++
}
}
}
result.toString()
} catch (_: Exception) {
value
}
private fun parseOwnerRepo(path: String): DeepLinkDestination {
val parts = path.split("/").filter { it.isNotEmpty() }
return if (parts.size >= 2) {
val owner = parts[0]
val repo = parts[1]
if (isStrictlyValidOwnerRepo(owner, repo)) {
DeepLinkDestination.Repository(owner, repo)
} else {
DeepLinkDestination.None
}
} else {
DeepLinkDestination.None
}
}
/**
* Strictly validate owner and repo names to prevent injection attacks.
* Rejects:
* - Empty strings
* - Special characters that could be used for injection
* - Path traversal patterns
* - Control characters and whitespace
* - Excluded GitHub paths (like 'about', 'settings', etc.)
* - Names that exceed GitHub's length limits
* - Names that don't start with alphanumeric characters
*/
private fun isStrictlyValidOwnerRepo(
owner: String,
repo: String,
): Boolean {
if (owner.isEmpty() || repo.isEmpty()) {
return false
}
if (owner.any { it in INVALID_CHARS } || repo.any { it in INVALID_CHARS }) {
return false
}
if (FORBIDDEN_PATTERNS.any { pattern ->
owner.contains(pattern, ignoreCase = true) ||
repo.contains(pattern, ignoreCase = true)
}
) {
return false
}
if (owner.any { it.isISOControl() } || repo.any { it.isISOControl() }) {
return false
}
if (owner.contains(' ') || repo.contains(' ')) {
return false
}
if (EXCLUDED_PATHS.contains(owner.lowercase())) {
return false
}
if (owner.length > 39 || repo.length > 100) {
return false
}
if (!owner.first().isLetterOrDigit() || !repo.first().isLetterOrDigit()) {
return false
}
return true
}
private fun extractQueryParam(
uri: String,
key: String,
): String? {
val queryStart = uri.indexOf('?')
if (queryStart == -1) return null
val queryString = uri.substring(queryStart + 1)
val params = queryString.split('&')
for (param in params) {
val keyValue = param.split('=', limit = 2)
if (keyValue.size == 2 && keyValue[0] == key) {
return keyValue[1]
}
}
return null
}
fun extractSupportedUrl(text: String): String? {
val regex =
"""https?://(?:www\.)?(?:github\.com|github-store\.org)(?=[/\s?#]|$)[^\s<>"')\],;.!]*""".toRegex(
RegexOption.IGNORE_CASE,
)
return regex.find(text)?.value
}
}
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/desktop/KeyboardNavigation.kt
================================================
package zed.rainxch.githubstore.app.desktop
import kotlinx.coroutines.channels.Channel
import kotlinx.coroutines.flow.receiveAsFlow
object KeyboardNavigation {
private val _events = Channel<KeyboardNavigationEvent>()
val events = _events.receiveAsFlow()
fun onKeyClicked(event: KeyboardNavigationEvent) {
_events.trySend(event)
}
}
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/desktop/KeyboardNavigationEvent.kt
================================================
package zed.rainxch.githubstore.app.desktop
sealed interface KeyboardNavigationEvent {
data object OnCtrlFClick : KeyboardNavigationEvent
}
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/di/SharedModules.kt
================================================
package zed.rainxch.githubstore.app.di
import org.koin.core.module.Module
import org.koin.core.module.dsl.viewModel
import org.koin.dsl.module
import zed.rainxch.githubstore.MainViewModel
val mainModule: Module =
module {
viewModel {
MainViewModel(
tweaksRepository = get(),
installedAppsRepository = get(),
rateLimitRepository = get(),
syncUseCase = get(),
authenticationState = get(),
)
}
}
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/di/ViewModelsModule.kt
================================================
package zed.rainxch.githubstore.app.di
import org.koin.core.module.dsl.viewModelOf
import org.koin.dsl.module
import zed.rainxch.apps.presentation.AppsViewModel
import zed.rainxch.auth.presentation.AuthenticationViewModel
import zed.rainxch.details.presentation.DetailsViewModel
import zed.rainxch.devprofile.presentation.DeveloperProfileViewModel
import zed.rainxch.favourites.presentation.FavouritesViewModel
import zed.rainxch.home.presentation.HomeViewModel
import zed.rainxch.profile.presentation.ProfileViewModel
import zed.rainxch.search.presentation.SearchViewModel
import zed.rainxch.starred.presentation.StarredReposViewModel
val viewModelsModule =
module {
viewModelOf(::AppsViewModel)
viewModelOf(::AuthenticationViewModel)
viewModelOf(::DetailsViewModel)
viewModelOf(::DeveloperProfileViewModel)
viewModelOf(::FavouritesViewModel)
viewModelOf(::HomeViewModel)
viewModelOf(::SearchViewModel)
viewModelOf(::ProfileViewModel)
viewModelOf(::StarredReposViewModel)
}
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/di/initKoin.kt
================================================
package zed.rainxch.githubstore.app.di
import org.koin.core.context.startKoin
import org.koin.dsl.KoinAppDeclaration
import zed.rainxch.apps.data.di.appsModule
import zed.rainxch.auth.data.di.authModule
import zed.rainxch.core.data.di.coreModule
import zed.rainxch.core.data.di.corePlatformModule
import zed.rainxch.core.data.di.databaseModule
import zed.rainxch.core.data.di.networkModule
import zed.rainxch.details.data.di.detailsModule
import zed.rainxch.devprofile.data.di.devProfileModule
import zed.rainxch.home.data.di.homeModule
import zed.rainxch.profile.data.di.settingsModule
import zed.rainxch.search.data.di.searchModule
fun initKoin(config: KoinAppDeclaration? = null) {
startKoin {
config?.invoke(this)
modules(
mainModule,
corePlatformModule,
coreModule,
networkModule,
databaseModule,
viewModelsModule,
appsModule,
authModule,
detailsModule,
devProfileModule,
homeModule,
searchModule,
settingsModule,
)
}
}
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation/AppNavigation.kt
================================================
package zed.rainxch.githubstore.app.navigation
import androidx.compose.foundation.background
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.navigationBarsPadding
import androidx.compose.foundation.layout.padding
import androidx.compose.material3.MaterialTheme
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.runtime.setValue
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.layout.onGloballyPositioned
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.unit.dp
import androidx.lifecycle.compose.collectAsStateWithLifecycle
import androidx.navigation.NavHostController
import androidx.navigation.compose.NavHost
import androidx.navigation.compose.composable
import androidx.navigation.compose.currentBackStackEntryAsState
import androidx.navigation.toRoute
import io.github.fletchmckee.liquid.rememberLiquidState
import org.koin.compose.viewmodel.koinViewModel
import org.koin.core.parameter.parametersOf
import zed.rainxch.apps.presentation.AppsRoot
import zed.rainxch.apps.presentation.AppsViewModel
import zed.rainxch.auth.presentation.AuthenticationRoot
import zed.rainxch.core.presentation.locals.LocalBottomNavigationHeight
import zed.rainxch.core.presentation.locals.LocalBottomNavigationLiquid
import zed.rainxch.details.presentation.DetailsRoot
import zed.rainxch.devprofile.presentation.DeveloperProfileRoot
import zed.rainxch.favourites.presentation.FavouritesRoot
import zed.rainxch.home.presentation.HomeRoot
import zed.rainxch.profile.presentation.ProfileRoot
import zed.rainxch.search.presentation.SearchRoot
import zed.rainxch.starred.presentation.StarredReposRoot
@Composable
fun AppNavigation(
navController: NavHostController,
isLiquidGlassEnabled: Boolean = true,
) {
val liquidState = rememberLiquidState()
var bottomNavigationHeight by remember { mutableStateOf(0.dp) }
val density = LocalDensity.current
val appsViewModel = koinViewModel<AppsViewModel>()
val appsState by appsViewModel.state.collectAsStateWithLifecycle()
CompositionLocalProvider(
LocalBottomNavigationLiquid provides liquidState,
LocalBottomNavigationHeight provides bottomNavigationHeight,
) {
Box(
modifier = Modifier.fillMaxSize(),
) {
NavHost(
navController = navController,
startDestination = GithubStoreGraph.HomeScreen,
modifier = Modifier.background(MaterialTheme.colorScheme.background),
) {
composable<GithubStoreGraph.HomeScreen> {
HomeRoot(
onNavigateToSearch = {
navController.navigate(GithubStoreGraph.SearchScreen)
},
onNavigateToSettings = {
navController.navigate(GithubStoreGraph.ProfileScreen)
},
onNavigateToApps = {
navController.navigate(GithubStoreGraph.AppsScreen)
},
onNavigateToDetails = { repoId ->
navController.navigate(
GithubStoreGraph.DetailsScreen(
repositoryId = repoId,
),
)
},
onNavigateToDeveloperProfile = { username ->
navController.navigate(
GithubStoreGraph.DeveloperProfileScreen(
username = username,
),
)
},
)
}
composable<GithubStoreGraph.SearchScreen> {
SearchRoot(
onNavigateBack = {
navController.navigateUp()
},
onNavigateToDetails = { repoId ->
navController.navigate(
GithubStoreGraph.DetailsScreen(
repositoryId = repoId,
),
)
},
onNavigateToDetailsFromLink = { owner, repo ->
navController.navigate(
GithubStoreGraph.DetailsScreen(
owner = owner,
repo = repo,
),
)
},
onNavigateToDeveloperProfile = { username ->
navController.navigate(
GithubStoreGraph.DeveloperProfileScreen(
username = username,
),
)
},
)
}
composable<GithubStoreGraph.DetailsScreen> { backStackEntry ->
val args = backStackEntry.toRoute<GithubStoreGraph.DetailsScreen>()
DetailsRoot(
onNavigateBack = {
navController.navigateUp()
},
onOpenRepositoryInApp = { repoId ->
navController.navigate(
GithubStoreGraph.DetailsScreen(
repositoryId = repoId,
),
)
},
onNavigateToDeveloperProfile = { username ->
navController.navigate(
GithubStoreGraph.DeveloperProfileScreen(
username = username,
),
)
},
viewModel =
koinViewModel {
parametersOf(
args.repositoryId,
args.owner,
args.repo,
args.isComingFromUpdate,
)
},
)
}
composable<GithubStoreGraph.DeveloperProfileScreen> { backStackEntry ->
val args = backStackEntry.toRoute<GithubStoreGraph.DeveloperProfileScreen>()
DeveloperProfileRoot(
onNavigateBack = {
navController.navigateUp()
},
onNavigateToDetails = { repoId ->
navController.navigate(
GithubStoreGraph.DetailsScreen(
repositoryId = repoId,
),
)
},
viewModel =
koinViewModel {
parametersOf(args.username)
},
)
}
composable<GithubStoreGraph.AuthenticationScreen> {
AuthenticationRoot(
onNavigateToHome = {
navController.navigate(GithubStoreGraph.HomeScreen) {
popUpTo(0) {
inclusive = true
}
}
},
)
}
composable<GithubStoreGraph.FavouritesScreen> {
FavouritesRoot(
onNavigateBack = {
navController.navigateUp()
},
onNavigateToDetails = {
navController.navigate(GithubStoreGraph.DetailsScreen(it))
},
onNavigateToDeveloperProfile = { username ->
navController.navigate(
GithubStoreGraph.DeveloperProfileScreen(
username = username,
),
)
},
)
}
composable<GithubStoreGraph.StarredReposScreen> {
StarredReposRoot(
onNavigateBack = {
navController.navigateUp()
},
onNavigateToDetails = { repoId ->
navController.navigate(
GithubStoreGraph.DetailsScreen(
repositoryId = repoId,
),
)
},
onNavigateToAuthentication = {
navController.navigate(
GithubStoreGraph.AuthenticationScreen,
)
},
onNavigateToDeveloperProfile = { username ->
navController.navigate(
GithubStoreGraph.DeveloperProfileScreen(
username = username,
),
)
},
)
}
composable<GithubStoreGraph.ProfileScreen> {
ProfileRoot(
onNavigateBack = {
navController.navigateUp()
},
onNavigateToAuthentication = {
navController.navigate(GithubStoreGraph.AuthenticationScreen)
},
onNavigateToStarredRepos = {
navController.navigate(GithubStoreGraph.StarredReposScreen)
},
onNavigateToFavouriteRepos = {
navController.navigate(GithubStoreGraph.FavouritesScreen)
},
onNavigateToDevProfile = { username ->
navController.navigate(GithubStoreGraph.DeveloperProfileScreen(username))
},
onNavigateToSponsor = {
navController.navigate(GithubStoreGraph.SponsorScreen)
},
)
}
composable<GithubStoreGraph.SponsorScreen> {
zed.rainxch.profile.presentation.SponsorScreen(
onNavigateBack = {
navController.navigateUp()
},
)
}
composable<GithubStoreGraph.AppsScreen> {
AppsRoot(
onNavigateBack = {
navController.navigateUp()
},
onNavigateToRepo = { repoId ->
navController.navigate(
GithubStoreGraph.DetailsScreen(
repositoryId = repoId,
isComingFromUpdate = true,
),
)
},
viewModel = appsViewModel,
state = appsState,
)
}
}
val currentScreen =
navController.currentBackStackEntryAsState().value.getCurrentScreen()
currentScreen?.let {
BottomNavigation(
currentScreen = currentScreen,
onNavigate = {
navController.navigate(it) {
popUpTo(GithubStoreGraph.HomeScreen) {
saveState = true
}
launchSingleTop = true
restoreState = true
}
},
isUpdateAvailable = appsState.apps.any { it.installedApp.isUpdateAvailable },
isLiquidGlassEnabled = isLiquidGlassEnabled,
modifier =
Modifier
.align(Alignment.BottomCenter)
.navigationBarsPadding()
.padding(bottom = 24.dp)
.onGloballyPositioned { coordinates ->
bottomNavigationHeight =
with(density) { coordinates.size.height.toDp() }
},
)
}
}
}
}
================================================
FILE: composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation/BottomNavigation.kt
================================================
package zed.rainxch.githubstore.app.navigation
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.FastOutSlowInEasing
import androidx.compose.animation.core.Spring
import androidx.compose.animation.core.animateDpAsState
import androidx.compose.animation.core.animateFloatAsState
import androidx.compose.animation.core.spring
import androidx.compose.animation.core.tween
import androidx.compose.foundation.background
import androidx.compose.foundation.border
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.interaction.collectIsPressedAsState
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.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material3.Icon
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.runtime.CompositionLocalProvider
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.getValue
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.clip
import androidx.compose.ui.draw.drawBehind
import androidx.compose.ui.geometry.CornerRadius
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Size
import androidx.compose.ui.graphics.Brush
import androidx.compose.ui.graphics.Color
import androidx.compose.ui.graphics.drawscope.Stroke
import androidx.compose.ui.graphics.graphicsLayer
import androidx.compose.ui.graphics.luminance
import androidx.compose.ui.input.pointer.pointerInput
import androidx.compose.ui.layout.onGloballyPositioned
import androidx.compose.ui.layout.positionInParent
import androidx.compose.ui.platform.LocalDensity
import androidx.compose.ui.text.font.FontWeight
import androidx.compose.ui.tooling.preview.Preview
import androidx.compose.ui.unit.dp
import androidx.compose.ui.unit.sp
import io.github.fletchmckee.liquid.liquid
import io.github.fletchmckee.liquid.rememberLiquidState
import kotlinx.coroutines.launch
import org.jetbrains.compose.resources.stringResource
import zed.rainxch.core.domain.getPlatform
import zed.rainxch.core.domain.model.Platform
import zed.rainxch.core.presentation.locals.LocalBottomNavigationLiquid
import zed.rainxch.core.presentation.theme.GithubStoreTheme
import zed.rainxch.core.presentation.utils.isLiquidFrostAvailable
@Composable
fun BottomNavigation(
currentScreen: GithubStoreGraph,
onNavigate: (GithubStoreGraph) -> Unit,
isUpdateAvailable: Boolean,
isLiquidGlassEnabled: Boolean = true,
modifier: Modifier = Modifier,
) {
val liquidState = LocalBottomNavigationLiquid.current
if (currentScreen !in BottomNavigationUtils.allowedScreens()) return
val visibleItems =
remember {
BottomNavigationUtils.items().filterNot {
getPlatform() != Platform.ANDROID &&
it.screen == GithubStoreGraph.AppsScreen
}
}
val selectedIndex = visibleItems.indexOfFirst { it.screen == currentScreen }
val itemPositions = remember { mutableMapOf<Int, Pair<Float, Float>>() }
var selectedItemPos by remember { mutableStateOf<Pair<Float, Float>?>(null) }
val rowHorizontalPaddingDp = 6.dp
val density = LocalDensity.current
val rowHorizontalPaddingPx = with(density) { rowHorizontalPaddingDp.toPx() }
val indicatorHorizontalInsetPx = with(density) { 4.dp.toPx() }
val indicatorX = remember { Animatable(0f) }
val indicatorWidth = remember { Animatable(0f) }
LaunchedEffect(selectedIndex, selectedItemPos) {
val raw = selectedItemPos ?: itemPositions[selectedIndex] ?: return@LaunchedEffect
val targetX = raw.first + rowHorizontalPaddingPx - indicatorHorizontalInsetPx
val targetW = raw.second + indicatorHorizontalInsetPx * 2f
launch {
indicatorX.animateTo(
targetValue = targetX,
animationSpec =
spring(
dampingRatio = Spring.DampingRatioLowBouncy,
stiffness = Spring.StiffnessLow,
),
)
}
launch {
indicatorWidth.animateTo(
targetValue = targetW,
animationSpec =
spring(
dampingRatio = Spring.DampingRatioNoBouncy,
stiffness = Spring.StiffnessMedium,
),
)
}
}
val isDarkTheme =
!MaterialTheme.colorScheme.background
.luminance()
.let { it > 0.5f }
Box(
modifier = modifier,
contentAlignment = Alignment.Center,
) {
val useLiquid = isLiquidGlassEnabled && isLiquidFrostAvailable()
Box(
modifier =
Modifier
.clip(CircleShape)
.then(
if (useLiquid) {
Modifier
.background(
MaterialTheme.colorScheme.surfaceContainerHighest.copy(
alpha = if (isDarkTheme) .25f else .15f,
),
).liquid(liquidState) {
this.shape = CircleShape
this.frost = if (isDarkTheme) 12.dp else 10.dp
this.curve = if (isDarkTheme) .35f else .45f
this.refraction = if (isDarkTheme) .08f else .12f
this.dispersion = if (isDarkTheme) .18f else .25f
this.saturation = if (isDarkTheme) .40f else .55f
this.contrast = if (isDarkTheme) 1.8f else 1.6f
}
} else {
Modifier
.background(MaterialTheme.colorScheme.surfaceContainer)
.border(
width = 1.dp,
color = MaterialTheme.colorScheme.outlineVariant,
shape = CircleShape,
)
},
).pointerInput(Unit) { },
) {
val glassHighColor =
if (isDarkTheme) {
Color.White.copy(alpha = .12f)
} else {
Color.White.copy(alpha = .30f)
}
val glassLowColor =
if (isDarkTheme) {
Color.White.copy(alpha = .04f)
} else {
Color.White.copy(alpha = .10f)
}
val specularColor =
if (isDarkTheme) {
Color.White.copy(alpha = .18f)
} else {
Color.White.copy(alpha = .45f)
}
val innerGlowColor =
if (isDarkTheme) {
Color.White.copy(alpha = .03f)
} else {
Color.White.copy(alpha = .08f)
}
val borderColor =
if (isDarkTheme) {
Color.White.copy(alpha = .08f)
} else {
Color.Transparent
}
Box(
modifier =
Modifier
.matchParentSize()
.drawBehind {
if (indicatorWidth.value > 0f) {
if (isDarkTheme) {
drawRoundRect(
color = borderColor,
topLeft =
Offset(
indicatorX.value - .5.dp.toPx(),
1.5.dp.toPx(),
),
size =
Size(
indicatorWidth.value + 1.dp.toPx(),
size.height - 3.dp.toPx(),
),
cornerRadius = CornerRadius(size.height / 2f),
style = Stroke(width = 1.dp.toPx()),
)
}
drawRoundRect(
brush =
Brush.verticalGradient(
colors = listOf(glassHighColor, glassLowColor),
),
topLeft = Offset(indicatorX.value, 2.dp.toPx()),
size = Size(indicatorWidth.value, size.height - 4.dp.toPx()),
cornerRadius = CornerRadius(size.height / 2f),
)
drawRoundRect(
brush =
Brush.horizontalGradient(
colors =
listOf(
Color.Transparent,
specularColor,
Color.Transparent,
),
startX = indicatorX.value + indicatorWidth.value * .15f,
endX = indicatorX.value + indicatorWidth.value * .85f,
),
topLeft =
Offset(
indicatorX.value + indicatorWidth.value * .15f,
3.dp.toPx(),
),
size = Size(indicatorWidth.value * .7f, 1.5.dp.toPx()),
cornerRadius = CornerRadius(1.dp.toPx()),
)
drawRoundRect(
brush =
Brush.verticalGradient(
colors = listOf(Color.Transparent, innerGlowColor),
),
topLeft =
Offset(
indicatorX.value + 4.dp.toPx(),
size.height - 8.dp.toPx(),
),
size = Size(indicatorWidth.value - 8.dp.toPx(), 4.dp.toPx()),
cornerRadius = CornerRadius(2.dp.toPx()),
)
}
},
)
Row(
modifier = Modifier.padding(horizontal = rowHorizontalPaddingDp, vertical = 4.dp),
horizontalArrangement = Arrangement.spacedBy(4.dp),
verticalAlignment = Alignment.CenterVertically,
) {
visibleItems.forEachIndexed { index, item ->
LiquidGlassTabItem(
item = item,
hasBadge = item.screen == GithubStoreGraph.AppsScreen && isUpdateAvailable,
isSelected = item.screen == currentScreen,
onSelect = { onNavigate(item.screen) },
o
gitextract_ol6wqqha/ ├── .claude/ │ └── memory/ │ └── feedback_coding_boundaries.md ├── .coderabbit.yaml ├── .editorconfig ├── .github/ │ ├── FUNDING.yml │ ├── ISSUE_TEMPLATE/ │ │ ├── bug_report.md │ │ ├── custom.md │ │ └── feature_request.md │ └── workflows/ │ └── build-desktop-platforms.yml ├── .gitignore ├── CLAUDE.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── SECURITY.md ├── build-logic/ │ ├── convention/ │ │ ├── build.gradle.kts │ │ └── src/ │ │ └── main/ │ │ └── kotlin/ │ │ ├── AndroidApplicationComposeConventionPlugin.kt │ │ ├── AndroidApplicationConventionPlugin.kt │ │ ├── BuildKonfigConventionPlugin.kt │ │ ├── CmpApplicationConventionPlugin.kt │ │ ├── CmpFeatureConventionPlugin.kt │ │ ├── CmpLibraryConventionPlugin.kt │ │ ├── KmpLibraryConventionPlugin.kt │ │ ├── KtlintConventionPlugin.kt │ │ ├── RoomConventionPlugin.kt │ │ └── zed/ │ │ └── rainxch/ │ │ └── githubstore/ │ │ └── convention/ │ │ ├── AndroidCompose.kt │ │ ├── KotlinAndroid.kt │ │ ├── KotlinAndroidTarget.kt │ │ ├── KotlinJvmTarget.kt │ │ ├── KotlinMultiplatform.kt │ │ ├── PathUtil.kt │ │ └── ProjectExt.kt │ ├── gradle.properties │ └── settings.gradle.kts ├── build.gradle.kts ├── composeApp/ │ ├── build.gradle.kts │ ├── proguard-rules.pro │ └── src/ │ ├── androidMain/ │ │ ├── AndroidManifest.xml │ │ ├── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── githubstore/ │ │ │ ├── MainActivity.kt │ │ │ └── app/ │ │ │ └── GithubStoreApp.kt │ │ └── res/ │ │ ├── drawable/ │ │ │ ├── ic_launcher_monochrome.xml │ │ │ └── ic_splash.xml │ │ ├── mipmap-anydpi-v26/ │ │ │ ├── ic_launcher.xml │ │ │ └── ic_launcher_round.xml │ │ ├── values/ │ │ │ ├── colors.xml │ │ │ ├── splash.xml │ │ │ └── strings.xml │ │ └── xml/ │ │ ├── filepaths.xml │ │ └── network_security_config.xml │ ├── commonMain/ │ │ ├── composeResources/ │ │ │ └── drawable/ │ │ │ └── ic_github.xml │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── githubstore/ │ │ ├── Main.kt │ │ ├── MainAction.kt │ │ ├── MainState.kt │ │ ├── MainViewModel.kt │ │ └── app/ │ │ ├── components/ │ │ │ ├── RateLimitDialog.kt │ │ │ └── SessionExpiredDialog.kt │ │ ├── deeplink/ │ │ │ └── DeepLinkParser.kt │ │ ├── desktop/ │ │ │ ├── KeyboardNavigation.kt │ │ │ └── KeyboardNavigationEvent.kt │ │ ├── di/ │ │ │ ├── SharedModules.kt │ │ │ ├── ViewModelsModule.kt │ │ │ └── initKoin.kt │ │ └── navigation/ │ │ ├── AppNavigation.kt │ │ ├── BottomNavigation.kt │ │ ├── BottomNavigationUtils.kt │ │ ├── GithubStoreGraph.kt │ │ └── NavigationUtils.kt │ └── jvmMain/ │ ├── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── githubstore/ │ │ ├── DesktopApp.kt │ │ └── DesktopDeepLink.kt │ └── resources/ │ └── logo/ │ └── app_icon.icns ├── core/ │ ├── data/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ ├── schemas/ │ │ │ └── zed.rainxch.core.data.local.db.AppDatabase/ │ │ │ ├── 3.json │ │ │ ├── 4.json │ │ │ ├── 5.json │ │ │ └── 6.json │ │ └── src/ │ │ ├── androidMain/ │ │ │ ├── AndroidManifest.xml │ │ │ ├── aidl/ │ │ │ │ └── zed/ │ │ │ │ └── rainxch/ │ │ │ │ └── core/ │ │ │ │ └── data/ │ │ │ │ └── services/ │ │ │ │ └── shizuku/ │ │ │ │ └── IShizukuInstallerService.aidl │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── core/ │ │ │ └── data/ │ │ │ ├── di/ │ │ │ │ └── PlatformModule.android.kt │ │ │ ├── local/ │ │ │ │ ├── data_store/ │ │ │ │ │ └── createDataStore.kt │ │ │ │ └── db/ │ │ │ │ ├── initDatabase.kt │ │ │ │ └── migrations/ │ │ │ │ ├── MIGRATION_1_2.kt │ │ │ │ ├── MIGRATION_2_3.kt │ │ │ │ ├── MIGRATION_3_4.kt │ │ │ │ ├── MIGRATION_4_5.kt │ │ │ │ └── MIGRATION_5_6.kt │ │ │ ├── network/ │ │ │ │ └── HttpClientFactory.android.kt │ │ │ ├── services/ │ │ │ │ ├── AndroidDownloader.kt │ │ │ │ ├── AndroidFileLocationsProvider.kt │ │ │ │ ├── AndroidInstaller.kt │ │ │ │ ├── AndroidInstallerInfoExtractor.kt │ │ │ │ ├── AndroidLocalizationManager.kt │ │ │ │ ├── AndroidPackageMonitor.kt │ │ │ │ ├── AndroidUpdateScheduleManager.kt │ │ │ │ ├── AutoUpdateWorker.kt │ │ │ │ ├── BootReceiver.kt │ │ │ │ ├── PackageEventReceiver.kt │ │ │ │ ├── UpdateCheckWorker.kt │ │ │ │ ├── UpdateScheduler.kt │ │ │ │ └── shizuku/ │ │ │ │ ├── AndroidInstallerStatusProvider.kt │ │ │ │ ├── ShizukuInstallerServiceImpl.kt │ │ │ │ ├── ShizukuInstallerWrapper.kt │ │ │ │ ├── ShizukuServiceManager.kt │ │ │ │ └── model/ │ │ │ │ └── ShizukuStatus.kt │ │ │ └── utils/ │ │ │ ├── AndroidAppLauncher.kt │ │ │ ├── AndroidBrowserHelper.kt │ │ │ ├── AndroidClipboardHelper.kt │ │ │ └── AndroidShareManager.kt │ │ ├── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── core/ │ │ │ └── data/ │ │ │ ├── cache/ │ │ │ │ └── CacheManager.kt │ │ │ ├── data_source/ │ │ │ │ ├── TokenStore.kt │ │ │ │ └── impl/ │ │ │ │ └── DefaultTokenStore.kt │ │ │ ├── di/ │ │ │ │ ├── PlatformModule.kt │ │ │ │ └── SharedModule.kt │ │ │ ├── dto/ │ │ │ │ ├── AssetNetwork.kt │ │ │ │ ├── GitHubStarredResponse.kt │ │ │ │ ├── GithubDeviceStartDto.kt │ │ │ │ ├── GithubDeviceTokenErrorDto.kt │ │ │ │ ├── GithubDeviceTokenSuccessDto.kt │ │ │ │ ├── GithubOwnerNetworkModel.kt │ │ │ │ ├── GithubRepoNetworkModel.kt │ │ │ │ ├── GithubRepoSearchResponse.kt │ │ │ │ ├── OwnerNetwork.kt │ │ │ │ ├── ReleaseNetwork.kt │ │ │ │ ├── RepoByIdNetwork.kt │ │ │ │ ├── RepoInfoNetwork.kt │ │ │ │ └── UserProfileNetwork.kt │ │ │ ├── local/ │ │ │ │ ├── data_store/ │ │ │ │ │ └── createDataStoreCore.kt │ │ │ │ └── db/ │ │ │ │ ├── AppDatabase.kt │ │ │ │ ├── dao/ │ │ │ │ │ ├── CacheDao.kt │ │ │ │ │ ├── FavoriteRepoDao.kt │ │ │ │ │ ├── InstalledAppDao.kt │ │ │ │ │ ├── SeenRepoDao.kt │ │ │ │ │ ├── StarredRepoDao.kt │ │ │ │ │ └── UpdateHistoryDao.kt │ │ │ │ └── entities/ │ │ │ │ ├── CacheEntryEntity.kt │ │ │ │ ├── FavoriteRepoEntity.kt │ │ │ │ ├── InstalledAppEntity.kt │ │ │ │ ├── SeenRepoEntity.kt │ │ │ │ ├── StarredRepositoryEntity.kt │ │ │ │ └── UpdateHistoryEntity.kt │ │ │ ├── logging/ │ │ │ │ └── KermitLogger.kt │ │ │ ├── mappers/ │ │ │ │ ├── AssetNetwork.kt │ │ │ │ ├── FavouriteRepoMappers.kt │ │ │ │ ├── GithubAuthMappers.kt │ │ │ │ ├── GithubRepoMapper.kt │ │ │ │ ├── InstalledAppsMappers.kt │ │ │ │ ├── ReleaseNetwork.kt │ │ │ │ ├── StarredRepoMapper.kt │ │ │ │ └── UpdateHistoryMapper.kt │ │ │ ├── network/ │ │ │ │ ├── GitHubClientProvider.kt │ │ │ │ ├── HttpClientFactory.kt │ │ │ │ ├── ProxyManager.kt │ │ │ │ └── interceptor/ │ │ │ │ ├── RateLimitInterceptor.kt │ │ │ │ └── UnauthorizedInterceptor.kt │ │ │ ├── repository/ │ │ │ │ ├── AuthenticationStateImpl.kt │ │ │ │ ├── FavouritesRepositoryImpl.kt │ │ │ │ ├── InstalledAppsRepositoryImpl.kt │ │ │ │ ├── ProxyRepositoryImpl.kt │ │ │ │ ├── RateLimitRepositoryImpl.kt │ │ │ │ ├── SeenReposRepositoryImpl.kt │ │ │ │ ├── StarredRepositoryImpl.kt │ │ │ │ └── TweaksRepositoryImpl.kt │ │ │ └── services/ │ │ │ ├── FileLocationsProvider.kt │ │ │ └── LocalizationManager.kt │ │ └── jvmMain/ │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── core/ │ │ └── data/ │ │ ├── di/ │ │ │ └── PlatformModule.jvm.kt │ │ ├── local/ │ │ │ ├── data_store/ │ │ │ │ └── createDataStore.kt │ │ │ └── db/ │ │ │ └── initDatabase.kt │ │ ├── model/ │ │ │ ├── LinuxPackageType.kt │ │ │ └── LinuxTerminal.kt │ │ ├── network/ │ │ │ └── HttpClientFactory.jvm.kt │ │ ├── services/ │ │ │ ├── DesktopDownloader.kt │ │ │ ├── DesktopFileLocationsProvider.kt │ │ │ ├── DesktopInstaller.kt │ │ │ ├── DesktopInstallerInfoExtractor.kt │ │ │ ├── DesktopInstallerStatusProvider.kt │ │ │ ├── DesktopLocalizationManager.kt │ │ │ ├── DesktopPackageMonitor.kt │ │ │ └── DesktopUpdateScheduleManager.kt │ │ └── utils/ │ │ ├── DesktopAppLauncher.kt │ │ ├── DesktopBrowserHelper.kt │ │ ├── DesktopClipboardHelper.kt │ │ └── DesktopShareManager.kt │ ├── domain/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ └── src/ │ │ ├── androidMain/ │ │ │ ├── AndroidManifest.xml │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── core/ │ │ │ └── domain/ │ │ │ └── Platform.android.kt │ │ ├── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── core/ │ │ │ └── domain/ │ │ │ ├── Platform.kt │ │ │ ├── logging/ │ │ │ │ └── GitHubStoreLogger.kt │ │ │ ├── model/ │ │ │ │ ├── ApkPackageInfo.kt │ │ │ │ ├── AppTheme.kt │ │ │ │ ├── AssetArchitectureMatcher.kt │ │ │ │ ├── DeviceApp.kt │ │ │ │ ├── DiscoveryPlatform.kt │ │ │ │ ├── DownloadProgress.kt │ │ │ │ ├── ExportedApp.kt │ │ │ │ ├── FavoriteRepo.kt │ │ │ │ ├── FontTheme.kt │ │ │ │ ├── GithubAsset.kt │ │ │ │ ├── GithubDeviceStart.kt │ │ │ │ ├── GithubDeviceTokenError.kt │ │ │ │ ├── GithubDeviceTokenSuccess.kt │ │ │ │ ├── GithubRelease.kt │ │ │ │ ├── GithubRepoSummary.kt │ │ │ │ ├── GithubUser.kt │ │ │ │ ├── GithubUserProfile.kt │ │ │ │ ├── InstallSource.kt │ │ │ │ ├── InstalledApp.kt │ │ │ │ ├── InstallerType.kt │ │ │ │ ├── PackageChangeType.kt │ │ │ │ ├── PaginatedDiscoveryRepositories.kt │ │ │ │ ├── Platform.kt │ │ │ │ ├── ProxyConfig.kt │ │ │ │ ├── RateLimitException.kt │ │ │ │ ├── RateLimitInfo.kt │ │ │ │ ├── ShizukuAvailability.kt │ │ │ │ ├── StarredRepository.kt │ │ │ │ ├── SystemArchitecture.kt │ │ │ │ ├── SystemPackageInfo.kt │ │ │ │ └── UpdateHistory.kt │ │ │ ├── network/ │ │ │ │ └── Downloader.kt │ │ │ ├── repository/ │ │ │ │ ├── AuthenticationState.kt │ │ │ │ ├── FavouritesRepository.kt │ │ │ │ ├── InstalledAppsRepository.kt │ │ │ │ ├── ProxyRepository.kt │ │ │ │ ├── RateLimitRepository.kt │ │ │ │ ├── SeenReposRepository.kt │ │ │ │ ├── StarredRepository.kt │ │ │ │ └── TweaksRepository.kt │ │ │ ├── system/ │ │ │ │ ├── Installer.kt │ │ │ │ ├── InstallerInfoExtractor.kt │ │ │ │ ├── InstallerStatusProvider.kt │ │ │ │ ├── PackageMonitor.kt │ │ │ │ └── UpdateScheduleManager.kt │ │ │ ├── use_cases/ │ │ │ │ └── SyncInstalledAppsUseCase.kt │ │ │ └── utils/ │ │ │ ├── AppLauncher.kt │ │ │ ├── BrowserHelper.kt │ │ │ ├── ClipboardHelper.kt │ │ │ └── ShareManager.kt │ │ └── jvmMain/ │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── core/ │ │ └── domain/ │ │ └── Platform.jvm.kt │ └── presentation/ │ ├── .gitignore │ ├── build.gradle.kts │ └── src/ │ ├── androidMain/ │ │ ├── AndroidManifest.xml │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── core/ │ │ └── presentation/ │ │ ├── theme/ │ │ │ └── Theme.android.kt │ │ └── utils/ │ │ ├── ApplyAndroidSystemBars.android.kt │ │ └── isLiquidFrostAvailable.android.kt │ ├── commonMain/ │ │ ├── composeResources/ │ │ │ ├── drawable/ │ │ │ │ ├── ic_github.xml │ │ │ │ ├── ic_platform_android.xml │ │ │ │ ├── ic_platform_linux.xml │ │ │ │ ├── ic_platform_macos.xml │ │ │ │ └── ic_platform_windows.xml │ │ │ ├── values/ │ │ │ │ └── strings.xml │ │ │ ├── values-ar/ │ │ │ │ └── strings-ar.xml │ │ │ ├── values-bn/ │ │ │ │ └── strings-bn.xml │ │ │ ├── values-es/ │ │ │ │ └── strings-es.xml │ │ │ ├── values-fr/ │ │ │ │ └── strings-fr.xml │ │ │ ├── values-hi/ │ │ │ │ └── strings-hi.xml │ │ │ ├── values-it/ │ │ │ │ └── strings-it.xml │ │ │ ├── values-ja/ │ │ │ │ └── strings-ja.xml │ │ │ ├── values-ko/ │ │ │ │ └── strings-ko.xml │ │ │ ├── values-pl/ │ │ │ │ └── strings-pl.xml │ │ │ ├── values-ru/ │ │ │ │ └── strings-ru.xml │ │ │ ├── values-tr/ │ │ │ │ └── strings-tr.xml │ │ │ └── values-zh-rCN/ │ │ │ └── strings-zh-rCN.xml │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── core/ │ │ └── presentation/ │ │ ├── components/ │ │ │ ├── ExpressiveCard.kt │ │ │ ├── GitHubStoreImage.kt │ │ │ ├── GithubStoreButton.kt │ │ │ └── RepositoryCard.kt │ │ ├── locals/ │ │ │ ├── LocalBottomNavigationHeight.kt │ │ │ └── LocalBottomNavigationLiquid.kt │ │ ├── model/ │ │ │ ├── DiscoveryRepositoryUi.kt │ │ │ ├── GithubRepoSummaryUi.kt │ │ │ └── GithubUserUi.kt │ │ ├── theme/ │ │ │ ├── Color.kt │ │ │ ├── Theme.kt │ │ │ └── Type.kt │ │ └── utils/ │ │ ├── AppThemeUtil.kt │ │ ├── ApplyAndroidSystemBars.kt │ │ ├── CountFormatter.kt │ │ ├── DiscoveryPlatformUiResources.kt │ │ ├── GithubRepoSummaryMappers.kt │ │ ├── GithubUserMappers.kt │ │ ├── ObserveAsEvents.kt │ │ ├── TimeFormatters.kt │ │ └── isLiquidFrostAvailable.kt │ └── jvmMain/ │ └── kotlin/ │ └── zed/ │ └── rainxch/ │ └── core/ │ └── presentation/ │ ├── theme/ │ │ └── Theme.jvm.kt │ └── utils/ │ ├── ApplyAndroidSystemBars.jvm.kt │ └── isLiquidFrostAvailable.jvm.kt ├── docs/ │ ├── README-BN.md │ ├── README-ES.md │ ├── README-FR.md │ ├── README-HI.md │ ├── README-IT.md │ ├── README-JA.md │ ├── README-KR.md │ ├── README-PL.md │ ├── README-RU.md │ ├── README-TR.md │ └── README-ZH.md ├── fastlane/ │ └── metadata/ │ └── android/ │ └── en-US/ │ ├── full_description.txt │ ├── short_description.txt │ └── title.txt ├── feature/ │ ├── apps/ │ │ ├── CLAUDE.md │ │ ├── data/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── apps/ │ │ │ └── data/ │ │ │ ├── di/ │ │ │ │ └── SharedModule.kt │ │ │ └── repository/ │ │ │ └── AppsRepositoryImpl.kt │ │ ├── domain/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── apps/ │ │ │ └── domain/ │ │ │ ├── model/ │ │ │ │ ├── GithubRepoInfo.kt │ │ │ │ └── ImportResult.kt │ │ │ └── repository/ │ │ │ └── AppsRepository.kt │ │ └── presentation/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ └── src/ │ │ ├── androidMain/ │ │ │ └── AndroidManifest.xml │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── apps/ │ │ └── presentation/ │ │ ├── AppsAction.kt │ │ ├── AppsEvent.kt │ │ ├── AppsRoot.kt │ │ ├── AppsState.kt │ │ ├── AppsViewModel.kt │ │ ├── components/ │ │ │ └── LinkAppBottomSheet.kt │ │ ├── mappers/ │ │ │ ├── DeviceAppMapper.kt │ │ │ ├── GithubAssetMapper.kt │ │ │ ├── GithubRepoInfoMapper.kt │ │ │ └── InstalledAppMapper.kt │ │ └── model/ │ │ ├── AppItem.kt │ │ ├── DeviceAppUi.kt │ │ ├── GithubAssetUi.kt │ │ ├── GithubRepoInfoUi.kt │ │ ├── GithubUserUi.kt │ │ ├── InstalledAppUi.kt │ │ ├── UpdateAllProgress.kt │ │ └── UpdateState.kt │ ├── auth/ │ │ ├── CLAUDE.md │ │ ├── data/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── auth/ │ │ │ └── data/ │ │ │ ├── di/ │ │ │ │ └── SharedModule.kt │ │ │ ├── network/ │ │ │ │ └── GitHubAuthApi.kt │ │ │ └── repository/ │ │ │ └── AuthenticationRepositoryImpl.kt │ │ ├── domain/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── auth/ │ │ │ └── domain/ │ │ │ └── repository/ │ │ │ └── AuthenticationRepository.kt │ │ └── presentation/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ └── src/ │ │ ├── androidMain/ │ │ │ └── AndroidManifest.xml │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── auth/ │ │ └── presentation/ │ │ ├── AuthenticationAction.kt │ │ ├── AuthenticationEvents.kt │ │ ├── AuthenticationRoot.kt │ │ ├── AuthenticationState.kt │ │ ├── AuthenticationViewModel.kt │ │ ├── mapper/ │ │ │ └── GithubDeviceStartMapper.kt │ │ └── model/ │ │ ├── AuthLoginState.kt │ │ └── GithubDeviceStartUi.kt │ ├── details/ │ │ ├── CLAUDE.md │ │ ├── data/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── details/ │ │ │ └── data/ │ │ │ ├── di/ │ │ │ │ └── SharedModule.kt │ │ │ ├── dto/ │ │ │ │ └── AttestationsResponse.kt │ │ │ ├── model/ │ │ │ │ └── ReadmeAttempt.kt │ │ │ ├── repository/ │ │ │ │ ├── DetailsRepositoryImpl.kt │ │ │ │ └── TranslationRepositoryImpl.kt │ │ │ └── utils/ │ │ │ ├── ReadmeLocalizationHelper.kt │ │ │ └── preprocessMarkdown.kt │ │ ├── domain/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── details/ │ │ │ └── domain/ │ │ │ ├── model/ │ │ │ │ ├── ReleaseCategory.kt │ │ │ │ ├── RepoStats.kt │ │ │ │ ├── SupportedLanguage.kt │ │ │ │ └── TranslationResult.kt │ │ │ └── repository/ │ │ │ ├── DetailsRepository.kt │ │ │ └── TranslationRepository.kt │ │ └── presentation/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ └── src/ │ │ ├── androidMain/ │ │ │ └── AndroidManifest.xml │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── details/ │ │ └── presentation/ │ │ ├── DetailsAction.kt │ │ ├── DetailsEvent.kt │ │ ├── DetailsRoot.kt │ │ ├── DetailsState.kt │ │ ├── DetailsViewModel.kt │ │ ├── components/ │ │ │ ├── AppHeader.kt │ │ │ ├── LanguagePicker.kt │ │ │ ├── ReleaseAssetsPicker.kt │ │ │ ├── SmartInstallButton.kt │ │ │ ├── StatItem.kt │ │ │ ├── TranslationControls.kt │ │ │ ├── VersionPicker.kt │ │ │ ├── VersionTypePicker.kt │ │ │ ├── sections/ │ │ │ │ ├── About.kt │ │ │ │ ├── Header.kt │ │ │ │ ├── Logs.kt │ │ │ │ ├── Owner.kt │ │ │ │ ├── ReportIssue.kt │ │ │ │ ├── Stats.kt │ │ │ │ └── WhatsNew.kt │ │ │ └── states/ │ │ │ └── ErrorState.kt │ │ ├── model/ │ │ │ ├── AttestationStatus.kt │ │ │ ├── DownloadStage.kt │ │ │ ├── InstallLogItem.kt │ │ │ ├── LogResult.kt │ │ │ ├── ShowDowngradeWarning.kt │ │ │ ├── SigningKeyWarning.kt │ │ │ ├── SupportedLanguages.kt │ │ │ ├── TranslationState.kt │ │ │ └── TranslationTarget.kt │ │ └── utils/ │ │ ├── LocalTopbarLiquidState.kt │ │ ├── LogResultAsText.kt │ │ ├── MarkdownImageTransformer.kt │ │ ├── MarkdownUtils.kt │ │ └── SystemArchitecture.kt │ ├── dev-profile/ │ │ ├── CLAUDE.md │ │ ├── data/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── devprofile/ │ │ │ └── data/ │ │ │ ├── di/ │ │ │ │ └── SharedModule.kt │ │ │ ├── dto/ │ │ │ │ ├── GitHubRepoResponse.kt │ │ │ │ └── GitHubUserResponse.kt │ │ │ ├── mappers/ │ │ │ │ ├── GitHubRepoToDomain.kt │ │ │ │ └── GitHubUserToDomain.kt │ │ │ └── repository/ │ │ │ └── DeveloperProfileRepositoryImpl.kt │ │ ├── domain/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── devprofile/ │ │ │ └── domain/ │ │ │ ├── model/ │ │ │ │ ├── DeveloperProfile.kt │ │ │ │ ├── DeveloperRepository.kt │ │ │ │ ├── RepoFilterType.kt │ │ │ │ └── RepoSortType.kt │ │ │ └── repository/ │ │ │ └── DeveloperProfileRepository.kt │ │ └── presentation/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ └── src/ │ │ ├── androidMain/ │ │ │ └── AndroidManifest.xml │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── devprofile/ │ │ └── presentation/ │ │ ├── DeveloperProfileAction.kt │ │ ├── DeveloperProfileRoot.kt │ │ ├── DeveloperProfileState.kt │ │ ├── DeveloperProfileViewModel.kt │ │ └── components/ │ │ ├── DeveloperRepoItem.kt │ │ ├── FilterSortControls.kt │ │ ├── ProfileInfoCard.kt │ │ └── StatsRow.kt │ ├── favourites/ │ │ ├── CLAUDE.md │ │ ├── data/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ └── androidMain/ │ │ │ └── AndroidManifest.xml │ │ ├── domain/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ └── androidMain/ │ │ │ └── AndroidManifest.xml │ │ └── presentation/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ └── src/ │ │ ├── androidMain/ │ │ │ └── AndroidManifest.xml │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── favourites/ │ │ └── presentation/ │ │ ├── FavouritesAction.kt │ │ ├── FavouritesRoot.kt │ │ ├── FavouritesState.kt │ │ ├── FavouritesViewModel.kt │ │ ├── components/ │ │ │ └── FavouriteRepositoryItem.kt │ │ ├── mappers/ │ │ │ └── FavouriteRepositoryMapper.kt │ │ └── model/ │ │ └── FavouriteRepository.kt │ ├── home/ │ │ ├── CLAUDE.md │ │ ├── data/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── home/ │ │ │ └── data/ │ │ │ ├── data_source/ │ │ │ │ ├── CachedRepositoriesDataSource.kt │ │ │ │ └── impl/ │ │ │ │ └── CachedRepositoriesDataSourceImpl.kt │ │ │ ├── di/ │ │ │ │ └── SharedModule.kt │ │ │ ├── dto/ │ │ │ │ ├── CachedGithubOwner.kt │ │ │ │ ├── CachedGithubRepoSummary.kt │ │ │ │ └── CachedRepoResponse.kt │ │ │ ├── mappers/ │ │ │ │ └── CachedGithubRepoSummaryMappers.kt │ │ │ └── repository/ │ │ │ └── HomeRepositoryImpl.kt │ │ ├── domain/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── home/ │ │ │ └── domain/ │ │ │ ├── model/ │ │ │ │ └── HomeCategory.kt │ │ │ └── repository/ │ │ │ └── HomeRepository.kt │ │ └── presentation/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ └── src/ │ │ ├── androidMain/ │ │ │ └── AndroidManifest.xml │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── home/ │ │ └── presentation/ │ │ ├── HomeAction.kt │ │ ├── HomeEvent.kt │ │ ├── HomeRoot.kt │ │ ├── HomeState.kt │ │ ├── HomeViewModel.kt │ │ ├── components/ │ │ │ └── HomeFilterChips.kt │ │ ├── locals/ │ │ │ └── LocalHomeTopBarLiquid.kt │ │ └── utils/ │ │ └── HomeCategoryMapper.kt │ ├── profile/ │ │ ├── CLAUDE.md │ │ ├── data/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── profile/ │ │ │ └── data/ │ │ │ ├── di/ │ │ │ │ └── SharedModule.kt │ │ │ ├── mappers/ │ │ │ │ └── UserProfileMappers.kt │ │ │ └── repository/ │ │ │ └── ProfileRepositoryImpl.kt │ │ ├── domain/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── profile/ │ │ │ └── domain/ │ │ │ ├── model/ │ │ │ │ └── UserProfile.kt │ │ │ └── repository/ │ │ │ └── ProfileRepository.kt │ │ └── presentation/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ └── src/ │ │ ├── androidMain/ │ │ │ └── AndroidManifest.xml │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── profile/ │ │ └── presentation/ │ │ ├── ProfileAction.kt │ │ ├── ProfileEvent.kt │ │ ├── ProfileRoot.kt │ │ ├── ProfileState.kt │ │ ├── ProfileViewModel.kt │ │ ├── SponsorScreen.kt │ │ ├── components/ │ │ │ ├── LogoutDialog.kt │ │ │ ├── SectionText.kt │ │ │ └── sections/ │ │ │ ├── About.kt │ │ │ ├── Account.kt │ │ │ ├── AccountSection.kt │ │ │ ├── Appearance.kt │ │ │ ├── Installation.kt │ │ │ ├── Network.kt │ │ │ ├── Options.kt │ │ │ ├── Others.kt │ │ │ ├── ProfileSection.kt │ │ │ └── SettingsSection.kt │ │ └── model/ │ │ └── ProxyType.kt │ ├── search/ │ │ ├── CLAUDE.md │ │ ├── data/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── search/ │ │ │ └── data/ │ │ │ ├── di/ │ │ │ │ └── SharedModule.kt │ │ │ ├── dto/ │ │ │ │ ├── AssetNetworkModel.kt │ │ │ │ └── GithubReleaseNetworkModel.kt │ │ │ ├── repository/ │ │ │ │ └── SearchRepositoryImpl.kt │ │ │ └── utils/ │ │ │ └── LruCache.kt │ │ ├── domain/ │ │ │ ├── .gitignore │ │ │ ├── build.gradle.kts │ │ │ └── src/ │ │ │ ├── androidMain/ │ │ │ │ └── AndroidManifest.xml │ │ │ └── commonMain/ │ │ │ └── kotlin/ │ │ │ └── zed/ │ │ │ └── rainxch/ │ │ │ └── domain/ │ │ │ ├── model/ │ │ │ │ ├── ProgrammingLanguage.kt │ │ │ │ ├── SortBy.kt │ │ │ │ └── SortOrder.kt │ │ │ └── repository/ │ │ │ └── SearchRepository.kt │ │ └── presentation/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ └── src/ │ │ ├── androidMain/ │ │ │ └── AndroidManifest.xml │ │ └── commonMain/ │ │ └── kotlin/ │ │ └── zed/ │ │ └── rainxch/ │ │ └── search/ │ │ └── presentation/ │ │ ├── SearchAction.kt │ │ ├── SearchEvent.kt │ │ ├── SearchRoot.kt │ │ ├── SearchState.kt │ │ ├── SearchViewModel.kt │ │ ├── components/ │ │ │ ├── LanguageFilterBottomSheet.kt │ │ │ └── SortByBottomSheet.kt │ │ ├── mappers/ │ │ │ ├── PlatformLanguageMappers.kt │ │ │ ├── SearchPlatformMappers.kt │ │ │ ├── SortByMappers.kt │ │ │ └── SortOrderMapper.kt │ │ ├── model/ │ │ │ ├── ParsedGithubLink.kt │ │ │ ├── ProgrammingLanguageUi.kt │ │ │ ├── SearchPlatformUi.kt │ │ │ ├── SortByUi.kt │ │ │ └── SortOrderUi.kt │ │ └── utils/ │ │ ├── GithubUrlParser.kt │ │ ├── ProgrammingLanguageMapper.kt │ │ ├── SortByMapper.kt │ │ └── SortOrderMapper.kt │ └── starred/ │ ├── CLAUDE.md │ ├── data/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ └── src/ │ │ └── androidMain/ │ │ └── AndroidManifest.xml │ ├── domain/ │ │ ├── .gitignore │ │ ├── build.gradle.kts │ │ └── src/ │ │ └── androidMain/ │ │ └── AndroidManifest.xml │ └── presentation/ │ ├── .gitignore │ ├── build.gradle.kts │ └── src/ │ ├── androidMain/ │ │ └── AndroidManifest.xml │ └── commonMain/ │ └── kotlin/ │ └── zed/ │ └── rainxch/ │ └── starred/ │ └── presentation/ │ ├── StarredReposAction.kt │ ├── StarredReposRoot.kt │ ├── StarredReposState.kt │ ├── StarredReposViewModel.kt │ ├── components/ │ │ └── StarredRepositoryItem.kt │ ├── mappers/ │ │ └── StarredRepoToUiMapper.kt │ ├── model/ │ │ └── StarredRepositoryUi.kt │ └── utils/ │ └── TimeFormatUtils.kt ├── gradle/ │ ├── libs.versions.toml │ └── wrapper/ │ ├── gradle-wrapper.jar │ └── gradle-wrapper.properties ├── gradle.properties ├── gradlew ├── gradlew.bat ├── packaging/ │ └── flatpak/ │ ├── README.md │ ├── disable-android-for-flatpak.sh │ ├── flatpak-sources.json │ ├── githubstore.sh │ ├── zed.rainxch.githubstore.desktop │ ├── zed.rainxch.githubstore.metainfo.xml │ └── zed.rainxch.githubstore.yml └── settings.gradle.kts
Condensed preview — 593 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (2,606K chars).
[
{
"path": ".claude/memory/feedback_coding_boundaries.md",
"chars": 1312,
"preview": "---\nname: coding_boundaries\ndescription: User wants to write all non-trivial logic themselves — Claude should only revie"
},
{
"path": ".coderabbit.yaml",
"chars": 243,
"preview": "language: \"en-US\"\nearly_access: false\nreviews:\n profile: \"chill\"\n request_changes_workflow: false\n high_level_summary"
},
{
"path": ".editorconfig",
"chars": 171,
"preview": "root = true\n\n[*.{kt,kts}]\nktlint_standard_filename = disabled\nktlint_standard_no-wildcard-imports = disabled\nktlint_func"
},
{
"path": ".github/FUNDING.yml",
"chars": 200,
"preview": "# These are supported funding model platforms\n\ngithub: [rainxchzed]\nbuy_me_a_coffee: rainxchzed\ncustom: https://golden-k"
},
{
"path": ".github/ISSUE_TEMPLATE/bug_report.md",
"chars": 834,
"preview": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Describe the b"
},
{
"path": ".github/ISSUE_TEMPLATE/custom.md",
"chars": 126,
"preview": "---\nname: Custom issue template\nabout: Describe this issue template's purpose here.\ntitle: ''\nlabels: ''\nassignees: ''\n\n"
},
{
"path": ".github/ISSUE_TEMPLATE/feature_request.md",
"chars": 595,
"preview": "---\nname: Feature request\nabout: Suggest an idea for this project\ntitle: ''\nlabels: ''\nassignees: ''\n\n---\n\n**Is your fea"
},
{
"path": ".github/workflows/build-desktop-platforms.yml",
"chars": 9353,
"preview": "name: Build Desktop Platform Installers\n\non:\n push:\n branches:\n - generate-installers\n\nconcurrency:\n group: ${"
},
{
"path": ".gitignore",
"chars": 518,
"preview": "# Gradle files\n.gradle/\nbuild/\n\n# Local configuration file (sdk path, etc)\nlocal.properties\n\n# Log/OS Files\n*.log\n\n# And"
},
{
"path": "CLAUDE.md",
"chars": 8189,
"preview": "# CLAUDE.md - GitHub Store\n\n## Project Overview\n\nGitHub Store is a cross-platform app store for GitHub releases, built w"
},
{
"path": "CODE_OF_CONDUCT.md",
"chars": 5222,
"preview": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participa"
},
{
"path": "CONTRIBUTING.md",
"chars": 826,
"preview": "## How to contribute\n\nWe'd love to accept your patches and contributions to this project. There are just a few small gui"
},
{
"path": "LICENSE",
"chars": 11357,
"preview": " Apache License\n Version 2.0, January 2004\n "
},
{
"path": "README.md",
"chars": 15822,
"preview": "<div align=\"center\">\n</br>\n<img src=\"media-resources/app_icon.png\" width=\"200\" />\n\n</div>\n\n<div align=\"center\">\n\n# GitHu"
},
{
"path": "SECURITY.md",
"chars": 1691,
"preview": "## Security Policy\n\n## Reporting a Vulnerability\n\nWe take the security of this repository seriously. If you discover a s"
},
{
"path": "build-logic/convention/build.gradle.kts",
"chars": 2370,
"preview": "import org.gradle.kotlin.dsl.compileOnly\nimport org.jetbrains.kotlin.gradle.dsl.JvmTarget\n\nplugins {\n `kotlin-dsl`\n}\n"
},
{
"path": "build-logic/convention/src/main/kotlin/AndroidApplicationComposeConventionPlugin.kt",
"chars": 735,
"preview": "import com.android.build.api.dsl.ApplicationExtension\nimport org.gradle.api.Plugin\nimport org.gradle.api.Project\nimport "
},
{
"path": "build-logic/convention/src/main/kotlin/AndroidApplicationConventionPlugin.kt",
"chars": 2419,
"preview": "import com.android.build.api.dsl.ApplicationExtension\nimport org.gradle.api.Plugin\nimport org.gradle.api.Project\nimport "
},
{
"path": "build-logic/convention/src/main/kotlin/BuildKonfigConventionPlugin.kt",
"chars": 1556,
"preview": "import com.codingfeline.buildkonfig.compiler.FieldSpec\nimport com.codingfeline.buildkonfig.gradle.BuildKonfigExtension\ni"
},
{
"path": "build-logic/convention/src/main/kotlin/CmpApplicationConventionPlugin.kt",
"chars": 913,
"preview": "import org.gradle.api.Plugin\nimport org.gradle.api.Project\nimport org.gradle.kotlin.dsl.dependencies\nimport zed.rainxch."
},
{
"path": "build-logic/convention/src/main/kotlin/CmpFeatureConventionPlugin.kt",
"chars": 2013,
"preview": "import org.gradle.api.Plugin\nimport org.gradle.api.Project\nimport org.gradle.kotlin.dsl.dependencies\nimport zed.rainxch."
},
{
"path": "build-logic/convention/src/main/kotlin/CmpLibraryConventionPlugin.kt",
"chars": 1060,
"preview": "import org.gradle.api.Plugin\nimport org.gradle.api.Project\nimport org.gradle.kotlin.dsl.dependencies\nimport zed.rainxch."
},
{
"path": "build-logic/convention/src/main/kotlin/KmpLibraryConventionPlugin.kt",
"chars": 1256,
"preview": "import com.android.build.api.dsl.LibraryExtension\nimport org.gradle.api.Plugin\nimport org.gradle.api.Project\nimport org."
},
{
"path": "build-logic/convention/src/main/kotlin/KtlintConventionPlugin.kt",
"chars": 949,
"preview": "import org.gradle.api.Plugin\nimport org.gradle.api.Project\nimport org.jlleitschuh.gradle.ktlint.KtlintExtension\n\nclass K"
},
{
"path": "build-logic/convention/src/main/kotlin/RoomConventionPlugin.kt",
"chars": 967,
"preview": "import androidx.room.gradle.RoomExtension\nimport org.gradle.api.Plugin\nimport org.gradle.api.Project\nimport org.gradle.k"
},
{
"path": "build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/AndroidCompose.kt",
"chars": 756,
"preview": "package zed.rainxch.githubstore.convention\n\nimport com.android.build.api.dsl.CommonExtension\nimport org.gradle.api.Proje"
},
{
"path": "build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/KotlinAndroid.kt",
"chars": 1506,
"preview": "package zed.rainxch.githubstore.convention\n\nimport com.android.build.api.dsl.CommonExtension\nimport org.gradle.api.JavaV"
},
{
"path": "build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/KotlinAndroidTarget.kt",
"chars": 470,
"preview": "package zed.rainxch.githubstore.convention\n\nimport org.gradle.api.Project\nimport org.gradle.kotlin.dsl.configure\nimport "
},
{
"path": "build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/KotlinJvmTarget.kt",
"chars": 370,
"preview": "package zed.rainxch.githubstore.convention\n\nimport org.gradle.api.Project\nimport org.gradle.kotlin.dsl.configure\nimport "
},
{
"path": "build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/KotlinMultiplatform.kt",
"chars": 831,
"preview": "package zed.rainxch.githubstore.convention\n\nimport com.android.build.api.dsl.LibraryExtension\nimport org.gradle.api.Proj"
},
{
"path": "build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/PathUtil.kt",
"chars": 446,
"preview": "package zed.rainxch.githubstore.convention\n\nimport org.gradle.api.Project\nimport java.util.Locale\n\nfun Project.pathToPac"
},
{
"path": "build-logic/convention/src/main/kotlin/zed/rainxch/githubstore/convention/ProjectExt.kt",
"chars": 326,
"preview": "package zed.rainxch.githubstore.convention\n\nimport org.gradle.api.Project\nimport org.gradle.api.artifacts.VersionCatalog"
},
{
"path": "build-logic/gradle.properties",
"chars": 83,
"preview": "org.gradle.parallel=true\norg.gradle.caching=true\norg.gradle.configureondemand=true\n"
},
{
"path": "build-logic/settings.gradle.kts",
"chars": 343,
"preview": "@file:Suppress(\"UnstableApiUsage\")\n\nrootProject.name = \"build-logic\"\n\ndependencyResolutionManagement {\n repositories "
},
{
"path": "build.gradle.kts",
"chars": 1212,
"preview": "plugins {\n id(\"io.github.jwharm.flatpak-gradle-generator\") version \"1.7.0\"\n alias(libs.plugins.android.application"
},
{
"path": "composeApp/build.gradle.kts",
"chars": 6656,
"preview": "import org.jetbrains.compose.desktop.application.dsl.TargetFormat\n\nplugins {\n alias(libs.plugins.convention.cmp.appli"
},
{
"path": "composeApp/proguard-rules.pro",
"chars": 8265,
"preview": "# ============================================================================\n# ProGuard / R8 Rules for GitHub Store (K"
},
{
"path": "composeApp/src/androidMain/AndroidManifest.xml",
"chars": 5942,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n xmlns:to"
},
{
"path": "composeApp/src/androidMain/kotlin/zed/rainxch/githubstore/MainActivity.kt",
"chars": 2449,
"preview": "package zed.rainxch.githubstore\n\nimport android.content.Intent\nimport android.os.Bundle\nimport androidx.activity.Compone"
},
{
"path": "composeApp/src/androidMain/kotlin/zed/rainxch/githubstore/app/GithubStoreApp.kt",
"chars": 6923,
"preview": "package zed.rainxch.githubstore.app\n\nimport android.app.Application\nimport android.app.NotificationChannel\nimport androi"
},
{
"path": "composeApp/src/androidMain/res/drawable/ic_launcher_monochrome.xml",
"chars": 25235,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:width=\"24dp\"\n android:height=\"24dp\"\n "
},
{
"path": "composeApp/src/androidMain/res/drawable/ic_splash.xml",
"chars": 178,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<inset xmlns:android=\"http://schemas.android.com/apk/res/android\"\n android:dra"
},
{
"path": "composeApp/src/androidMain/res/mipmap-anydpi-v26/ic_launcher.xml",
"chars": 333,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n <b"
},
{
"path": "composeApp/src/androidMain/res/mipmap-anydpi-v26/ic_launcher_round.xml",
"chars": 333,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n <b"
},
{
"path": "composeApp/src/androidMain/res/values/colors.xml",
"chars": 120,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n <color name=\"ic_launcher_background\">#101010</color>\n</resources>"
},
{
"path": "composeApp/src/androidMain/res/values/splash.xml",
"chars": 409,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n <style name=\"Theme.GitHubStore.Splash\" parent=\"Theme.SplashScree"
},
{
"path": "composeApp/src/androidMain/res/values/strings.xml",
"chars": 74,
"preview": "<resources>\n <string name=\"app_name\">GitHub Store</string>\n</resources>"
},
{
"path": "composeApp/src/androidMain/res/xml/filepaths.xml",
"chars": 257,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<paths xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n <external"
},
{
"path": "composeApp/src/androidMain/res/xml/network_security_config.xml",
"chars": 546,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<network-security-config>\n <base-config cleartextTrafficPermitted=\"false\">\n "
},
{
"path": "composeApp/src/commonMain/composeResources/drawable/ic_github.xml",
"chars": 1241,
"preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" android:height=\"24dp\" android:viewportHeight=\"20\" and"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/Main.kt",
"chars": 4134,
"preview": "package zed.rainxch.githubstore\n\nimport androidx.compose.foundation.isSystemInDarkTheme\nimport androidx.compose.runtime."
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/MainAction.kt",
"chars": 175,
"preview": "package zed.rainxch.githubstore\n\nsealed interface MainAction {\n data object DismissRateLimitDialog : MainAction\n\n "
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/MainState.kt",
"chars": 616,
"preview": "package zed.rainxch.githubstore\n\nimport zed.rainxch.core.domain.model.AppTheme\nimport zed.rainxch.core.domain.model.Font"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/MainViewModel.kt",
"chars": 3974,
"preview": "package zed.rainxch.githubstore\n\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimport kot"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/components/RateLimitDialog.kt",
"chars": 5695,
"preview": "package zed.rainxch.githubstore.app.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.co"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/components/SessionExpiredDialog.kt",
"chars": 2726,
"preview": "package zed.rainxch.githubstore.app.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.co"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/deeplink/DeepLinkParser.kt",
"chars": 6739,
"preview": "package zed.rainxch.githubstore.app.deeplink\n\nsealed interface DeepLinkDestination {\n data class Repository(\n "
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/desktop/KeyboardNavigation.kt",
"chars": 359,
"preview": "package zed.rainxch.githubstore.app.desktop\n\nimport kotlinx.coroutines.channels.Channel\nimport kotlinx.coroutines.flow.r"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/desktop/KeyboardNavigationEvent.kt",
"chars": 145,
"preview": "package zed.rainxch.githubstore.app.desktop\n\nsealed interface KeyboardNavigationEvent {\n data object OnCtrlFClick : K"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/di/SharedModules.kt",
"chars": 523,
"preview": "package zed.rainxch.githubstore.app.di\n\nimport org.koin.core.module.Module\nimport org.koin.core.module.dsl.viewModel\nimp"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/di/ViewModelsModule.kt",
"chars": 1057,
"preview": "package zed.rainxch.githubstore.app.di\n\nimport org.koin.core.module.dsl.viewModelOf\nimport org.koin.dsl.module\nimport ze"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/di/initKoin.kt",
"chars": 1115,
"preview": "package zed.rainxch.githubstore.app.di\n\nimport org.koin.core.context.startKoin\nimport org.koin.dsl.KoinAppDeclaration\nim"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation/AppNavigation.kt",
"chars": 13590,
"preview": "package zed.rainxch.githubstore.app.navigation\n\nimport androidx.compose.foundation.background\nimport androidx.compose.fo"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation/BottomNavigation.kt",
"chars": 19092,
"preview": "package zed.rainxch.githubstore.app.navigation\n\nimport androidx.compose.animation.core.Animatable\nimport androidx.compos"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation/BottomNavigationUtils.kt",
"chars": 2365,
"preview": "package zed.rainxch.githubstore.app.navigation\n\nimport androidx.compose.material.icons.Icons\nimport androidx.compose.mat"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation/GithubStoreGraph.kt",
"chars": 1031,
"preview": "package zed.rainxch.githubstore.app.navigation\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\nsealed interfac"
},
{
"path": "composeApp/src/commonMain/kotlin/zed/rainxch/githubstore/app/navigation/NavigationUtils.kt",
"chars": 1045,
"preview": "package zed.rainxch.githubstore.app.navigation\n\nimport androidx.navigation.NavBackStackEntry\nimport androidx.navigation."
},
{
"path": "composeApp/src/jvmMain/kotlin/zed/rainxch/githubstore/DesktopApp.kt",
"chars": 2668,
"preview": "package zed.rainxch.githubstore\n\nimport androidx.compose.runtime.LaunchedEffect\nimport androidx.compose.runtime.getValue"
},
{
"path": "composeApp/src/jvmMain/kotlin/zed/rainxch/githubstore/DesktopDeepLink.kt",
"chars": 5301,
"preview": "package zed.rainxch.githubstore\n\nimport java.io.BufferedReader\nimport java.io.File\nimport java.io.InputStreamReader\nimpo"
},
{
"path": "core/data/.gitignore",
"chars": 6,
"preview": "/build"
},
{
"path": "core/data/build.gradle.kts",
"chars": 1216,
"preview": "plugins {\n alias(libs.plugins.convention.kmp.library)\n alias(libs.plugins.convention.room)\n alias(libs.plugins."
},
{
"path": "core/data/schemas/zed.rainxch.core.data.local.db.AppDatabase/3.json",
"chars": 14993,
"preview": "{\n \"formatVersion\": 1,\n \"database\": {\n \"version\": 3,\n \"identityHash\": \"81a8b0bb930a5c839e0da7a5335e4991\",\n \"e"
},
{
"path": "core/data/schemas/zed.rainxch.core.data.local.db.AppDatabase/4.json",
"chars": 16034,
"preview": "{\n \"formatVersion\": 1,\n \"database\": {\n \"version\": 4,\n \"identityHash\": \"7d8cd14625a6c8b570092980957d57ce\",\n \"e"
},
{
"path": "core/data/schemas/zed.rainxch.core.data.local.db.AppDatabase/5.json",
"chars": 16212,
"preview": "{\n \"formatVersion\": 1,\n \"database\": {\n \"version\": 5,\n \"identityHash\": \"9d5111af6d583511c868ab59557e4ea8\",\n \"e"
},
{
"path": "core/data/schemas/zed.rainxch.core.data.local.db.AppDatabase/6.json",
"chars": 16884,
"preview": "{\n \"formatVersion\": 1,\n \"database\": {\n \"version\": 6,\n \"identityHash\": \"ce64b232de8d6ab9d95e3adabf7c7c43\",\n \"e"
},
{
"path": "core/data/src/androidMain/AndroidManifest.xml",
"chars": 121,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n</manifest"
},
{
"path": "core/data/src/androidMain/aidl/zed/rainxch/core/data/services/shizuku/IShizukuInstallerService.aidl",
"chars": 222,
"preview": "package zed.rainxch.core.data.services.shizuku;\n\ninterface IShizukuInstallerService {\n int installPackage(in ParcelFi"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/di/PlatformModule.android.kt",
"chars": 4525,
"preview": "package zed.rainxch.core.data.di\n\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.preferences.core.Pr"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/local/data_store/createDataStore.kt",
"chars": 429,
"preview": "package zed.rainxch.core.data.local.data_store\n\nimport android.content.Context\nimport androidx.datastore.core.DataStore\n"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/local/db/initDatabase.kt",
"chars": 971,
"preview": "package zed.rainxch.core.data.local.db\n\nimport android.content.Context\nimport androidx.room.Room\nimport kotlinx.coroutin"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/local/db/migrations/MIGRATION_1_2.kt",
"chars": 645,
"preview": "package zed.rainxch.core.data.local.db.migrations\n\nimport androidx.room.migration.Migration\nimport androidx.sqlite.db.Su"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/local/db/migrations/MIGRATION_2_3.kt",
"chars": 1264,
"preview": "package zed.rainxch.core.data.local.db.migrations\n\nimport androidx.room.migration.Migration\nimport androidx.sqlite.db.Su"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/local/db/migrations/MIGRATION_3_4.kt",
"chars": 654,
"preview": "package zed.rainxch.core.data.local.db.migrations\n\nimport androidx.room.migration.Migration\nimport androidx.sqlite.db.Su"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/local/db/migrations/MIGRATION_4_5.kt",
"chars": 354,
"preview": "package zed.rainxch.core.data.local.db.migrations\n\nimport androidx.room.migration.Migration\nimport androidx.sqlite.db.Su"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/local/db/migrations/MIGRATION_5_6.kt",
"chars": 533,
"preview": "package zed.rainxch.core.data.local.db.migrations\n\nimport androidx.room.migration.Migration\nimport androidx.sqlite.db.Su"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/network/HttpClientFactory.android.kt",
"chars": 3041,
"preview": "package zed.rainxch.core.data.network\n\nimport io.ktor.client.*\nimport io.ktor.client.engine.okhttp.*\nimport okhttp3.Cred"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/AndroidDownloader.kt",
"chars": 9170,
"preview": "package zed.rainxch.core.data.services\n\nimport co.touchlab.kermit.Logger\nimport kotlinx.coroutines.Dispatchers\nimport ko"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/AndroidFileLocationsProvider.kt",
"chars": 1655,
"preview": "package zed.rainxch.core.data.services\n\nimport android.content.Context\nimport java.io.File\n\nclass AndroidFileLocationsPr"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/AndroidInstaller.kt",
"chars": 10232,
"preview": "package zed.rainxch.core.data.services\n\nimport android.content.ActivityNotFoundException\nimport android.content.Context\n"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/AndroidInstallerInfoExtractor.kt",
"chars": 4485,
"preview": "package zed.rainxch.core.data.services\n\nimport android.content.Context\nimport android.content.pm.PackageManager\nimport a"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/AndroidLocalizationManager.kt",
"chars": 536,
"preview": "package zed.rainxch.core.data.services\n\nimport java.util.Locale\n\nclass AndroidLocalizationManager : zed.rainxch.core.dat"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/AndroidPackageMonitor.kt",
"chars": 5814,
"preview": "package zed.rainxch.core.data.services\n\nimport android.content.Context\nimport android.content.pm.ApplicationInfo\nimport "
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/AndroidUpdateScheduleManager.kt",
"chars": 348,
"preview": "package zed.rainxch.core.data.services\n\nimport android.content.Context\nimport zed.rainxch.core.domain.system.UpdateSched"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/AutoUpdateWorker.kt",
"chars": 13026,
"preview": "package zed.rainxch.core.data.services\n\nimport android.Manifest\nimport android.annotation.SuppressLint\nimport android.ap"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/BootReceiver.kt",
"chars": 606,
"preview": "package zed.rainxch.core.data.services\n\nimport android.content.BroadcastReceiver\nimport android.content.Context\nimport a"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/PackageEventReceiver.kt",
"chars": 6757,
"preview": "package zed.rainxch.core.data.services\n\nimport android.content.BroadcastReceiver\nimport android.content.Context\nimport a"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/UpdateCheckWorker.kt",
"chars": 7525,
"preview": "package zed.rainxch.core.data.services\n\nimport android.Manifest\nimport android.annotation.SuppressLint\nimport android.ap"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/UpdateScheduler.kt",
"chars": 4425,
"preview": "package zed.rainxch.core.data.services\n\nimport android.content.Context\nimport androidx.work.BackoffPolicy\nimport android"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/shizuku/AndroidInstallerStatusProvider.kt",
"chars": 1549,
"preview": "package zed.rainxch.core.data.services.shizuku\n\nimport kotlinx.coroutines.CoroutineScope\nimport kotlinx.coroutines.flow."
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/shizuku/ShizukuInstallerServiceImpl.kt",
"chars": 5842,
"preview": "package zed.rainxch.core.data.services.shizuku\n\nimport android.os.ParcelFileDescriptor\nimport java.io.BufferedReader\nimp"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/shizuku/ShizukuInstallerWrapper.kt",
"chars": 8353,
"preview": "package zed.rainxch.core.data.services.shizuku\n\nimport co.touchlab.kermit.Logger\nimport kotlinx.coroutines.CoroutineScop"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/shizuku/ShizukuServiceManager.kt",
"chars": 8751,
"preview": "package zed.rainxch.core.data.services.shizuku\n\nimport android.content.ComponentName\nimport android.content.Context\nimpo"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/services/shizuku/model/ShizukuStatus.kt",
"chars": 153,
"preview": "package zed.rainxch.core.data.services.shizuku.model\n\nenum class ShizukuStatus {\n NOT_INSTALLED,\n NOT_RUNNING,\n "
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/utils/AndroidAppLauncher.kt",
"chars": 1677,
"preview": "package zed.rainxch.core.data.utils\n\nimport android.content.Context\nimport android.content.Intent\nimport kotlinx.corouti"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/utils/AndroidBrowserHelper.kt",
"chars": 559,
"preview": "package zed.rainxch.core.data.utils\n\nimport android.content.Context\nimport android.content.Intent\nimport androidx.core.n"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/utils/AndroidClipboardHelper.kt",
"chars": 793,
"preview": "package zed.rainxch.core.data.utils\n\nimport android.content.ClipData\nimport android.content.ClipboardManager\nimport andr"
},
{
"path": "core/data/src/androidMain/kotlin/zed/rainxch/core/data/utils/AndroidShareManager.kt",
"chars": 3930,
"preview": "package zed.rainxch.core.data.utils\n\nimport android.app.Activity\nimport android.content.Context\nimport android.content.I"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/cache/CacheManager.kt",
"chars": 3462,
"preview": "package zed.rainxch.core.data.cache\n\nimport kotlinx.serialization.json.Json\nimport kotlinx.serialization.serializer\nimpo"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/data_source/TokenStore.kt",
"chars": 472,
"preview": "package zed.rainxch.core.data.data_source\n\nimport kotlinx.coroutines.flow.Flow\nimport zed.rainxch.core.data.dto.GithubDe"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/data_source/impl/DefaultTokenStore.kt",
"chars": 2698,
"preview": "package zed.rainxch.core.data.data_source.impl\n\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.prefe"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/di/PlatformModule.kt",
"chars": 108,
"preview": "package zed.rainxch.core.data.di\n\nimport org.koin.core.module.Module\n\nexpect val corePlatformModule: Module\n"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/di/SharedModule.kt",
"chars": 6830,
"preview": "package zed.rainxch.core.data.di\n\nimport io.ktor.client.HttpClient\nimport kotlinx.coroutines.CoroutineScope\nimport kotli"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/AssetNetwork.kt",
"chars": 455,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/GitHubStarredResponse.kt",
"chars": 708,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/GithubDeviceStartDto.kt",
"chars": 535,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/GithubDeviceTokenErrorDto.kt",
"chars": 291,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/GithubDeviceTokenSuccessDto.kt",
"chars": 613,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/GithubOwnerNetworkModel.kt",
"chars": 352,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/GithubRepoNetworkModel.kt",
"chars": 926,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/GithubRepoSearchResponse.kt",
"chars": 289,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/OwnerNetwork.kt",
"chars": 341,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/ReleaseNetwork.kt",
"chars": 857,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/RepoByIdNetwork.kt",
"chars": 785,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/RepoInfoNetwork.kt",
"chars": 319,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/dto/UserProfileNetwork.kt",
"chars": 834,
"preview": "package zed.rainxch.core.data.dto\n\nimport kotlinx.serialization.SerialName\nimport kotlinx.serialization.Serializable\n\n@S"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/data_store/createDataStoreCore.kt",
"chars": 495,
"preview": "package zed.rainxch.core.data.local.data_store\n\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.prefe"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/AppDatabase.kt",
"chars": 1454,
"preview": "package zed.rainxch.core.data.local.db\n\nimport androidx.room.Database\nimport androidx.room.RoomDatabase\nimport zed.rainx"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/dao/CacheDao.kt",
"chars": 1256,
"preview": "package zed.rainxch.core.data.local.db.dao\n\nimport androidx.room.Dao\nimport androidx.room.Insert\nimport androidx.room.On"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/dao/FavoriteRepoDao.kt",
"chars": 1828,
"preview": "package zed.rainxch.core.data.local.db.dao\n\nimport androidx.room.Dao\nimport androidx.room.Delete\nimport androidx.room.In"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/dao/InstalledAppDao.kt",
"chars": 2534,
"preview": "package zed.rainxch.core.data.local.db.dao\n\nimport androidx.room.Dao\nimport androidx.room.Delete\nimport androidx.room.In"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/dao/SeenRepoDao.kt",
"chars": 549,
"preview": "package zed.rainxch.core.data.local.db.dao\n\nimport androidx.room.Dao\nimport androidx.room.Insert\nimport androidx.room.On"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/dao/StarredRepoDao.kt",
"chars": 2428,
"preview": "package zed.rainxch.core.data.local.db.dao\n\nimport androidx.room.Dao\nimport androidx.room.Insert\nimport androidx.room.On"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/dao/UpdateHistoryDao.kt",
"chars": 774,
"preview": "package zed.rainxch.core.data.local.db.dao\n\nimport androidx.room.Dao\nimport androidx.room.Insert\nimport androidx.room.Qu"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/entities/CacheEntryEntity.kt",
"chars": 290,
"preview": "package zed.rainxch.core.data.local.db.entities\n\nimport androidx.room.Entity\nimport androidx.room.PrimaryKey\n\n@Entity(ta"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/entities/FavoriteRepoEntity.kt",
"chars": 603,
"preview": "package zed.rainxch.core.data.local.db.entities\n\nimport androidx.room.Entity\nimport androidx.room.PrimaryKey\n\n@Entity(ta"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/entities/InstalledAppEntity.kt",
"chars": 1297,
"preview": "package zed.rainxch.core.data.local.db.entities\n\nimport androidx.room.Entity\nimport androidx.room.PrimaryKey\nimport zed."
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/entities/SeenRepoEntity.kt",
"chars": 233,
"preview": "package zed.rainxch.core.data.local.db.entities\n\nimport androidx.room.Entity\nimport androidx.room.PrimaryKey\n\n@Entity(ta"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/entities/StarredRepositoryEntity.kt",
"chars": 718,
"preview": "package zed.rainxch.core.data.local.db.entities\n\nimport androidx.room.Entity\nimport androidx.room.PrimaryKey\n\n@Entity(ta"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/local/db/entities/UpdateHistoryEntity.kt",
"chars": 588,
"preview": "package zed.rainxch.core.data.local.db.entities\n\nimport androidx.room.Entity\nimport androidx.room.PrimaryKey\nimport zed."
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/logging/KermitLogger.kt",
"chars": 528,
"preview": "package zed.rainxch.core.data.logging\n\nimport co.touchlab.kermit.Logger\nimport zed.rainxch.core.domain.logging.GitHubSto"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/mappers/AssetNetwork.kt",
"chars": 602,
"preview": "package zed.rainxch.core.data.mappers\n\nimport zed.rainxch.core.data.dto.AssetNetwork\nimport zed.rainxch.core.domain.mode"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/mappers/FavouriteRepoMappers.kt",
"chars": 1277,
"preview": "package zed.rainxch.core.data.mappers\n\nimport zed.rainxch.core.data.local.db.entities.FavoriteRepoEntity\nimport zed.rain"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/mappers/GithubAuthMappers.kt",
"chars": 1872,
"preview": "package zed.rainxch.core.data.mappers\n\nimport zed.rainxch.core.data.dto.GithubDeviceStartDto\nimport zed.rainxch.core.dat"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/mappers/GithubRepoMapper.kt",
"chars": 884,
"preview": "package zed.rainxch.core.data.mappers\n\nimport zed.rainxch.core.data.dto.GithubRepoNetworkModel\nimport zed.rainxch.core.d"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/mappers/InstalledAppsMappers.kt",
"chars": 2877,
"preview": "package zed.rainxch.core.data.mappers\n\nimport zed.rainxch.core.data.local.db.entities.InstalledAppEntity\nimport zed.rain"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/mappers/ReleaseNetwork.kt",
"chars": 803,
"preview": "package zed.rainxch.core.data.mappers\n\nimport zed.rainxch.core.data.dto.ReleaseNetwork\nimport zed.rainxch.core.domain.mo"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/mappers/StarredRepoMapper.kt",
"chars": 1617,
"preview": "package zed.rainxch.core.data.mappers\n\nimport zed.rainxch.core.data.local.db.entities.StarredRepositoryEntity\nimport zed"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/mappers/UpdateHistoryMapper.kt",
"chars": 993,
"preview": "package zed.rainxch.core.data.mappers\n\nimport zed.rainxch.core.data.local.db.entities.UpdateHistoryEntity\nimport zed.rai"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/network/GitHubClientProvider.kt",
"chars": 2193,
"preview": "package zed.rainxch.core.data.network\n\nimport io.ktor.client.HttpClient\nimport kotlinx.coroutines.CoroutineScope\nimport "
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/network/HttpClientFactory.kt",
"chars": 4020,
"preview": "package zed.rainxch.core.data.network\n\nimport io.ktor.client.*\nimport io.ktor.client.call.body\nimport io.ktor.client.plu"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/network/ProxyManager.kt",
"chars": 1012,
"preview": "package zed.rainxch.core.data.network\n\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.St"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/network/interceptor/RateLimitInterceptor.kt",
"chars": 3482,
"preview": "package zed.rainxch.core.data.network.interceptor\n\nimport co.touchlab.kermit.Logger\nimport io.ktor.client.HttpClient\nimp"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/network/interceptor/UnauthorizedInterceptor.kt",
"chars": 1825,
"preview": "package zed.rainxch.core.data.network.interceptor\n\nimport io.ktor.client.HttpClient\nimport io.ktor.client.plugins.HttpCl"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/repository/AuthenticationStateImpl.kt",
"chars": 1268,
"preview": "package zed.rainxch.core.data.repository\n\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.MutableShar"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/repository/FavouritesRepositoryImpl.kt",
"chars": 1905,
"preview": "package zed.rainxch.core.data.repository\n\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.map\nimport "
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/repository/InstalledAppsRepositoryImpl.kt",
"chars": 13499,
"preview": "package zed.rainxch.core.data.repository\n\nimport androidx.room.immediateTransaction\nimport androidx.room.useWriterConnec"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/repository/ProxyRepositoryImpl.kt",
"chars": 5669,
"preview": "package zed.rainxch.core.data.repository\n\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.preferences"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/repository/RateLimitRepositoryImpl.kt",
"chars": 1365,
"preview": "package zed.rainxch.core.data.repository\n\nimport kotlinx.coroutines.flow.MutableSharedFlow\nimport kotlinx.coroutines.flo"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/repository/SeenReposRepositoryImpl.kt",
"chars": 810,
"preview": "package zed.rainxch.core.data.repository\n\nimport kotlinx.coroutines.flow.Flow\nimport kotlinx.coroutines.flow.map\nimport "
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/repository/StarredRepositoryImpl.kt",
"chars": 9290,
"preview": "@file:OptIn(ExperimentalTime::class)\n\npackage zed.rainxch.core.data.repository\n\nimport co.touchlab.kermit.Logger\nimport "
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/repository/TweaksRepositoryImpl.kt",
"chars": 5523,
"preview": "package zed.rainxch.core.data.repository\n\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.preferences"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/services/FileLocationsProvider.kt",
"chars": 262,
"preview": "package zed.rainxch.core.data.services\n\ninterface FileLocationsProvider {\n fun appDownloadsDir(): String\n\n fun use"
},
{
"path": "core/data/src/commonMain/kotlin/zed/rainxch/core/data/services/LocalizationManager.kt",
"chars": 433,
"preview": "package zed.rainxch.core.data.services\n\ninterface LocalizationManager {\n /**\n * Returns the current device langua"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/di/PlatformModule.jvm.kt",
"chars": 2879,
"preview": "package zed.rainxch.core.data.di\n\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.preferences.core.Pr"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/local/data_store/createDataStore.kt",
"chars": 390,
"preview": "package zed.rainxch.core.data.local.data_store\n\nimport androidx.datastore.core.DataStore\nimport androidx.datastore.prefe"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/local/db/initDatabase.kt",
"chars": 549,
"preview": "package zed.rainxch.core.data.local.db\n\nimport androidx.room.Room\nimport androidx.sqlite.driver.bundled.BundledSQLiteDri"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/model/LinuxPackageType.kt",
"chars": 187,
"preview": "package zed.rainxch.core.data.model\n\nenum class LinuxPackageType {\n DEB, // Debian/Ubuntu/Mint\n RPM, // Fedora/RHE"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/model/LinuxTerminal.kt",
"chars": 186,
"preview": "package zed.rainxch.core.data.model\n\nenum class LinuxTerminal {\n GNOME_TERMINAL,\n KONSOLE,\n XTERM,\n XFCE4_TE"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/network/HttpClientFactory.jvm.kt",
"chars": 2275,
"preview": "package zed.rainxch.core.data.network\n\nimport io.ktor.client.HttpClient\nimport io.ktor.client.engine.ProxyBuilder\nimport"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/services/DesktopDownloader.kt",
"chars": 8953,
"preview": "package zed.rainxch.core.data.services\n\nimport co.touchlab.kermit.Logger\nimport kotlinx.coroutines.Dispatchers\nimport ko"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/services/DesktopFileLocationsProvider.kt",
"chars": 5928,
"preview": "package zed.rainxch.core.data.services\n\nimport co.touchlab.kermit.Logger\nimport zed.rainxch.core.domain.model.Platform\ni"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/services/DesktopInstaller.kt",
"chars": 36941,
"preview": "package zed.rainxch.core.data.services\n\nimport co.touchlab.kermit.Logger\nimport kotlinx.coroutines.Dispatchers\nimport ko"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/services/DesktopInstallerInfoExtractor.kt",
"chars": 305,
"preview": "package zed.rainxch.core.data.services\n\nimport zed.rainxch.core.domain.model.ApkPackageInfo\nimport zed.rainxch.core.doma"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/services/DesktopInstallerStatusProvider.kt",
"chars": 723,
"preview": "package zed.rainxch.core.data.services\n\nimport kotlinx.coroutines.flow.MutableStateFlow\nimport kotlinx.coroutines.flow.S"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/services/DesktopLocalizationManager.kt",
"chars": 505,
"preview": "package zed.rainxch.core.data.services\n\nimport java.util.Locale\n\nclass DesktopLocalizationManager : LocalizationManager "
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/services/DesktopPackageMonitor.kt",
"chars": 583,
"preview": "package zed.rainxch.core.data.services\n\nimport zed.rainxch.core.domain.model.DeviceApp\nimport zed.rainxch.core.domain.mo"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/services/DesktopUpdateScheduleManager.kt",
"chars": 342,
"preview": "package zed.rainxch.core.data.services\n\nimport zed.rainxch.core.domain.system.UpdateScheduleManager\n\n/**\n * No-op implem"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/utils/DesktopAppLauncher.kt",
"chars": 15151,
"preview": "package zed.rainxch.core.data.utils\n\nimport kotlinx.coroutines.Dispatchers\nimport kotlinx.coroutines.withContext\nimport "
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/utils/DesktopBrowserHelper.kt",
"chars": 1158,
"preview": "package zed.rainxch.core.data.utils\n\nimport zed.rainxch.core.domain.utils.BrowserHelper\nimport java.awt.Desktop\nimport j"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/utils/DesktopClipboardHelper.kt",
"chars": 847,
"preview": "package zed.rainxch.core.data.utils\n\nimport zed.rainxch.core.domain.utils.ClipboardHelper\nimport java.awt.Toolkit\nimport"
},
{
"path": "core/data/src/jvmMain/kotlin/zed/rainxch/core/data/utils/DesktopShareManager.kt",
"chars": 2061,
"preview": "package zed.rainxch.core.data.utils\n\nimport zed.rainxch.core.domain.utils.ShareManager\nimport java.awt.Desktop\nimport ja"
},
{
"path": "core/domain/.gitignore",
"chars": 6,
"preview": "/build"
},
{
"path": "core/domain/build.gradle.kts",
"chars": 422,
"preview": "plugins {\n alias(libs.plugins.convention.kmp.library)\n}\n\nkotlin {\n sourceSets {\n commonMain {\n d"
},
{
"path": "core/domain/src/androidMain/AndroidManifest.xml",
"chars": 121,
"preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\">\n\n</manifest"
},
{
"path": "core/domain/src/androidMain/kotlin/zed/rainxch/core/domain/Platform.android.kt",
"chars": 134,
"preview": "package zed.rainxch.core.domain\n\nimport zed.rainxch.core.domain.model.Platform\n\nactual fun getPlatform(): Platform = Pla"
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/Platform.kt",
"chars": 115,
"preview": "package zed.rainxch.core.domain\n\nimport zed.rainxch.core.domain.model.Platform\n\nexpect fun getPlatform(): Platform\n"
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/logging/GitHubStoreLogger.kt",
"chars": 251,
"preview": "package zed.rainxch.core.domain.logging\n\ninterface GitHubStoreLogger {\n fun debug(message: String)\n\n fun info(mess"
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/ApkPackageInfo.kt",
"chars": 215,
"preview": "package zed.rainxch.core.domain.model\n\ndata class ApkPackageInfo(\n val packageName: String,\n val versionName: Stri"
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/AppTheme.kt",
"chars": 259,
"preview": "package zed.rainxch.core.domain.model\n\nenum class AppTheme {\n DYNAMIC,\n OCEAN,\n PURPLE,\n FOREST,\n SLATE,\n"
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/AssetArchitectureMatcher.kt",
"chars": 2207,
"preview": "package zed.rainxch.core.domain.model\n\nobject AssetArchitectureMatcher {\n private val universalRegex =\n Regex("
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/DeviceApp.kt",
"chars": 211,
"preview": "package zed.rainxch.core.domain.model\n\ndata class DeviceApp(\n val packageName: String,\n val appName: String,\n v"
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/DiscoveryPlatform.kt",
"chars": 129,
"preview": "package zed.rainxch.core.domain.model\n\nenum class DiscoveryPlatform {\n All,\n Android,\n Macos,\n Windows,\n "
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/DownloadProgress.kt",
"chars": 151,
"preview": "package zed.rainxch.core.domain.model\n\ndata class DownloadProgress(\n val bytesDownloaded: Long,\n val totalBytes: L"
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/ExportedApp.kt",
"chars": 378,
"preview": "package zed.rainxch.core.domain.model\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class ExportedApp(\n"
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/FavoriteRepo.kt",
"chars": 472,
"preview": "package zed.rainxch.core.domain.model\n\ndata class FavoriteRepo(\n val repoId: Long,\n val repoName: String,\n val "
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/FontTheme.kt",
"chars": 284,
"preview": "package zed.rainxch.core.domain.model\n\nenum class FontTheme(\n val displayName: String,\n) {\n SYSTEM(\"System\"),\n "
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/GithubAsset.kt",
"chars": 270,
"preview": "package zed.rainxch.core.domain.model\n\nimport kotlinx.serialization.Serializable\n\n@Serializable\ndata class GithubAsset(\n"
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/GithubDeviceStart.kt",
"chars": 264,
"preview": "package zed.rainxch.core.domain.model\n\ndata class GithubDeviceStart(\n val deviceCode: String,\n val userCode: Strin"
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/GithubDeviceTokenError.kt",
"chars": 141,
"preview": "package zed.rainxch.core.domain.model\n\ndata class GithubDeviceTokenError(\n val error: String,\n val errorDescriptio"
},
{
"path": "core/domain/src/commonMain/kotlin/zed/rainxch/core/domain/model/GithubDeviceTokenSuccess.kt",
"chars": 281,
"preview": "package zed.rainxch.core.domain.model\n\ndata class GithubDeviceTokenSuccess(\n val accessToken: String,\n val tokenTy"
}
]
// ... and 393 more files (download for full content)
About this extraction
This page contains the full source code of the OpenHub-Store/GitHub-Store GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 593 files (2.3 MB), approximately 652.6k 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.