Full Code of realOxy/M3UAndroid for AI

master 1986963e761d cached
661 files
11.6 MB
3.1M tokens
38 symbols
1 requests
Copy disabled (too large) Download .txt
Showing preview only (12,361K chars total). Download the full file to get everything.
Repository: realOxy/M3UAndroid
Branch: master
Commit: 1986963e761d
Files: 661
Total size: 11.6 MB

Directory structure:
gitextract_ozggl_4v/

├── .claude/
│   └── skills/
│       └── jetpack-compose-audit/
│           ├── README.md
│           ├── SKILL.md
│           ├── references/
│           │   ├── canonical-sources.md
│           │   ├── diagnostics.md
│           │   ├── report-template.md
│           │   ├── scoring.md
│           │   └── search-playbook.md
│           └── scripts/
│               └── compose-reports.init.gradle
├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   └── workflows/
│       ├── android.yml
│       ├── baseline-profiles.yml
│       └── native-packs.yml
├── .gitignore
├── .gitmodules
├── .idea/
│   ├── .gitignore
│   ├── .name
│   ├── AndroidProjectSystem.xml
│   ├── compiler.xml
│   ├── deploymentTargetSelector.xml
│   ├── deviceManager.xml
│   ├── gradle.xml
│   ├── misc.xml
│   ├── runConfigurations/
│   │   ├── BaselineProfile_Smartphone.xml
│   │   ├── BaselineProfile_TV.xml
│   │   └── M3UAndroid___benchmark_Pixel5Api31BenchmarkAndroidTest_.xml
│   ├── runConfigurations.xml
│   └── vcs.xml
├── AGENTS.md
├── CODE_OF_CONDUCT.md
├── COMPOSE-AUDIT-REPORT.md
├── LICENSE
├── MATERIAL-3-AUDIT-REPORT.md
├── README.md
├── app/
│   ├── AGENTS.md
│   ├── extension/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           ├── java/
│   │           │   └── com/
│   │           │       └── m3u/
│   │           │           └── extension/
│   │           │               ├── MainActivity.kt
│   │           │               └── ui/
│   │           │                   └── theme/
│   │           │                       ├── Color.kt
│   │           │                       ├── Theme.kt
│   │           │                       └── Type.kt
│   │           └── res/
│   │               ├── mipmap-anydpi-v26/
│   │               │   └── ic_launcher.xml
│   │               └── values/
│   │                   ├── colors.xml
│   │                   ├── strings.xml
│   │                   └── themes.xml
│   ├── smartphone/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       ├── androidTest/
│   │       │   └── java/
│   │       │       └── com/
│   │       │           └── m3u/
│   │       │               └── testing/
│   │       │                   └── MockServerSmokeTest.kt
│   │       ├── main/
│   │       │   ├── AndroidManifest.xml
│   │       │   ├── generated/
│   │       │   │   └── baselineProfiles/
│   │       │   │       ├── baseline-prof.txt
│   │       │   │       └── startup-prof.txt
│   │       │   ├── java/
│   │       │   │   └── com/
│   │       │   │       └── m3u/
│   │       │   │           └── smartphone/
│   │       │   │               ├── AppModule.kt
│   │       │   │               ├── AppPublisher.kt
│   │       │   │               ├── M3UApplication.kt
│   │       │   │               ├── MainActivity.kt
│   │       │   │               ├── TimeUtils.kt
│   │       │   │               ├── benchmark/
│   │       │   │               │   └── DebugBenchmarkSettings.kt
│   │       │   │               ├── glance/
│   │       │   │               │   ├── FavouriteWidget.kt
│   │       │   │               │   └── GlanceReceiver.kt
│   │       │   │               ├── startup/
│   │       │   │               │   └── ComposeInitializer.kt
│   │       │   │               └── ui/
│   │       │   │                   ├── App.kt
│   │       │   │                   ├── AppViewModel.kt
│   │       │   │                   ├── business/
│   │       │   │                   │   ├── channel/
│   │       │   │                   │   │   ├── ChannelMask.kt
│   │       │   │                   │   │   ├── ChannelMaskUtils.kt
│   │       │   │                   │   │   ├── ChannelScreen.kt
│   │       │   │                   │   │   ├── MaskGesture.kt
│   │       │   │                   │   │   ├── PlayerActivity.kt
│   │       │   │                   │   │   └── components/
│   │       │   │                   │   │       ├── DlnaDeviceItem.kt
│   │       │   │                   │   │       ├── DlnaDevicesBottomSheet.kt
│   │       │   │                   │   │       ├── FormatItem.kt
│   │       │   │                   │   │       ├── FormatsBottomSheet.kt
│   │       │   │                   │   │       ├── MaskGestureValuePanel.kt
│   │       │   │                   │   │       ├── MaskValueButton.kt
│   │       │   │                   │   │       ├── PlayerMask.kt
│   │       │   │                   │   │       ├── PlayerPanel.kt
│   │       │   │                   │   │       ├── ProgrammeGuide.kt
│   │       │   │                   │   │       └── VerticalGestureArea.kt
│   │       │   │                   │   ├── configuration/
│   │       │   │                   │   │   ├── PlaylistConfigurationNavigation.kt
│   │       │   │                   │   │   ├── PlaylistConfigurationScreen.kt
│   │       │   │                   │   │   └── components/
│   │       │   │                   │   │       ├── AutoSyncProgrammesButton.kt
│   │       │   │                   │   │       ├── EpgManifestGallery.kt
│   │       │   │                   │   │       ├── SyncProgrammesButton.kt
│   │       │   │                   │   │       └── XtreamPanel.kt
│   │       │   │                   │   ├── extension/
│   │       │   │                   │   │   └── ExtensionScreen.kt
│   │       │   │                   │   ├── favourite/
│   │       │   │                   │   │   ├── FavouriteScreen.kt
│   │       │   │                   │   │   └── components/
│   │       │   │                   │   │       ├── FavoriteGallery.kt
│   │       │   │                   │   │       └── FavoriteItem.kt
│   │       │   │                   │   ├── foryou/
│   │       │   │                   │   │   ├── ForyouScreen.kt
│   │       │   │                   │   │   └── components/
│   │       │   │                   │   │       ├── HeadlineBackground.kt
│   │       │   │                   │   │       ├── Loading.kt
│   │       │   │                   │   │       ├── PlaylistGallery.kt
│   │       │   │                   │   │       ├── PlaylistItem.kt
│   │       │   │                   │   │       └── recommend/
│   │       │   │                   │   │           ├── RecommendGallery.kt
│   │       │   │                   │   │           └── RecommendItem.kt
│   │       │   │                   │   ├── playlist/
│   │       │   │                   │   │   ├── PlaylistNavigation.kt
│   │       │   │                   │   │   ├── PlaylistScreen.kt
│   │       │   │                   │   │   └── components/
│   │       │   │                   │   │       ├── ChannelGallery.kt
│   │       │   │                   │   │       ├── ChannelItem.kt
│   │       │   │                   │   │       └── PlaylistTabRow.kt
│   │       │   │                   │   └── setting/
│   │       │   │                   │       ├── SettingScreen.kt
│   │       │   │                   │       ├── components/
│   │       │   │                   │       │   ├── CanvasBottomSheet.kt
│   │       │   │                   │       │   ├── CheckBoxSharedPreference.kt
│   │       │   │                   │       │   ├── DataSourceSelection.kt
│   │       │   │                   │       │   ├── EpgPlaylistItem.kt
│   │       │   │                   │       │   ├── HiddenChannelItem.kt
│   │       │   │                   │       │   ├── HiddenPlaylistItem.kt
│   │       │   │                   │       │   ├── LocalStorageButton.kt
│   │       │   │                   │       │   ├── LocalStorageSwitch.kt
│   │       │   │                   │       │   └── RemoteControlSubscribeSwitch.kt
│   │       │   │                   │       └── fragments/
│   │       │   │                   │           ├── AppearanceFragment.kt
│   │       │   │                   │           ├── CodecPackFragment.kt
│   │       │   │                   │           ├── OptionalFragment.kt
│   │       │   │                   │           ├── SubscriptionsFragment.kt
│   │       │   │                   │           └── preferences/
│   │       │   │                   │               ├── OtherPreferences.kt
│   │       │   │                   │               ├── PreferencesFragment.kt
│   │       │   │                   │               └── RegularPreferences.kt
│   │       │   │                   ├── common/
│   │       │   │                   │   ├── AppNavHost.kt
│   │       │   │                   │   ├── RootGraph.kt
│   │       │   │                   │   ├── SmartphoneViewModel.kt
│   │       │   │                   │   ├── connect/
│   │       │   │                   │   │   ├── CodeRow.kt
│   │       │   │                   │   │   ├── DPadContent.kt
│   │       │   │                   │   │   ├── PrepareContent.kt
│   │       │   │                   │   │   ├── RemoteControlSheet.kt
│   │       │   │                   │   │   ├── RemoteDirectionController.kt
│   │       │   │                   │   │   └── VirtualNumberKeyboard.kt
│   │       │   │                   │   ├── helper/
│   │       │   │                   │   │   ├── Element.kt
│   │       │   │                   │   │   ├── Helper.kt
│   │       │   │                   │   │   └── Metadata.kt
│   │       │   │                   │   └── internal/
│   │       │   │                   │       ├── Events.kt
│   │       │   │                   │       └── Toolkit.kt
│   │       │   │                   └── material/
│   │       │   │                       ├── M3UHapticFeedback.kt
│   │       │   │                       ├── RecomposeHighlighter.kt
│   │       │   │                       ├── brush/
│   │       │   │                       │   └── Scrim.kt
│   │       │   │                       ├── components/
│   │       │   │                       │   ├── Backgrounds.kt
│   │       │   │                       │   ├── Badges.kt
│   │       │   │                       │   ├── BottomSheet.kt
│   │       │   │                       │   ├── Brushes.kt
│   │       │   │                       │   ├── Destination.kt
│   │       │   │                       │   ├── EpisodesBottomSheet.kt
│   │       │   │                       │   ├── EventHandler.kt
│   │       │   │                       │   ├── FontFamilies.kt
│   │       │   │                       │   ├── HorizontalPagerIndicator.kt
│   │       │   │                       │   ├── Images.kt
│   │       │   │                       │   ├── Layouts.kt
│   │       │   │                       │   ├── Lotties.kt
│   │       │   │                       │   ├── MediaSheet.kt
│   │       │   │                       │   ├── MonoText.kt
│   │       │   │                       │   ├── Player.kt
│   │       │   │                       │   ├── Preferences.kt
│   │       │   │                       │   ├── PullPanelLayout.kt
│   │       │   │                       │   ├── Selections.kt
│   │       │   │                       │   ├── SnackHost.kt
│   │       │   │                       │   ├── SortBottomSheet.kt
│   │       │   │                       │   ├── TextFields.kt
│   │       │   │                       │   ├── ThemeSelection.kt
│   │       │   │                       │   └── mask/
│   │       │   │                       │       ├── Mask.kt
│   │       │   │                       │       ├── MaskButton.kt
│   │       │   │                       │       ├── MaskCircleButton.kt
│   │       │   │                       │       ├── MaskDefaults.kt
│   │       │   │                       │       ├── MaskInterceptor.kt
│   │       │   │                       │       ├── MaskPanel.kt
│   │       │   │                       │       └── MaskState.kt
│   │       │   │                       ├── effects/
│   │       │   │                       │   └── BackStack.kt
│   │       │   │                       ├── ktx/
│   │       │   │                       │   ├── Blurs.kt
│   │       │   │                       │   ├── Colors.kt
│   │       │   │                       │   ├── Effects.kt
│   │       │   │                       │   ├── Interaction.kt
│   │       │   │                       │   ├── InterceptEvent.kt
│   │       │   │                       │   ├── LifecycleEffect.kt
│   │       │   │                       │   ├── Modifier.kt
│   │       │   │                       │   ├── PaddingValues.kt
│   │       │   │                       │   ├── Pager.kt
│   │       │   │                       │   ├── Permissions.kt
│   │       │   │                       │   ├── ScrollableState.kt
│   │       │   │                       │   └── Unspecified.kt
│   │       │   │                       ├── model/
│   │       │   │                       │   ├── Duration.kt
│   │       │   │                       │   ├── GradientColors.kt
│   │       │   │                       │   ├── LocalHazeState.kt
│   │       │   │                       │   ├── Spacing.kt
│   │       │   │                       │   └── Theme.kt
│   │       │   │                       ├── texture/
│   │       │   │                       │   ├── TextureContainer.kt
│   │       │   │                       │   └── Textures.kt
│   │       │   │                       └── transformation/
│   │       │   │                           ├── BlurTransformation.kt
│   │       │   │                           └── ColorCombineTransformation.kt
│   │       │   └── res/
│   │       │       ├── drawable/
│   │       │       │   ├── baseline_history_toggle_off_24.xml
│   │       │       │   ├── ic_launcher_background.xml
│   │       │       │   ├── ic_launcher_foreground.xml
│   │       │       │   ├── ic_splash.xml
│   │       │       │   ├── round_calendar_month_24.xml
│   │       │       │   └── round_space_dashboard_24.xml
│   │       │       ├── font/
│   │       │       │   └── google_sans.xml
│   │       │       ├── mipmap-anydpi-v26/
│   │       │       │   └── ic_launcher.xml
│   │       │       ├── values/
│   │       │       │   ├── colors.xml
│   │       │       │   ├── stings.xml
│   │       │       │   └── themes.xml
│   │       │       ├── values-night/
│   │       │       │   └── colors.xml
│   │       │       ├── values-v27/
│   │       │       │   └── themes.xml
│   │       │       ├── values-v29/
│   │       │       │   └── themes.xml
│   │       │       ├── xml/
│   │       │       │   ├── backup_rules.xml
│   │       │       │   ├── data_extraction_rules.xml
│   │       │       │   ├── filepaths.xml
│   │       │       │   ├── shortcuts.xml
│   │       │       │   └── widget_info.xml
│   │       │       └── xml-v31/
│   │       │           └── widget_info.xml
│   │       ├── release/
│   │       │   ├── AndroidManifest.xml
│   │       │   └── java/
│   │       │       └── com/
│   │       │           └── m3u/
│   │       │               └── smartphone/
│   │       │                   └── startup/
│   │       │                       └── CodecNativeInitializer.kt
│   │       └── snapshotChannel/
│   │           └── res/
│   │               └── values/
│   │                   ├── colors.xml
│   │                   └── stings.xml
│   └── tv/
│       ├── .gitignore
│       ├── AGENTS.md
│       ├── build.gradle.kts
│       ├── proguard-rules.pro
│       └── src/
│           ├── androidTest/
│           │   └── java/
│           │       └── com/
│           │           └── m3u/
│           │               └── testing/
│           │                   └── MockServerSmokeTest.kt
│           └── main/
│               ├── AndroidManifest.xml
│               ├── generated/
│               │   └── baselineProfiles/
│               │       ├── baseline-prof.txt
│               │       └── startup-prof.txt
│               ├── java/
│               │   └── com/
│               │       └── m3u/
│               │           └── tv/
│               │               ├── App.kt
│               │               ├── AppModule.kt
│               │               ├── AppPublisher.kt
│               │               ├── M3UApplication.kt
│               │               ├── MainActivity.kt
│               │               ├── TvComponents.kt
│               │               ├── TvHomeViewModel.kt
│               │               ├── TvPlayerScreen.kt
│               │               ├── TvScreens.kt
│               │               ├── TvStyle.kt
│               │               └── startup/
│               │                   └── ComposeInitializer.kt
│               └── res/
│                   └── values/
│                       ├── stings.xml
│                       └── themes.xml
├── baselineprofile/
│   ├── smartphone/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           └── java/
│   │               └── com/
│   │                   └── m3u/
│   │                       └── baselineprofile/
│   │                           ├── BaselineProfileGenerator.kt
│   │                           └── StartupBenchmarks.kt
│   └── tv/
│       ├── .gitignore
│       ├── build.gradle.kts
│       └── src/
│           └── main/
│               ├── AndroidManifest.xml
│               └── java/
│                   └── com/
│                       └── m3u/
│                           └── baselineprofile/
│                               ├── BaselineProfileGenerator.kt
│                               └── StartupBenchmarks.kt
├── build.gradle.kts
├── business/
│   ├── AGENTS.md
│   ├── channel/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           └── java/
│   │               └── com/
│   │                   └── m3u/
│   │                       └── business/
│   │                           └── channel/
│   │                               ├── ChannelViewModel.kt
│   │                               ├── CwPositionConsumer.kt
│   │                               └── PlayerState.kt
│   ├── extension/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           └── java/
│   │               └── com/
│   │                   └── m3u/
│   │                       └── business/
│   │                           └── extension/
│   │                               └── ExtensionViewModel.kt
│   ├── favorite/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           ├── java/
│   │           │   └── com/
│   │           │       └── m3u/
│   │           │           └── business/
│   │           │               └── favorite/
│   │           │                   └── FavouriteViewModel.kt
│   │           └── res/
│   │               └── drawable/
│   │                   └── round_play_arrow_24.xml
│   ├── foryou/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           ├── java/
│   │           │   └── com/
│   │           │       └── m3u/
│   │           │           └── business/
│   │           │               └── foryou/
│   │           │                   ├── ForyouViewModel.kt
│   │           │                   └── Recommend.kt
│   │           └── res/
│   │               └── raw/
│   │                   ├── empty.json
│   │                   └── loading.json
│   ├── playlist/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           ├── java/
│   │           │   └── com/
│   │           │       └── m3u/
│   │           │           └── business/
│   │           │               └── playlist/
│   │           │                   ├── PlaylistMessage.kt
│   │           │                   ├── PlaylistNavigation.kt
│   │           │                   └── PlaylistViewModel.kt
│   │           └── res/
│   │               └── drawable/
│   │                   └── round_play_arrow_24.xml
│   ├── playlist-configuration/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           └── java/
│   │               └── com/
│   │                   └── m3u/
│   │                       └── business/
│   │                           └── playlist/
│   │                               └── configuration/
│   │                                   ├── PlaylistConfigurationNavigation.kt
│   │                                   └── PlaylistConfigurationViewModel.kt
│   └── setting/
│       ├── .gitignore
│       ├── build.gradle.kts
│       ├── consumer-rules.pro
│       ├── proguard-rules.pro
│       └── src/
│           └── main/
│               ├── AndroidManifest.xml
│               ├── java/
│               │   └── com/
│               │       └── m3u/
│               │           └── business/
│               │               └── setting/
│               │                   ├── BackingUpAndRestoringState.kt
│               │                   ├── CodecPackState.kt
│               │                   ├── SettingMessage.kt
│               │                   ├── SettingProperties.kt
│               │                   └── SettingViewModel.kt
│               └── res/
│                   └── drawable/
│                       └── telegram.xml
├── compose_compiler_config.conf
├── core/
│   ├── .gitignore
│   ├── AGENTS.md
│   ├── README.md
│   ├── build.gradle.kts
│   ├── consumer-rules.pro
│   ├── extension/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           ├── java/
│   │           │   └── com/
│   │           │       └── m3u/
│   │           │           └── core/
│   │           │               └── extension/
│   │           │                   ├── OnRemoteCall.kt
│   │           │                   ├── OnRemoteCallImpl.kt
│   │           │                   ├── RemoteService.kt
│   │           │                   ├── RemoteServiceDependencies.kt
│   │           │                   ├── RemoteServiceDependenciesImpl.kt
│   │           │                   ├── Utils.kt
│   │           │                   └── business/
│   │           │                       ├── InfoModule.kt
│   │           │                       ├── RemoteModule.kt
│   │           │                       └── SubscribeModule.kt
│   │           └── resources/
│   │               └── META-INF/
│   │                   └── services/
│   │                       ├── com.m3u.core.extension.OnRemoteCall
│   │                       └── com.m3u.core.extension.RemoteServiceDependencies
│   ├── foundation/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           └── java/
│   │               └── com/
│   │                   └── m3u/
│   │                       └── core/
│   │                           └── foundation/
│   │                               ├── Contracts.kt
│   │                               ├── architecture/
│   │                               │   ├── FileProvider.kt
│   │                               │   ├── Publisher.kt
│   │                               │   └── preferences/
│   │                               │       ├── ClipMode.kt
│   │                               │       ├── ConnectTimeout.kt
│   │                               │       ├── PlaylistStrategy.kt
│   │                               │       ├── Preferences.kt
│   │                               │       ├── ReconnectMode.kt
│   │                               │       └── UnseensMilliseconds.kt
│   │                               ├── components/
│   │                               │   ├── AbsoluteSmoothCornerShape.kt
│   │                               │   ├── CircularProgressIndicator.kt
│   │                               │   └── SmoothCorner.kt
│   │                               ├── ktx/
│   │                               │   └── NotNulls.kt
│   │                               ├── suggest/
│   │                               │   └── Suggester.kt
│   │                               ├── ui/
│   │                               │   ├── Composable.kt
│   │                               │   ├── SugarColors.kt
│   │                               │   └── ThenIf.kt
│   │                               ├── unit/
│   │                               │   └── DataUnit.kt
│   │                               ├── util/
│   │                               │   ├── Files.kt
│   │                               │   ├── basic/
│   │                               │   │   ├── Graphics.kt
│   │                               │   │   ├── LetIf.kt
│   │                               │   │   └── Strings.kt
│   │                               │   ├── collections/
│   │                               │   │   ├── ForEachNotNull.kt
│   │                               │   │   └── IndexOf.kt
│   │                               │   ├── compose/
│   │                               │   │   └── ObservableState.kt
│   │                               │   ├── context/
│   │                               │   │   ├── Configuration.kt
│   │                               │   │   ├── SharedPreferences.kt
│   │                               │   │   └── Toasts.kt
│   │                               │   └── coroutine/
│   │                               │       └── Flows.kt
│   │                               └── wrapper/
│   │                                   ├── Event.kt
│   │                                   ├── Message.kt
│   │                                   ├── Resource.kt
│   │                                   └── Sort.kt
│   ├── proguard-rules.pro
│   └── src/
│       └── main/
│           └── AndroidManifest.xml
├── data/
│   ├── .gitignore
│   ├── AGENTS.md
│   ├── build.gradle.kts
│   ├── consumer-rules.pro
│   ├── proguard-rules.pro
│   ├── schemas/
│   │   └── com.m3u.data.database.M3UDatabase/
│   │       ├── 1.json
│   │       ├── 10.json
│   │       ├── 11.json
│   │       ├── 12.json
│   │       ├── 13.json
│   │       ├── 14.json
│   │       ├── 15.json
│   │       ├── 16.json
│   │       ├── 17.json
│   │       ├── 18.json
│   │       ├── 19.json
│   │       ├── 2.json
│   │       ├── 20.json
│   │       ├── 21.json
│   │       ├── 3.json
│   │       ├── 4.json
│   │       ├── 5.json
│   │       ├── 6.json
│   │       ├── 7.json
│   │       ├── 8.json
│   │       └── 9.json
│   └── src/
│       └── main/
│           ├── AndroidManifest.xml
│           ├── java/
│           │   └── com/
│           │       └── m3u/
│           │           └── data/
│           │               ├── Certs.kt
│           │               ├── SSLs.kt
│           │               ├── api/
│           │               │   ├── ApiModule.kt
│           │               │   ├── BaseUrls.kt
│           │               │   ├── TvApiDelegate.kt
│           │               │   └── dto/
│           │               │       └── github/
│           │               │           ├── Asset.kt
│           │               │           ├── File.kt
│           │               │           ├── Leaf.kt
│           │               │           ├── Links.kt
│           │               │           ├── Release.kt
│           │               │           ├── Tree.kt
│           │               │           └── User.kt
│           │               ├── codec/
│           │               │   ├── CodecNativeLoader.kt
│           │               │   ├── CodecPackConfig.kt
│           │               │   ├── CodecPackManifest.kt
│           │               │   └── CodecPackRepository.kt
│           │               ├── database/
│           │               │   ├── Converters.kt
│           │               │   ├── DatabaseMigrations.kt
│           │               │   ├── DatabaseModule.kt
│           │               │   ├── M3UDatabase.kt
│           │               │   ├── dao/
│           │               │   │   ├── ChannelDao.kt
│           │               │   │   ├── ColorSchemeDao.kt
│           │               │   │   ├── EpisodeDao.kt
│           │               │   │   ├── PlaylistDao.kt
│           │               │   │   └── ProgrammeDao.kt
│           │               │   ├── example/
│           │               │   │   └── ColorSchemeExample.kt
│           │               │   └── model/
│           │               │       ├── AdjacentChannels.kt
│           │               │       ├── Channel.kt
│           │               │       ├── ColorScheme.kt
│           │               │       ├── Episode.kt
│           │               │       ├── Playlist.kt
│           │               │       └── Programme.kt
│           │               ├── model/
│           │               │   └── ChannelSet.kt
│           │               ├── parser/
│           │               │   ├── ParserModule.kt
│           │               │   ├── ParserUtils.kt
│           │               │   ├── epg/
│           │               │   │   ├── EpgData.kt
│           │               │   │   ├── EpgParser.kt
│           │               │   │   └── EpgParserImpl.kt
│           │               │   ├── m3u/
│           │               │   │   ├── M3UData.kt
│           │               │   │   ├── M3UParser.kt
│           │               │   │   └── M3UParserImpl.kt
│           │               │   └── xtream/
│           │               │       ├── XtreamCategory.kt
│           │               │       ├── XtreamChannelInfo.kt
│           │               │       ├── XtreamData.kt
│           │               │       ├── XtreamInfo.kt
│           │               │       ├── XtreamOutput.kt
│           │               │       ├── XtreamParser.kt
│           │               │       └── XtreamParserImpl.kt
│           │               ├── repository/
│           │               │   ├── BackupOrRestoreContracts.kt
│           │               │   ├── CoroutineCache.kt
│           │               │   ├── RepositoryModule.kt
│           │               │   ├── channel/
│           │               │   │   ├── ChannelRepository.kt
│           │               │   │   └── ChannelRepositoryImpl.kt
│           │               │   ├── media/
│           │               │   │   ├── MediaRepository.kt
│           │               │   │   └── MediaRepositoryImpl.kt
│           │               │   ├── playlist/
│           │               │   │   ├── PlaylistRepository.kt
│           │               │   │   └── PlaylistRepositoryImpl.kt
│           │               │   ├── programme/
│           │               │   │   ├── ProgrammeRepository.kt
│           │               │   │   └── ProgrammeRepositoryImpl.kt
│           │               │   └── tv/
│           │               │       ├── TvRepository.kt
│           │               │       └── TvRepositoryImpl.kt
│           │               ├── service/
│           │               │   ├── DPadReactionService.kt
│           │               │   ├── Messager.kt
│           │               │   ├── PlayerManager.kt
│           │               │   ├── ServicesModule.kt
│           │               │   └── internal/
│           │               │       ├── ChannelPreferenceProvider.kt
│           │               │       ├── Codecs.kt
│           │               │       ├── ContinueWatchingCondition.kt
│           │               │       ├── DPadReactionServiceImpl.kt
│           │               │       ├── FileProviderImpl.kt
│           │               │       ├── KodiAdaptions.kt
│           │               │       ├── MessagerImpl.kt
│           │               │       ├── PlayerManagerImpl.kt
│           │               │       └── Utils.kt
│           │               ├── tv/
│           │               │   ├── Utils.kt
│           │               │   ├── http/
│           │               │   │   ├── HttpServer.kt
│           │               │   │   ├── HttpServerImpl.kt
│           │               │   │   └── endpoint/
│           │               │   │       ├── DefRep.kt
│           │               │   │       ├── Endpoint.kt
│           │               │   │       ├── Playlists.kt
│           │               │   │       ├── Remotes.kt
│           │               │   │       └── SayHellos.kt
│           │               │   ├── model/
│           │               │   │   ├── RemoteDirection.kt
│           │               │   │   └── TvInfo.kt
│           │               │   └── nsd/
│           │               │       ├── NsdDeviceManager.kt
│           │               │       ├── NsdDeviceManagerImpl.kt
│           │               │       └── NsdResolveListener.kt
│           │               └── worker/
│           │                   ├── BackupWorker.kt
│           │                   ├── ProgrammeReminder.kt
│           │                   ├── RestoreWorker.kt
│           │                   └── SubscriptionWorker.kt
│           └── res/
│               └── drawable/
│                   ├── baseline_notifications_none_24.xml
│                   ├── round_cancel_24.xml
│                   ├── round_file_download_24.xml
│                   └── round_refresh_24.xml
├── docs/
│   └── native-load-yaml.md
├── fastlane/
│   └── metadata/
│       └── android/
│           ├── en-US/
│           │   ├── full_description.txt
│           │   ├── short_description.txt
│           │   └── title.txt
│           └── es-ES/
│               ├── full_description.txt
│               └── short_description.txt
├── gradle/
│   ├── libs.versions.toml
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── i18n/
│   ├── .gitignore
│   ├── AGENTS.md
│   ├── build.gradle.kts
│   ├── consumer-rules.pro
│   ├── proguard-rules.pro
│   └── src/
│       └── main/
│           ├── AndroidManifest.xml
│           └── res/
│               ├── values/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-de-rDE/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-es-rES/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-es-rMX/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-fr-rFR/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-id-rID/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-it-rIT/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-pt-rBR/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-ro-rRO/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-sv-rSE/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-tr-rTR/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               └── values-zh-rCN/
│                   ├── app.xml
│                   ├── data.xml
│                   ├── feat_about.xml
│                   ├── feat_console.xml
│                   ├── feat_favourite.xml
│                   ├── feat_foryou.xml
│                   ├── feat_playlist.xml
│                   ├── feat_playlist_configuration.xml
│                   ├── feat_setting.xml
│                   ├── feat_stream.xml
│                   └── ui.xml
├── jitpack.yml
├── lint/
│   ├── annotation/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       └── main/
│   │           └── java/
│   │               └── com/
│   │                   └── m3u/
│   │                       └── annotation/
│   │                           ├── Exclude.kt
│   │                           └── Likable.kt
│   └── processor/
│       ├── .gitignore
│       ├── build.gradle.kts
│       ├── consumer-rules.pro
│       ├── proguard-rules.pro
│       └── src/
│           └── main/
│               ├── AndroidManifest.xml
│               ├── java/
│               │   └── com/
│               │       └── m3u/
│               │           └── processor/
│               │               └── likable/
│               │                   ├── LikableSymbolProcessor.kt
│               │                   └── LikableSymbolProcessorProvider.kt
│               └── resources/
│                   └── META-INF/
│                       └── services/
│                           └── com.google.devtools.ksp.processing.SymbolProcessorProvider
├── lint.xml
├── native-load.yml
├── native-packs/
│   └── nextlib-0.8.5/
│       └── m3u-codec-nextlib-0.8.5.json
├── renovate.json
├── settings.gradle.kts
└── testing/
    ├── AGENTS.md
    ├── device-benchmark/
    │   ├── README.md
    │   ├── build.gradle.kts
    │   ├── mobly/
    │   │   └── remote_control_subscribe_test.py
    │   ├── mobly_config.yml
    │   └── requirements.txt
    └── mock-server/
        ├── README.md
        ├── build.gradle.kts
        └── src/
            └── main/
                └── kotlin/
                    └── com/
                        └── m3u/
                            └── testing/
                                └── mockserver/
                                    └── Main.kt

================================================
FILE CONTENTS
================================================

================================================
FILE: .claude/skills/jetpack-compose-audit/README.md
================================================
# Jetpack Compose Audit Skill

A strict, evidence-based audit skill for Android Jetpack Compose repositories. Scores four categories on a 0-10 scale, produces a cited Markdown report, and tells you what to fix and what each fix will buy you — down to the predicted `skippable%` delta.

Built for Claude Code, Cursor, and any agent that loads the Anthropic skill format.

---

## What it does

Given a Compose repo path, the skill:

1. Confirms Compose is actually present (fast-fails if not).
2. Maps modules, screens, shared UI, state holders, ViewModels.
3. **Generates Compose Compiler reports automatically** via a bundled Gradle init script — no edits to the target's `build.gradle`.
4. Scores four categories against the rubric:
   - **Performance** (35%) — expensive work in composition, lazy keys, lambda modifiers, stability, Strong Skipping, backwards writes
   - **State management** (25%) — hoisting, single source of truth, `rememberSaveable`, lifecycle-aware collection, observable collections
   - **Side effects** (20%) — correct effect API, keys, stale captures, cleanup, composition-time work
   - **Composable API quality** (20%) — modifier conventions, parameter order, slot APIs, `CompositionLocal` usage, `Modifier.Node`
5. Writes `COMPOSE-AUDIT-REPORT.md` at the target root.
6. Returns a chat summary with the top three actionable fixes, each with file:line, doc URL, and expected impact.

Bands: `0-3` fail · `4-6` needs work · `7-8` solid · `9-10` excellent.

---

## What makes it different

**Measured, not inferred.** The skill ships `scripts/compose-reports.init.gradle` and injects it into your Gradle build with `--init-script`. Every run parses real `*-classes.txt` / `*-composables.txt` / `*-module.json` output. Stability claims stop being folklore.

**Mandatory ceilings.** A Performance score cannot exceed the cap set by measured `skippable%` and unstable-param count. 69% skippability caps Performance at 4 — no room for generous interpretation. The ceiling math appears in the report so the score is auditable.

**Every deduction cites an official source.** Each finding carries a `References:` line pointing at `developer.android.com` or the AndroidX component API guidelines. Audits that can't be defended with a URL don't ship.

**Actionable chat summary.** The chat output mirrors the report's `Prioritized Fixes` — same file paths, same doc links, same predicted impact ("moves `skippable%` from 69% → ~85%, Performance ceiling 4 → 6").

---

## Install

Symlink the repo into your skills directory so `git pull` updates everywhere at once:

```bash
# Claude Code
mkdir -p ~/.claude/skills
ln -s "$(pwd)" ~/.claude/skills/jetpack-compose-audit

# Cursor
mkdir -p ~/.cursor/skills
ln -s "$(pwd)" ~/.cursor/skills/jetpack-compose-audit
```

---

## Use

From the AI prompt:

```
/jetpack-compose-audit [repo path or module path]
```

Or in natural language:

```
Audit this Compose repo.
Score the :app module for Compose quality.
Run a Compose performance review on core/ui.
```

The compiler-report build runs automatically and typically takes 1-5 minutes depending on the target. If the build fails, the skill falls back to source-inferred findings and reduces confidence one level — explicitly flagged in the report.

---

## Example output

```
Overall: 59/100

Performance:  4/10  capped by skippable% 69.14% (qualitative 7)
State:        6/10  collectAsState without lifecycle, duplicate VM reads
Side effects: 7/10  LaunchedEffect key too broad at HomeScreen.kt:240
API quality:  8/10  BoxCard / SearchBar follow conventions

Compiler:
  Strong Skipping: on
  skippable% = 186/269 = 69.14%
  deferredUnstableClasses: 59

Top 3 fixes
1. collectAsState -> collectAsStateWithLifecycle across 6 call sites
   feature/home/HomeScreen.kt:37, MainActivity.kt:213, ...
   Doc: developer.android.com/.../side-effects
   Impact: fewer redundant collections, lifecycle-correct

2. Stabilize HomeFeedScreen / HomeFeedItem / BoxCard params
   Evidence: app/build/compose_audit/app_release-classes.txt
   Doc: developer.android.com/.../stability
   Impact: skippable% 69% -> ~85%, Performance ceiling 4 -> 6

3. Narrow LaunchedEffect(homeScreenState) at HomeScreen.kt:240-254
   Doc: developer.android.com/.../side-effects
   Impact: fewer redundant ensureAuthenticated() calls
```

---

## Scope

**In scope (v1).** Jetpack Compose on Android, Kotlin 2.0.20+ / Compose Compiler 1.5.4+ (Strong Skipping default).

**Out of scope (v1)** — the skill will call these out as a note rather than silently produce thin coverage:

- Material 3 compliance, theming, color/typography — defer to the `material-3` skill
- Accessibility scoring (semantics, touch targets) — flagged as notes, not scored
- UI test coverage and Compose test-rule patterns
- Compose Multiplatform (`expect`/`actual`, target-specific code paths)
- Wear OS / TV / Auto / Glance surfaces
- Build performance (incremental compilation, KSP/KAPT)

---

## Layout

```
SKILL.md                         main skill manifest (process, principles, output)
scripts/
  compose-reports.init.gradle    Gradle init script injected via --init-script
references/
  scoring.md                     rubric with measured ceilings and inline citations
  search-playbook.md             grep patterns, regex, read-the-file heuristics
  canonical-sources.md           every URL the rubric cites
  report-template.md             required structure for COMPOSE-AUDIT-REPORT.md
  diagnostics.md                 manual-mode fallback snippets
```

---

## Philosophy

- **Strict but evidence-based.** Every deduction has a file:line and an official-doc URL.
- **Measured beats inferred.** Compiler reports are generated automatically; source-inferred stability is a fallback, not the default.
- **Written for action.** The report's `Prioritized Fixes` section and the chat summary mirror each other, so the developer can act on the chat alone.
- **Narrow scope on purpose.** The skill does not score design, accessibility, or build performance in v1. It says so rather than pretending otherwise.

---

## License

MIT.


================================================
FILE: .claude/skills/jetpack-compose-audit/SKILL.md
================================================
---
name: jetpack-compose-audit
description: Audit Android Jetpack Compose repositories for performance, state management, side effects, and composable API quality. Scans source code, scores each category from 0-10, writes a strict markdown report, and summarizes the most important fixes. Use when reviewing a Compose codebase, rating repository quality, inspecting recomposition/state issues, or running a Compose audit.
allowed-tools: Read, Glob, Grep, Write, Bash, Agent
argument-hint: "[repo path or module path]"
---

# Jetpack Compose Audit

This skill audits Android Jetpack Compose repositories with a strict, evidence-based report.

**Rubric version:** v1 — current as of 2026-04-13. Compose track: Kotlin 2.0.20+ / Compose Compiler 1.5.4+ (Strong Skipping Mode default).

It is intentionally focused on four categories:

- Performance
- State management
- Side effects
- Composable API quality

This skill does **not** score design or Material 3 compliance in v1. If the audit surfaces likely design-system problems, recommend a follow-up audit with the `material-3` skill (reference implementation: <https://github.com/hamen/material-3-skill>).

## Out Of Scope In v1

Owned and deliberate scope choices — call out the limitation in the report rather than silently producing thin coverage:

- Material 3 compliance, theming, color/typography tokens — defer to the `material-3` skill.
- Accessibility scoring (`semantics`, content descriptions, touch-target sizing) — flag obvious gaps as a note, do not score.
- UI test coverage and Compose test rule patterns — note presence/absence, do not score.
- Compose Multiplatform-specific rules (`expect`/`actual`, target-specific code paths).
- Wear OS / TV / Auto / Glance surfaces.
- Build performance (incremental compilation, KSP/KAPT choice).

If the user explicitly asks for any of these, narrow the scope and state it in the report.

## When To Use

Use this skill when the user asks to:

- audit a Jetpack Compose repository
- review Compose architecture or quality
- rate a codebase with scores
- inspect recomposition, state, or effects issues
- identify Compose best-practice violations in an existing repo

Typical trigger phrases:

- "audit this Compose repo"
- "score this Jetpack Compose codebase"
- "review state hoisting and side effects"
- "check Compose performance"
- "rate this repository"

## Expected Output

Produce both:

- a repository report file named `COMPOSE-AUDIT-REPORT.md`
- a short chat summary with the overall score, category scores, worst issues, and the top fixes

## Audit Principles

- Be strict, but evidence-based.
- Do not score from search hits alone. Read representative files before judging a category.
- Cite concrete file paths in the report for every important deduction.
- **Cite an official documentation URL for every deduction.** No "trust me" findings — the rubric maps every rule to a canonical source in `references/canonical-sources.md`. The report template requires a `References:` line per finding.
- Prefer canonical Android guidance over folklore.
- Treat performance as important, but not as the only lens.
- Do not punish app code for failing public-library purity tests. Apply API-quality checks mainly to reusable internal components, design-system pieces, and shared UI building blocks.
- Reserve `0-3` scores for repeated or systemic problems, not isolated mistakes.
- Do not award `9-10` unless the repo is consistently strong across the category.

## Process

### 1. Confirm Scope

Identify the target path:

- If the user passed an explicit path (`[repo path or module path]`), use it.
- If no path was passed, default to the current working directory.
- If the path does not exist, ask the user to clarify.

Before mapping modules, confirm Compose is actually present (fast-fail):

- grep for `androidx.compose` in any `build.gradle*` or `libs.versions.toml`
- grep for `setContent {` or `@Composable` under `src/`

If neither shows up, stop and report that the target is out of scope. Do not run a full module map first.

If Compose is present *only* in `samples/`, `demos/`, or test sources (no production usage), narrow the scope to those directories, set confidence to `Low`, and state in the report that the audit is over sample code rather than production paths. Do not score production-quality categories against demo code.

### 2. Map The Repository

Before scoring, identify:

- Gradle modules
- Android app and feature modules
- likely Compose source roots
- shared UI/component packages
- theme or design-system packages
- state holder or ViewModel areas
- test and preview locations
- baseline-profile related modules or config if present

### 3. Build A Compose Surface Map

Look for:

- `@Composable` functions
- reusable UI components
- screens and routes
- `ViewModel` usage
- `remember`, `rememberSaveable`, `mutableStateOf`
- `collectAsStateWithLifecycle`, `collectAsState`
- `LaunchedEffect`, `DisposableEffect`, `SideEffect`, `rememberUpdatedState`, `produceState`
- `LazyColumn`, `LazyRow`, `items`, `itemsIndexed`

If the repo is large, audit by category or by module. If subagents are available, parallelize category scans by spawning `Explore`-type subagents (no write tools) and merge the findings.

### 4. Generate Compose Compiler Reports (Automatic)

Do **not** ask the user to edit `build.gradle` or run commands themselves. The skill runs the build with a bundled Gradle init script that injects `reportsDestination` / `metricsDestination` into every Compose module without modifying any file in the target repo. Before scoring, attempt this:

1. **Locate the init script** shipped with the skill: `scripts/compose-reports.init.gradle`. The absolute path is the skill's install location — in most installs that's `~/.claude/skills/jetpack-compose-audit/scripts/compose-reports.init.gradle`. If you cannot resolve the path, fall back to writing the script to `<target>/.compose-audit-reports.init.gradle` and delete it after the run.

2. **Check for a Gradle wrapper** in the target: `test -x <target>/gradlew`. If missing, skip to the fallback in step 6.

3. **Pick a compile target.** Prefer the cheapest task that still triggers Kotlin compilation for a Compose module:
   - find the first application module via `rg -l 'com\.android\.application' -g '*.gradle*'`
   - try in order: `:<app-module>:compileReleaseKotlinAndroid`, `:<app-module>:compileReleaseKotlin`, `assembleRelease`, `assembleDebug`
   - If the project is Compose-only on a library (`com.android.library`), use that module instead.

4. **Run the build.** Inform the user the build is starting (it may take several minutes).

   ```bash
   cd <target> && ./gradlew <task> \
       --init-script <path-to>/compose-reports.init.gradle \
       --no-daemon --quiet
   ```

   Use a 600-second timeout. If the task fails, try the next fallback task in step 3 once. Do **not** loop indefinitely.

5. **Collect the reports.**

   ```bash
   find <target> -path '*/build/compose_audit/*' \
       \( -name '*-classes.txt' -o -name '*-composables.txt' -o -name '*-composables.csv' -o -name '*-module.json' \)
   ```

   From these files, extract:
   - **unstable classes** (lines starting with `unstable class ` in `*-classes.txt`) used as composable parameters
   - **non-skippable but restartable named composables** (ignore zero-argument lambdas; focus on actual named functions in `*-composables.txt` or `*-composables.csv` where `isLambda == "0"`)
   - **module-wide skippability counts** from `*-module.json`, AND compute the **named-only skippability** from `*-composables.csv` (by filtering out rows where `isLambda == "1"` and calculating `sum(skippable) / sum(restartable)`). Cite both in the Performance section, noting that zero-argument lambdas can artificially anchor the module-wide metric.

6. **Fallback if the build fails or Gradle is unavailable.** Proceed with source-inferred stability findings, but:
   - set `Compiler diagnostics used: no` in the report's Notes And Limits and explain the failure reason briefly (wrapper missing, compile error, timeout)
   - reduce overall confidence by one level
   - state each stability-related deduction as "inferred from source — not verified against compiler reports"

Stability deductions from step 5 are measured evidence and should be weighted normally. Fallback deductions from step 6 are inferred and must be flagged as such in the report.

### 5. Audit The Four Categories

Use the scoring rubric in `references/scoring.md` and the heuristics in `references/search-playbook.md`.

#### Performance

Focus on:

- expensive work in composition
- avoidable recomposition
- lazy list keys
- bad state-read timing
- unstable or overly broad reads
- backwards writes
- obvious release-performance hygiene where visible

#### State Management

Focus on:

- hoisting correctness
- single source of truth
- reusable stateless seams
- correct use of `remember` vs `rememberSaveable`
- lifecycle-aware observable collection
- observable vs non-observable mutable state

#### Side Effects

Focus on:

- side effects incorrectly done in composition
- correct effect API choice
- effect keys
- stale lambda capture
- cleanup correctness
- lifecycle-aware effect behavior

#### Composable API Quality

Focus on reusable internal components, not every leaf screen.

Check:

- `modifier` presence and placement
- parameter order
- explicit over implicit configuration
- meaningful defaults
- avoiding `MutableState<T>` or `State<T>` parameters in reusable APIs where a better shape exists
- component purpose and layering

### 6. Verify Findings

Before deducting points:

- read the file where the smell appears
- make sure the pattern is real, not a false positive
- check whether the repo already has a compensating pattern elsewhere
- distinguish one-off mistakes from systemic patterns
- for stability findings (skippable / restartable / unstable params), use the compiler reports generated in Step 4. Cite the specific report line (e.g. `app/build/compose_audit/app_release-classes.txt:42`) as evidence. Only fall back to source-inferred stability claims if Step 4 failed, and label them as such.

### 7. Score

Assign each category a `0-10` score and a status:

- `0-3`: fail
- `4-6`: needs work
- `7-8`: solid
- `9-10`: excellent

Use the weights in `references/scoring.md` to compute the overall score.

**Measured ceilings are mandatory, not suggestive.** When Step 4 produced compiler reports, the Performance rubric in `references/scoring.md` defines a ceiling based on `skippable%` and unstable-param count. After arriving at a qualitative Performance score, you MUST apply the ceiling and lower the score if it exceeds the cap. Show the math in the report:

```
Performance ceiling check:
  skippable% = 186/273 = 68.1% → falls in 50-70% band → cap at 4
  qualitative score: 7
  applied score: 4 (ceiling lowered from 7)
```

Do not round `skippable%` up into a higher band. `68.1%` is not `≥70%`. If a qualitative score lands at or below the ceiling, no adjustment is needed — but the check itself must appear in the report so the reader can audit it.

If a category genuinely has too little auditable surface area, mark it `N/A`, explain why, and renormalize the remaining weights.

### 8. Write The Report

Use `references/report-template.md`.

The report must include:

- overall score
- category score table
- top critical findings
- category-by-category reasoning
- evidence file paths
- prioritized remediation list
- optional follow-up note to run `material-3` if design issues are suspected

Write the report to:

- `COMPOSE-AUDIT-REPORT.md` inside the audited target (the path the user passed), not the current working directory.

If `COMPOSE-AUDIT-REPORT.md` already exists at that path, do not overwrite it silently. Either confirm overwrite with the user, or write to `COMPOSE-AUDIT-REPORT-<YYYY-MM-DD>.md` alongside it.

### 9. Return A Short Summary

In chat, produce a summary that mirrors the report's `Prioritized Fixes` section — not a generic recap. The developer should be able to act on the summary alone without opening the report file.

Include:

- overall score (and the delta vs. any prior `COMPOSE-AUDIT-REPORT*.md` at the same path, if present)
- one-line judgment for each category, with the applied ceiling if any (e.g. "Performance 6/10 — capped by 79% skippability")
- compiler-report highlights when Step 4 succeeded: Strong Skipping on/off, `skippable%`, count of unstable shared types, any module that failed to build
- **top three actionable fixes**, each with:
  - the concrete change ("add `key = { it.id }` to `items(...)` in `feed/FeedList.kt:42`")
  - file path(s) and line numbers — the same ones listed in the report's Prioritized Fixes
  - one official doc URL from `references/canonical-sources.md`
  - expected impact ("unlocks skipping for `FeedItem`, should move `skippable%` from 79% → ~90%")
- whether a `material-3` audit is worth running next

The top-three fixes in the chat summary MUST be the same items as the report's `Prioritized Fixes` list (same file paths, same doc links). Do not add generic advice in chat that isn't in the written report.

## Evidence Rules

- Prefer multiple examples over one dramatic example.
- Use positive evidence too, not just failures.
- Do not infer runtime problems you cannot justify from the code.
- When a rule is based on official guidance but app-level tradeoffs may justify deviation, call it out as a tradeoff instead of pretending it is always wrong.

## Large Repo Strategy

For medium or large repositories:

1. Map modules first.
2. Pick representative files per module.
3. Parallelize category scans when possible.
4. Merge repeated findings into systemic issues instead of listing the same smell twenty times.

## What To Avoid

- Do not produce a generic checklist with no repository evidence.
- Do not turn the report into a public-library API lecture if the repo is an app.
- Do not inflate the performance score just because the app uses Compose.
- Do not over-penalize isolated experiments or sample files unless they are part of production paths.
- Do not score design in v1.
- Do not flag `LaunchedEffect(Unit)` or `LaunchedEffect(true)` on its own — the "run once" pattern is idiomatic. Only flag it when the body captures a value that may change without `rememberUpdatedState`.
- Do not deduct on Compose Multiplatform code paths for Android-only APIs (`collectAsStateWithLifecycle`, `lifecycle-runtime-compose`). Note the platform constraint as a tradeoff instead.
- Do not double-count the same root cause across categories. A stability problem typically surfaces in both Performance and State — pick the dominant category and cross-reference.

## References

- `references/scoring.md` — per-rule rubric with inline citations
- `references/search-playbook.md` — search patterns and red-flag heuristics
- `references/report-template.md` — required structure for `COMPOSE-AUDIT-REPORT.md`
- `references/canonical-sources.md` — the official URLs every deduction must cite
- `references/diagnostics.md` — copy-pasteable Gradle/code snippets for Compose Compiler reports, stability config, baseline profiles, and R8 checks
- `scripts/compose-reports.init.gradle` — Gradle init script the skill injects via `--init-script` in Step 4 to generate compiler reports automatically


================================================
FILE: .claude/skills/jetpack-compose-audit/references/canonical-sources.md
================================================
# Canonical Sources

Use these as the source of truth for v1 scoring and guidance. **Every deduction in the audit report must cite at least one of these URLs** (or one of their officially-linked sub-pages) — see `report-template.md` for the citation format.

## Primary Sources

### Performance

- Android Developers: `Follow best practices`  
  `https://developer.android.com/develop/ui/compose/performance/bestpractices`
- Android Developers: `Jetpack Compose Performance`  
  `https://developer.android.com/develop/ui/compose/performance`
- Android Developers: `Compose phases`  
  `https://developer.android.com/develop/ui/compose/performance/phases`
- Android Developers: `Stability`  
  `https://developer.android.com/develop/ui/compose/performance/stability`
- Android Developers: `Diagnose stability problems`  
  `https://developer.android.com/develop/ui/compose/performance/stability/diagnose`
- Android Developers: `Fix stability issues`  
  `https://developer.android.com/develop/ui/compose/performance/stability/fix`
- Android Developers: `Strong Skipping Mode`  
  `https://developer.android.com/develop/ui/compose/performance/stability/strongskipping`
- Android Developers: `Performance tooling` (Compose Compiler reports / metrics)  
  `https://developer.android.com/develop/ui/compose/performance/tooling`
- Android Developers: `Baseline profiles`  
  `https://developer.android.com/develop/ui/compose/performance/baseline-profiles`

These ground:

- `remember` for expensive work
- lazy list keys
- `derivedStateOf`
- deferred state reads
- lambda modifiers
- backwards writes
- stability annotations (`@Stable`, `@Immutable`), `kotlinx.collections.immutable`, `compose_compiler_config.conf`
- Strong Skipping Mode (default since Kotlin 2.0.20), `@NonSkippableComposable`, `@DontMemoize`
- Compose Compiler reports / metrics as the primary diagnostic for skippability and stability
- performance mindset and baseline-profile awareness

### State

- Android Developers: `State and Jetpack Compose`  
  `https://developer.android.com/develop/ui/compose/state`
- Android Developers: `State hoisting`  
  `https://developer.android.com/develop/ui/compose/state-hoisting`
- Android Developers: `Architecting your Compose UI`  
  `https://developer.android.com/develop/ui/compose/architecture`
- Android Developers: `Lists and grids` (lazy keys, `contentType`)  
  `https://developer.android.com/develop/ui/compose/lists`

These ground:

- state hoisting rules
- stateful vs stateless composables
- `remember` vs `rememberSaveable`
- observable vs non-observable mutable state
- lifecycle-aware collection of observable state
- plain state-holder classes
- ViewModel as screen-level source of truth and the rules around `viewModel()` placement
- lazy-list `key` and `contentType` semantics

### Side Effects

- Android Developers: `Side-effects in Compose`  
  `https://developer.android.com/develop/ui/compose/side-effects`

This grounds:

- side-effect-free composition
- `LaunchedEffect`
- `DisposableEffect`
- `SideEffect`
- `rememberUpdatedState`
- `produceState`
- lifecycle-aware effect behavior

### Composable API Quality

- Android Developers: `Style guidelines for Jetpack Compose APIs`  
  `https://developer.android.com/develop/ui/compose/api-guidelines`
- AndroidX component guidelines: `API Guidelines for @Composable components in Jetpack Compose`  
  `https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md`
- AndroidX general guidelines: `API Guidelines for Jetpack Compose`  
  `https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-api-guidelines.md`
- Android Developers: `Custom modifiers` (`Modifier.Node`, `composed { }` discouraged)  
  `https://developer.android.com/develop/ui/compose/custom-modifiers`
- Android Developers: `Locally scoped data with CompositionLocal`  
  `https://developer.android.com/develop/ui/compose/compositionlocal`
- Android Developers: `Navigation with Compose`  
  `https://developer.android.com/develop/ui/compose/navigation`

These ground:

- `modifier` conventions
- parameter order
- explicit vs implicit dependencies
- meaningful defaults
- component layering
- avoiding `MutableState<T>` and `State<T>` in reusable APIs when better shapes exist
- custom modifier authoring with `Modifier.Node` over the discouraged `composed { }` factory
- when `CompositionLocal` is appropriate (tree-scoped data with sensible defaults) vs when explicit parameters are required
- navigation patterns and where navigation calls belong

## Supplemental Sources

These are useful for extra examples and ecosystem framing, but they do **not** override the primary sources. Community blog posts age fast — when the supplemental and primary sources disagree, the primary AndroidX/Android docs win:

- `https://github.com/skydoves/compose-performance`
- `https://medium.com/@idaoskooei/building-better-uis-with-jetpack-compose-best-practices-and-techniques-a1c8953bc5b8`

## Adjacent Skill Pattern

This skill intentionally pairs well with the `material-3` skill, which covers Material 3 design and design-system audit concerns. The reference implementation lives at `https://github.com/hamen/material-3-skill`, but recommend it by skill name (`material-3`) so the reference does not rot if the URL moves.

This Compose audit skill should mention `material-3` as a follow-up when visual or design-system problems are suspected, but should not score design in v1.


================================================
FILE: .claude/skills/jetpack-compose-audit/references/diagnostics.md
================================================
# Diagnostics

Copy-pasteable Gradle and code snippets the auditor can recommend (or run themselves) to back findings with measured evidence rather than source inference. Every snippet is anchored to an official source — cite the same URL in the report.

## 1. Compose Compiler Reports & Metrics

The single highest-leverage diagnostic. Generates per-composable skippability and per-class stability reports, plus aggregate metrics.

**Reference:** <https://developer.android.com/develop/ui/compose/performance/tooling>, <https://developer.android.com/develop/ui/compose/performance/stability/diagnose>

### Primary path — automatic (what the skill actually does)

The skill ships a Gradle init script at `scripts/compose-reports.init.gradle`. SKILL.md Step 4 runs it against the target without modifying any of the user's files:

```bash
cd <target> && ./gradlew <compile-task> \
    --init-script <skill-dir>/scripts/compose-reports.init.gradle \
    --no-daemon --quiet
```

The init script targets every module that applies the Compose Compiler plugin and writes reports to each module's `build/compose_audit/` directory. No `build.gradle.kts` edits are required on the target.

### Fallback path — manual edit (only when the init-script flow is blocked)

If the auditor (human or skill) cannot use `--init-script` — for example, a locked-down CI that rejects unknown init scripts — ask the user to add this block to the module's `build.gradle.kts`:

```kotlin
composeCompiler {
    reportsDestination = layout.buildDirectory.dir("compose_compiler")
    metricsDestination = layout.buildDirectory.dir("compose_compiler")
}
```

(Requires the Compose Compiler Gradle plugin, default since Kotlin 2.0. On older toolchains use `kotlinOptions.freeCompilerArgs += ["-P", "plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=..."]`.)

### Reading the output

Run a release-variant build, then inspect:

- `*-classes.txt` — stability inference per class (`stable` / `unstable` / `runtime`)
- `*-composables.txt` — per-composable `skippable` / `restartable` / `readonly` flags
- `*-composables.csv` — same data, machine-readable
- `*-module.json` — aggregate counts

**Use in the audit:** when a Performance or State finding alleges an unstable param or non-skippable composable, cite the relevant line of `*-classes.txt` or `*-composables.txt`. Without these reports, stability claims are *inferred* — say so explicitly in the report's Notes And Limits.

## 2. `compose_compiler_config.conf` — Marking Third-Party Types Stable

When unstable types come from modules without the Compose compiler (e.g. third-party data classes), mark them stable from outside.

**Reference:** <https://developer.android.com/develop/ui/compose/performance/stability/fix>

Create `compose_compiler_config.conf` at the project root (one fully-qualified class per line, glob patterns allowed):

```conf
# Mark third-party types stable so Compose can skip composables that take them
com.example.thirdparty.Money
com.example.thirdparty.User
com.example.thirdparty.events.*
java.time.*
```

Wire it into the module's `build.gradle.kts`:

```kotlin
composeCompiler {
    stabilityConfigurationFiles.add(
        rootProject.layout.projectDirectory.file("compose_compiler_config.conf")
    )
}
```

**Use in the audit:** if a project consumes third-party types in widely reused composables and skipping is broken, recommend a stability config file before recommending wrapper UI models.

## 3. Baseline Profile Module Skeleton

Improves cold start and frame timing by precompiling hot paths. The presence of a baseline profile module + `ProfileInstaller` in the consumer is a positive Performance signal.

**Reference:** <https://developer.android.com/develop/ui/compose/performance/baseline-profiles>, <https://developer.android.com/topic/performance/baselineprofiles/overview>

Module `:baselineprofile` (a `com.android.test` module) `build.gradle.kts`:

```kotlin
plugins {
    id("com.android.test")
    id("org.jetbrains.kotlin.android")
    id("androidx.baselineprofile")
}

android {
    targetProjectPath = ":app"
    defaultConfig { minSdk = 28 }
}

dependencies {
    implementation("androidx.test.ext:junit:1.2.1")
    implementation("androidx.test.uiautomator:uiautomator:2.3.0")
    implementation("androidx.benchmark:benchmark-macro-junit4:1.3.4")
}
```

Generator class:

```kotlin
@RunWith(AndroidJUnit4::class)
class BaselineProfileGenerator {
    @get:Rule val rule = BaselineProfileRule()

    @Test
    fun generate() = rule.collect(packageName = "com.example.app") {
        startActivityAndWait()
        // exercise the user-critical journey
    }
}
```

In the consumer (`:app`):

```kotlin
plugins {
    id("androidx.baselineprofile")
}

dependencies {
    "baselineProfile"(project(":baselineprofile"))
    implementation("androidx.profileinstaller:profileinstaller:1.4.1")
}
```

**Use in the audit:** check for a `baseline-prof.txt` artifact and a `ProfileInstaller` initializer. Their absence on a mature app is worth flagging; their presence is positive evidence.

## 4. R8 / Minify Hygiene

Compose performance assumes release-mode R8. Debug builds run unoptimized — never benchmark them.

**Reference:** <https://developer.android.com/develop/ui/compose/performance> ("Run in Release Mode with R8")

In `:app/build.gradle.kts`:

```kotlin
android {
    buildTypes {
        release {
            isMinifyEnabled = true
            isShrinkResources = true
            proguardFiles(
                getDefaultProguardFile("proguard-android-optimize.txt"),
                "proguard-rules.pro",
            )
        }
    }
}
```

**Use in the audit:** quick grep — `rg -n 'isMinifyEnabled' -g '*.gradle*'`. If the release block has `isMinifyEnabled = false`, that's a release-hygiene deduction on its own.

## 5. Strong Skipping Mode Confirmation

Strong Skipping is on by default at Kotlin 2.0.20+. Below that, stability matters more aggressively and the rubric should weight unstable-param findings higher.

**Reference:** <https://developer.android.com/develop/ui/compose/performance/stability/strongskipping>

Confirm the project's Kotlin version:

```bash
rg -n 'kotlin\s*=\s*"' -g '*.toml'
rg -n 'org\.jetbrains\.kotlin' -g '*.gradle*'
```

If the project explicitly opts a module *out* of Strong Skipping, look for `enableStrongSkippingMode = false` in any `composeCompiler { ... }` block — flag and require justification.

## 6. Quick Triage Recipe

When you arrive at a Compose repo, run these in order before scoring:

1. `rg -n 'androidx\.compose' -g '*.gradle*' -g '*.toml'` — confirm Compose presence (fast-fail).
2. `rg -n 'kotlin\s*=\s*"' -g '*.toml'` — record Kotlin version (Strong Skipping baseline).
3. `rg -n 'isMinifyEnabled' -g '*.gradle*'` — release hygiene.
4. Run Step 4 of SKILL.md — the init script generates compiler reports automatically. If the build fails, read any existing `composeCompiler { reportsDestination ... }` output the project already produces; otherwise note the fallback in the report.
5. `rg -l 'baselineProfile|ProfileInstaller' -g '*.gradle*' -g '*.kt'` — baseline-profile presence.

These five greps tell you what kind of evidence is available before any rubric-level reading.


================================================
FILE: .claude/skills/jetpack-compose-audit/references/report-template.md
================================================
# Report Template

Write the audit report to `COMPOSE-AUDIT-REPORT.md` using this structure.

**Citation rule:** every finding (Critical Findings *and* per-category Evidence bullets) must include a `References:` line with at least one URL pointing to the official documentation rule the code violates. Use the URLs in `references/canonical-sources.md` and `references/scoring.md`. A finding without a citation should not appear in the report — that's the credibility lever this audit relies on.

```markdown
# Jetpack Compose Audit Report

Target: [repo path or module path]
Date: [YYYY-MM-DD]
Scope: [modules or directories audited]
Excluded from scoring: [paths or globs treated as samples / tests / previews]
Confidence: [High | Medium | Low]
Overall Score: [X/100]

## Scorecard

| Category | Score | Weight | Status | Notes |
|----------|-------|--------|--------|-------|
| Performance | X/10 | 35% | [fail / needs work / solid / excellent] | [short note] |
| State management | X/10 | 25% | [fail / needs work / solid / excellent] | [short note] |
| Side effects | X/10 | 20% | [fail / needs work / solid / excellent] | [short note] |
| Composable API quality | X/10 | 20% | [fail / needs work / solid / excellent] | [short note] |

## Critical Findings

List the most important findings first. Each finding should include:

- severity
- why it matters
- 2-4 concrete file examples
- the likely fix direction

Example format:

1. **Performance: repeated expensive work happens inside composition**
   - Why it matters: [brief reason]
   - Evidence: `path/a.kt:42`, `path/b.kt:117`
   - Fix direction: [brief recommendation]
   - References: <https://developer.android.com/develop/ui/compose/performance/bestpractices>

## Category Details

### Performance — [X/10]

**What is working**

- [positive evidence]

**What is hurting the score**

- [problem 1]
- [problem 2]

**Evidence**

- `path/to/file1.kt:LL` — [brief reason] · References: <https://developer.android.com/...>
- `path/to/file2.kt:LL` — [brief reason] · References: <https://developer.android.com/...>

### State Management — [X/10]

**What is working**

- [positive evidence]

**What is hurting the score**

- [problem 1]
- [problem 2]

**Evidence**

- `path/to/file1.kt:LL` — [brief reason] · References: <https://developer.android.com/...>
- `path/to/file2.kt:LL` — [brief reason] · References: <https://developer.android.com/...>

### Side Effects — [X/10]

**What is working**

- [positive evidence]

**What is hurting the score**

- [problem 1]
- [problem 2]

**Evidence**

- `path/to/file1.kt:LL` — [brief reason] · References: <https://developer.android.com/...>
- `path/to/file2.kt:LL` — [brief reason] · References: <https://developer.android.com/...>

### Composable API Quality — [X/10]

**What is working**

- [positive evidence]

**What is hurting the score**

- [problem 1]
- [problem 2]

**Evidence**

- `path/to/file1.kt:LL` — [brief reason] · References: <https://developer.android.com/...>
- `path/to/file2.kt:LL` — [brief reason] · References: <https://developer.android.com/...>

## Prioritized Fixes

1. [Highest leverage fix]
2. [Second fix]
3. [Third fix]
4. [Optional follow-up]

## Notes And Limits

- [state if only part of the repo was audited]
- [state if confidence is medium/low]
- [state if some categories had limited surface area]
- Weight choice: [default 35/25/20/20, or note any deviation and why]
- Renormalization: [list any N/A categories and the renormalized weights]
- Compiler diagnostics used: [yes / no — link to the Compose Compiler reports if generated; "no" means stability claims are inferred from source, not measured]

## Suggested Follow-Up

- Run `material-3` audit if the repo also shows likely design-system or Material 3 problems.
```

## Tone

- Keep the tone strict and direct.
- Avoid filler praise.
- Give credit only where the codebase actually demonstrates good patterns.
- Prefer a few strong findings over dozens of weak bullets.


================================================
FILE: .claude/skills/jetpack-compose-audit/references/scoring.md
================================================
# Scoring

## Category Weights

Use these default weights for Android Jetpack Compose app repositories:

| Category | Weight |
|----------|--------|
| Performance | 35% |
| State management | 25% |
| Side effects | 20% |
| Composable API quality | 20% |

Performance carries the heaviest weight in v1 because Compose performance issues are the most common reason teams audit a codebase, and the smells are the most measurable from source alone. For state-heavy apps with little perf-sensitive UI (forms, dashboards, settings), a 30/30/20/20 split is reasonable — apply judgment and document the choice in the report's "Notes And Limits" section.

### N/A vs Low Confidence

Mark a category `N/A` only when its surface area is structurally absent — for example, scoring API quality on a repo with zero shared/reusable components. If the surface area is merely thin, score it with `Low` confidence instead of dropping it. `N/A` should be rare.

### Renormalization

If a category is `N/A`, renormalize the remaining weights so they still sum to 1.0:

`weight_i_new = weight_i / sum(remaining_weights)`

Worked example — Composable API quality is `N/A`, so the remaining weights are Performance (35%), State (25%), Side effects (20%), summing to 80%:

- Performance: `0.35 / 0.80 = 0.4375` → 44%
- State: `0.25 / 0.80 = 0.3125` → 31%
- Side effects: `0.20 / 0.80 = 0.2500` → 25%

State the renormalization in the report.

## Score Bands

| Score | Status | Meaning |
|-------|--------|---------|
| 0-3 | fail | Systemic issues, repeated misuse, or architecture-level risk |
| 4-6 | needs work | Mixed quality, recurring smells, meaningful refactor value |
| 7-8 | solid | Mostly healthy with some targeted fixes needed |
| 9-10 | excellent | Consistently strong patterns, only minor issues |

## Overall Score

Report both:

- per-category scores on a `0-10` scale
- an overall score on a `0-100` scale

Compute:

`overall = weighted_average(category_scores) * 10`

Round to the nearest whole number.

## Confidence

Add a confidence note in the report:

- `High`: enough Compose surface area, multiple representative modules/files read
- `Medium`: some categories based on limited sample size
- `Low`: small repo, partial module access, or sparse Compose surface

Low confidence does not block scoring, but it must be stated clearly.

## Category Rubric

Each rule below carries an inline citation. **Every deduction in the report must reference the same citation** so readers can verify against the official source.

### Performance

Reward:

- expensive calculations cached with `remember(keys)` or moved out of composition → [docs](https://developer.android.com/develop/ui/compose/performance/bestpractices)
- stable `key =` in lazy layouts where list identity matters → [docs](https://developer.android.com/develop/ui/compose/lists)
- `contentType` on heterogeneous lazy lists, so Compose can reuse compositions only between items of the same type → [docs](https://developer.android.com/develop/ui/compose/lists)
- `derivedStateOf` used for state that changes faster than its observable output (e.g. scroll position → "show button" boolean) → [docs](https://developer.android.com/develop/ui/compose/side-effects)
- deferred reads via lambda modifiers (`Modifier.offset { … }`, `Modifier.graphicsLayer { … }`, `Modifier.drawBehind { … }`) → [docs](https://developer.android.com/develop/ui/compose/performance/bestpractices), [phases](https://developer.android.com/develop/ui/compose/performance/phases)
- absence of backwards writes (writing to state that has already been read in the same composition) → [docs](https://developer.android.com/develop/ui/compose/performance/bestpractices)
- stability hygiene: `@Stable` / `@Immutable` on data classes used as composable params → [docs](https://developer.android.com/develop/ui/compose/performance/stability)
- `kotlinx.collections.immutable` (`ImmutableList`, `PersistentList`) for collection params → [stability](https://developer.android.com/develop/ui/compose/performance/stability), [fix](https://developer.android.com/develop/ui/compose/performance/stability/fix)
- `compose_compiler_config.conf` used to mark third-party types stable → [fix](https://developer.android.com/develop/ui/compose/performance/stability/fix)
- typed state factories (`mutableIntStateOf`, `mutableLongStateOf`, `mutableFloatStateOf`, `mutableDoubleStateOf`) for primitives instead of boxed `mutableStateOf<Int>` → [state](https://developer.android.com/develop/ui/compose/state)
- `@ReadOnlyComposable` / `@NonRestartableComposable` used deliberately on hot-path helpers → [strong skipping](https://developer.android.com/develop/ui/compose/performance/stability/strongskipping)
- evidence of Strong Skipping Mode awareness (Kotlin 2.0.20+ / Compose Compiler 1.5.4+); opt-outs (`@NonSkippableComposable`, `@DontMemoize`) used only with justification → [strong skipping](https://developer.android.com/develop/ui/compose/performance/stability/strongskipping)
- evidence of performance-aware configuration such as baseline profiles, R8 / minify enabled in release, or `ProfileInstaller` setup → [baseline profiles](https://developer.android.com/develop/ui/compose/performance/baseline-profiles)
- `ReportDrawnWhen { ... }` used to signal first-meaningful-content for accurate TTID/TTFD metrics → [tooling](https://developer.android.com/develop/ui/compose/performance/tooling)
- edge-to-edge opt-in via `enableEdgeToEdge()` (first-party) rather than `accompanist-systemuicontroller` on projects that support it → [lists](https://developer.android.com/develop/ui/compose/lists)
- evidence the team uses Compose Compiler reports / metrics to verify skippability → [tooling](https://developer.android.com/develop/ui/compose/performance/tooling), [diagnose](https://developer.android.com/develop/ui/compose/performance/stability/diagnose)

Deduct for:

- collection transforms or expensive computation inside composable bodies without caching → [docs](https://developer.android.com/develop/ui/compose/performance/bestpractices)
- lazy list items without stable keys when identity/moves matter → [lists](https://developer.android.com/develop/ui/compose/lists)
- heterogeneous lazy lists missing `contentType` → [lists](https://developer.android.com/develop/ui/compose/lists)
- reading rapidly changing state too high in the tree → [phases](https://developer.android.com/develop/ui/compose/performance/phases), [bestpractices](https://developer.android.com/develop/ui/compose/performance/bestpractices)
- frequent-state values passed to non-lambda modifiers when a layout/draw-phase alternative exists → [bestpractices](https://developer.android.com/develop/ui/compose/performance/bestpractices)
- backwards writes — writing to state already read in the same composition body → [bestpractices](https://developer.android.com/develop/ui/compose/performance/bestpractices)
- repeated broad recomposition smells across screens/components → [stability](https://developer.android.com/develop/ui/compose/performance/stability)
- raw `List`/`Map`/`Set` parameters on widely reused composables when the rest of the codebase has the immutable-collections dependency available → [stability](https://developer.android.com/develop/ui/compose/performance/stability)
- `mutableStateOf<Int|Long|Float|Double>` where the typed factory exists (autoboxing) → [state](https://developer.android.com/develop/ui/compose/state)
- `derivedStateOf { ... }` whose block does not actually read any `State` object (meaning it will never invalidate, and the overhead of `derivedStateOf` is wasted) → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- `@NonSkippableComposable` / `@DontMemoize` opt-outs without a justifying comment → [strong skipping](https://developer.android.com/develop/ui/compose/performance/stability/strongskipping)
- if the project is on a Compose Compiler track older than 1.5.4 / Kotlin 2.0.20, stability matters more than the rules above assume — note this in the report and weight unstable-param findings more heavily → [strong skipping](https://developer.android.com/develop/ui/compose/performance/stability/strongskipping)
- `remember { … }` whose body reads `LocalConfiguration`, `LocalDensity`, or `LocalLayoutDirection` without declaring those values as keys — the cached value silently goes stale on rotation / foldable posture / font-scale changes → [state](https://developer.android.com/develop/ui/compose/state)
- `indexOf()` / `lastIndexOf()` / `indexOfFirst { }` called inside a `LazyListScope` item factory — O(n²) scroll cost and crash risk when identity moves; use `itemsIndexed` instead → [lists](https://developer.android.com/develop/ui/compose/lists)
- `animateItemPlacement()` on Compose 1.7+ — replaced by `Modifier.animateItem()` → [lists](https://developer.android.com/develop/ui/compose/lists)
- Accompanist libraries where first-party replacements exist: `accompanist-pager` (→ `HorizontalPager`), `accompanist-swiperefresh` (→ `PullToRefreshBox`), `accompanist-flowlayout` (→ `FlowRow` / `FlowColumn`), `accompanist-systemuicontroller` (→ `enableEdgeToEdge()`) — deduct only when the replacement is available on the project's Compose version → [lists](https://developer.android.com/develop/ui/compose/lists)
- `Canvas` / `Spacer` with only `Modifier.fillMaxSize()` and no explicit height or aspect ratio — may enter draw with `Size.Zero`, producing `NaN` math and Skia-pipeline crashes. Require `Modifier.size(...)`, `Modifier.height(...)`, or `Modifier.aspectRatio(...)` on drawing surfaces → [bestpractices](https://developer.android.com/develop/ui/compose/performance/bestpractices)
- lazy-list `key = { ... }` computed from a source that cannot guarantee uniqueness (merged flows, paginated streams, `hashCode()` on non-`data class`) — `IllegalArgumentException: Key ... was already used` crashes production. Verify with the duplicate-lazy-key heuristic in `search-playbook.md` → [lists](https://developer.android.com/develop/ui/compose/lists)

Suggested interpretation:

- `9-10`: clean patterns are common and performance smells are rare
- `7-8`: minor or localized issues
- `4-6`: repeated recomposition or lazy-list issues
- `0-3`: serious, widespread performance problems or unsafe state-write patterns

#### Measured Ceilings (apply when compiler reports are available)

Compiler reports generated in Step 4 give hard numbers. When present, apply these ceilings *after* qualitative scoring — a category cannot exceed the cap even if qualitative evidence is strong. Report the applied ceiling in the Performance section so the score is auditable.

Let `skippable%` = `skippableComposables / restartableComposables` from `*-module.json`.
However, because zero-argument lambdas structurally cannot skip and artificially anchor this overall metric, you MUST also compute the **named-only `skippable%`** from `*-composables.csv` (by filtering out rows where `isLambda == "1"`). Use this **named-only percentage** for the ceiling conditions below, and state the distinction clearly in the report.

| Condition | Ceiling |
|-----------|---------|
| `skippable%` ≥ 95% and zero unstable classes used as shared/reusable composable params | no cap (9-10 possible) |
| `skippable%` ≥ 85% and ≤3 unstable classes used as shared/reusable composable params | cap at 8 |
| `skippable%` 70-85% or 4-7 unstable classes used as params | cap at 6 |
| `skippable%` 50-70% or ≥8 unstable classes used as params | cap at 4 |
| `skippable%` < 50% | cap at 3 |
| Strong Skipping disabled on a Kotlin 2.0.20+ project without written justification | cap at 4 |
| `@NonSkippableComposable` / `@DontMemoize` used on hot-path composables without justification | cap at 5 |

When compiler reports are **not** available (Step 4 failed, `Compiler diagnostics used: no`), ceilings do not apply — rely on source-inferred judgment, but cap any Performance score at 7 to reflect reduced confidence.

If a non-trivial subset of modules failed to build (partial reports), state which modules contributed and treat `skippable%` as a floor estimate rather than a ground truth.

### State Management

Reward:

- clear single source of truth → [architecture](https://developer.android.com/develop/ui/compose/architecture)
- correct hoisting to the lowest common reader / highest writer → [state hoisting](https://developer.android.com/develop/ui/compose/state-hoisting)
- related state hoisted together when driven by the same events → [state hoisting](https://developer.android.com/develop/ui/compose/state-hoisting)
- stateless reusable composables with stateful wrappers where useful → [state hoisting](https://developer.android.com/develop/ui/compose/state-hoisting)
- `rememberSaveable` for UI state that should survive recreation → [state](https://developer.android.com/develop/ui/compose/state)
- custom `Saver` / `mapSaver` / `listSaver` / `@Parcelize` for non-bundleable types in `rememberSaveable` → [state](https://developer.android.com/develop/ui/compose/state)
- `collectAsStateWithLifecycle()` in Android UI code → [state](https://developer.android.com/develop/ui/compose/state)
- observable immutable state instead of mutable non-observable containers → [state](https://developer.android.com/develop/ui/compose/state)
- correct observable collections via `mutableStateListOf` / `mutableStateMapOf` instead of wrapping `mutableListOf`/`mutableMapOf` in a `MutableState` → [state](https://developer.android.com/develop/ui/compose/state)
- typed state factories (`mutableIntStateOf` and friends) — cross-listed with Performance because the failure mode is autoboxing → [state](https://developer.android.com/develop/ui/compose/state)
- plain state-holder classes when screen logic grows; idiomatic shape is `@Stable class FooState(...)` paired with a `@Composable fun rememberFooState(...): FooState` factory → [architecture](https://developer.android.com/develop/ui/compose/architecture)
- ViewModel used as the source of truth for screen-level state, scoped at the screen level (not deep in the tree, not inside reusable components) → [architecture](https://developer.android.com/develop/ui/compose/architecture), [state](https://developer.android.com/develop/ui/compose/state)
- ViewModel-exposed flows converted with `.stateIn(scope, SharingStarted.WhileSubscribed(5_000), initial)` — survives configuration changes without restarting upstream work → [architecture](https://developer.android.com/develop/ui/compose/architecture)
- `remember(key)` invalidation when cached values depend on inputs → [state](https://developer.android.com/develop/ui/compose/state)

Deduct for:

- duplicated or split ownership of state → [state hoisting](https://developer.android.com/develop/ui/compose/state-hoisting)
- under-hoisted shared state → [state hoisting](https://developer.android.com/develop/ui/compose/state-hoisting)
- reusable components with unnecessary internal state → [state hoisting](https://developer.android.com/develop/ui/compose/state-hoisting)
- misuse of `remember` where `rememberSaveable` is more appropriate → [state](https://developer.android.com/develop/ui/compose/state)
- non-observable mutable collections or mutable data holders used as state (`mutableListOf` held in a `var`, `ArrayList` mutated in place) → [state](https://developer.android.com/develop/ui/compose/state)
- `mutableListOf` / `mutableMapOf` wrapped in a `MutableState` where `mutableStateListOf` / `mutableStateMapOf` would correctly observe element changes → [state](https://developer.android.com/develop/ui/compose/state)
- Android flows collected in UI without lifecycle awareness when the code is Android-specific (skip on Compose Multiplatform code paths) → [state](https://developer.android.com/develop/ui/compose/state)
- state scattered across multiple sibling composables without a clear owner → [state hoisting](https://developer.android.com/develop/ui/compose/state-hoisting)
- `remember { computeFromInput(x) }` with no `key` — stale cached value when `x` changes → [state](https://developer.android.com/develop/ui/compose/state)
- `viewModel()` invoked deep in a composable tree (rather than at the screen entry point) or ViewModels passed via `CompositionLocal` → [architecture](https://developer.android.com/develop/ui/compose/architecture), [compositionlocal](https://developer.android.com/develop/ui/compose/compositionlocal)
- `rememberSaveable { mutableStateOf(SomeNonBundleable(...)) }` without a `Saver` — restoration silently fails after process death → [state](https://developer.android.com/develop/ui/compose/state)
- string-based navigation routes (`composable("home")`, `navigate("profile/$id")`) on Navigation Compose 2.8+ where type-safe `@Serializable` routes are available — loses compile-time checking and encourages argument-encoding bugs → [navigation](https://developer.android.com/develop/ui/compose/navigation)
- `mutableStateOf` held in a `ViewModel` instead of `StateFlow` / `MutableStateFlow` — couples the ViewModel to the Compose runtime and hurts testability. App-level teams may accept this tradeoff deliberately; note the tradeoff rather than deducting heavily unless it is widespread → [architecture](https://developer.android.com/develop/ui/compose/architecture)
- `Channel<UiEvent>` exposed as the one-shot event stream from a ViewModel without a buffered `SharedFlow` alternative — events silently drop when there is no active collector (configuration change, lifecycle transition). Prefer `MutableSharedFlow(extraBufferCapacity = 1, onBufferOverflow = DROP_OLDEST)` → [architecture](https://developer.android.com/develop/ui/compose/architecture)
- `rememberSaveable` used inside a `LazyListScope` item factory (per-item expansion state, per-item form fields) — each entry is serialized into the saved-state `Bundle` which is capped at ~1 MB; large lists trigger `TransactionTooLargeException` → [state](https://developer.android.com/develop/ui/compose/state)

Suggested interpretation:

- `9-10`: strong UDF, clear ownership, minimal ambiguity
- `7-8`: mostly healthy with some hoisting or saveability gaps
- `4-6`: repeated ownership confusion or weak state boundaries
- `0-3`: systemic duplication, stale data risks, or non-observable state misuse

### Side Effects

All citations in this category point to the canonical [Side-effects in Compose](https://developer.android.com/develop/ui/compose/side-effects) page unless noted. The official docs put `derivedStateOf` and `snapshotFlow` under side-effects. v1 keeps `derivedStateOf` weighted under Performance because that's where its value most often lands in audits, but the side-effects category also looks at it for *misuse*. Pick the dominant category and cross-reference rather than double-counting.

Reward:

- side-effect-free composition → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- correct use of `LaunchedEffect`, `DisposableEffect`, `SideEffect`, `rememberUpdatedState`, and `produceState` → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- effects keyed to the right lifecycle inputs → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- cleanup for listeners, observers, and subscriptions → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- stale callback capture avoided with `rememberUpdatedState` when needed → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- `snapshotFlow { … }` collected from inside a `LaunchedEffect` for Compose-state → Flow conversions → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- `rememberCoroutineScope()` used only for event-driven work (button taps, gesture handlers); long-lived/keyed work lives in `LaunchedEffect` → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- navigation, snackbar, analytics, and repository calls live in event handlers or `LaunchedEffect`, never in the composition body → [side-effects](https://developer.android.com/develop/ui/compose/side-effects), [navigation](https://developer.android.com/develop/ui/compose/navigation)

Deduct for:

- launching threads, coroutines, navigation, or external work directly in composition → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- wrong effect API choice → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- incorrect or missing effect keys → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- stale captures in long-lived effects → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- empty or suspicious `onDispose` → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- listeners or observers registered without cleanup → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- `snapshotFlow { … }` invoked outside an effect, or used to compute values that `derivedStateOf` would handle more cheaply → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- `rememberCoroutineScope()` used to launch work that should live in a keyed `LaunchedEffect` (manual cancellation, lifecycle handling reinvented) → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- `derivedStateOf { a + b }`-style misuse where inputs change as often as outputs — pure overhead per the official guidance → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- `LaunchedEffect(Unit)` / `LaunchedEffect(true)` flagged only when the body captures parameter or state values that may change without being keyed or wrapped in `rememberUpdatedState`. The "run once on enter" pattern itself is idiomatic; do not deduct for it → [side-effects](https://developer.android.com/develop/ui/compose/side-effects)
- `navController.navigate(...)` invoked from the composition body instead of an event handler or effect → [navigation](https://developer.android.com/develop/ui/compose/navigation)

Suggested interpretation:

- `9-10`: deliberate, lifecycle-aware effect usage
- `7-8`: mostly correct with small effect-key or cleanup issues
- `4-6`: recurring misuse of effects or composition-time work
- `0-3`: side effects commonly happen in composition or cleanup is broadly unsafe

### Composable API Quality

This category is lighter-touch for app repositories. Focus on shared internal components, UI kits, and reusable building blocks. The two authoritative sources are the [Compose API guidelines](https://developer.android.com/develop/ui/compose/api-guidelines) and the deeper [Component API guidelines](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md).

Reward:

- reusable components expose `modifier: Modifier = Modifier` → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- `modifier` is the first optional parameter and applied once as the first link in the chain on the root-most UI node → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- parameter order is sensible: required, `modifier`, optional, trailing content lambda → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- defaults are meaningful and not hidden behind nullable sentinel behavior; defaults exposed through a `ComponentDefaults` object → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- explicit parameters preferred over component-specific `CompositionLocal` indirection. `CompositionLocal` is appropriate for *tree-scoped* data with sensible defaults (theme tokens like `LocalContentColor`, `LocalTextStyle`); not appropriate for component-specific configuration → [compositionlocal](https://developer.android.com/develop/ui/compose/compositionlocal), [api-guidelines](https://developer.android.com/develop/ui/compose/api-guidelines)
- components are focused and layered instead of multipurpose grab-bags → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- slot APIs (`content: @Composable RowScope.() -> Unit`) used for flexible composition; receiver scopes (`RowScope`, `ColumnScope`, `BoxScope`) applied where they guide layout → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- `Basic*` naming for unstyled / minimal variants alongside the opinionated public version (e.g. `BasicTextField` ↔ `TextField`) → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- distinct components for visual variants (`ContainedButton`, `OutlinedButton`, `TextButton`) instead of a single component with a `style` enum → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- `@Composable` functions are PascalCase and Unit-returning where they emit UI → [api-guidelines](https://developer.android.com/develop/ui/compose/api-guidelines)
- custom modifiers built with `Modifier.Node` rather than the discouraged `composed { }` factory → [custom modifiers](https://developer.android.com/develop/ui/compose/custom-modifiers)
- `movableContentOf` / `movableContentWithReceiverOf` used to preserve slot-content lifecycle when content moves between containers → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- reusable APIs prefer `value: T` (immediate read) or `value: () -> T` (deferred read) plus `onValueChange: (T) -> Unit` over `MutableState<T>` parameters → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- isolated components define `@Preview` configurations to prove they render stateless → [tooling](https://developer.android.com/develop/ui/compose/tooling/previews)

Deduct for:

- shared components missing `modifier` → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- multiple modifier params or modifier applied to the wrong child (anywhere other than the root-most emitted layout) → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- hardcoded strings in UI elements (e.g. `Text("Share with friends")` instead of `stringResource(id = R.string...)`) which break i18n support and create brittle tests → [resources](https://developer.android.com/develop/ui/compose/resources)
- hardcoded magic numbers like `.padding(12.dp)` or `.size(24.sp)` or explicit `Color(0xFF...)` instead of routing through `MaterialTheme` tokens or `dimensionResource`. A clean theme is vital for dark mode and accessibility → [theming](https://developer.android.com/develop/ui/compose/designsystems/material3)
- no `@Preview` coverage for extracted UI chunks. If a component is reusable, it should have a preview proving it has no hidden ambient dependencies → [tooling](https://developer.android.com/develop/ui/compose/tooling/previews)
- `modifier` with a non-no-op default like `Modifier.padding(8.dp)` (caller's modifier silently loses the padding) → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- parameter ordering that makes APIs awkward or misleading → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- nullable params used only as "use internal default" signals — expose the default explicitly via a `ComponentDefaults` object instead → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- passing raw network models, database entities, or complex domain objects directly into UI components instead of mapping them to stable, UI-specific presentation models (UiState). This leaks backend structure into the presentation tier, encourages giant data models, and often forces the Compose compiler to treat the arguments as unstable. → [architecture](https://developer.android.com/develop/ui/compose/architecture)
- `MutableState<T>` or `State<T>` params in reusable APIs when avoidable; the official replacement is `value: T` or `value: () -> T` plus `onValueChange: (T) -> Unit` → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- giant multipurpose components that should be split or wrapped → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- behavior added as parameters that should be modifiers (`onClick`, `clipToCircle`) → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- style/configuration objects passed to a single component instead of distinct components per variant → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- non-Compose lifecycles attached to composables — for example, an `onClick` callback on a layout component when `Modifier.clickable` would do → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- modifier ordering that quietly changes semantics in shared components (e.g. `Modifier.padding(...).clickable {}` extends the click region into the padding; `Modifier.clickable {}.padding(...)` does not). Flag when the choice looks accidental → [custom modifiers](https://developer.android.com/develop/ui/compose/custom-modifiers)
- hardcoded `dp`, `sp`, or explicit `Color` constructs in reusable components instead of using `MaterialTheme.colorScheme`, `MaterialTheme.typography`, or dimension resources; this destroys dark mode compliance and accessible font scaling → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)
- `CompositionLocal` used for component-specific configuration (vs. truly tree-scoped data); ViewModels stored in `CompositionLocal`; locals with no sensible default → [compositionlocal](https://developer.android.com/develop/ui/compose/compositionlocal)
- custom modifiers built with `Modifier.composed { }` when `Modifier.Node` would do — `composed { }` is officially discouraged for performance → [custom modifiers](https://developer.android.com/develop/ui/compose/custom-modifiers)
- `Scaffold { innerPadding -> ... }` content that does not apply `innerPadding` to its root child (or consume it via `consumeWindowInsets`) — content draws behind the `TopAppBar` / `BottomAppBar` / system bars → [component API](https://android.googlesource.com/platform/frameworks/support/+/androidx-main/compose/docs/compose-component-api-guidelines.md)

Suggested interpretation:

- `9-10`: shared UI APIs are clean, predictable, and reusable
- `7-8`: solid conventions with a few inconsistencies
- `4-6`: repeated API smell in shared components
- `0-3`: shared component APIs are confusing, rigid, or actively error-prone

## Scoring Rules

- One isolated issue should not tank a whole category.
- Repeated issues across several modules should count more than a single bad file.
- Production code matters more than samples, previews, or scratch files.
- Positive patterns should raise confidence and may offset minor issues.
- App teams may intentionally deviate from framework/library guidance. Note the tradeoff before deducting heavily.
- **Every deduction in the report must include a `References:` line citing one or more URLs from the rubric above (or from `references/canonical-sources.md`).** A deduction without a citation should not appear in the report.


================================================
FILE: .claude/skills/jetpack-compose-audit/references/search-playbook.md
================================================
# Search Playbook

Use this playbook to gather evidence quickly, then verify by reading representative files.

**Always scope ripgrep to Kotlin sources** with `-g '*.kt' -g '*.kts'` (or the `Grep` tool's `glob` parameter / `type: kotlin`) — the regexes below are written for Kotlin and produce noise on JVM/Java/JS files. For build-config searches, use `-g '*.gradle*' -g '*.toml'` instead.

## 1. Map The Repo First

Before category scoring, locate:

- Gradle settings and module declarations
- Android app and feature modules
- likely Compose source folders
- shared component or design-system directories
- theme packages
- screen packages
- ViewModels and state holders
- test and preview directories

Useful targets often include:

- `app/`
- `feature*/`
- `core/ui/`
- `designsystem/`
- `ui/components/`
- `ui/screens/`
- `presentation/`

## 2. Confirm Compose Surface Area

Search for:

- `@Composable`
- `MaterialTheme`
- `setContent`
- `ComposeView`
- `remember`
- `mutableStateOf`

If Compose usage is sparse, state that clearly in the report and reduce confidence.

## 3. Performance Checks

### Search For

- `remember\(`
- `derivedStateOf`
- `LazyColumn|LazyRow|LazyVerticalGrid|LazyHorizontalGrid|LazyVerticalStaggeredGrid|LazyHorizontalStaggeredGrid`
- `items\(`
- `itemsIndexed\(`
- `rememberLazyListState`
- `animate`
- `offset\(`
- `drawBehind`
- `sortedWith|sortedBy|filter|map|associate|groupBy`
- stability annotations and immutable collections: `@Stable`, `@Immutable`, `kotlinx\.collections\.immutable`, `ImmutableList`, `PersistentList`, `persistentListOf`, `compose_compiler_config`
- skipping opt-outs: `@NonSkippableComposable`, `@DontMemoize`
- typed state factories: `mutableIntStateOf`, `mutableLongStateOf`, `mutableFloatStateOf`, `mutableDoubleStateOf`
- composition-marker annotations: `@ReadOnlyComposable`, `@NonRestartableComposable`
- baseline / profile setup: `baselineProfile`, `ProfileInstaller`, `androidx\.profileinstaller`, `baseline-prof\.txt`
- deprecated/legacy APIs: `accompanist-pager`, `accompanist-swiperefresh`, `accompanist-flowlayout`, `accompanist-systemuicontroller`, `animateItemPlacement\(`
- config-derived reads inside `remember {}`: `LocalConfiguration`, `LocalDensity`, `LocalLayoutDirection`
- `\.indexOf\(|\.lastIndexOf\(|\.indexOfFirst\s*\{` inside lazy item factories
- `Canvas\s*\(` and `Spacer\s*\(` — check each hit for an explicit `size` / `height` / `aspectRatio` on the modifier; bare `fillMaxSize()` on a drawing surface can enter draw with `Size.Zero`
- `ReportDrawnWhen\s*\{` — positive signal for startup metrics
- `enableEdgeToEdge\s*\(` — positive signal; also confirms the project is not reaching for the deprecated `accompanist-systemuicontroller`

### Red Flags To Verify

- expensive list transforms inside composable bodies
- expensive work passed directly to `items(...)`
- `Lazy*` items without `key =` where item identity can move or reorder — see the lazy-list-without-key heuristic at the bottom of this section
- scroll or animation state read high in the tree
- fast-changing values passed to non-lambda modifiers when a layout/draw-phase alternative exists
- backwards writes — *writing to state that has already been read in the same composition body* (this is the precise definition; reading after writing is fine)
- `mutableStateOf<Int>` / `<Long>` / `<Float>` / `<Double>` — the typed factories avoid boxing
- raw `List`/`Map`/`Set` parameters on widely reused composables when `kotlinx.collections.immutable` is already a dependency
- `@NonSkippableComposable` / `@DontMemoize` without a justifying comment
- `remember { … }` whose body reads `LocalConfiguration` / `LocalDensity` / `LocalLayoutDirection` without listing that source as a key — cached value goes stale on rotation/foldable/font-scale changes
- `indexOf(...)` / `lastIndexOf(...)` / `indexOfFirst { ... }` called inside a `LazyListScope` item factory — O(n²) scrolling cost and crash risk if identity moves; prefer `itemsIndexed`
- `animateItemPlacement()` usage on Compose 1.7+ — replaced by `Modifier.animateItem()`
- Accompanist libraries where first-party replacements exist: `accompanist-pager` → `HorizontalPager` / `VerticalPager`; `accompanist-swiperefresh` → `PullToRefreshBox`; `accompanist-flowlayout` → `FlowRow` / `FlowColumn`; `accompanist-systemuicontroller` → `enableEdgeToEdge()`

### Positive Signals

- `remember(keys)` around expensive calculations
- `derivedStateOf` used for scroll-triggered UI thresholds
- lambda modifiers such as `Modifier.offset { ... }`, `Modifier.graphicsLayer { ... }`, `Modifier.drawBehind { ... }`
- draw/layout phase reads instead of full recomposition for rapidly changing values
- `@Stable` / `@Immutable` on data classes used as composable params
- `ImmutableList` / `PersistentList` for collection params
- `compose_compiler_config.conf` to mark third-party types stable
- baseline-profile modules or profile installer setup when app maturity suggests it matters

### Lazy-List-Without-Key Heuristic

There's no clean single regex for this. Use a two-step approach:

1. Find files that use a lazy layout: `rg -l 'Lazy(Column|Row|VerticalGrid|HorizontalGrid|VerticalStaggeredGrid|HorizontalStaggeredGrid)\b' -g '*.kt'`
2. Within each file, look for `items(` / `itemsIndexed(` invocations that omit `key =`. Useful multiline pattern: `rg -U --multiline-dotall 'items(?:Indexed)?\([^)]*\)' -g '*.kt'` and read each hit for a `key =` argument.

Manually verify before deducting — `items(count: Int)` overloads and small static lists that never reorder are not bugs.

### Duplicate-Lazy-Key Heuristic

Compose throws `IllegalArgumentException: Key ... was already used` when a `Lazy*` layout sees two items with the same key. Root causes in production code: backend returning duplicate IDs, merging streams (e.g. WebSocket reconnect), or `Pager` + `LazyColumn` combinations where the same item appears in overlapping pages.

There is no clean regex. Walk `items(..., key = ...)` / `itemsIndexed(..., key = ...)` hits and read the surrounding context:

- is the list source a merge / combine / concatenation of multiple flows?
- does the backend spec guarantee ID uniqueness?
- is the key computed from `hashCode()` on a non-`data class`?

When uniqueness is not guaranteed, flag as a latent crash and suggest a dedup index or a synthesized key like `"${source}-${id}"`.

### Scaffold Inner-Padding Heuristic

`Scaffold` exposes `innerPadding` to its content lambda. If the content ignores it, elements are drawn behind the `TopAppBar` or `BottomAppBar`. Search for `Scaffold(` and read each hit — the content lambda parameter should be applied to the root-most child via `Modifier.padding(innerPadding)` (or `.consumeWindowInsets(innerPadding)`). If a `Scaffold { }` discards the padding parameter with `_ ->` or omits it entirely while nesting non-trivial content, flag it.

### Strong Skipping Mode Check

Confirm the project's compiler version:

- `rg -n 'kotlin\s*=\s*"' -g '*.toml'` and `rg -n 'org\.jetbrains\.kotlin' -g '*.gradle*'` to find the Kotlin version
- Strong Skipping is on by default at Kotlin **2.0.20+**; below that, stability inference matters more and unstable params more aggressively block skipping

## 4. State Management Checks

### Search For

- `mutableStateOf`
- `mutableIntStateOf|mutableLongStateOf|mutableFloatStateOf|mutableDoubleStateOf`
- `mutableStateListOf|mutableStateMapOf`
- `rememberSaveable`
- `mapSaver|listSaver|@Parcelize|Saver`
- `collectAsStateWithLifecycle`
- `collectAsState`
- `observeAsState`
- `subscribeAsState`
- `MutableState<`
- `State<`
- `mutableListOf|mutableMapOf|mutableSetOf|ArrayList`
- `CompositionLocal`
- `compositionLocalOf|staticCompositionLocalOf`
- `ViewModel`
- `viewModel\(` — log invocation depth (screen entry vs. deep tree)
- `mutableStateOf` / `mutableIntStateOf` etc. declared as members of a class extending `ViewModel` (not inside a composable)
- `Channel<` / `receiveAsFlow\(\)` / `consumeAsFlow\(\)` exposed from a `ViewModel` for UI events
- `\.stateIn\s*\(` — positive signal; check for `WhileSubscribed(5_000)` or similar timeout
- `rememberSaveable` invoked inside a `Lazy(Column|Row|VerticalGrid|HorizontalGrid|VerticalStaggeredGrid|HorizontalStaggeredGrid)` item factory

### Red Flags To Verify

- duplicated state across parent/child or sibling composables
- shared state held too low in the tree
- reusable components with unnecessary internal state
- Android UI code using `collectAsState()` where `collectAsStateWithLifecycle()` is a better fit (skip this rule on Compose Multiplatform code paths)
- non-observable mutable collections used as state (`mutableListOf` mutated in place)
- `mutableListOf` / `mutableMapOf` wrapped in a `MutableState` instead of `mutableStateListOf` / `mutableStateMapOf` — element changes won't trigger recomposition
- `mutableStateOf<Int|Long|Float|Double>` instead of the typed factory (autoboxing)
- `MutableState<T>` params in reusable components
- `State<T>` params where a value or lambda would be more flexible
- `remember { ... }` with no `key` for a value that depends on inputs (stale cache)
- `rememberSaveable { mutableStateOf(SomeNonBundleable(...)) }` without a `Saver` — restoration silently fails

### Positive Signals

- clear stateful wrapper + stateless reusable composable split
- state hoisted to the lowest common reader / highest writer
- related state hoisted together
- lifecycle-aware collection of flows in Android UI
- plain state-holder classes for larger screens or app shells

## 5. Side Effects Checks

### Search For

- `LaunchedEffect`
- `DisposableEffect`
- `SideEffect`
- `rememberUpdatedState`
- `produceState`
- `snapshotFlow`
- `rememberCoroutineScope`
- `\.launch\s*[\({]` — catches both `scope.launch {` and `scope.launch(Dispatchers.IO) {`
- `Thread\(`
- `GlobalScope`
- `LifecycleEventObserver`
- `BackHandler`
- `NavHost`, `composable\(` (in nav graphs), `navController\.navigate`
- string-based nav routes: `composable\(\s*"` and `navigate\(\s*"` (suggest type-safe `@Serializable` routes on Navigation Compose 2.8+)

### Red Flags To Verify

- work started directly in composition body
- navigation, snackbar, analytics, or repository calls triggered during composition instead of from an effect or event path
- `navController.navigate(...)` invoked in composition body — must come from an event handler or `LaunchedEffect`
- `LaunchedEffect(Unit)` / `LaunchedEffect(true)` is **not** suspicious on its own (the "run once" pattern is idiomatic). Only flag it when the body captures parameter or state values that may change without `rememberUpdatedState`
- `DisposableEffect` with empty or suspicious cleanup
- listener/observer registration without `onDispose`
- effect keys too broad or too narrow
- `rememberCoroutineScope()` used to launch keyed/long-lived work that belongs in a `LaunchedEffect`
- `snapshotFlow { ... }` invoked outside an effect, or used to compute a value that `derivedStateOf` would handle more cheaply
- `derivedStateOf { a + b }`-style misuse — when input frequency ≈ output frequency it is pure overhead (the official antipattern)

### Positive Signals

- `rememberUpdatedState` used for long-lived effects that should keep latest callbacks
- `DisposableEffect` paired with clear cleanup
- `SideEffect` used only to publish state to non-Compose code after successful composition
- `produceState` or equivalent used for converting external async sources into Compose state
- `snapshotFlow { ... }` collected from inside a `LaunchedEffect` for Compose-state → Flow conversions
- `rememberCoroutineScope()` used only for event-driven work (button taps, gesture handlers)

## 6. Composable API Quality Checks

Focus on shared components and internal UI kit code, not every screen.

### Search For

- shared component directories such as `components`, `commonui`, `designsystem`, `ui/components`
- function signatures around `@Composable`
- `modifier: Modifier =`
- `Modifier = Modifier\.` — non-no-op modifier defaults
- `MutableState<`
- `State<`
- `CompositionLocal`
- `compositionLocalOf|staticCompositionLocalOf` — definitions
- `CompositionLocalProvider` — provision sites
- ViewModels in CompositionLocal: `compositionLocalOf<.*ViewModel`, `staticCompositionLocalOf<.*ViewModel`
- `viewModel\(` — invocation sites; flag when called below the screen entry composable
- slot APIs and receiver scopes: `RowScope\.`, `ColumnScope\.`, `BoxScope\.`, `content:\s*@Composable`
- modifier authoring: `Modifier\.composed\s*\{` (discouraged), `Modifier\.Node`, `ModifierNodeElement`
- movable content: `movableContentOf`, `movableContentWithReceiverOf`
- variant smells: `\bstyle:\s*\w+Style\b` — single-component-with-style-enum
- `Basic` prefix: `fun Basic[A-Z]\w+\s*\(`
- lazy list `contentType`: `contentType\s*=` inside `items(` / `itemsIndexed(` calls — its presence on heterogeneous lists is a positive signal; its absence on heterogeneous lists is a deduction

### Red Flags To Verify

- shared components missing a `modifier`
- `modifier` not being the first optional parameter
- `modifier` default not equal to `Modifier` (e.g. `modifier: Modifier = Modifier.padding(8.dp)` — caller's modifier silently loses the padding)
- multiple modifier parameters on one component
- modifier applied to a child instead of the root-most emitted UI, and not as the *first* link in the chain
- nullable params used to mean "choose internal default" (expose a `ComponentDefaults` object instead)
- component-specific configuration hidden behind implicit locals
- huge multipurpose components that should be layered or split
- behavior added as parameters that should be modifiers (`onClick`, `clipToCircle`)
- a single component with a `style: ButtonStyle` enum-like parameter instead of distinct `ContainedButton` / `OutlinedButton` / `TextButton` components
- custom modifiers built with `Modifier.composed { ... }` (discouraged in favor of `Modifier.Node`)
- `MutableState<T>` params — replace with `value: T` (immediate read) or `value: () -> T` (deferred) plus `onValueChange: (T) -> Unit`
- `@Composable` UI-emitting functions named in lowerCamelCase or returning a non-Unit value (style guide violation)

### Positive Signals

- required params first, then `modifier`, then optional params, then trailing content lambda
- explicit config exposed as parameters with meaningful defaults via a `ComponentDefaults` object
- focused component responsibilities
- internal wrappers built on simpler lower-level components
- slot lambdas (`content: @Composable RowScope.() -> Unit`) for flexible composition
- `Basic*` variants alongside opinionated public versions
- distinct components per visual variant (no `style` enum)
- `movableContentOf` used to preserve slot lifecycle across structural moves
- custom modifiers authored with `Modifier.Node` / `ModifierNodeElement`

### Modifier-Order Smell

No clean regex. When reading shared components, watch for `Modifier.padding(...).clickable {}` vs `Modifier.clickable {}.padding(...)` — they produce different ripple bounds and hit areas. Flag when the choice looks accidental in a reusable component (the wrong order is almost always a bug there; in a one-off screen it may be intentional).

## 7. Read Representative Files

For each category, read enough code to cover:

- at least one screen
- at least one shared component area
- at least one state-owning area such as a ViewModel or state-holder
- any suspicious files surfaced by search

Do not rely on one "bad" file to characterize the entire repo.

## 8. Merge Repeated Findings

Prefer:

- "7 shared components miss `modifier`"

over:

- seven separate bullets saying the same thing

Still keep 2-4 concrete file examples to justify the systemic finding.

## 9. Out-Of-Scope Cases

Stop or narrow scope if:

- the repo is not Android Jetpack Compose
- Compose is only present in demo or sample code
- the user asked to audit only one module or feature

In those cases, explain the limitation and score only the relevant surface area.


================================================
FILE: .claude/skills/jetpack-compose-audit/scripts/compose-reports.init.gradle
================================================
// Gradle init script injected by the Jetpack Compose audit skill.
//
// Purpose: enable Compose Compiler reports + metrics for every module that
// applies the Compose Compiler plugin, without modifying the user's build
// files. Each module's output lands in <module>/build/compose_audit/.
//
// Usage (from the skill, not the user):
//   ./gradlew <task> --init-script <path-to-this-file> --no-daemon
//
// Two code paths:
//   A. Modern Compose Compiler Gradle plugin (Kotlin 2.0+) — configures the
//      `composeCompiler { }` extension directly.
//   B. Legacy compiler-plugin argument fallback — injects reportsDestination
//      and metricsDestination via Kotlin compile task free args. Works on
//      older toolchains that still apply the compiler plugin manually.
//
// The script is defensive: failures in one module must not fail the build.

allprojects { project ->
    project.afterEvaluate {
        def reportDir = new File(project.buildDir, "compose_audit")

        // Path A: modern Compose Compiler Gradle plugin.
        def composeExt = project.extensions.findByName("composeCompiler")
        if (composeExt != null) {
            try {
                reportDir.mkdirs()
                composeExt.reportsDestination.set(reportDir)
                composeExt.metricsDestination.set(reportDir)
                project.logger.lifecycle("compose-audit: reports -> ${reportDir}")
                return
            } catch (Throwable e) {
                project.logger.warn("compose-audit: composeCompiler extension found but could not be configured: ${e.message}")
            }
        }

        // Path B: legacy compiler-args fallback for projects that apply the
        // Compose compiler plugin the old way (pre-Kotlin-2.0).
        def anyConfigured = false
        project.tasks.matching { it.name.startsWith("compile") && it.name.contains("Kotlin") }.configureEach { task ->
            try {
                def opts = task.hasProperty("compilerOptions") ? task.compilerOptions : null
                if (opts == null) return
                opts.freeCompilerArgs.addAll([
                    "-P", "plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=${reportDir.absolutePath}",
                    "-P", "plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=${reportDir.absolutePath}",
                ])
                reportDir.mkdirs()
                anyConfigured = true
            } catch (Throwable ignored) {
                // Silent — task may not be a Kotlin compile task.
            }
        }
        if (anyConfigured) {
            project.logger.lifecycle("compose-audit: reports -> ${reportDir} (legacy compiler-args path)")
        }
    }
}


================================================
FILE: .github/ISSUE_TEMPLATE/bug_report.md
================================================
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---

**Check before feedback**
- [ ] I checked the other issues to ensure no one has mentioned it yet.
- [ ] I made sure the bug can be reproduced in the [SNAPSHOT](https://nightly.link/oxyroid/M3UAndroid/workflows/android/master/artifact.zip) application package.

**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.

**Smartphone (please complete the following information):**

- Device: [e.g. Google Pixel 4XL]
- OS: [e.g. Android 12]
- Version [e.g. 1.10.2]

**Additional context**
Add any other context about the problem here.


================================================
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/android.yml
================================================
name: Android CI

on:
  push:
    branches: [ "master" ]
    paths-ignore:
      - '**.md'
      - '**.txt'
      - '.github/**'
      - '.idea/**'
      - 'fastlane/**'
      - '!.github/workflows/**'
  pull_request:
    branches: [ "master" ]
  workflow_dispatch:

concurrency:
  group: ${{ github.ref }}
  cancel-in-progress: true

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          submodules: recursive

      - name: Setup JDK
        id: setup-java
        uses: actions/setup-java@v4
        with:
          java-version: 17
          distribution: "zulu"

      - name: Setup Gradle
        uses: gradle/actions/setup-gradle@v4
        with:
          gradle-home-cache-cleanup: true

      - name: Clean GMD
        run: ./gradlew cleanManagedDevices --unused-only

      - name: Build production app
        run: ./gradlew :app:smartphone:assembleRelease

      - name: Build production TV app
        run: ./gradlew :app:tv:assembleRelease

      - name: Upload
        uses: actions/upload-artifact@v4
        with:
          if-no-files-found: error
          path: |
            app/smartphone/build/outputs/apk/release/*.apk
            app/tv/build/outputs/apk/release/*.apk

      - name: Upload To Telegram
        if: github.event_name != 'pull_request'
        uses: xireiki/channel-post@v1.0.10
        with:
          bot_token: ${{ secrets.BOT_TOKEN }}
          chat_id: ${{ secrets.CHAT_ID }}
          api_id: ${{ secrets.API_ID }}
          api_hash: ${{ secrets.API_HASH }}
          large_file: true
          method: sendFile
          path: |
            app/smartphone/build/outputs/apk/release/*.apk
            app/tv/build/outputs/apk/release/*.apk


================================================
FILE: .github/workflows/baseline-profiles.yml
================================================
name: Baseline Profiles

on:
  workflow_dispatch:
  push:
    branches: [ "master" ]
    paths:
      - 'app/smartphone/build.gradle.kts'
      - 'app/tv/build.gradle.kts'
      - '.github/workflows/baseline-profiles.yml'

permissions:
  contents: write
  pull-requests: write

concurrency:
  group: baseline-profiles-${{ github.ref }}
  cancel-in-progress: true

jobs:
  verify:
    runs-on: ubuntu-22.04

    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          fetch-depth: 0
          submodules: recursive

      - name: Check baseline profile trigger
        id: baseline-trigger
        run: |
          set -euo pipefail
          if [ "${{ github.event_name }}" != "push" ]; then
            echo "run=true" >> "$GITHUB_OUTPUT"
            exit 0
          fi
          base="${{ github.event.before }}"
          if [ "$base" = "0000000000000000000000000000000000000000" ]; then
            base="$(git rev-list --max-parents=0 HEAD)"
          fi
          if git diff --name-only "$base" HEAD -- .github/workflows/baseline-profiles.yml | grep -q .; then
            echo "run=true" >> "$GITHUB_OUTPUT"
            exit 0
          fi
          if git diff "$base" HEAD -- app/smartphone/build.gradle.kts app/tv/build.gradle.kts | grep -E '^[-+][[:space:]]*version(Code|Name)[[:space:]]*='; then
            echo "run=true" >> "$GITHUB_OUTPUT"
            exit 0
          fi
          echo "No app version change detected."
          echo "run=false" >> "$GITHUB_OUTPUT"

      - name: Setup JDK
        if: steps.baseline-trigger.outputs.run == 'true'
        uses: actions/setup-java@v4
        with:
          java-version: 17
          distribution: zulu

      - name: Setup Gradle
        if: steps.baseline-trigger.outputs.run == 'true'
        uses: gradle/actions/setup-gradle@v4
        with:
          gradle-home-cache-cleanup: true

      - name: Enable KVM
        if: steps.baseline-trigger.outputs.run == 'true'
        run: |
          if [ ! -e /dev/kvm ]; then
            echo "/dev/kvm is not available on this runner"
            exit 1
          fi
          sudo chown root:$(id -gn) /dev/kvm
          sudo chmod 660 /dev/kvm
          ls -l /dev/kvm

      - name: Generate smartphone baseline profile
        if: steps.baseline-trigger.outputs.run == 'true'
        run: |
          ./gradlew :app:smartphone:generateBaselineProfile \
            -Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect \
            -Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true \
            -Pandroid.experimental.androidTest.numManagedDeviceShards=1 \
            -Pandroid.experimental.testOptions.managedDevices.maxConcurrentDevices=1

      - name: Generate TV baseline profile
        if: steps.baseline-trigger.outputs.run == 'true'
        run: |
          ./gradlew :app:tv:generateBaselineProfile \
            -Pandroid.testoptions.manageddevices.emulator.gpu=swiftshader_indirect \
            -Pandroid.experimental.testOptions.managedDevices.emulator.showKernelLogging=true \
            -Pandroid.experimental.androidTest.numManagedDeviceShards=1 \
            -Pandroid.experimental.testOptions.managedDevices.maxConcurrentDevices=1

      - name: Validate baseline profile output
        if: steps.baseline-trigger.outputs.run == 'true'
        run: |
          set -euo pipefail
          test ! -d app/tv/src/release/generated/baselineProfiles

      - name: Create baseline profile update pull request
        if: steps.baseline-trigger.outputs.run == 'true'
        env:
          DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
          GH_TOKEN: ${{ secrets.GH_PAT || github.token }}
        run: |
          set -euo pipefail
          update_branch="baseline-profile-updates-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"
          git checkout -B "$update_branch"
          git add \
            app/smartphone/src/main/generated/baselineProfiles \
            app/tv/src/main/generated/baselineProfiles
          if git diff --cached --quiet; then
            echo "Baseline profiles are already up to date."
            exit 0
          fi
          git config user.name "github-actions[bot]"
          git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
          git commit -m "Update baseline profiles"
          git push --set-upstream origin "$update_branch"
          pr_body="$(cat <<EOF
          Generated baseline profile updates from workflow run ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}.

          Baseline profiles are Android performance optimization artifacts. Review the generated changes before merging.
          EOF
          )"
          gh pr create \
            --base "$DEFAULT_BRANCH" \
            --head "$update_branch" \
            --title "Update baseline profiles" \
            --body "$pr_body"


================================================
FILE: .github/workflows/native-packs.yml
================================================
name: Native Packs

on:
  workflow_dispatch:
  push:
    branches: [ "master" ]
    paths:
      - 'gradle/libs.versions.toml'
      - 'app/smartphone/build.gradle.kts'
      - 'data/build.gradle.kts'
      - 'native-load.yml'
      - 'native-packs/**'
      - 'native-load-gradle-plugin/**'
      - '.github/workflows/native-packs.yml'

permissions:
  contents: read

concurrency:
  group: native-packs-${{ github.ref }}
  cancel-in-progress: true

jobs:
  verify:
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4
        with:
          submodules: recursive

      - name: Setup JDK
        uses: actions/setup-java@v4
        with:
          java-version: 17
          distribution: zulu

      - name: Setup Gradle
        uses: gradle/actions/setup-gradle@v4
        with:
          gradle-home-cache-cleanup: true

      - name: Generate native packs
        run: |
          ./gradlew :app:smartphone:generateReleaseNativePacks --no-configuration-cache

      - name: Verify debug native packs stay disabled
        run: |
          set -euo pipefail
          ./gradlew :app:smartphone:tasks --all --no-configuration-cache > native-pack-tasks.txt
          if grep -n 'generateDebugNativePacks' native-pack-tasks.txt; then
            exit 1
          fi

      - name: Verify native load source protocol
        run: |
          set -euo pipefail
          if git grep -n 'm3u\.native-load-instrumentation\|NATIVE_PACK_COMMIT\|nativeLoadCommit' -- \
            native-load-gradle-plugin/src \
            app \
            data/src \
            data/build.gradle.kts \
            docs \
            native-load.yml \
            .github \
            ':!.github/workflows/native-packs.yml'; then
            exit 1
          fi
          if find native-packs -name '*.json' -print0 \
            | xargs -0 grep -n 'sourceCommit\|snapshotPath\|https://raw.githubusercontent.com\|native-packs/.*/release/'; then
            exit 1
          fi

      - name: Verify committed native packs
        run: |
          set -euo pipefail
          git diff --exit-code -- native-packs


================================================
FILE: .gitignore
================================================
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/deploymentTargetDropDown.xml
/.idea/render.experimental.xml
/.idea/kotlinc.xml
/.idea/assetWizardSettings.xml
.DS_Store
/build
/captures
.externalNativeBuild
.cxx
local.properties
jks.txt
*.jks
/sample/
/.kotlin
__pycache__/
*.pyc
testing/mock-server/bin/


================================================
FILE: .gitmodules
================================================
[submodule "native-load-gradle-plugin"]
	path = native-load-gradle-plugin
	url = https://github.com/oxyroid/native-load-gradle-plugin.git
[submodule "parser"]
	path = parser
	url = https://github.com/oxyroid/parser.git


================================================
FILE: .idea/.gitignore
================================================
# Default ignored files
/shelf/
/workspace.xml


================================================
FILE: .idea/.name
================================================
M3U

================================================
FILE: .idea/AndroidProjectSystem.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="AndroidProjectSystem">
    <option name="providerId" value="com.android.tools.idea.GradleProjectSystem" />
  </component>
</project>

================================================
FILE: .idea/compiler.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="CompilerConfiguration">
    <bytecodeTargetLevel target="17" />
  </component>
</project>

================================================
FILE: .idea/deploymentTargetSelector.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="deploymentTargetSelector">
    <selectionStates>
      <SelectionState runConfigName="app.smartphone">
        <option name="selectionMode" value="DROPDOWN" />
      </SelectionState>
      <SelectionState runConfigName="app.tv">
        <option name="selectionMode" value="DROPDOWN" />
        <DropdownSelection timestamp="2026-05-02T16:16:32.858388Z">
          <Target type="DEFAULT_BOOT">
            <handle>
              <DeviceId pluginId="LocalEmulator" identifier="path=/Users/oxy/.android/avd/Television_720p_API_34.avd" />
            </handle>
          </Target>
        </DropdownSelection>
        <DialogSelection />
      </SelectionState>
    </selectionStates>
  </component>
</project>

================================================
FILE: .idea/deviceManager.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="DeviceTable">
    <option name="columnSorters">
      <list>
        <ColumnSorterState>
          <option name="column" value="Name" />
          <option name="order" value="ASCENDING" />
        </ColumnSorterState>
      </list>
    </option>
  </component>
</project>

================================================
FILE: .idea/gradle.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="GradleMigrationSettings" migrationVersion="1" />
  <component name="GradleSettings">
    <option name="linkedExternalProjectsSettings">
      <GradleProjectSettings>
        <compositeConfiguration>
          <compositeBuild compositeDefinitionSource="SCRIPT">
            <builds>
              <build path="$PROJECT_DIR$/native-load-gradle-plugin" name="native-load-gradle-plugin">
                <projects>
                  <project path="$PROJECT_DIR$/native-load-gradle-plugin" />
                </projects>
              </build>
            </builds>
          </compositeBuild>
        </compositeConfiguration>
        <option name="testRunner" value="CHOOSE_PER_TEST" />
        <option name="externalProjectPath" value="$PROJECT_DIR$" />
        <option name="gradleJvm" value="#GRADLE_LOCAL_JAVA_HOME" />
        <option name="modules">
          <set>
            <option value="$PROJECT_DIR$" />
            <option value="$PROJECT_DIR$/app" />
            <option value="$PROJECT_DIR$/app/extension" />
            <option value="$PROJECT_DIR$/app/smartphone" />
            <option value="$PROJECT_DIR$/app/tv" />
            <option value="$PROJECT_DIR$/baselineprofile" />
            <option value="$PROJECT_DIR$/baselineprofile/smartphone" />
            <option value="$PROJECT_DIR$/baselineprofile/tv" />
            <option value="$PROJECT_DIR$/business" />
            <option value="$PROJECT_DIR$/business/channel" />
            <option value="$PROJECT_DIR$/business/extension" />
            <option value="$PROJECT_DIR$/business/favorite" />
            <option value="$PROJECT_DIR$/business/foryou" />
            <option value="$PROJECT_DIR$/business/playlist" />
            <option value="$PROJECT_DIR$/business/playlist-configuration" />
            <option value="$PROJECT_DIR$/business/setting" />
            <option value="$PROJECT_DIR$/core" />
            <option value="$PROJECT_DIR$/core/extension" />
            <option value="$PROJECT_DIR$/core/foundation" />
            <option value="$PROJECT_DIR$/data" />
            <option value="$PROJECT_DIR$/i18n" />
            <option value="$PROJECT_DIR$/lint" />
            <option value="$PROJECT_DIR$/lint/annotation" />
            <option value="$PROJECT_DIR$/lint/processor" />
            <option value="$PROJECT_DIR$/native-load-gradle-plugin" />
            <option value="$PROJECT_DIR$/testing" />
            <option value="$PROJECT_DIR$/testing/device-benchmark" />
            <option value="$PROJECT_DIR$/testing/mock-server" />
          </set>
        </option>
      </GradleProjectSettings>
    </option>
  </component>
</project>

================================================
FILE: .idea/misc.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="ExternalStorageConfigurationManager" enabled="true" />
  <component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="jbr-21" project-jdk-type="JavaSDK" />
</project>

================================================
FILE: .idea/runConfigurations/BaselineProfile_Smartphone.xml
================================================
<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="BaselineProfile Smartphone" type="AndroidBaselineProfileRunConfigurationType" factoryName="Android Baseline Profile Configuration Factory">
    <module name="M3U.app.smartphone" />
    <option name="generateAllVariants" value="false" />
    <option name="CLEAR_LOGCAT" value="false" />
    <option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
    <option name="TARGET_SELECTION_MODE" value="DEVICE_AND_SNAPSHOT_COMBO_BOX" />
    <option name="SELECTED_CLOUD_MATRIX_CONFIGURATION_ID" value="-1" />
    <option name="SELECTED_CLOUD_MATRIX_PROJECT_ID" value="" />
    <option name="DEBUGGER_TYPE" value="Auto" />
    <Auto>
      <option name="USE_JAVA_AWARE_DEBUGGER" value="false" />
      <option name="SHOW_STATIC_VARS" value="true" />
      <option name="WORKING_DIR" value="" />
      <option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" />
      <option name="SHOW_OPTIMIZED_WARNING" value="true" />
      <option name="ATTACH_ON_WAIT_FOR_DEBUGGER" value="false" />
      <option name="DEBUG_SANDBOX_SDK" value="false" />
    </Auto>
    <Hybrid>
      <option name="USE_JAVA_AWARE_DEBUGGER" value="false" />
      <option name="SHOW_STATIC_VARS" value="true" />
      <option name="WORKING_DIR" value="" />
      <option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" />
      <option name="SHOW_OPTIMIZED_WARNING" value="true" />
      <option name="ATTACH_ON_WAIT_FOR_DEBUGGER" value="false" />
      <option name="DEBUG_SANDBOX_SDK" value="false" />
    </Hybrid>
    <Java>
      <option name="ATTACH_ON_WAIT_FOR_DEBUGGER" value="false" />
      <option name="DEBUG_SANDBOX_SDK" value="false" />
    </Java>
    <Native>
      <option name="USE_JAVA_AWARE_DEBUGGER" value="false" />
      <option name="SHOW_STATIC_VARS" value="true" />
      <option name="WORKING_DIR" value="" />
      <option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" />
      <option name="SHOW_OPTIMIZED_WARNING" value="true" />
      <option name="ATTACH_ON_WAIT_FOR_DEBUGGER" value="false" />
      <option name="DEBUG_SANDBOX_SDK" value="false" />
    </Native>
    <Profilers>
      <option name="ADVANCED_PROFILING_ENABLED" value="false" />
      <option name="STARTUP_PROFILING_ENABLED" value="false" />
      <option name="STARTUP_CPU_PROFILING_ENABLED" value="false" />
      <option name="STARTUP_CPU_PROFILING_CONFIGURATION_NAME" value="Java/Kotlin Method Sample (legacy)" />
      <option name="STARTUP_NATIVE_MEMORY_PROFILING_ENABLED" value="false" />
      <option name="NATIVE_MEMORY_SAMPLE_RATE_BYTES" value="2048" />
    </Profilers>
    <method v="2" />
  </configuration>
</component>

================================================
FILE: .idea/runConfigurations/BaselineProfile_TV.xml
================================================
<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="BaselineProfile TV" type="AndroidBaselineProfileRunConfigurationType" factoryName="Android Baseline Profile Configuration Factory">
    <module name="M3U.app.tv" />
    <option name="generateAllVariants" value="true" />
    <option name="CLEAR_LOGCAT" value="false" />
    <option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" />
    <option name="TARGET_SELECTION_MODE" value="DEVICE_AND_SNAPSHOT_COMBO_BOX" />
    <option name="SELECTED_CLOUD_MATRIX_CONFIGURATION_ID" value="-1" />
    <option name="SELECTED_CLOUD_MATRIX_PROJECT_ID" value="" />
    <option name="DEBUGGER_TYPE" value="Auto" />
    <Auto>
      <option name="USE_JAVA_AWARE_DEBUGGER" value="false" />
      <option name="SHOW_STATIC_VARS" value="true" />
      <option name="WORKING_DIR" value="" />
      <option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" />
      <option name="SHOW_OPTIMIZED_WARNING" value="true" />
      <option name="ATTACH_ON_WAIT_FOR_DEBUGGER" value="false" />
      <option name="DEBUG_SANDBOX_SDK" value="false" />
    </Auto>
    <Hybrid>
      <option name="USE_JAVA_AWARE_DEBUGGER" value="false" />
      <option name="SHOW_STATIC_VARS" value="true" />
      <option name="WORKING_DIR" value="" />
      <option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" />
      <option name="SHOW_OPTIMIZED_WARNING" value="true" />
      <option name="ATTACH_ON_WAIT_FOR_DEBUGGER" value="false" />
      <option name="DEBUG_SANDBOX_SDK" value="false" />
    </Hybrid>
    <Java>
      <option name="ATTACH_ON_WAIT_FOR_DEBUGGER" value="false" />
      <option name="DEBUG_SANDBOX_SDK" value="false" />
    </Java>
    <Native>
      <option name="USE_JAVA_AWARE_DEBUGGER" value="false" />
      <option name="SHOW_STATIC_VARS" value="true" />
      <option name="WORKING_DIR" value="" />
      <option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" />
      <option name="SHOW_OPTIMIZED_WARNING" value="true" />
      <option name="ATTACH_ON_WAIT_FOR_DEBUGGER" value="false" />
      <option name="DEBUG_SANDBOX_SDK" value="false" />
    </Native>
    <Profilers>
      <option name="ADVANCED_PROFILING_ENABLED" value="false" />
      <option name="STARTUP_PROFILING_ENABLED" value="false" />
      <option name="STARTUP_CPU_PROFILING_ENABLED" value="false" />
      <option name="STARTUP_CPU_PROFILING_CONFIGURATION_NAME" value="Java/Kotlin Method Sample (legacy)" />
      <option name="STARTUP_NATIVE_MEMORY_PROFILING_ENABLED" value="false" />
      <option name="NATIVE_MEMORY_SAMPLE_RATE_BYTES" value="2048" />
    </Profilers>
    <method v="2" />
  </configuration>
</component>

================================================
FILE: .idea/runConfigurations/M3UAndroid___benchmark_Pixel5Api31BenchmarkAndroidTest_.xml
================================================
<component name="ProjectRunConfigurationManager">
  <configuration default="false" name="M3UAndroid [:benchmark:Pixel5Api31BenchmarkAndroidTest]" type="GradleRunConfiguration" factoryName="Gradle">
    <ExternalSystemSettings>
      <option name="executionName" />
      <option name="externalProjectPath" value="$PROJECT_DIR$" />
      <option name="externalSystemIdString" value="GRADLE" />
      <option name="scriptParameters" value="--rerun-tasks -P android.testInstrumentationRunnerArguments.class=com.m3u.baselineprofile.BaselineProfileGenerator" />
      <option name="taskDescriptions">
        <list />
      </option>
      <option name="taskNames">
        <list>
          <option value=":baselineprofile:Pixel5Api31StableChannelRichCodecBenchmarkAndroidTest" />
        </list>
      </option>
      <option name="vmOptions" />
    </ExternalSystemSettings>
    <ExternalSystemDebugServerProcess>true</ExternalSystemDebugServerProcess>
    <ExternalSystemReattachDebugProcess>true</ExternalSystemReattachDebugProcess>
    <DebugAllEnabled>false</DebugAllEnabled>
    <RunAsTest>false</RunAsTest>
    <method v="2" />
  </configuration>
</component>

================================================
FILE: .idea/runConfigurations.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="RunConfigurationProducerService">
    <option name="ignoredProducers">
      <set>
        <option value="com.intellij.execution.junit.AbstractAllInDirectoryConfigurationProducer" />
        <option value="com.intellij.execution.junit.AllInPackageConfigurationProducer" />
        <option value="com.intellij.execution.junit.PatternConfigurationProducer" />
        <option value="com.intellij.execution.junit.TestInClassConfigurationProducer" />
        <option value="com.intellij.execution.junit.UniqueIdConfigurationProducer" />
        <option value="com.intellij.execution.junit.testDiscovery.JUnitTestDiscoveryConfigurationProducer" />
        <option value="org.jetbrains.kotlin.idea.junit.KotlinJUnitRunConfigurationProducer" />
        <option value="org.jetbrains.kotlin.idea.junit.KotlinPatternConfigurationProducer" />
      </set>
    </option>
  </component>
</project>

================================================
FILE: .idea/vcs.xml
================================================
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
  <component name="VcsDirectoryMappings">
    <mapping directory="" vcs="Git" />
  </component>
</project>

================================================
FILE: AGENTS.md
================================================
# AGENTS.md

This file applies to the entire repository. More specific `AGENTS.md` files in subdirectories take precedence for their subtree. Start here for global rules, then read the nested file nearest to the code you are changing.

## Project Overview

M3UAndroid is a Kotlin Android IPTV player for phones, tablets, and Android TV. It supports M3U playlists, Xtream API, DLNA casting, Room persistence, WorkManager background sync, Media3/ExoPlayer playback, extensions, benchmark tooling, and multilingual resources.

## Progressive Guidance Map

- `app/AGENTS.md`: app modules, Compose UI, navigation, Hilt entry points, permissions, and platform presentation.
- `app/tv/AGENTS.md`: Android TV layouts, DPad focus, couch-distance readability, and video overlays.
- `business/AGENTS.md`: feature state, user actions, workflow logic, and KMP-friendly business rules.
- `core/AGENTS.md`: lightweight shared helpers, foundation UI primitives, contracts, and extension integration.
- `data/AGENTS.md`: Room, repositories, parsers, networking, playback coordination, migrations, and workers.
- `i18n/AGENTS.md`: localized strings, key naming, fallback behavior, and resource validation.
- `testing/AGENTS.md`: benchmarks, mock server, device tests, and test-scoped validation.

If a directory does not have a nested instruction file, use this root file plus the nearest parent guidance.

## Global Principles

- The long-term direction is Kotlin Multiplatform. Prefer code that can move toward shared KMP modules when adding reusable logic.
- Avoid Android platform APIs in business rules, parsers, models, reducers, validation, and other reusable logic. If Android APIs are required, isolate them behind app or data adapters.
- Keep requested changes narrowly scoped. Do not mix broad rewrites, unrelated refactors, or formatting churn into narrow tasks.
- Inspect nearby modules and existing helpers before changing code. Prefer established local patterns over new abstractions unless the abstraction removes real duplication or complexity.
- Use Kotlin only. Do not add Java.
- Package-qualified references belong in imports, not code bodies. Use import aliases for conflicts.
- Add dependencies through the version catalog and existing repositories only. Do not add jar files, unknown Maven repositories, or inline dependency versions.
- Do not use star imports.

## Architecture Boundaries

- Keep dependency direction clear: app depends on business/core/data/i18n; business depends on core/data; core stays independent from app and business.
- UI modules own Compose routes, screens, permission prompts, navigation wiring, and platform-specific presentation.
- Business modules own feature state, user actions, and reusable workflow logic.
- Data modules own persistence, networking, parsers, migrations, repositories, background work, and playback integration.
- Core modules should stay lightweight, reusable, and as platform-neutral as practical.
- UI must not directly access DAOs, databases, parser internals, or low-level data sources.

## Build And Validation

- Use the repository Gradle wrapper for builds and validation.
- Validate the smallest relevant module first, then broaden when changes affect user-facing flows, shared contracts, playback, sync, database, permissions, background work, or CI release paths.
- For documentation-only or small resource-only changes, at least run a diff whitespace check.
- Do not change Room entities, tables, or schemas without updating migrations and schema artifacts together.


================================================
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
[@sortBy](https://t.me/sortBy).
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: COMPOSE-AUDIT-REPORT.md
================================================
# Jetpack Compose Audit Report

Target: /home/runner/work/M3UAndroid/M3UAndroid
Date: 2026-04-16
Scope: app/smartphone, app/extension, app/tv (tv module commented out in settings.gradle.kts), core/foundation, business modules
Excluded from scoring: baselineprofile, lint, test sources
Confidence: Medium
Overall Score: 59/100

## Scorecard

| Category | Score | Weight | Status | Notes |
|----------|-------|--------|--------|-------|
| Performance | 4/10 | 35% | needs work | Missing lazy keys, no immutable collections, inferred stability issues (no compiler reports) |
| State management | 6/10 | 25% | needs work | collectAsStateWithLifecycle used correctly, some state hoisting issues |
| Side effects | 7/10 | 20% | solid | Correct effect patterns, rememberUpdatedState used, minor key issues |
| Composable API quality | 8/10 | 20% | solid | Modifier conventions followed, good parameter order in reusable components |

## Critical Findings

1. **Performance: Lazy lists missing stable keys**
   - Why it matters: Without stable keys, Compose cannot track item identity across recompositions. Items will be recreated on reorder/insert/delete, losing scroll position and internal state. This is especially critical for paging data sources where items can shift.
   - Evidence: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/components/PlaylistGallery.kt:96` (items without key), `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/ChannelGallery.kt:92` (items without key on paging data), `app/tv/src/main/java/com/m3u/tv/common/MoviesRow.kt:128` (items without key)
   - Fix direction: Add `key = { playlist.url }` or `key = { channel.id }` to all lazy list items. For paging items: `items(channels.itemCount, key = { index -> channels.peek(index)?.id ?: index }) { ... }`
   - References: https://developer.android.com/develop/ui/compose/lists

2. **Performance: No kotlinx.collections.immutable usage despite stability config**
   - Why it matters: Standard Kotlin collections (`List`, `Map`, `Set`) are treated as unstable by the Compose compiler even when their contents are stable. This forces unnecessary recompositions. The project has `compose_compiler_config.conf` but doesn't use immutable collections for composable parameters.
   - Evidence: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/ForyouScreen.kt:170` (`playlists: Map<Playlist, Int>`), `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:285` (`channels: Map<String, Flow<PagingData<Channel>>>`, `pinnedCategories: List<String>`, `sorts: List<Sort>`)
   - Fix direction: Add `kotlinx-collections-immutable` dependency and use `ImmutableList`, `ImmutableMap`, `PersistentList` for composable parameters in reusable components and screens.
   - References: https://developer.android.com/develop/ui/compose/performance/stability, https://developer.android.com/develop/ui/compose/performance/stability/fix

3. **Performance: produceState with expensive suspend operations inside item composition**
   - Why it matters: `produceState` with network/database calls inside lazy list items means every visible item spawns coroutines during composition. While the pattern is lifecycle-aware, it couples data loading to composition which can cause jank during scroll.
   - Evidence: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/ChannelGallery.kt:95-116` (two produceState blocks per item with suspend calls)
   - Fix direction: Move data loading to ViewModel/StateHolder. Expose a combined `Flow<ChannelWithMetadata>` that includes programme and thumbnail data, then collect it once rather than launching per-item coroutines.
   - References: https://developer.android.com/develop/ui/compose/performance/bestpractices

## Category Details

### Performance — 4/10

**What is working**

- Baseline profile setup exists: `baselineprofile:smartphone` module configured in `app/smartphone/build.gradle.kts`
- `compose_compiler_config.conf` present with stability rules for third-party types (`kotlin.collections.*`, `Uri`, `Format`, etc.)
- `@Stable` and `@Immutable` annotations used on data models and helpers (`core/wrapper/Message.kt`, `core/wrapper/Resource.kt`, `business/channel/PlayerState.kt`)
- `derivedStateOf` used correctly: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:134-135`, `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/components/PlaylistGallery.kt:63-67`
- `rememberUpdatedState` used to avoid stale captures: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:309`, `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/ChannelGallery.kt:69-71`
- `remember` with proper keys for orientation-dependent calculations: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/ForyouScreen.kt:186-191`, `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:373-378`

**What is hurting the score**

- Systemic missing keys on lazy list items with dynamic data
- No `kotlinx.collections.immutable` dependency or usage despite stability config
- `produceState` with suspend work inside composition (per-item data loading)
- Inferred stability only — compiler reports failed to build (AGP 8.9.3 not available), so all stability findings are source-inferred and confidence is reduced

**Evidence**

- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/components/PlaylistGallery.kt:96` — `items(entries.size) { index ->` without stable key on playlist data · References: https://developer.android.com/develop/ui/compose/lists
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/ChannelGallery.kt:92` — `items(channels.itemCount) { index ->` without key on paging channels · References: https://developer.android.com/develop/ui/compose/lists
- `app/tv/src/main/java/com/m3u/tv/common/MoviesRow.kt:128` — `items(channels.itemCount)` without key · References: https://developer.android.com/develop/ui/compose/lists
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/extension/ExtensionScreen.kt:56` — `items(apps) { app ->` has implicit item key but should be explicit with `key = { it.packageName }` · References: https://developer.android.com/develop/ui/compose/lists
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/ChannelGallery.kt:95-116` — `produceState` with suspend `getProgrammeCurrently` and thumbnail loading inside item composition, spawns coroutines per visible item · References: https://developer.android.com/develop/ui/compose/performance/bestpractices
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/ForyouScreen.kt:170` — `playlists: Map<Playlist, Int>` parameter unstable (inferred) · References: https://developer.android.com/develop/ui/compose/performance/stability
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:285` — `channels: Map<String, Flow<...>>`, `sorts: List<Sort>`, `pinnedCategories: List<String>` all unstable (inferred) · References: https://developer.android.com/develop/ui/compose/performance/stability

**Performance ceiling check**

Compiler reports unavailable (build failed: AGP 8.9.3 not found in repositories). Per rubric, when `Compiler diagnostics used: no`, cap Performance score at 7. Qualitative score: 6 → applied ceiling: 6. However, due to systemic missing keys and no immutable collections usage, final applied score: 4.

### State Management — 6/10

**What is working**

- `collectAsStateWithLifecycle` used consistently in screen composables: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/ForyouScreen.kt:82-88`, `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:121-132`, `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/ChannelScreen.kt`
- Clear single source of truth: ViewModels manage state, screens collect and pass down
- State hoisting: stateful route composables wrap stateless screen composables (`ForyouRoute` → `ForyouScreen`, `PlaylistRoute` → `PlaylistScreen`)
- `rememberSaveable` used for UI state that survives process death: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:339`, `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/PlaylistTabRow.kt`
- Preference state delegation with `mutablePreferenceOf` and `preferenceOf` wrappers for Settings (observable, single source of truth)

**What is hurting the score**

- Some local `mutableStateOf` used where `rememberSaveable` would be more appropriate for UI state (e.g., sheet visibility, dialog state)
- Related state not always hoisted together: `mediaSheetValue` and `isSortSheetVisible` are separate `rememberSaveable` calls in `PlaylistScreen.kt:338-339` but drive related UI

**Evidence**

- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/ForyouScreen.kt:184` — `var headlineSpec: Recommend.Spec? by remember { mutableStateOf(null) }` could use `rememberSaveable` for persistence across config changes · References: https://developer.android.com/develop/ui/compose/state
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/ForyouScreen.kt:192-194` — `var mediaSheetValue: MediaSheetValue.ForyouScreen by remember { mutableStateOf(...) }` should use `rememberSaveable` if `MediaSheetValue.ForyouScreen` is Parcelable/Serializable · References: https://developer.android.com/develop/ui/compose/state
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:285` — `channels: Map<String, Flow<PagingData<Channel>>>` passed as parameter to screen composable, but ViewModels are created with `hiltViewModel()` in route composable — correct pattern, positive evidence · References: https://developer.android.com/develop/ui/compose/state-hoisting
- `business/playlist/src/main/java/com/m3u/business/playlist/PlaylistViewModel.kt:90-97` — ViewModel correctly exposes StateFlow for lifecycle-aware collection · References: https://developer.android.com/develop/ui/compose/state

### Side Effects — 7/10

**What is working**

- `LaunchedEffect` with correct keys: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:161-165` (two keys: `autoRefreshChannels`, `playlistUrl`)
- `DisposableEffect` cleanup: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:330-332` (cleanup `Metadata.fob`)
- `rememberUpdatedState` used to avoid stale lambda captures: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:309` (`currentOnScrollUp`)
- `LifecycleResumeEffect` used for lifecycle-aware metadata updates: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/ForyouScreen.kt:90-105`, `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:151-159`
- Side effects correctly isolated from composition body
- `produceState` used for async data loading with keys: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/ChannelGallery.kt:95-116`

**What is hurting the score**

- `LaunchedEffect(headlineSpec)` in `ForyouScreen.kt:196-207` captures `lifecycleOwner` but doesn't use `rememberUpdatedState` — if `headlineSpec` changes rapidly, stale lifecycle could be referenced
- `LaunchedEffect(Unit)` pattern used without comment justification (idiomatic "run once" but worth documenting when capturing mutable state)

**Evidence**

- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/ForyouScreen.kt:196` — `LaunchedEffect(headlineSpec)` captures `lifecycleOwner` without `rememberUpdatedState`, could reference stale lifecycle if spec changes during effect execution · References: https://developer.android.com/develop/ui/compose/side-effects
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:313-328` — `LaunchedEffect(Unit)` with `snapshotFlow` pattern is correct, but no comment explaining "run once" intent · References: https://developer.android.com/develop/ui/compose/side-effects
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:364-368` — Correct `LaunchedEffect(Unit)` with `snapshotFlow` for scroll state tracking · References: https://developer.android.com/develop/ui/compose/side-effects
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/components/PlaylistGallery.kt:69-81` — `LaunchedEffect(windowInfo.containerSize.width)` with lifecycle check and flow cleanup — correct pattern · References: https://developer.android.com/develop/ui/compose/side-effects

### Composable API Quality — 8/10

**What is working**

- Modifier conventions followed: `modifier: Modifier = Modifier` parameter last in all reusable composables
- Explicit parameter types, no implicit configuration dependencies (except `LocalHelper`, `LocalSpacing` which are appropriate CompositionLocal use cases)
- Clear separation: stateful route composables wrap stateless screen/component composables
- Reusable components follow slot API patterns: `header: (@Composable () -> Unit)? = null` in `PlaylistGallery.kt:53`
- `@Composable` functions have clear single responsibility
- Good use of `@Immutable` on value classes like `Padding.kt`, `Spacing.kt`, `GradientColors.kt`

**What is hurting the score**

- Some composables accept too many parameters (10+), suggesting refactoring opportunities: `PlaylistScreen` private composable at line 279 has 23 parameters
- `Preference` composable at `app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Preferences.kt:41` has modifier as third parameter instead of last

**Evidence**

- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:279-307` — 23 parameters on `PlaylistScreen` composable, consider grouping related state into data classes or splitting into smaller components · References: https://developer.android.com/develop/ui/compose/api-guidelines
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Preferences.kt:41-50` — `modifier: Modifier = Modifier` is third parameter, should be last per conventions · References: https://developer.android.com/develop/ui/compose/api-guidelines
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/components/PlaylistGallery.kt:44-53` — Good API: modifier last, clear parameters, slot API for header, contentPadding with default · References: https://developer.android.com/develop/ui/compose/api-guidelines
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/ChannelGallery.kt:38-51` — Good API: modifier and contentPadding last, clear lambda parameters, explicit types · References: https://developer.android.com/develop/ui/compose/api-guidelines

## Prioritized Fixes

1. **Add stable keys to all lazy list items**
   - Files: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/components/PlaylistGallery.kt:96`, `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/ChannelGallery.kt:92`, `app/tv/src/main/java/com/m3u/tv/common/MoviesRow.kt:128`, `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/extension/ExtensionScreen.kt:56`
   - Change: Add `key = { playlist.url }` or `key = { channel.id }` to items() calls. For paging: `items(count, key = { index -> peek(index)?.id ?: index })`
   - Impact: Fixes item recomposition on data changes, preserves scroll position and internal state, prevents IllegalArgumentException crashes on duplicate keys
   - References: https://developer.android.com/develop/ui/compose/lists

2. **Add kotlinx-collections-immutable dependency and migrate collection parameters**
   - Files: `gradle/libs.versions.toml`, `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/ForyouScreen.kt:170`, `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt:285`
   - Change: Add `kotlinx-collections-immutable = "0.3.7"` to versions, add library dependency, migrate `Map<K,V>` → `ImmutableMap<K,V>`, `List<T>` → `ImmutableList<T>` in composable parameters
   - Impact: Enables compiler skipping for composables with collection parameters, should improve skippable% from inferred ~60-70% → 80-90%+, reduces unnecessary recompositions
   - References: https://developer.android.com/develop/ui/compose/performance/stability/fix

3. **Move per-item data loading from produceState to ViewModel**
   - Files: `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/ChannelGallery.kt:95-116`, `business/playlist/src/main/java/com/m3u/business/playlist/PlaylistViewModel.kt`
   - Change: Combine `Channel`, `Programme`, and thumbnail URL into `ChannelWithMetadata` data class, expose `Flow<PagingData<ChannelWithMetadata>>` from ViewModel, remove `produceState` from item composition
   - Impact: Decouples data loading from composition, reduces coroutine overhead during scroll, improves scroll performance
   - References: https://developer.android.com/develop/ui/compose/performance/bestpractices

4. **Fix Preference modifier parameter order**
   - Files: `app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Preferences.kt:41`
   - Change: Move `modifier: Modifier = Modifier` parameter from third position to last
   - Impact: Follows Compose API conventions, improves API consistency across codebase
   - References: https://developer.android.com/develop/ui/compose/api-guidelines

## Notes And Limits

- TV module (`app/tv`) is commented out in `settings.gradle.kts`, so only smartphone and extension modules were fully audited. TV module code was spot-checked and shows similar patterns.
- Confidence: **Medium** — compiler reports unavailable (AGP 8.9.3 not found), all stability findings are source-inferred, not measured.
- Weight choice: Default 35/25/20/20 (Performance/State/Side Effects/API Quality)
- Renormalization: None (all categories scored)
- **Compiler diagnostics used: no** — Build failed with `Plugin [id: 'com.android.application', version: '8.9.3'] was not found`. All stability claims are inferred from source code patterns, not verified against Compose Compiler reports. Per rubric, this caps Performance score at 7, but systemic issues lower it further to 4.
- Strong Skipping Mode: Kotlin 2.3.0 in use (libs.versions.toml:43), which defaults to Strong Skipping enabled. No opt-outs (`@NonSkippableComposable`, `@DontMemoize`) found in audited code — positive signal.

## Suggested Follow-Up

- Run `material-3` audit if design system consistency is a concern. The codebase uses Material 3 (`androidx.compose.material3`) extensively.
- Re-run this audit after upgrading to a stable AGP version to generate Compose Compiler reports and get measured skippability metrics.


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: MATERIAL-3-AUDIT-REPORT.md
================================================
# Material 3 Design System Audit Report

Target: /home/runner/work/M3UAndroid/M3UAndroid
Date: 2026-04-16
Scope: app/smartphone, app/extension, core/foundation, design system implementation
Confidence: Medium (manual audit without dedicated skill)
Overall Score: 72/100

## Executive Summary

The M3UAndroid codebase demonstrates a **solid Material 3 foundation** with proper use of dynamic theming, HCT-based color generation, and adherence to Material 3 component patterns. However, there are **inconsistencies in design token usage**, **hardcoded colors bypassing the theme system**, and **custom spacing that doesn't align with Material 3 spacing guidelines**.

**Strengths:**
- Proper Material 3 ColorScheme implementation using HCT (Hue-Chroma-Tone)
- Dynamic color support for Android 12+
- Comprehensive surface container variants
- Consistent typography usage via MaterialTheme.typography
- Good use of @Immutable on theme-related data classes

**Weaknesses:**
- Hardcoded color literals bypassing theme system (Color(0x...))
- Custom spacing system instead of Material 3 spacing tokens
- SugarColors enum with hardcoded colors for preset themes
- Incomplete token coverage (missing some Material 3 state layer patterns)
- No elevation tokens defined

## Category Scores

| Category | Score | Status | Notes |
|----------|-------|--------|-------|
| Color System | 7/10 | solid | Good M3 implementation but hardcoded colors present |
| Typography | 8/10 | solid | Consistent MaterialTheme.typography usage |
| Spacing & Layout | 6/10 | needs work | Custom spacing system, inconsistent token usage |
| Component Usage | 8/10 | solid | Proper M3 components, good API usage |
| Theme Architecture | 7/10 | solid | HCT-based, dynamic colors, but missing documentation |
| Design Tokens | 6/10 | needs work | Partial token system, inconsistent application |

## Critical Findings

### 1. **Hardcoded Colors Bypassing Theme System**

**Severity:** Medium-High

**Evidence:**
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/ChannelItem.kt:96` — `tint = Color(0xffffcd3c)` hardcoded yellow for star icon
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/ChannelMask.kt:306` — `tint = if (favourite) Color(0xffffcd3c) else Color.Unspecified`
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/material/brush/Scrim.kt:10-11` — Hardcoded scrim colors instead of MaterialTheme.colorScheme.scrim
- `core/foundation/src/main/java/com/m3u/core/foundation/ui/SugarColors.kt:6-13` — 8 hardcoded color presets (Pink, Red, Yellow, etc.) with fixed hex values

**Why it matters:** Hardcoded colors break theme consistency and prevent proper dark mode support. When users switch themes or enable dynamic colors, these hardcoded values remain fixed, creating visual inconsistencies.

**Fix direction:**
- Replace star icon tint with `MaterialTheme.colorScheme.tertiary` or `MaterialTheme.colorScheme.primary`
- Use `MaterialTheme.colorScheme.scrim` for overlay colors
- Refactor SugarColors to generate from seed colors using HCT system (like the main theme does)

**References:**
- https://m3.material.io/styles/color/system/overview
- https://developer.android.com/develop/ui/compose/designsystems/material3

### 2. **Custom Spacing System Instead of Material 3 Tokens**

**Severity:** Medium

**Evidence:**
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/material/model/Spacing.kt` — Custom spacing scale (extraSmall: 4dp, small: 8dp, medium: 16dp, large: 24dp, extraLarge: 32dp, largest: 40dp)
- Material 3 defines spacing as multiples of 4dp with specific semantic tokens (not size-based names)

**Why it matters:** Material 3 uses semantic spacing tokens (e.g., `padding.horizontal`, `spacing.between`) rather than size-based scales. Custom spacing makes it harder to maintain consistency with Material Design guidelines and creates confusion about which spacing value to use in which context.

**Current implementation:**
```kotlin
data class Spacing(
    val none: Dp = 0.dp,
    val extraSmall: Dp = 4.dp,
    val small: Dp = 8.dp,
    val medium: Dp = 16.dp,
    val large: Dp = 24.dp,
    val extraLarge: Dp = 32.dp,
    val largest: Dp = 40.dp
)
```

**Material 3 approach:** Spacing should be contextual (e.g., component padding, content spacing) rather than size-based.

**Fix direction:**
- Consider migrating to Material 3's spacing approach or clearly document when to use each spacing value
- Add semantic aliases (e.g., `val contentPadding = medium`, `val componentSpacing = small`)
- Ensure the COMPACT spacing variant is used appropriately for different screen sizes

**References:**
- https://m3.material.io/foundations/layout/understanding-layout/spacing
- https://developer.android.com/develop/ui/compose/designsystems/material3

### 3. **Missing Elevation Token System**

**Severity:** Low-Medium

**Evidence:**
- No centralized elevation system found
- Surface elevations handled ad-hoc in components via `tonalElevation` parameter
- Material 3 defines 5 elevation levels (0dp, 1dp, 3dp, 6dp, 8dp, 12dp)

**Why it matters:** Consistent elevation creates visual hierarchy and helps users understand UI depth. Without a centralized system, different components may use inconsistent elevation values.

**Fix direction:**
- Create an `Elevation` data class similar to `Spacing`:
```kotlin
data class Elevation(
    val level0: Dp = 0.dp,
    val level1: Dp = 1.dp,
    val level2: Dp = 3.dp,
    val level3: Dp = 6dp,
    val level4: Dp = 8.dp,
    val level5: Dp = 12.dp
)
```

**References:**
- https://m3.material.io/styles/elevation/overview

## Category Details

### Color System — 7/10

**What is working:**

- ✅ Proper HCT-based color generation via `createScheme()` using Material Color Utilities
- ✅ Complete ColorScheme implementation with all 40+ Material 3 color roles
- ✅ Surface container variants properly implemented (surfaceDim, surfaceBright, surfaceContainer, surfaceContainerLow/High/Highest/Lowest)
- ✅ Dynamic color support for Android 12+ using `dynamicDarkColorScheme()` / `dynamicLightColorScheme()`
- ✅ Proper dark/light theme switching
- ✅ Color scheme persistence via Room database (`ColorScheme` entity)

**What needs improvement:**

- ❌ Hardcoded color literals bypass theme system (star yellow, scrim colors)
- ❌ SugarColors enum with 8 fixed color presets doesn't use HCT generation
- ❌ `surfaceTint` has "todo" comment at line 38 of Colors.kt, should use `scheme.surfaceTint`
- ⚠️ No documentation on when to use which color role

**Evidence:**
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/Colors.kt:18-65` — Well-structured ColorScheme with proper M3 roles
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/Colors.kt:38` — TODO comment for surfaceTint
- `core/foundation/src/main/java/com/m3u/core/foundation/ui/SugarColors.kt` — Hardcoded preset colors

### Typography — 8/10

**What is working:**

- ✅ Consistent use of `MaterialTheme.typography.*` throughout codebase
- ✅ Proper Material 3 type scale usage (titleLarge, bodyMedium, headlineSmall, etc.)
- ✅ No hardcoded text sizes or font families
- ✅ Typography passed as parameter to Theme composable

**What needs improvement:**

- ⚠️ No custom Typography definition found — using Material 3 defaults is fine, but consider customizing for brand identity
- ⚠️ No font weight or letter spacing customization
- ℹ️ Extension and TV modules may have separate typography — consistency not verified

**Evidence:**
- Grep results show 20+ usages of `MaterialTheme.typography.*` with proper type scale roles
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/material/model/Theme.kt:36` — Typography passed to MaterialTheme

### Spacing & Layout — 6/10

**What is working:**

- ✅ Centralized spacing system via `Spacing` data class
- ✅ CompositionLocal for spacing (`LocalSpacing`)
- ✅ Support for compact spacing variant (useful for tablets/large screens)
- ✅ Consistent usage via `LocalSpacing.current`

**What needs improvement:**

- ❌ Size-based naming (extraSmall, small, medium) instead of semantic (componentPadding, contentSpacing)
- ❌ Values don't align with Material 3 spacing recommendations
- ⚠️ No documentation on when to use REGULAR vs COMPACT
- ⚠️ Spacing used inconsistently — some components use hardcoded dp values

**Evidence:**
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/material/model/Spacing.kt` — Custom spacing system
- Multiple components using `spacing.medium`, `spacing.small` appropriately

### Component Usage — 8/10

**What is working:**

- ✅ Proper M3 components: SearchBar, NavigationSuiteScaffold, BottomSheet, Cards
- ✅ Adaptive navigation using NavigationSuiteScaffold
- ✅ Material 3 Icons (material-icons-extended)
- ✅ Proper composable API patterns (modifier last, proper parameters)
- ✅ Components follow Material 3 guidelines for states (focused, pressed, etc.)

**What needs improvement:**

- ⚠️ Some custom components (PullPanelLayout, Mask) may not follow M3 patterns — needs deeper review
- ⚠️ No consistent error state handling across components
- ℹ️ Loading states handled with custom CircularProgressIndicator wrapper

**Evidence:**
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/App.kt:27` — NavigationSuiteScaffold usage
- Multiple M3 components used correctly throughout

### Theme Architecture — 7/10

**What is working:**

- ✅ Clean theme implementation with seed color generation
- ✅ Proper support for dynamic colors (Android 12+)
- ✅ Theme state managed through preferences
- ✅ @Immutable annotations on theme-related classes
- ✅ HCT color science for accessible color generation

**What needs improvement:**

- ❌ No theme documentation or design system guide
- ⚠️ GradientColors system is separate from main theme (LocalGradientColors)
- ⚠️ Theme switching implementation not reviewed
- ℹ️ No theme preview or design tokens export for designers

**Evidence:**
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/material/model/Theme.kt` — Clean theme implementation
- `app/smartphone/src/main/java/com/m3u/smartphone/ui/material/model/GradientColors.kt` — Separate gradient system

### Design Tokens — 6/10

**What is working:**

- ✅ Color tokens via MaterialTheme.colorScheme
- ✅ Typography tokens via MaterialTheme.typography
- ✅ Spacing tokens via LocalSpacing
- ✅ @Immutable data classes for tokens

**What needs improvement:**

- ❌ No elevation tokens
- ❌ No shape tokens (corner radius system)
- ❌ No motion tokens (animation durations, curves)
- ❌ No state layer tokens (hover, pressed, focus, drag)
- ⚠️ Tokens not documented or exported for design tools

**Missing token systems:**
1. Elevation (0dp, 1dp, 3dp, 6dp, 8dp, 12dp)
2. Shapes (extra small, small, medium, large, extra large corners)
3. Motion (duration tokens, easing curves)
4. State layers (8%, 12%, 16% opacity overlays)

## Prioritized Fixes

### High Priority

1. **Remove hardcoded colors and use theme tokens**
   - Replace `Color(0xffffcd3c)` with `MaterialTheme.colorScheme.tertiary` or appropriate semantic color
   - Fix scrim colors to use `MaterialTheme.colorScheme.scrim`
   - Impact: Proper theme consistency, better dark mode support
   - Files: `ChannelItem.kt:96`, `ChannelMask.kt:306`, `Scrim.kt:10-11`

2. **Refactor SugarColors to use HCT generation**
   - Convert SugarColors enum to generate ColorSchemes using HCT from seed colors
   - This maintains the preset themes but makes them theme-system compatible
   - Impact: Consistent theming across all color presets
   - File: `core/foundation/src/main/java/com/m3u/core/foundation/ui/SugarColors.kt`

### Medium Priority

3. **Add elevation token system**
   - Create `Elevation` data class with M3 standard levels
   - Replace ad-hoc elevation values with tokens
   - Impact: Consistent visual hierarchy
   - New file: `app/smartphone/src/main/java/com/m3u/smartphone/ui/material/model/Elevation.kt`

4. **Document spacing system**
   - Add KDoc comments explaining when to use each spacing value
   - Consider semantic aliases (e.g., `val cardPadding = medium`)
   - Impact: Better developer experience, consistent spacing
   - File: `Spacing.kt`

5. **Fix surfaceTint TODO**
   - Change `surfaceTint = Color(scheme.surfaceVariant)` to `surfaceTint = Color(scheme.surfaceTint)`
   - Impact: Correct tonal elevation behavior
   - File: `Colors.kt:38`

### Low Priority

6. **Add shape token system**
   - Define corner radius tokens following M3 (extra small: 4dp, small: 8dp, medium: 12dp, large: 16dp, extra large: 28dp)
   - Impact: Consistent component shapes

7. **Create design system documentation**
   - Document color roles and when to use each
   - Document spacing usage guidelines
   - Export tokens for design tools (Figma variables)
   - Impact: Better team alignment, easier onboarding

## Notes

- **Methodology:** Manual audit without dedicated Material 3 skill
- **Coverage:** Focused on smartphone module as primary app, spot-checked extension and TV modules
- **M3 Version:** Using latest Material 3 Compose libraries (2026.01.01 BOM)
- **Confidence:** Medium — comprehensive review of theme system but some components not deeply analyzed
- **Positive highlight:** The HCT-based color generation is sophisticated and properly implements Material Design color science

## Recommendations

1. **Short term (1-2 weeks):**
   - Fix hardcoded colors (High Priority items 1-2)
   - Add elevation tokens (Medium Priority item 3)

2. **Medium term (1 month):**
   - Complete token system (shapes, motion, state layers)
   - Document design system
   - Create theme preview gallery

3. **Long term:**
   - Consider Jetpack Compose Material 3 Adaptive components for better large-screen support
   - Implement proper accessibility color contrast checking
   - Export design tokens for Figma

## Material 3 Compliance Score: 72/100

**Breakdown:**
- Color System: 7/10 (70%)
- Typography: 8/10 (80%)
- Spacing & Layout: 6/10 (60%)
- Component Usage: 8/10 (80%)
- Theme Architecture: 7/10 (70%)
- Design Tokens: 6/10 (60%)

**Overall:** The app has a **solid Material 3 foundation** with proper use of the design system in most areas. The main areas for improvement are eliminating hardcoded colors, completing the design token system, and improving documentation.

---

## Comparison with Compose Audit

The Compose audit scored **59/100** focusing on performance, state, and side effects. This Material 3 audit scores **72/100** focusing on design system consistency. Together, these audits suggest:

- **Strong design foundation** (M3 usage)
- **Needs performance optimization** (lazy list keys, immutable collections)
- **Overall healthy codebase** with clear improvement paths

Recommended next steps: Address Compose performance issues first (high user impact), then polish design system (user experience quality).


================================================
FILE: README.md
================================================
# M3UAndroid

<div align="center">

[![GitHub release](https://img.shields.io/github/v/release/oxyroid/M3UAndroid)](https://github.com/oxyroid/M3UAndroid/releases)
[![Android](https://img.shields.io/badge/Android-8.0%2B-brightgreen?logo=android)](https://developer.android.com)
[![Telegram](https://img.shields.io/badge/Telegram-Channel-2CA5E0?logo=telegram)](https://t.me/m3u_android)
[![License](https://img.shields.io/badge/License-GPL%203.0-blue)](LICENSE)

A modern IPTV streaming player built with Jetpack Compose for Android phones, tablets, and TV devices.

</div>

## Features

- **Multi-Platform** - Optimized UI for smartphones, tablets, and Android TV
- **DLNA Casting** - Stream to compatible devices on your network
- **Smart Playback** - Advanced stream analysis and buffering
- **Protocol Support** - M3U playlists and Xtream API compatibility
- **Lightweight** - No ads, minimal permissions, efficient performance
- **Multi-Language** - Support for 12+ languages

## Screenshots

<table>
<tr>
<td width="50%">

**Mobile**

<img src=".github/images/phone/deviceframes.png" alt="Mobile UI" />

</td>
<td width="50%">

**Android TV**

<img src=".github/images/tv/playlist.png" alt="TV Playlist" />
<img src=".github/images/tv/player.png" alt="TV Player" />

</td>
</tr>
</table>

## Download

[![GitHub Release](https://img.shields.io/badge/GitHub-Latest_Release-181717?style=for-the-badge&logo=github)](https://github.com/oxyroid/M3UAndroid/releases/latest)
[![F-Droid](https://img.shields.io/badge/F--Droid-Repository-1976D2?style=for-the-badge&logo=fdroid&logoColor=white)](https://f-droid.org/packages/com.m3u.androidApp)
[![IzzyOnDroid](https://img.shields.io/badge/IzzyOnDroid-Repository-8A4182?style=for-the-badge)](https://apt.izzysoft.de/fdroid/index/apk/com.m3u.androidApp)

**Nightly builds** available via [GitHub Actions artifacts](https://nightly.link/oxyroid/M3UAndroid/workflows/android/master/artifact.zip).

## Tech Stack

- **Language** - 100% Kotlin
- **UI** - Jetpack Compose with Material Design 3
- **Architecture** - MVVM with modular structure
- **Async** - Kotlin Coroutines and Flow
- **Database** - Room
- **DI** - Hilt
- **Media** - ExoPlayer with FFmpeg integration

## Localization

Contributions welcome! Currently supporting:

- 🇬🇧 [English](i18n/src/main/res/values) · 🇨🇳 [简体中文](i18n/src/main/res/values-zh-rCN)
- 🇫🇷 [Français](i18n/src/main/res/values-fr-rFR) · 🇩🇪 [Deutsch](i18n/src/main/res/values-de-rDE)
- 🇮🇩 [Indonesia](i18n/src/main/res/values-id-rID) · 🇮🇹 [Italiano](i18n/src/main/res/values-it-rIT)
- 🇧🇷 [Português (BR)](i18n/src/main/res/values-pt-rBR) · 🇷🇴 [Română](i18n/src/main/res/values-ro-rRO)
- 🇪🇸 [Español](i18n/src/main/res/values-es-rES) · 🇸🇪 [Svenska](i18n/src/main/res/values-sv-rSE)
- 🇹🇷 [Türkçe](i18n/src/main/res/values-tr-rTR)

## Contributing

Contributions are welcome! Please feel free to submit pull requests or open issues for bugs and feature requests.

## Community

- **Telegram Channel** - [t.me/m3u_android](https://t.me/m3u_android)
- **Telegram Chat** - [t.me/m3u_android_chat](https://t.me/m3u_android_chat)

## License

This project is licensed under the [GNU General Public License v3.0](LICENSE).


================================================
FILE: app/AGENTS.md
================================================
# AGENTS.md

This file applies to `app/`. Use it together with the root guidance. More specific files, such as `app/tv/AGENTS.md`, take precedence inside their subtree.

## App Module Scope

- App modules own Compose routes, screens, permission prompts, navigation wiring, Hilt entry points, activities, platform adapters, and app-specific presentation.
- Keep lower-level screen composables parameter-driven. Route-level composables should connect ViewModels, permissions, navigation, and platform helpers.
- Do not directly access DAOs, databases, parser internals, or low-level data sources from UI code.
- Keep playback launch, remote-control entry points, and permission flows consistent with existing app patterns.

## Compose And UI Style

- Keep UI in Compose unless existing code uses interop for a narrow platform surface.
- Keep composables stable, lightweight, and mostly parameter-driven. Put long-lived work in ViewModels or business logic.
- Use Compose state and side-effect APIs deliberately, following nearby code patterns.
- Do not perform state mutation or network/device side effects from draw lambdas such as `Canvas` rendering.
- Use existing UI h
Download .txt
gitextract_ozggl_4v/

├── .claude/
│   └── skills/
│       └── jetpack-compose-audit/
│           ├── README.md
│           ├── SKILL.md
│           ├── references/
│           │   ├── canonical-sources.md
│           │   ├── diagnostics.md
│           │   ├── report-template.md
│           │   ├── scoring.md
│           │   └── search-playbook.md
│           └── scripts/
│               └── compose-reports.init.gradle
├── .github/
│   ├── ISSUE_TEMPLATE/
│   │   ├── bug_report.md
│   │   └── feature_request.md
│   └── workflows/
│       ├── android.yml
│       ├── baseline-profiles.yml
│       └── native-packs.yml
├── .gitignore
├── .gitmodules
├── .idea/
│   ├── .gitignore
│   ├── .name
│   ├── AndroidProjectSystem.xml
│   ├── compiler.xml
│   ├── deploymentTargetSelector.xml
│   ├── deviceManager.xml
│   ├── gradle.xml
│   ├── misc.xml
│   ├── runConfigurations/
│   │   ├── BaselineProfile_Smartphone.xml
│   │   ├── BaselineProfile_TV.xml
│   │   └── M3UAndroid___benchmark_Pixel5Api31BenchmarkAndroidTest_.xml
│   ├── runConfigurations.xml
│   └── vcs.xml
├── AGENTS.md
├── CODE_OF_CONDUCT.md
├── COMPOSE-AUDIT-REPORT.md
├── LICENSE
├── MATERIAL-3-AUDIT-REPORT.md
├── README.md
├── app/
│   ├── AGENTS.md
│   ├── extension/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           ├── java/
│   │           │   └── com/
│   │           │       └── m3u/
│   │           │           └── extension/
│   │           │               ├── MainActivity.kt
│   │           │               └── ui/
│   │           │                   └── theme/
│   │           │                       ├── Color.kt
│   │           │                       ├── Theme.kt
│   │           │                       └── Type.kt
│   │           └── res/
│   │               ├── mipmap-anydpi-v26/
│   │               │   └── ic_launcher.xml
│   │               └── values/
│   │                   ├── colors.xml
│   │                   ├── strings.xml
│   │                   └── themes.xml
│   ├── smartphone/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       ├── androidTest/
│   │       │   └── java/
│   │       │       └── com/
│   │       │           └── m3u/
│   │       │               └── testing/
│   │       │                   └── MockServerSmokeTest.kt
│   │       ├── main/
│   │       │   ├── AndroidManifest.xml
│   │       │   ├── generated/
│   │       │   │   └── baselineProfiles/
│   │       │   │       ├── baseline-prof.txt
│   │       │   │       └── startup-prof.txt
│   │       │   ├── java/
│   │       │   │   └── com/
│   │       │   │       └── m3u/
│   │       │   │           └── smartphone/
│   │       │   │               ├── AppModule.kt
│   │       │   │               ├── AppPublisher.kt
│   │       │   │               ├── M3UApplication.kt
│   │       │   │               ├── MainActivity.kt
│   │       │   │               ├── TimeUtils.kt
│   │       │   │               ├── benchmark/
│   │       │   │               │   └── DebugBenchmarkSettings.kt
│   │       │   │               ├── glance/
│   │       │   │               │   ├── FavouriteWidget.kt
│   │       │   │               │   └── GlanceReceiver.kt
│   │       │   │               ├── startup/
│   │       │   │               │   └── ComposeInitializer.kt
│   │       │   │               └── ui/
│   │       │   │                   ├── App.kt
│   │       │   │                   ├── AppViewModel.kt
│   │       │   │                   ├── business/
│   │       │   │                   │   ├── channel/
│   │       │   │                   │   │   ├── ChannelMask.kt
│   │       │   │                   │   │   ├── ChannelMaskUtils.kt
│   │       │   │                   │   │   ├── ChannelScreen.kt
│   │       │   │                   │   │   ├── MaskGesture.kt
│   │       │   │                   │   │   ├── PlayerActivity.kt
│   │       │   │                   │   │   └── components/
│   │       │   │                   │   │       ├── DlnaDeviceItem.kt
│   │       │   │                   │   │       ├── DlnaDevicesBottomSheet.kt
│   │       │   │                   │   │       ├── FormatItem.kt
│   │       │   │                   │   │       ├── FormatsBottomSheet.kt
│   │       │   │                   │   │       ├── MaskGestureValuePanel.kt
│   │       │   │                   │   │       ├── MaskValueButton.kt
│   │       │   │                   │   │       ├── PlayerMask.kt
│   │       │   │                   │   │       ├── PlayerPanel.kt
│   │       │   │                   │   │       ├── ProgrammeGuide.kt
│   │       │   │                   │   │       └── VerticalGestureArea.kt
│   │       │   │                   │   ├── configuration/
│   │       │   │                   │   │   ├── PlaylistConfigurationNavigation.kt
│   │       │   │                   │   │   ├── PlaylistConfigurationScreen.kt
│   │       │   │                   │   │   └── components/
│   │       │   │                   │   │       ├── AutoSyncProgrammesButton.kt
│   │       │   │                   │   │       ├── EpgManifestGallery.kt
│   │       │   │                   │   │       ├── SyncProgrammesButton.kt
│   │       │   │                   │   │       └── XtreamPanel.kt
│   │       │   │                   │   ├── extension/
│   │       │   │                   │   │   └── ExtensionScreen.kt
│   │       │   │                   │   ├── favourite/
│   │       │   │                   │   │   ├── FavouriteScreen.kt
│   │       │   │                   │   │   └── components/
│   │       │   │                   │   │       ├── FavoriteGallery.kt
│   │       │   │                   │   │       └── FavoriteItem.kt
│   │       │   │                   │   ├── foryou/
│   │       │   │                   │   │   ├── ForyouScreen.kt
│   │       │   │                   │   │   └── components/
│   │       │   │                   │   │       ├── HeadlineBackground.kt
│   │       │   │                   │   │       ├── Loading.kt
│   │       │   │                   │   │       ├── PlaylistGallery.kt
│   │       │   │                   │   │       ├── PlaylistItem.kt
│   │       │   │                   │   │       └── recommend/
│   │       │   │                   │   │           ├── RecommendGallery.kt
│   │       │   │                   │   │           └── RecommendItem.kt
│   │       │   │                   │   ├── playlist/
│   │       │   │                   │   │   ├── PlaylistNavigation.kt
│   │       │   │                   │   │   ├── PlaylistScreen.kt
│   │       │   │                   │   │   └── components/
│   │       │   │                   │   │       ├── ChannelGallery.kt
│   │       │   │                   │   │       ├── ChannelItem.kt
│   │       │   │                   │   │       └── PlaylistTabRow.kt
│   │       │   │                   │   └── setting/
│   │       │   │                   │       ├── SettingScreen.kt
│   │       │   │                   │       ├── components/
│   │       │   │                   │       │   ├── CanvasBottomSheet.kt
│   │       │   │                   │       │   ├── CheckBoxSharedPreference.kt
│   │       │   │                   │       │   ├── DataSourceSelection.kt
│   │       │   │                   │       │   ├── EpgPlaylistItem.kt
│   │       │   │                   │       │   ├── HiddenChannelItem.kt
│   │       │   │                   │       │   ├── HiddenPlaylistItem.kt
│   │       │   │                   │       │   ├── LocalStorageButton.kt
│   │       │   │                   │       │   ├── LocalStorageSwitch.kt
│   │       │   │                   │       │   └── RemoteControlSubscribeSwitch.kt
│   │       │   │                   │       └── fragments/
│   │       │   │                   │           ├── AppearanceFragment.kt
│   │       │   │                   │           ├── CodecPackFragment.kt
│   │       │   │                   │           ├── OptionalFragment.kt
│   │       │   │                   │           ├── SubscriptionsFragment.kt
│   │       │   │                   │           └── preferences/
│   │       │   │                   │               ├── OtherPreferences.kt
│   │       │   │                   │               ├── PreferencesFragment.kt
│   │       │   │                   │               └── RegularPreferences.kt
│   │       │   │                   ├── common/
│   │       │   │                   │   ├── AppNavHost.kt
│   │       │   │                   │   ├── RootGraph.kt
│   │       │   │                   │   ├── SmartphoneViewModel.kt
│   │       │   │                   │   ├── connect/
│   │       │   │                   │   │   ├── CodeRow.kt
│   │       │   │                   │   │   ├── DPadContent.kt
│   │       │   │                   │   │   ├── PrepareContent.kt
│   │       │   │                   │   │   ├── RemoteControlSheet.kt
│   │       │   │                   │   │   ├── RemoteDirectionController.kt
│   │       │   │                   │   │   └── VirtualNumberKeyboard.kt
│   │       │   │                   │   ├── helper/
│   │       │   │                   │   │   ├── Element.kt
│   │       │   │                   │   │   ├── Helper.kt
│   │       │   │                   │   │   └── Metadata.kt
│   │       │   │                   │   └── internal/
│   │       │   │                   │       ├── Events.kt
│   │       │   │                   │       └── Toolkit.kt
│   │       │   │                   └── material/
│   │       │   │                       ├── M3UHapticFeedback.kt
│   │       │   │                       ├── RecomposeHighlighter.kt
│   │       │   │                       ├── brush/
│   │       │   │                       │   └── Scrim.kt
│   │       │   │                       ├── components/
│   │       │   │                       │   ├── Backgrounds.kt
│   │       │   │                       │   ├── Badges.kt
│   │       │   │                       │   ├── BottomSheet.kt
│   │       │   │                       │   ├── Brushes.kt
│   │       │   │                       │   ├── Destination.kt
│   │       │   │                       │   ├── EpisodesBottomSheet.kt
│   │       │   │                       │   ├── EventHandler.kt
│   │       │   │                       │   ├── FontFamilies.kt
│   │       │   │                       │   ├── HorizontalPagerIndicator.kt
│   │       │   │                       │   ├── Images.kt
│   │       │   │                       │   ├── Layouts.kt
│   │       │   │                       │   ├── Lotties.kt
│   │       │   │                       │   ├── MediaSheet.kt
│   │       │   │                       │   ├── MonoText.kt
│   │       │   │                       │   ├── Player.kt
│   │       │   │                       │   ├── Preferences.kt
│   │       │   │                       │   ├── PullPanelLayout.kt
│   │       │   │                       │   ├── Selections.kt
│   │       │   │                       │   ├── SnackHost.kt
│   │       │   │                       │   ├── SortBottomSheet.kt
│   │       │   │                       │   ├── TextFields.kt
│   │       │   │                       │   ├── ThemeSelection.kt
│   │       │   │                       │   └── mask/
│   │       │   │                       │       ├── Mask.kt
│   │       │   │                       │       ├── MaskButton.kt
│   │       │   │                       │       ├── MaskCircleButton.kt
│   │       │   │                       │       ├── MaskDefaults.kt
│   │       │   │                       │       ├── MaskInterceptor.kt
│   │       │   │                       │       ├── MaskPanel.kt
│   │       │   │                       │       └── MaskState.kt
│   │       │   │                       ├── effects/
│   │       │   │                       │   └── BackStack.kt
│   │       │   │                       ├── ktx/
│   │       │   │                       │   ├── Blurs.kt
│   │       │   │                       │   ├── Colors.kt
│   │       │   │                       │   ├── Effects.kt
│   │       │   │                       │   ├── Interaction.kt
│   │       │   │                       │   ├── InterceptEvent.kt
│   │       │   │                       │   ├── LifecycleEffect.kt
│   │       │   │                       │   ├── Modifier.kt
│   │       │   │                       │   ├── PaddingValues.kt
│   │       │   │                       │   ├── Pager.kt
│   │       │   │                       │   ├── Permissions.kt
│   │       │   │                       │   ├── ScrollableState.kt
│   │       │   │                       │   └── Unspecified.kt
│   │       │   │                       ├── model/
│   │       │   │                       │   ├── Duration.kt
│   │       │   │                       │   ├── GradientColors.kt
│   │       │   │                       │   ├── LocalHazeState.kt
│   │       │   │                       │   ├── Spacing.kt
│   │       │   │                       │   └── Theme.kt
│   │       │   │                       ├── texture/
│   │       │   │                       │   ├── TextureContainer.kt
│   │       │   │                       │   └── Textures.kt
│   │       │   │                       └── transformation/
│   │       │   │                           ├── BlurTransformation.kt
│   │       │   │                           └── ColorCombineTransformation.kt
│   │       │   └── res/
│   │       │       ├── drawable/
│   │       │       │   ├── baseline_history_toggle_off_24.xml
│   │       │       │   ├── ic_launcher_background.xml
│   │       │       │   ├── ic_launcher_foreground.xml
│   │       │       │   ├── ic_splash.xml
│   │       │       │   ├── round_calendar_month_24.xml
│   │       │       │   └── round_space_dashboard_24.xml
│   │       │       ├── font/
│   │       │       │   └── google_sans.xml
│   │       │       ├── mipmap-anydpi-v26/
│   │       │       │   └── ic_launcher.xml
│   │       │       ├── values/
│   │       │       │   ├── colors.xml
│   │       │       │   ├── stings.xml
│   │       │       │   └── themes.xml
│   │       │       ├── values-night/
│   │       │       │   └── colors.xml
│   │       │       ├── values-v27/
│   │       │       │   └── themes.xml
│   │       │       ├── values-v29/
│   │       │       │   └── themes.xml
│   │       │       ├── xml/
│   │       │       │   ├── backup_rules.xml
│   │       │       │   ├── data_extraction_rules.xml
│   │       │       │   ├── filepaths.xml
│   │       │       │   ├── shortcuts.xml
│   │       │       │   └── widget_info.xml
│   │       │       └── xml-v31/
│   │       │           └── widget_info.xml
│   │       ├── release/
│   │       │   ├── AndroidManifest.xml
│   │       │   └── java/
│   │       │       └── com/
│   │       │           └── m3u/
│   │       │               └── smartphone/
│   │       │                   └── startup/
│   │       │                       └── CodecNativeInitializer.kt
│   │       └── snapshotChannel/
│   │           └── res/
│   │               └── values/
│   │                   ├── colors.xml
│   │                   └── stings.xml
│   └── tv/
│       ├── .gitignore
│       ├── AGENTS.md
│       ├── build.gradle.kts
│       ├── proguard-rules.pro
│       └── src/
│           ├── androidTest/
│           │   └── java/
│           │       └── com/
│           │           └── m3u/
│           │               └── testing/
│           │                   └── MockServerSmokeTest.kt
│           └── main/
│               ├── AndroidManifest.xml
│               ├── generated/
│               │   └── baselineProfiles/
│               │       ├── baseline-prof.txt
│               │       └── startup-prof.txt
│               ├── java/
│               │   └── com/
│               │       └── m3u/
│               │           └── tv/
│               │               ├── App.kt
│               │               ├── AppModule.kt
│               │               ├── AppPublisher.kt
│               │               ├── M3UApplication.kt
│               │               ├── MainActivity.kt
│               │               ├── TvComponents.kt
│               │               ├── TvHomeViewModel.kt
│               │               ├── TvPlayerScreen.kt
│               │               ├── TvScreens.kt
│               │               ├── TvStyle.kt
│               │               └── startup/
│               │                   └── ComposeInitializer.kt
│               └── res/
│                   └── values/
│                       ├── stings.xml
│                       └── themes.xml
├── baselineprofile/
│   ├── smartphone/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           └── java/
│   │               └── com/
│   │                   └── m3u/
│   │                       └── baselineprofile/
│   │                           ├── BaselineProfileGenerator.kt
│   │                           └── StartupBenchmarks.kt
│   └── tv/
│       ├── .gitignore
│       ├── build.gradle.kts
│       └── src/
│           └── main/
│               ├── AndroidManifest.xml
│               └── java/
│                   └── com/
│                       └── m3u/
│                           └── baselineprofile/
│                               ├── BaselineProfileGenerator.kt
│                               └── StartupBenchmarks.kt
├── build.gradle.kts
├── business/
│   ├── AGENTS.md
│   ├── channel/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           └── java/
│   │               └── com/
│   │                   └── m3u/
│   │                       └── business/
│   │                           └── channel/
│   │                               ├── ChannelViewModel.kt
│   │                               ├── CwPositionConsumer.kt
│   │                               └── PlayerState.kt
│   ├── extension/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           └── java/
│   │               └── com/
│   │                   └── m3u/
│   │                       └── business/
│   │                           └── extension/
│   │                               └── ExtensionViewModel.kt
│   ├── favorite/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           ├── java/
│   │           │   └── com/
│   │           │       └── m3u/
│   │           │           └── business/
│   │           │               └── favorite/
│   │           │                   └── FavouriteViewModel.kt
│   │           └── res/
│   │               └── drawable/
│   │                   └── round_play_arrow_24.xml
│   ├── foryou/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           ├── java/
│   │           │   └── com/
│   │           │       └── m3u/
│   │           │           └── business/
│   │           │               └── foryou/
│   │           │                   ├── ForyouViewModel.kt
│   │           │                   └── Recommend.kt
│   │           └── res/
│   │               └── raw/
│   │                   ├── empty.json
│   │                   └── loading.json
│   ├── playlist/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           ├── java/
│   │           │   └── com/
│   │           │       └── m3u/
│   │           │           └── business/
│   │           │               └── playlist/
│   │           │                   ├── PlaylistMessage.kt
│   │           │                   ├── PlaylistNavigation.kt
│   │           │                   └── PlaylistViewModel.kt
│   │           └── res/
│   │               └── drawable/
│   │                   └── round_play_arrow_24.xml
│   ├── playlist-configuration/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           └── java/
│   │               └── com/
│   │                   └── m3u/
│   │                       └── business/
│   │                           └── playlist/
│   │                               └── configuration/
│   │                                   ├── PlaylistConfigurationNavigation.kt
│   │                                   └── PlaylistConfigurationViewModel.kt
│   └── setting/
│       ├── .gitignore
│       ├── build.gradle.kts
│       ├── consumer-rules.pro
│       ├── proguard-rules.pro
│       └── src/
│           └── main/
│               ├── AndroidManifest.xml
│               ├── java/
│               │   └── com/
│               │       └── m3u/
│               │           └── business/
│               │               └── setting/
│               │                   ├── BackingUpAndRestoringState.kt
│               │                   ├── CodecPackState.kt
│               │                   ├── SettingMessage.kt
│               │                   ├── SettingProperties.kt
│               │                   └── SettingViewModel.kt
│               └── res/
│                   └── drawable/
│                       └── telegram.xml
├── compose_compiler_config.conf
├── core/
│   ├── .gitignore
│   ├── AGENTS.md
│   ├── README.md
│   ├── build.gradle.kts
│   ├── consumer-rules.pro
│   ├── extension/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           ├── java/
│   │           │   └── com/
│   │           │       └── m3u/
│   │           │           └── core/
│   │           │               └── extension/
│   │           │                   ├── OnRemoteCall.kt
│   │           │                   ├── OnRemoteCallImpl.kt
│   │           │                   ├── RemoteService.kt
│   │           │                   ├── RemoteServiceDependencies.kt
│   │           │                   ├── RemoteServiceDependenciesImpl.kt
│   │           │                   ├── Utils.kt
│   │           │                   └── business/
│   │           │                       ├── InfoModule.kt
│   │           │                       ├── RemoteModule.kt
│   │           │                       └── SubscribeModule.kt
│   │           └── resources/
│   │               └── META-INF/
│   │                   └── services/
│   │                       ├── com.m3u.core.extension.OnRemoteCall
│   │                       └── com.m3u.core.extension.RemoteServiceDependencies
│   ├── foundation/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   ├── consumer-rules.pro
│   │   ├── proguard-rules.pro
│   │   └── src/
│   │       └── main/
│   │           ├── AndroidManifest.xml
│   │           └── java/
│   │               └── com/
│   │                   └── m3u/
│   │                       └── core/
│   │                           └── foundation/
│   │                               ├── Contracts.kt
│   │                               ├── architecture/
│   │                               │   ├── FileProvider.kt
│   │                               │   ├── Publisher.kt
│   │                               │   └── preferences/
│   │                               │       ├── ClipMode.kt
│   │                               │       ├── ConnectTimeout.kt
│   │                               │       ├── PlaylistStrategy.kt
│   │                               │       ├── Preferences.kt
│   │                               │       ├── ReconnectMode.kt
│   │                               │       └── UnseensMilliseconds.kt
│   │                               ├── components/
│   │                               │   ├── AbsoluteSmoothCornerShape.kt
│   │                               │   ├── CircularProgressIndicator.kt
│   │                               │   └── SmoothCorner.kt
│   │                               ├── ktx/
│   │                               │   └── NotNulls.kt
│   │                               ├── suggest/
│   │                               │   └── Suggester.kt
│   │                               ├── ui/
│   │                               │   ├── Composable.kt
│   │                               │   ├── SugarColors.kt
│   │                               │   └── ThenIf.kt
│   │                               ├── unit/
│   │                               │   └── DataUnit.kt
│   │                               ├── util/
│   │                               │   ├── Files.kt
│   │                               │   ├── basic/
│   │                               │   │   ├── Graphics.kt
│   │                               │   │   ├── LetIf.kt
│   │                               │   │   └── Strings.kt
│   │                               │   ├── collections/
│   │                               │   │   ├── ForEachNotNull.kt
│   │                               │   │   └── IndexOf.kt
│   │                               │   ├── compose/
│   │                               │   │   └── ObservableState.kt
│   │                               │   ├── context/
│   │                               │   │   ├── Configuration.kt
│   │                               │   │   ├── SharedPreferences.kt
│   │                               │   │   └── Toasts.kt
│   │                               │   └── coroutine/
│   │                               │       └── Flows.kt
│   │                               └── wrapper/
│   │                                   ├── Event.kt
│   │                                   ├── Message.kt
│   │                                   ├── Resource.kt
│   │                                   └── Sort.kt
│   ├── proguard-rules.pro
│   └── src/
│       └── main/
│           └── AndroidManifest.xml
├── data/
│   ├── .gitignore
│   ├── AGENTS.md
│   ├── build.gradle.kts
│   ├── consumer-rules.pro
│   ├── proguard-rules.pro
│   ├── schemas/
│   │   └── com.m3u.data.database.M3UDatabase/
│   │       ├── 1.json
│   │       ├── 10.json
│   │       ├── 11.json
│   │       ├── 12.json
│   │       ├── 13.json
│   │       ├── 14.json
│   │       ├── 15.json
│   │       ├── 16.json
│   │       ├── 17.json
│   │       ├── 18.json
│   │       ├── 19.json
│   │       ├── 2.json
│   │       ├── 20.json
│   │       ├── 21.json
│   │       ├── 3.json
│   │       ├── 4.json
│   │       ├── 5.json
│   │       ├── 6.json
│   │       ├── 7.json
│   │       ├── 8.json
│   │       └── 9.json
│   └── src/
│       └── main/
│           ├── AndroidManifest.xml
│           ├── java/
│           │   └── com/
│           │       └── m3u/
│           │           └── data/
│           │               ├── Certs.kt
│           │               ├── SSLs.kt
│           │               ├── api/
│           │               │   ├── ApiModule.kt
│           │               │   ├── BaseUrls.kt
│           │               │   ├── TvApiDelegate.kt
│           │               │   └── dto/
│           │               │       └── github/
│           │               │           ├── Asset.kt
│           │               │           ├── File.kt
│           │               │           ├── Leaf.kt
│           │               │           ├── Links.kt
│           │               │           ├── Release.kt
│           │               │           ├── Tree.kt
│           │               │           └── User.kt
│           │               ├── codec/
│           │               │   ├── CodecNativeLoader.kt
│           │               │   ├── CodecPackConfig.kt
│           │               │   ├── CodecPackManifest.kt
│           │               │   └── CodecPackRepository.kt
│           │               ├── database/
│           │               │   ├── Converters.kt
│           │               │   ├── DatabaseMigrations.kt
│           │               │   ├── DatabaseModule.kt
│           │               │   ├── M3UDatabase.kt
│           │               │   ├── dao/
│           │               │   │   ├── ChannelDao.kt
│           │               │   │   ├── ColorSchemeDao.kt
│           │               │   │   ├── EpisodeDao.kt
│           │               │   │   ├── PlaylistDao.kt
│           │               │   │   └── ProgrammeDao.kt
│           │               │   ├── example/
│           │               │   │   └── ColorSchemeExample.kt
│           │               │   └── model/
│           │               │       ├── AdjacentChannels.kt
│           │               │       ├── Channel.kt
│           │               │       ├── ColorScheme.kt
│           │               │       ├── Episode.kt
│           │               │       ├── Playlist.kt
│           │               │       └── Programme.kt
│           │               ├── model/
│           │               │   └── ChannelSet.kt
│           │               ├── parser/
│           │               │   ├── ParserModule.kt
│           │               │   ├── ParserUtils.kt
│           │               │   ├── epg/
│           │               │   │   ├── EpgData.kt
│           │               │   │   ├── EpgParser.kt
│           │               │   │   └── EpgParserImpl.kt
│           │               │   ├── m3u/
│           │               │   │   ├── M3UData.kt
│           │               │   │   ├── M3UParser.kt
│           │               │   │   └── M3UParserImpl.kt
│           │               │   └── xtream/
│           │               │       ├── XtreamCategory.kt
│           │               │       ├── XtreamChannelInfo.kt
│           │               │       ├── XtreamData.kt
│           │               │       ├── XtreamInfo.kt
│           │               │       ├── XtreamOutput.kt
│           │               │       ├── XtreamParser.kt
│           │               │       └── XtreamParserImpl.kt
│           │               ├── repository/
│           │               │   ├── BackupOrRestoreContracts.kt
│           │               │   ├── CoroutineCache.kt
│           │               │   ├── RepositoryModule.kt
│           │               │   ├── channel/
│           │               │   │   ├── ChannelRepository.kt
│           │               │   │   └── ChannelRepositoryImpl.kt
│           │               │   ├── media/
│           │               │   │   ├── MediaRepository.kt
│           │               │   │   └── MediaRepositoryImpl.kt
│           │               │   ├── playlist/
│           │               │   │   ├── PlaylistRepository.kt
│           │               │   │   └── PlaylistRepositoryImpl.kt
│           │               │   ├── programme/
│           │               │   │   ├── ProgrammeRepository.kt
│           │               │   │   └── ProgrammeRepositoryImpl.kt
│           │               │   └── tv/
│           │               │       ├── TvRepository.kt
│           │               │       └── TvRepositoryImpl.kt
│           │               ├── service/
│           │               │   ├── DPadReactionService.kt
│           │               │   ├── Messager.kt
│           │               │   ├── PlayerManager.kt
│           │               │   ├── ServicesModule.kt
│           │               │   └── internal/
│           │               │       ├── ChannelPreferenceProvider.kt
│           │               │       ├── Codecs.kt
│           │               │       ├── ContinueWatchingCondition.kt
│           │               │       ├── DPadReactionServiceImpl.kt
│           │               │       ├── FileProviderImpl.kt
│           │               │       ├── KodiAdaptions.kt
│           │               │       ├── MessagerImpl.kt
│           │               │       ├── PlayerManagerImpl.kt
│           │               │       └── Utils.kt
│           │               ├── tv/
│           │               │   ├── Utils.kt
│           │               │   ├── http/
│           │               │   │   ├── HttpServer.kt
│           │               │   │   ├── HttpServerImpl.kt
│           │               │   │   └── endpoint/
│           │               │   │       ├── DefRep.kt
│           │               │   │       ├── Endpoint.kt
│           │               │   │       ├── Playlists.kt
│           │               │   │       ├── Remotes.kt
│           │               │   │       └── SayHellos.kt
│           │               │   ├── model/
│           │               │   │   ├── RemoteDirection.kt
│           │               │   │   └── TvInfo.kt
│           │               │   └── nsd/
│           │               │       ├── NsdDeviceManager.kt
│           │               │       ├── NsdDeviceManagerImpl.kt
│           │               │       └── NsdResolveListener.kt
│           │               └── worker/
│           │                   ├── BackupWorker.kt
│           │                   ├── ProgrammeReminder.kt
│           │                   ├── RestoreWorker.kt
│           │                   └── SubscriptionWorker.kt
│           └── res/
│               └── drawable/
│                   ├── baseline_notifications_none_24.xml
│                   ├── round_cancel_24.xml
│                   ├── round_file_download_24.xml
│                   └── round_refresh_24.xml
├── docs/
│   └── native-load-yaml.md
├── fastlane/
│   └── metadata/
│       └── android/
│           ├── en-US/
│           │   ├── full_description.txt
│           │   ├── short_description.txt
│           │   └── title.txt
│           └── es-ES/
│               ├── full_description.txt
│               └── short_description.txt
├── gradle/
│   ├── libs.versions.toml
│   └── wrapper/
│       ├── gradle-wrapper.jar
│       └── gradle-wrapper.properties
├── gradle.properties
├── gradlew
├── gradlew.bat
├── i18n/
│   ├── .gitignore
│   ├── AGENTS.md
│   ├── build.gradle.kts
│   ├── consumer-rules.pro
│   ├── proguard-rules.pro
│   └── src/
│       └── main/
│           ├── AndroidManifest.xml
│           └── res/
│               ├── values/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-de-rDE/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-es-rES/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-es-rMX/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-fr-rFR/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-id-rID/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-it-rIT/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-pt-rBR/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-ro-rRO/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-sv-rSE/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               ├── values-tr-rTR/
│               │   ├── app.xml
│               │   ├── data.xml
│               │   ├── feat_about.xml
│               │   ├── feat_console.xml
│               │   ├── feat_favourite.xml
│               │   ├── feat_foryou.xml
│               │   ├── feat_playlist.xml
│               │   ├── feat_playlist_configuration.xml
│               │   ├── feat_setting.xml
│               │   ├── feat_stream.xml
│               │   └── ui.xml
│               └── values-zh-rCN/
│                   ├── app.xml
│                   ├── data.xml
│                   ├── feat_about.xml
│                   ├── feat_console.xml
│                   ├── feat_favourite.xml
│                   ├── feat_foryou.xml
│                   ├── feat_playlist.xml
│                   ├── feat_playlist_configuration.xml
│                   ├── feat_setting.xml
│                   ├── feat_stream.xml
│                   └── ui.xml
├── jitpack.yml
├── lint/
│   ├── annotation/
│   │   ├── .gitignore
│   │   ├── build.gradle.kts
│   │   └── src/
│   │       └── main/
│   │           └── java/
│   │               └── com/
│   │                   └── m3u/
│   │                       └── annotation/
│   │                           ├── Exclude.kt
│   │                           └── Likable.kt
│   └── processor/
│       ├── .gitignore
│       ├── build.gradle.kts
│       ├── consumer-rules.pro
│       ├── proguard-rules.pro
│       └── src/
│           └── main/
│               ├── AndroidManifest.xml
│               ├── java/
│               │   └── com/
│               │       └── m3u/
│               │           └── processor/
│               │               └── likable/
│               │                   ├── LikableSymbolProcessor.kt
│               │                   └── LikableSymbolProcessorProvider.kt
│               └── resources/
│                   └── META-INF/
│                       └── services/
│                           └── com.google.devtools.ksp.processing.SymbolProcessorProvider
├── lint.xml
├── native-load.yml
├── native-packs/
│   └── nextlib-0.8.5/
│       └── m3u-codec-nextlib-0.8.5.json
├── renovate.json
├── settings.gradle.kts
└── testing/
    ├── AGENTS.md
    ├── device-benchmark/
    │   ├── README.md
    │   ├── build.gradle.kts
    │   ├── mobly/
    │   │   └── remote_control_subscribe_test.py
    │   ├── mobly_config.yml
    │   └── requirements.txt
    └── mock-server/
        ├── README.md
        ├── build.gradle.kts
        └── src/
            └── main/
                └── kotlin/
                    └── com/
                        └── m3u/
                            └── testing/
                                └── mockserver/
                                    └── Main.kt
Download .txt
SYMBOL INDEX (38 symbols across 1 files)

FILE: testing/device-benchmark/mobly/remote_control_subscribe_test.py
  class RemoteControlSubscribeTest (line 26) | class RemoteControlSubscribeTest(base_test.BaseTestClass):
    method setup_class (line 27) | def setup_class(self):
    method test_remote_control_subscribe_to_tv (line 52) | def test_remote_control_subscribe_to_tv(self):
    method teardown_class (line 63) | def teardown_class(self):
    method _install_and_reset_apps (line 77) | def _install_and_reset_apps(self):
    method _configure_direct_endpoint (line 96) | def _configure_direct_endpoint(self):
    method _launch_apps (line 128) | def _launch_apps(self):
    method _enable_remote_control_on_phone (line 134) | def _enable_remote_control_on_phone(self):
    method _pair_phone_to_tv (line 140) | def _pair_phone_to_tv(self, tv_code):
    method _subscribe_for_tv (line 159) | def _subscribe_for_tv(self):
  class Labels (line 169) | class Labels:
  function first_matching_device (line 188) | def first_matching_device(devices, is_tv):
  function tap_any_text (line 199) | def tap_any_text(serial, texts, timeout_seconds, package=None):
  function tap_remote_control_fab (line 213) | def tap_remote_control_fab(serial, timeout_seconds):
  function tap_pin_code (line 231) | def tap_pin_code(serial, code):
  function tap_keypad_digit (line 236) | def tap_keypad_digit(serial, digit, timeout_seconds):
  function tap_button_by_text (line 254) | def tap_button_by_text(serial, texts, timeout_seconds):
  function parent_map (line 272) | def parent_map(root):
  function nearest_clickable_parent (line 280) | def nearest_clickable_parent(node, parents):
  function wait_for_any_text (line 289) | def wait_for_any_text(serial, texts, timeout_seconds, package=None):
  function wait_for_text (line 300) | def wait_for_text(serial, text, timeout_seconds, package=None):
  function wait_for_text_prefix (line 304) | def wait_for_text_prefix(serial, text_prefix, timeout_seconds, package=N...
  function wait_for_checked_text (line 318) | def wait_for_checked_text(serial, texts, timeout_seconds):
  function go_to_settings (line 336) | def go_to_settings(serial):
  function find_any_text (line 344) | def find_any_text(serial, texts, package=None):
  function wait_for_six_digit_code (line 349) | def wait_for_six_digit_code(serial, timeout_seconds):
  function type_text (line 362) | def type_text(serial, value):
  function dump_window (line 368) | def dump_window(serial):
  function find_node (line 375) | def find_node(root, text, package=None, content_desc_only=False):
  function wait_for_foreground_package (line 392) | def wait_for_foreground_package(serial, package, timeout_seconds):
  function foreground_package (line 403) | def foreground_package(serial):
  function node_bounds (line 412) | def node_bounds(node):
  function adb_text (line 420) | def adb_text(value):
  function shell (line 432) | def shell(serial, *args, check=True):
  function adb (line 436) | def adb(serial, *args, check=True, device_scoped=True):
  function repo_file (line 451) | def repo_file(repo_root, path):
  function configured_apk (line 458) | def configured_apk(repo_root, configured_path, apk_dir):
  function find_repo_root (line 469) | def find_repo_root():
Copy disabled (too large) Download .json
Condensed preview — 661 files, each showing path, character count, and a content snippet. Download the .json file for the full structured content (12,512K chars).
[
  {
    "path": ".claude/skills/jetpack-compose-audit/README.md",
    "chars": 6092,
    "preview": "# Jetpack Compose Audit Skill\n\nA strict, evidence-based audit skill for Android Jetpack Compose repositories. Scores fou"
  },
  {
    "path": ".claude/skills/jetpack-compose-audit/SKILL.md",
    "chars": 15368,
    "preview": "---\nname: jetpack-compose-audit\ndescription: Audit Android Jetpack Compose repositories for performance, state managemen"
  },
  {
    "path": ".claude/skills/jetpack-compose-audit/references/canonical-sources.md",
    "chars": 5528,
    "preview": "# Canonical Sources\n\nUse these as the source of truth for v1 scoring and guidance. **Every deduction in the audit report"
  },
  {
    "path": ".claude/skills/jetpack-compose-audit/references/diagnostics.md",
    "chars": 7243,
    "preview": "# Diagnostics\n\nCopy-pasteable Gradle and code snippets the auditor can recommend (or run themselves) to back findings wi"
  },
  {
    "path": ".claude/skills/jetpack-compose-audit/references/report-template.md",
    "chars": 3965,
    "preview": "# Report Template\n\nWrite the audit report to `COMPOSE-AUDIT-REPORT.md` using this structure.\n\n**Citation rule:** every f"
  },
  {
    "path": ".claude/skills/jetpack-compose-audit/references/scoring.md",
    "chars": 32610,
    "preview": "# Scoring\n\n## Category Weights\n\nUse these default weights for Android Jetpack Compose app repositories:\n\n| Category | We"
  },
  {
    "path": ".claude/skills/jetpack-compose-audit/references/search-playbook.md",
    "chars": 16036,
    "preview": "# Search Playbook\n\nUse this playbook to gather evidence quickly, then verify by reading representative files.\n\n**Always "
  },
  {
    "path": ".claude/skills/jetpack-compose-audit/scripts/compose-reports.init.gradle",
    "chars": 2732,
    "preview": "// Gradle init script injected by the Jetpack Compose audit skill.\n//\n// Purpose: enable Compose Compiler reports + metr"
  },
  {
    "path": ".github/ISSUE_TEMPLATE/bug_report.md",
    "chars": 942,
    "preview": "---\nname: Bug report\nabout: Create a report to help us improve\ntitle: ''\nlabels: bug\nassignees: ''\n\n---\n\n**Check before "
  },
  {
    "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/android.yml",
    "chars": 1770,
    "preview": "name: Android CI\n\non:\n  push:\n    branches: [ \"master\" ]\n    paths-ignore:\n      - '**.md'\n      - '**.txt'\n      - '.gi"
  },
  {
    "path": ".github/workflows/baseline-profiles.yml",
    "chars": 4933,
    "preview": "name: Baseline Profiles\n\non:\n  workflow_dispatch:\n  push:\n    branches: [ \"master\" ]\n    paths:\n      - 'app/smartphone/"
  },
  {
    "path": ".github/workflows/native-packs.yml",
    "chars": 2138,
    "preview": "name: Native Packs\n\non:\n  workflow_dispatch:\n  push:\n    branches: [ \"master\" ]\n    paths:\n      - 'gradle/libs.versions"
  },
  {
    "path": ".gitignore",
    "chars": 387,
    "preview": "*.iml\n.gradle\n/local.properties\n/.idea/caches\n/.idea/libraries\n/.idea/modules.xml\n/.idea/workspace.xml\n/.idea/navEditor."
  },
  {
    "path": ".gitmodules",
    "chars": 219,
    "preview": "[submodule \"native-load-gradle-plugin\"]\n\tpath = native-load-gradle-plugin\n\turl = https://github.com/oxyroid/native-load-"
  },
  {
    "path": ".idea/.gitignore",
    "chars": 47,
    "preview": "# Default ignored files\n/shelf/\n/workspace.xml\n"
  },
  {
    "path": ".idea/.name",
    "chars": 3,
    "preview": "M3U"
  },
  {
    "path": ".idea/AndroidProjectSystem.xml",
    "chars": 212,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"AndroidProjectSystem\">\n    <option name="
  },
  {
    "path": ".idea/compiler.xml",
    "chars": 169,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"CompilerConfiguration\">\n    <bytecodeTar"
  },
  {
    "path": ".idea/deploymentTargetSelector.xml",
    "chars": 787,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"deploymentTargetSelector\">\n    <selectio"
  },
  {
    "path": ".idea/deviceManager.xml",
    "chars": 351,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"DeviceTable\">\n    <option name=\"columnSo"
  },
  {
    "path": ".idea/gradle.xml",
    "chars": 2722,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"GradleMigrationSettings\" migrationVersio"
  },
  {
    "path": ".idea/misc.xml",
    "chars": 275,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"ExternalStorageConfigurationManager\" ena"
  },
  {
    "path": ".idea/runConfigurations/BaselineProfile_Smartphone.xml",
    "chars": 2756,
    "preview": "<component name=\"ProjectRunConfigurationManager\">\n  <configuration default=\"false\" name=\"BaselineProfile Smartphone\" typ"
  },
  {
    "path": ".idea/runConfigurations/BaselineProfile_TV.xml",
    "chars": 2739,
    "preview": "<component name=\"ProjectRunConfigurationManager\">\n  <configuration default=\"false\" name=\"BaselineProfile TV\" type=\"Andro"
  },
  {
    "path": ".idea/runConfigurations/M3UAndroid___benchmark_Pixel5Api31BenchmarkAndroidTest_.xml",
    "chars": 1162,
    "preview": "<component name=\"ProjectRunConfigurationManager\">\n  <configuration default=\"false\" name=\"M3UAndroid [:benchmark:Pixel5Ap"
  },
  {
    "path": ".idea/runConfigurations.xml",
    "chars": 964,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"RunConfigurationProducerService\">\n    <o"
  },
  {
    "path": ".idea/vcs.xml",
    "chars": 167,
    "preview": "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<project version=\"4\">\n  <component name=\"VcsDirectoryMappings\">\n    <mapping dire"
  },
  {
    "path": "AGENTS.md",
    "chars": 3536,
    "preview": "# AGENTS.md\n\nThis file applies to the entire repository. More specific `AGENTS.md` files in subdirectories take preceden"
  },
  {
    "path": "CODE_OF_CONDUCT.md",
    "chars": 5232,
    "preview": "# Contributor Covenant Code of Conduct\n\n## Our Pledge\n\nWe as members, contributors, and leaders pledge to make participa"
  },
  {
    "path": "COMPOSE-AUDIT-REPORT.md",
    "chars": 19051,
    "preview": "# Jetpack Compose Audit Report\n\nTarget: /home/runner/work/M3UAndroid/M3UAndroid\nDate: 2026-04-16\nScope: app/smartphone, "
  },
  {
    "path": "LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free "
  },
  {
    "path": "MATERIAL-3-AUDIT-REPORT.md",
    "chars": 14847,
    "preview": "# Material 3 Design System Audit Report\n\nTarget: /home/runner/work/M3UAndroid/M3UAndroid\nDate: 2026-04-16\nScope: app/sma"
  },
  {
    "path": "README.md",
    "chars": 3187,
    "preview": "# M3UAndroid\n\n<div align=\"center\">\n\n[![GitHub release](https://img.shields.io/github/v/release/oxyroid/M3UAndroid)](http"
  },
  {
    "path": "app/AGENTS.md",
    "chars": 2057,
    "preview": "# AGENTS.md\n\nThis file applies to `app/`. Use it together with the root guidance. More specific files, such as `app/tv/A"
  },
  {
    "path": "app/extension/.gitignore",
    "chars": 6,
    "preview": "/build"
  },
  {
    "path": "app/extension/build.gradle.kts",
    "chars": 1961,
    "preview": "plugins {\n    alias(libs.plugins.com.android.application)\n    alias(libs.plugins.org.jetbrains.kotlin.android)\n    alias"
  },
  {
    "path": "app/extension/proguard-rules.pro",
    "chars": 894,
    "preview": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguar"
  },
  {
    "path": "app/extension/src/main/AndroidManifest.xml",
    "chars": 1143,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <uses-f"
  },
  {
    "path": "app/extension/src/main/java/com/m3u/extension/MainActivity.kt",
    "chars": 8615,
    "preview": "package com.m3u.extension\n\nimport android.content.Intent\nimport android.os.Bundle\nimport androidx.activity.ComponentActi"
  },
  {
    "path": "app/extension/src/main/java/com/m3u/extension/ui/theme/Color.kt",
    "chars": 281,
    "preview": "package com.m3u.extension.ui.theme\n\nimport androidx.compose.ui.graphics.Color\n\nval Purple80 = Color(0xFFD0BCFF)\nval Purp"
  },
  {
    "path": "app/extension/src/main/java/com/m3u/extension/ui/theme/Theme.kt",
    "chars": 1688,
    "preview": "package com.m3u.extension.ui.theme\n\nimport android.app.Activity\nimport android.os.Build\nimport androidx.compose.foundati"
  },
  {
    "path": "app/extension/src/main/java/com/m3u/extension/ui/theme/Type.kt",
    "chars": 986,
    "preview": "package com.m3u.extension.ui.theme\n\nimport androidx.compose.material3.Typography\nimport androidx.compose.ui.text.TextSty"
  },
  {
    "path": "app/extension/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "chars": 328,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n  <bac"
  },
  {
    "path": "app/extension/src/main/res/values/colors.xml",
    "chars": 378,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"purple_200\">#FFBB86FC</color>\n    <color name=\"purpl"
  },
  {
    "path": "app/extension/src/main/res/values/strings.xml",
    "chars": 70,
    "preview": "<resources>\n    <string name=\"app_name\">IPTV TxT</string>\n</resources>"
  },
  {
    "path": "app/extension/src/main/res/values/themes.xml",
    "chars": 145,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n\n    <style name=\"Theme.M3U\" parent=\"android:Theme.Material.Light.NoA"
  },
  {
    "path": "app/smartphone/.gitignore",
    "chars": 28,
    "preview": "/build\n*.apk\n/release\n/debug"
  },
  {
    "path": "app/smartphone/build.gradle.kts",
    "chars": 6849,
    "preview": "plugins {\n    alias(libs.plugins.com.android.application)\n    alias(libs.plugins.org.jetbrains.kotlin.android)\n    alias"
  },
  {
    "path": "app/smartphone/proguard-rules.pro",
    "chars": 13276,
    "preview": "# Add project specific ProGuard rules here.\n# You can control the set of applied configuration files using the\n# proguar"
  },
  {
    "path": "app/smartphone/src/androidTest/java/com/m3u/testing/MockServerSmokeTest.kt",
    "chars": 1242,
    "preview": "package com.m3u.testing\n\nimport androidx.test.platform.app.InstrumentationRegistry\nimport org.junit.Assert.assertTrue\nim"
  },
  {
    "path": "app/smartphone/src/main/AndroidManifest.xml",
    "chars": 4732,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<manifest xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    xmlns:to"
  },
  {
    "path": "app/smartphone/src/main/generated/baselineProfiles/baseline-prof.txt",
    "chars": 2595110,
    "preview": "Landroidx/activity/ActivityFlags;\nHSPLandroidx/activity/ActivityFlags;-><clinit>()V\nHSPLandroidx/activity/ActivityFlags;"
  },
  {
    "path": "app/smartphone/src/main/generated/baselineProfiles/startup-prof.txt",
    "chars": 2595110,
    "preview": "Landroidx/activity/ActivityFlags;\nHSPLandroidx/activity/ActivityFlags;-><clinit>()V\nHSPLandroidx/activity/ActivityFlags;"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/AppModule.kt",
    "chars": 411,
    "preview": "@file:Suppress(\"unused\")\n\npackage com.m3u.smartphone\n\nimport com.m3u.core.foundation.architecture.Publisher\nimport dagge"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/AppPublisher.kt",
    "chars": 655,
    "preview": "package com.m3u.smartphone\n\nimport android.app.Application\nimport android.os.Build\nimport com.m3u.core.foundation.archit"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/M3UApplication.kt",
    "chars": 1627,
    "preview": "package com.m3u.smartphone\n\nimport android.app.Application\nimport android.content.Context\nimport androidx.hilt.work.Hilt"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/MainActivity.kt",
    "chars": 1309,
    "preview": "package com.m3u.smartphone\n\nimport android.content.res.Configuration\nimport android.os.Bundle\nimport androidx.activity.c"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/TimeUtils.kt",
    "chars": 1930,
    "preview": "package com.m3u.smartphone\n\nimport kotlinx.datetime.LocalDateTime\n\nobject TimeUtils {\n    fun LocalDateTime.toEOrSh(): F"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/benchmark/DebugBenchmarkSettings.kt",
    "chars": 797,
    "preview": "package com.m3u.smartphone.benchmark\n\nimport android.content.ContentResolver\nimport android.content.Context\nimport andro"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/glance/FavouriteWidget.kt",
    "chars": 6730,
    "preview": "package com.m3u.smartphone.glance\n\nimport android.content.ComponentName\nimport android.content.Context\nimport android.co"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/glance/GlanceReceiver.kt",
    "chars": 663,
    "preview": "package com.m3u.smartphone.glance\n\nimport androidx.glance.appwidget.GlanceAppWidget\nimport androidx.glance.appwidget.Gla"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/startup/ComposeInitializer.kt",
    "chars": 655,
    "preview": "package com.m3u.smartphone.startup\n\nimport android.content.Context\nimport androidx.compose.ui.platform.ComposeView\nimpor"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/App.kt",
    "chars": 11611,
    "preview": "package com.m3u.smartphone.ui\n\nimport android.app.ActivityOptions\nimport android.content.Intent\nimport androidx.activity"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/AppViewModel.kt",
    "chars": 5146,
    "preview": "package com.m3u.smartphone.ui\n\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime.mutableStateOf\ni"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/ChannelMask.kt",
    "chars": 30467,
    "preview": "package com.m3u.smartphone.ui.business.channel\n\nimport android.content.pm.ActivityInfo\nimport androidx.activity.compose."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/ChannelMaskUtils.kt",
    "chars": 4215,
    "preview": "package com.m3u.smartphone.ui.business.channel\n\nimport android.database.ContentObserver\nimport android.os.Handler\nimport"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/ChannelScreen.kt",
    "chars": 20701,
    "preview": "package com.m3u.smartphone.ui.business.channel\n\nimport android.Manifest\nimport android.content.Intent\nimport android.gra"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/MaskGesture.kt",
    "chars": 105,
    "preview": "package com.m3u.smartphone.ui.business.channel\n\nenum class MaskGesture {\n    VOLUME, BRIGHTNESS, SPEED\n}\n"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/PlayerActivity.kt",
    "chars": 4452,
    "preview": "package com.m3u.smartphone.ui.business.channel\n\nimport android.content.Intent\nimport android.content.res.Configuration\ni"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/components/DlnaDeviceItem.kt",
    "chars": 864,
    "preview": "package com.m3u.smartphone.ui.business.channel.components\n\nimport androidx.compose.foundation.clickable\nimport androidx."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/components/DlnaDevicesBottomSheet.kt",
    "chars": 5113,
    "preview": "package com.m3u.smartphone.ui.business.channel.components\n\nimport androidx.compose.animation.AnimatedVisibility\nimport a"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/components/FormatItem.kt",
    "chars": 1667,
    "preview": "package com.m3u.smartphone.ui.business.channel.components\n\nimport androidx.compose.foundation.clickable\nimport androidx."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/components/FormatsBottomSheet.kt",
    "chars": 6854,
    "preview": "package com.m3u.smartphone.ui.business.channel.components\n\nimport androidx.compose.foundation.layout.Spacer\nimport andro"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/components/MaskGestureValuePanel.kt",
    "chars": 1878,
    "preview": "package com.m3u.smartphone.ui.business.channel.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport "
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/components/MaskValueButton.kt",
    "chars": 2615,
    "preview": "package com.m3u.smartphone.ui.business.channel.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport "
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/components/PlayerMask.kt",
    "chars": 5277,
    "preview": "package com.m3u.smartphone.ui.business.channel.components\n\nimport androidx.compose.animation.AnimatedVisibility\nimport a"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/components/PlayerPanel.kt",
    "chars": 21109,
    "preview": "package com.m3u.smartphone.ui.business.channel.components\n\nimport androidx.compose.animation.AnimatedVisibility\nimport a"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/components/ProgrammeGuide.kt",
    "chars": 18393,
    "preview": "package com.m3u.smartphone.ui.business.channel.components\n\nimport android.annotation.SuppressLint\nimport androidx.compos"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/channel/components/VerticalGestureArea.kt",
    "chars": 1913,
    "preview": "package com.m3u.smartphone.ui.business.channel.components\n\nimport androidx.compose.foundation.clickable\nimport androidx."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/configuration/PlaylistConfigurationNavigation.kt",
    "chars": 1216,
    "preview": "package com.m3u.smartphone.ui.business.configuration\n\nimport androidx.compose.animation.fadeIn\nimport androidx.compose.a"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/configuration/PlaylistConfigurationScreen.kt",
    "chars": 11441,
    "preview": "package com.m3u.smartphone.ui.business.configuration\n\nimport android.Manifest\nimport android.content.Intent\nimport andro"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/configuration/components/AutoSyncProgrammesButton.kt",
    "chars": 2242,
    "preview": "package com.m3u.smartphone.ui.business.configuration.components\n\nimport androidx.compose.foundation.border\nimport androi"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/configuration/components/EpgManifestGallery.kt",
    "chars": 4721,
    "preview": "package com.m3u.smartphone.ui.business.configuration.components\n\nimport androidx.compose.foundation.background\nimport an"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/configuration/components/SyncProgrammesButton.kt",
    "chars": 4160,
    "preview": "package com.m3u.smartphone.ui.business.configuration.components\n\nimport androidx.compose.animation.AnimatedContent\nimpor"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/configuration/components/XtreamPanel.kt",
    "chars": 5490,
    "preview": "package com.m3u.smartphone.ui.business.configuration.components\n\nimport androidx.compose.animation.animateColorAsState\ni"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/extension/ExtensionScreen.kt",
    "chars": 2848,
    "preview": "package com.m3u.smartphone.ui.business.extension\n\nimport androidx.compose.foundation.clickable\nimport androidx.compose.f"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/favourite/FavouriteScreen.kt",
    "chars": 7828,
    "preview": "package com.m3u.smartphone.ui.business.favourite\n\nimport android.content.res.Configuration\nimport android.view.KeyEvent\n"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/favourite/components/FavoriteGallery.kt",
    "chars": 2861,
    "preview": "package com.m3u.smartphone.ui.business.favourite.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimpor"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/favourite/components/FavoriteItem.kt",
    "chars": 3711,
    "preview": "package com.m3u.smartphone.ui.business.favourite.components\n\nimport androidx.compose.foundation.combinedClickable\nimport"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/ForyouScreen.kt",
    "chars": 9777,
    "preview": "package com.m3u.smartphone.ui.business.foryou\n\nimport android.content.res.Configuration.ORIENTATION_PORTRAIT\nimport andr"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/components/HeadlineBackground.kt",
    "chars": 4449,
    "preview": "package com.m3u.smartphone.ui.business.foryou.components\n\nimport androidx.compose.animation.animateColorAsState\nimport a"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/components/Loading.kt",
    "chars": 501,
    "preview": "package com.m3u.smartphone.ui.business.foryou.components\n\nimport androidx.annotation.FloatRange\nimport androidx.compose."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/components/PlaylistGallery.kt",
    "chars": 5990,
    "preview": "package com.m3u.smartphone.ui.business.foryou.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport a"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/components/PlaylistItem.kt",
    "chars": 5995,
    "preview": "package com.m3u.smartphone.ui.business.foryou.components\n\nimport androidx.compose.foundation.combinedClickable\nimport an"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/components/recommend/RecommendGallery.kt",
    "chars": 2987,
    "preview": "package com.m3u.smartphone.ui.business.foryou.components.recommend\n\nimport androidx.compose.foundation.layout.Arrangemen"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/foryou/components/recommend/RecommendItem.kt",
    "chars": 12584,
    "preview": "package com.m3u.smartphone.ui.business.foryou.components.recommend\n\nimport androidx.compose.foundation.BorderStroke\nimpo"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistNavigation.kt",
    "chars": 1195,
    "preview": "package com.m3u.smartphone.ui.business.playlist\n\nimport androidx.compose.animation.fadeIn\nimport androidx.compose.animat"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/PlaylistScreen.kt",
    "chars": 20639,
    "preview": "package com.m3u.smartphone.ui.business.playlist\n\nimport android.Manifest\nimport android.content.Intent\nimport android.co"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/ChannelGallery.kt",
    "chars": 5559,
    "preview": "package com.m3u.smartphone.ui.business.playlist.components\n\nimport android.net.Uri\nimport androidx.compose.foundation.la"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/ChannelItem.kt",
    "chars": 10636,
    "preview": "package com.m3u.smartphone.ui.business.playlist.components\n\nimport androidx.compose.animation.Crossfade\nimport androidx."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/playlist/components/PlaylistTabRow.kt",
    "chars": 13749,
    "preview": "package com.m3u.smartphone.ui.business.playlist.components\n\nimport androidx.compose.animation.AnimatedContent\nimport and"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/SettingScreen.kt",
    "chars": 13207,
    "preview": "package com.m3u.smartphone.ui.business.setting\n\nimport androidx.activity.compose.BackHandler\nimport androidx.activity.co"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/components/CanvasBottomSheet.kt",
    "chars": 10233,
    "preview": "package com.m3u.smartphone.ui.business.setting.components\n\nimport androidx.compose.animation.Crossfade\nimport androidx.c"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/components/CheckBoxSharedPreference.kt",
    "chars": 1626,
    "preview": "package com.m3u.smartphone.ui.business.setting.components\n\nimport androidx.compose.runtime.Composable\nimport androidx.co"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/components/DataSourceSelection.kt",
    "chars": 3154,
    "preview": "package com.m3u.smartphone.ui.business.setting.components\n\nimport androidx.compose.foundation.border\nimport androidx.com"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/components/EpgPlaylistItem.kt",
    "chars": 1456,
    "preview": "package com.m3u.smartphone.ui.business.setting.components\n\nimport androidx.compose.material.icons.Icons\nimport androidx."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/components/HiddenChannelItem.kt",
    "chars": 1487,
    "preview": "package com.m3u.smartphone.ui.business.setting.components\n\nimport androidx.compose.foundation.clickable\nimport androidx."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/components/HiddenPlaylistItem.kt",
    "chars": 1454,
    "preview": "package com.m3u.smartphone.ui.business.setting.components\n\nimport androidx.compose.foundation.clickable\nimport androidx."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/components/LocalStorageButton.kt",
    "chars": 2690,
    "preview": "package com.m3u.smartphone.ui.business.setting.components\n\nimport android.net.Uri\nimport androidx.activity.compose.remem"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/components/LocalStorageSwitch.kt",
    "chars": 912,
    "preview": "package com.m3u.smartphone.ui.business.setting.components\n\nimport androidx.compose.material3.Switch\nimport androidx.comp"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/components/RemoteControlSubscribeSwitch.kt",
    "chars": 2228,
    "preview": "package com.m3u.smartphone.ui.business.setting.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport "
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/fragments/AppearanceFragment.kt",
    "chars": 11346,
    "preview": "package com.m3u.smartphone.ui.business.setting.fragments\n\nimport android.annotation.SuppressLint\nimport android.os.Build"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/fragments/CodecPackFragment.kt",
    "chars": 4869,
    "preview": "package com.m3u.smartphone.ui.business.setting.fragments\n\nimport androidx.compose.foundation.layout.Arrangement\nimport a"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/fragments/OptionalFragment.kt",
    "chars": 11797,
    "preview": "package com.m3u.smartphone.ui.business.setting.fragments\n\nimport androidx.compose.foundation.layout.Arrangement\nimport a"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/fragments/SubscriptionsFragment.kt",
    "chars": 19180,
    "preview": "package com.m3u.smartphone.ui.business.setting.fragments\n\nimport android.Manifest\nimport android.annotation.SuppressLint"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/fragments/preferences/OtherPreferences.kt",
    "chars": 2558,
    "preview": "package com.m3u.smartphone.ui.business.setting.fragments.preferences\n\nimport android.content.Intent\nimport android.net.U"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/fragments/preferences/PreferencesFragment.kt",
    "chars": 1831,
    "preview": "package com.m3u.smartphone.ui.business.setting.fragments.preferences\n\nimport androidx.compose.foundation.layout.Arrangem"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/business/setting/fragments/preferences/RegularPreferences.kt",
    "chars": 2419,
    "preview": "package com.m3u.smartphone.ui.business.setting.fragments.preferences\n\nimport androidx.compose.foundation.layout.Arrangem"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/AppNavHost.kt",
    "chars": 3313,
    "preview": "package com.m3u.smartphone.ui.common\n\nimport android.app.ActivityOptions\nimport android.content.Intent\nimport androidx.c"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/RootGraph.kt",
    "chars": 3201,
    "preview": "package com.m3u.smartphone.ui.common\n\nimport androidx.compose.animation.fadeIn\nimport androidx.compose.animation.fadeOut"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/SmartphoneViewModel.kt",
    "chars": 942,
    "preview": "package com.m3u.smartphone.ui.common\n\nimport androidx.lifecycle.ViewModel\nimport androidx.lifecycle.viewModelScope\nimpor"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/connect/CodeRow.kt",
    "chars": 3161,
    "preview": "package com.m3u.smartphone.ui.common.connect\n\nimport androidx.compose.foundation.BorderStroke\nimport androidx.compose.fo"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/connect/DPadContent.kt",
    "chars": 2281,
    "preview": "package com.m3u.smartphone.ui.common.connect\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx.comp"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/connect/PrepareContent.kt",
    "chars": 4434,
    "preview": "package com.m3u.smartphone.ui.common.connect\n\nimport androidx.compose.animation.AnimatedContent\nimport androidx.compose."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/connect/RemoteControlSheet.kt",
    "chars": 3229,
    "preview": "package com.m3u.smartphone.ui.common.connect\n\nimport androidx.compose.foundation.layout.Column\nimport androidx.compose.m"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/connect/RemoteDirectionController.kt",
    "chars": 11382,
    "preview": "package com.m3u.smartphone.ui.common.connect\n\nimport androidx.compose.animation.AnimatedVisibility\nimport androidx.compo"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/connect/VirtualNumberKeyboard.kt",
    "chars": 6140,
    "preview": "package com.m3u.smartphone.ui.common.connect\n\nimport androidx.compose.foundation.background\nimport androidx.compose.foun"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/helper/Element.kt",
    "chars": 553,
    "preview": "package com.m3u.smartphone.ui.common.helper\n\nimport androidx.annotation.StringRes\nimport androidx.compose.runtime.Immuta"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/helper/Helper.kt",
    "chars": 6055,
    "preview": "package com.m3u.smartphone.ui.common.helper\n\nimport android.app.PictureInPictureParams\nimport android.content.Context\nim"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/helper/Metadata.kt",
    "chars": 875,
    "preview": "package com.m3u.smartphone.ui.common.helper\n\nimport androidx.compose.runtime.Stable\nimport androidx.compose.runtime.getV"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/internal/Events.kt",
    "chars": 521,
    "preview": "package com.m3u.smartphone.ui.common.internal\n\nimport androidx.compose.runtime.getValue\nimport androidx.compose.runtime."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/common/internal/Toolkit.kt",
    "chars": 2726,
    "preview": "package com.m3u.smartphone.ui.common.internal\n\nimport androidx.compose.foundation.isSystemInDarkTheme\nimport androidx.co"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/M3UHapticFeedback.kt",
    "chars": 767,
    "preview": "package com.m3u.smartphone.ui.material\n\nimport android.view.View\nimport androidx.compose.runtime.Composable\nimport andro"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/RecomposeHighlighter.kt",
    "chars": 4631,
    "preview": "package com.m3u.smartphone.ui.material\n\nimport androidx.compose.runtime.Stable\nimport androidx.compose.ui.Modifier\nimpor"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/brush/Scrim.kt",
    "chars": 984,
    "preview": "package com.m3u.smartphone.ui.material.brush\n\nimport androidx.compose.ui.geometry.Offset\nimport androidx.compose.ui.geom"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Backgrounds.kt",
    "chars": 2271,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.foundation.layout.Box\nimport androidx.compose"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Badges.kt",
    "chars": 3793,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.animation.animateColorAsState\nimport androidx"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/BottomSheet.kt",
    "chars": 2478,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Brushes.kt",
    "chars": 1517,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.animation.animateColor\nimport androidx.compos"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Destination.kt",
    "chars": 2275,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport android.os.Parcelable\nimport androidx.annotation.StringRes\nimp"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/EpisodesBottomSheet.kt",
    "chars": 6967,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.foundation.background\nimport androidx.compose"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/EventHandler.kt",
    "chars": 674,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ru"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/FontFamilies.kt",
    "chars": 1942,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.material3.Typography\nimport androidx.compose."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/HorizontalPagerIndicator.kt",
    "chars": 4509,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.foundation.background\nimport androidx.compose"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Images.kt",
    "chars": 2311,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.foundation.background\nimport androidx.compose"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Layouts.kt",
    "chars": 2104,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Lotties.kt",
    "chars": 1303,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.annotation.RawRes\nimport androidx.compose.runtime.Com"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/MediaSheet.kt",
    "chars": 9850,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.annotation.StringRes\nimport androidx.compose.foundati"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/MonoText.kt",
    "chars": 1822,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.material3.LocalTextStyle\nimport androidx.comp"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Player.kt",
    "chars": 2288,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport android.view.Surface\nimport androidx.annotation.OptIn\nimport a"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Preferences.kt",
    "chars": 7902,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.foundation.basicMarquee\nimport androidx.compo"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/PullPanelLayout.kt",
    "chars": 5249,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.animation.core.animateFloatAsState\nimport and"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/Selections.kt",
    "chars": 4590,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.foundation.background\nimport androidx.compose"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/SnackHost.kt",
    "chars": 5856,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.animation.AnimatedVisibility\nimport androidx."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/SortBottomSheet.kt",
    "chars": 3116,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport androidx.compose.foundation.layout.Arrangement\nimport androidx"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/TextFields.kt",
    "chars": 12861,
    "preview": "@file:Suppress(\"unused\")\n\npackage com.m3u.smartphone.ui.material.components\n\nimport androidx.activity.compose.BackHandle"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/ThemeSelection.kt",
    "chars": 11947,
    "preview": "package com.m3u.smartphone.ui.material.components\n\nimport android.graphics.Matrix\nimport android.view.HapticFeedbackCons"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/mask/Mask.kt",
    "chars": 1484,
    "preview": "package com.m3u.smartphone.ui.material.components.mask\n\nimport androidx.compose.animation.AnimatedVisibility\nimport andr"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/mask/MaskButton.kt",
    "chars": 1885,
    "preview": "package com.m3u.smartphone.ui.material.components.mask\n\nimport androidx.compose.material3.Icon\nimport androidx.compose.m"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/mask/MaskCircleButton.kt",
    "chars": 1468,
    "preview": "package com.m3u.smartphone.ui.material.components.mask\n\nimport androidx.compose.foundation.interaction.MutableInteractio"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/mask/MaskDefaults.kt",
    "chars": 119,
    "preview": "package com.m3u.smartphone.ui.material.components.mask\n\nobject MaskDefaults {\n    const val MIN_DURATION_SECOND = 4L\n}\n"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/mask/MaskInterceptor.kt",
    "chars": 105,
    "preview": "package com.m3u.smartphone.ui.material.components.mask\n\ntypealias MaskInterceptor = (Boolean) -> Boolean\n"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/mask/MaskPanel.kt",
    "chars": 4127,
    "preview": "package com.m3u.smartphone.ui.material.components.mask\n\nimport androidx.compose.foundation.gestures.detectDragGesturesAf"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/components/mask/MaskState.kt",
    "chars": 3913,
    "preview": "package com.m3u.smartphone.ui.material.components.mask\n\nimport androidx.annotation.IntRange\nimport androidx.compose.runt"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/effects/BackStack.kt",
    "chars": 1388,
    "preview": "package com.m3u.smartphone.ui.material.effects\n\nimport androidx.activity.compose.BackHandler\nimport androidx.compose.run"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/Blurs.kt",
    "chars": 3860,
    "preview": "package com.m3u.smartphone.ui.material.ktx\n\nimport androidx.compose.animation.animateColorAsState\nimport androidx.compos"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/Colors.kt",
    "chars": 3610,
    "preview": "package com.m3u.smartphone.ui.material.ktx\n\nimport android.annotation.SuppressLint\nimport androidx.annotation.ColorInt\ni"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/Effects.kt",
    "chars": 2217,
    "preview": "package com.m3u.smartphone.ui.material.ktx\n\nimport androidx.compose.animation.animateColorAsState\nimport androidx.compos"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/Interaction.kt",
    "chars": 939,
    "preview": "package com.m3u.smartphone.ui.material.ktx\n\nimport androidx.compose.foundation.interaction.InteractionSource\nimport andr"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/InterceptEvent.kt",
    "chars": 1907,
    "preview": "package com.m3u.smartphone.ui.material.ktx\n\nimport android.view.KeyEvent\nimport androidx.annotation.IntDef\nimport androi"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/LifecycleEffect.kt",
    "chars": 1098,
    "preview": "package com.m3u.smartphone.ui.material.ktx\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.runtime.S"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/Modifier.kt",
    "chars": 793,
    "preview": "package com.m3u.smartphone.ui.material.ktx\n\nimport androidx.compose.foundation.background\nimport androidx.compose.founda"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/PaddingValues.kt",
    "chars": 2109,
    "preview": "package com.m3u.smartphone.ui.material.ktx\n\nimport androidx.compose.foundation.layout.PaddingValues\nimport androidx.comp"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/Pager.kt",
    "chars": 253,
    "preview": "package com.m3u.smartphone.ui.material.ktx\n\nimport androidx.compose.foundation.pager.PagerState\nimport kotlin.math.absol"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/Permissions.kt",
    "chars": 1180,
    "preview": "package com.m3u.smartphone.ui.material.ktx\n\nimport android.Manifest\nimport android.os.Build\nimport com.google.accompanis"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/ScrollableState.kt",
    "chars": 899,
    "preview": "@file:Suppress(\"unused\")\n\npackage com.m3u.smartphone.ui.material.ktx\n\nimport androidx.compose.foundation.lazy.LazyListSt"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/ktx/Unspecified.kt",
    "chars": 695,
    "preview": "package com.m3u.smartphone.ui.material.ktx\n\nimport androidx.compose.ui.graphics.Color\nimport androidx.compose.ui.graphic"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/model/Duration.kt",
    "chars": 322,
    "preview": "package com.m3u.smartphone.ui.material.model\n\nimport androidx.compose.runtime.staticCompositionLocalOf\n\ndata class Durat"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/model/GradientColors.kt",
    "chars": 426,
    "preview": "package com.m3u.smartphone.ui.material.model\n\nimport androidx.compose.runtime.Immutable\nimport androidx.compose.runtime."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/model/LocalHazeState.kt",
    "chars": 202,
    "preview": "package com.m3u.smartphone.ui.material.model\n\nimport androidx.compose.runtime.staticCompositionLocalOf\nimport dev.chrisb"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/model/Spacing.kt",
    "chars": 1008,
    "preview": "package com.m3u.smartphone.ui.material.model\n\nimport androidx.compose.runtime.Immutable\nimport androidx.compose.runtime."
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/model/Theme.kt",
    "chars": 1336,
    "preview": "package com.m3u.smartphone.ui.material.model\n\nimport android.annotation.SuppressLint\nimport android.os.Build\nimport andr"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/texture/TextureContainer.kt",
    "chars": 1955,
    "preview": "package com.m3u.smartphone.ui.material.texture\n\nimport androidx.compose.animation.animateColor\nimport androidx.compose.a"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/texture/Textures.kt",
    "chars": 1732,
    "preview": "package com.m3u.smartphone.ui.material.texture\n\nimport androidx.compose.runtime.Composable\nimport androidx.compose.ui.Mo"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/transformation/BlurTransformation.kt",
    "chars": 2532,
    "preview": "@file: Suppress(\"DEPRECATION\")\n\npackage com.m3u.smartphone.ui.material.transformation\n\nimport android.content.Context\nim"
  },
  {
    "path": "app/smartphone/src/main/java/com/m3u/smartphone/ui/material/transformation/ColorCombineTransformation.kt",
    "chars": 1525,
    "preview": "package com.m3u.smartphone.ui.material.transformation\n\nimport android.graphics.Bitmap\nimport android.graphics.Paint\nimpo"
  },
  {
    "path": "app/smartphone/src/main/res/drawable/baseline_history_toggle_off_24.xml",
    "chars": 1426,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"24dp\"\n    android:height=\"24dp\"\n  "
  },
  {
    "path": "app/smartphone/src/main/res/drawable/ic_launcher_background.xml",
    "chars": 330,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<shape xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:wid"
  },
  {
    "path": "app/smartphone/src/main/res/drawable/ic_launcher_foreground.xml",
    "chars": 604,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"108dp\"\n    android:height=\"108dp\"\n"
  },
  {
    "path": "app/smartphone/src/main/res/drawable/ic_splash.xml",
    "chars": 1689,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:width=\"240dp\"\n    android:height=\"240dp\"\n"
  },
  {
    "path": "app/smartphone/src/main/res/drawable/round_calendar_month_24.xml",
    "chars": 884,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" android:height=\"24dp\" android:tint=\"#000000\" android:"
  },
  {
    "path": "app/smartphone/src/main/res/drawable/round_space_dashboard_24.xml",
    "chars": 564,
    "preview": "<vector xmlns:android=\"http://schemas.android.com/apk/res/android\" android:height=\"24dp\" android:tint=\"#000000\" android:"
  },
  {
    "path": "app/smartphone/src/main/res/font/google_sans.xml",
    "chars": 1549,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<font-family xmlns:app=\"http://schemas.android.com/apk/res-auto\">\n    <font\n     "
  },
  {
    "path": "app/smartphone/src/main/res/mipmap-anydpi-v26/ic_launcher.xml",
    "chars": 340,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<adaptive-icon xmlns:android=\"http://schemas.android.com/apk/res/android\">\n    <b"
  },
  {
    "path": "app/smartphone/src/main/res/values/colors.xml",
    "chars": 243,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"background\">#FFFBFE</color>\n    <color name=\"onBackg"
  },
  {
    "path": "app/smartphone/src/main/res/values/stings.xml",
    "chars": 125,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <string name=\"app_name\" translatable=\"false\">M3U</string>\n</resou"
  },
  {
    "path": "app/smartphone/src/main/res/values/themes.xml",
    "chars": 772,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <style name=\"Theme.M3U\" parent=\"Theme.Material3.DayNight.NoAction"
  },
  {
    "path": "app/smartphone/src/main/res/values-night/colors.xml",
    "chars": 155,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <color name=\"background\">#1C1B1F</color>\n    <color name=\"onBackg"
  },
  {
    "path": "app/smartphone/src/main/res/values-v27/themes.xml",
    "chars": 525,
    "preview": "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<resources>\n    <style name=\"Theme.M3U.Starting\" parent=\"Theme.SplashScreen.IconB"
  }
]

// ... and 461 more files (download for full content)

About this extraction

This page contains the full source code of the realOxy/M3UAndroid GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 661 files (11.6 MB), approximately 3.1M tokens, and a symbol index with 38 extracted functions, classes, methods, constants, and types. 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.

Copied to clipboard!