From 9a5d488ac7b56a8070f53b40816bc30142bdf91d Mon Sep 17 00:00:00 2001 From: yaoxieyoulei <1622968661@qq.com> Date: Fri, 24 May 2024 14:00:35 +0800 Subject: [PATCH] :bookmark: 2.0.0-canary.1 --- .github/workflows/release.yml | 6 +- .gitignore | 2 +- .idea/appInsightsSettings.xml | 1 - .idea/codeStyles/Project.xml | 11 - .idea/codeStyles/codeStyleConfig.xml | 2 +- .idea/deploymentTargetSelector.xml | 16 + .idea/dictionaries/Administrator.xml | 3 - .idea/encodings.xml | 6 - .idea/material_theme_project_new.xml | 18 + .idea/other.xml | 274 +++++++++ .idea/runConfigurations/app.xml | 68 +++ .idea/vcs.xml | 2 +- README.md | 6 +- app/build.gradle.kts | 41 +- app/proguard-rules.pro | 2 +- .../yogiczy/mytv/ExampleInstrumentedTest.kt | 24 + app/src/main/AndroidManifest.xml | 44 +- .../main/java/top/yogiczy/mytv/AppGlobal.kt | 6 + .../java/top/yogiczy/mytv/BootReceiver.kt | 7 +- .../java/top/yogiczy/mytv/LeanbackActivity.kt | 56 ++ .../java/top/yogiczy/mytv/MainActivity.kt | 57 +- .../java/top/yogiczy/mytv/MobileActivity.kt | 35 ++ .../java/top/yogiczy/mytv/MyTVApplication.kt | 4 + .../main/java/top/yogiczy/mytv/PadActivity.kt | 35 ++ .../top/yogiczy/mytv/UnsafeTrustManager.kt | 2 +- .../top/yogiczy/mytv/data/entities/Epg.kt | 18 +- .../top/yogiczy/mytv/data/entities/EpgList.kt | 4 +- .../mytv/data/entities/EpgProgramme.kt | 13 +- .../mytv/data/entities/EpgProgrammeCurrent.kt | 7 +- .../mytv/data/entities/EpgProgrammeList.kt | 2 +- .../{GithubRelease.kt => GitRelease.kt} | 7 +- .../top/yogiczy/mytv/data/entities/Iptv.kt | 15 +- .../yogiczy/mytv/data/entities/IptvGroup.kt | 10 +- .../mytv/data/entities/IptvGroupList.kt | 12 +- .../yogiczy/mytv/data/entities/IptvList.kt | 3 + .../mytv/data/models/IptvResponseItem.kt | 23 - .../data/repositories/FileCacheRepository.kt | 55 ++ .../data/repositories/GithubRepository.kt | 42 -- .../mytv/data/repositories/IptvRepository.kt | 168 ------ .../repositories/{ => epg}/EpgRepository.kt | 188 +++--- .../epg/fetcher/DefaultEpgFetcher.kt | 13 + .../repositories/epg/fetcher/EpgFetcher.kt | 26 + .../repositories/epg/fetcher/XmlEpgFetcher.kt | 13 + .../epg/fetcher/XmlGzEpgFetcher.kt | 27 + .../data/repositories/git/GitRepository.kt | 32 + .../git/parser/GitReleaseParser.kt | 25 + .../git/parser/GiteeGitReleaseParser.kt | 23 + .../git/parser/GithubGitReleaseParser.kt | 24 + .../data/repositories/iptv/IptvRepository.kt | 84 +++ .../iptv/parser/DefaultIptvParser.kt | 29 + .../repositories/iptv/parser/IptvParser.kt | 26 + .../repositories/iptv/parser/M3uIptvParser.kt | 55 ++ .../iptv/parser/TvboxIptvParser.kt | 59 ++ .../top/yogiczy/mytv/data/utils/Constants.kt | 20 +- .../yogiczy/mytv/material/LeanbackPadding.kt | 12 + .../top/yogiczy/mytv/tvmaterial/Dialog.kt | 564 ------------------ .../top/yogiczy/mytv/tvmaterial/Shapes.kt | 18 - .../mytv/ui/{App.kt => LeanbackApp.kt} | 60 +- .../classicpanel/ClassicPanelScreen.kt | 173 ------ .../components/ClassicPanelEpgList.kt | 125 ---- .../components/ClassicPanelIptvGroupList.kt | 105 ---- .../components/ClassicPanelIptvList.kt | 151 ----- .../mytv/ui/screens/home/HomeScreen.kt | 142 ----- .../ui/screens/home/HomeScreenViewModel.kt | 83 --- .../ui/screens/home/components/HomeContent.kt | 486 --------------- .../classicpanel/ClassicPanelScreen.kt | 279 +++++++++ .../components/ClassicPanelEpgList.kt | 169 ++++++ .../components/ClassicPanelIptvGroupList.kt | 181 ++++++ .../components/ClassicPanelIptvList.kt | 222 +++++++ .../ui/screens/leanback/components/Visible.kt | 13 + .../ui/screens/leanback/main/MainScreen.kt | 169 ++++++ .../ui/screens/leanback/main/MainViewModel.kt | 103 ++++ .../leanback/main/components/MainContent.kt | 313 ++++++++++ .../main/components/MainContentState.kt | 157 +++++ .../{ => leanback}/monitor/MonitorScreen.kt | 76 ++- .../panel/PanelChannelNoSelectScreen.kt} | 37 +- .../leanback/panel/PanelDateTimeScreen.kt | 103 ++++ .../ui/screens/leanback/panel/PanelScreen.kt | 262 ++++++++ .../{ => leanback}/panel/PanelTempScreen.kt | 85 +-- .../panel/components/PanelChannelNo.kt | 31 + .../panel/components/PanelDateTime.kt | 31 +- .../leanback/panel/components/PanelIptvEpg.kt | 192 ++++++ .../panel/components/PanelIptvFavoriteList.kt | 102 ++-- .../panel/components/PanelIptvGroupList.kt | 66 +- .../panel/components/PanelIptvInfo.kt | 100 ++-- .../panel/components/PanelIptvItem.kt | 175 ++++++ .../panel/components/PanelIptvList.kt | 72 +-- .../panel/components/PanelPlayerInfo.kt | 66 +- .../leanback/quickpanel/QuickPanelScreen.kt | 182 ++++++ .../leanback/settings/SettingsCategories.kt | 28 + .../leanback/settings/SettingsScreen.kt | 77 +++ .../leanback/settings/SettingsViewModel.kt | 219 +++++++ .../components/SettingsCategoryAbout.kt | 63 ++ .../components/SettingsCategoryApp.kt | 64 ++ .../components/SettingsCategoryContent.kt | 37 ++ .../components/SettingsCategoryDebug.kt | 66 ++ .../components/SettingsCategoryEpg.kt | 221 +++++++ .../components/SettingsCategoryFavorite.kt | 73 +++ .../components/SettingsCategoryIptv.kt | 258 ++++++++ .../components/SettingsCategoryList.kt | 112 ++++ .../components/SettingsCategoryListItem.kt | 74 +++ .../components/SettingsCategoryMore.kt | 88 +++ .../settings/components/SettingsCategoryUI.kt | 150 +++++ .../components/SettingsCategoryUpdate.kt | 50 ++ .../ui/screens/leanback/toast/ToastScreen.kt | 88 +++ .../ui/screens/leanback/toast/ToastState.kt | 72 +++ .../screens/leanback/update/UpdateScreen.kt | 99 +++ .../leanback/update/UpdateViewModel.kt | 73 +++ .../update/components/UpdateDialog.kt | 75 +++ .../leanback/video/VideoPlayerErrorScreen.kt | 60 ++ .../leanback/video/VideoPlayerState.kt | 128 ++++ .../{ => leanback}/video/VideoScreen.kt | 28 +- .../video/components/VideoPlayerMetadata.kt} | 49 +- .../video/player/Media3VideoPlayer.kt | 207 +++++++ .../leanback/video/player/VideoPlayer.kt | 125 ++++ .../mytv/ui/screens/panel/PanelScreen.kt | 256 -------- .../mytv/ui/screens/panel/PanelTimeScreen.kt | 84 --- .../panel/components/PanelChannelNo.kt | 29 - .../screens/panel/components/PanelIptvItem.kt | 279 --------- .../ui/screens/settings/SettingsScreen.kt | 78 --- .../mytv/ui/screens/settings/SettingsState.kt | 165 ----- .../settings/components/SettingsAppInfo.kt | 62 -- .../components/SettingsCustomEpgItem.kt | 141 ----- .../components/SettingsCustomIptvItem.kt | 141 ----- .../settings/components/SettingsDebugItem.kt | 116 ---- .../components/SettingsFavoriteItem.kt | 98 --- .../settings/components/SettingsItem.kt | 115 ---- .../settings/components/SettingsList.kt | 144 ----- .../settings/components/SettingsMain.kt | 57 -- .../settings/components/SettingsMoreItem.kt | 115 ---- .../settings/components/SettingsUIItem.kt | 216 ------- .../settings/components/SettingsUpdateItem.kt | 100 ---- .../components/SettingsUpdaterDialog.kt | 74 --- .../settings/components/UpdateState.kt | 162 ----- .../mytv/ui/screens/toast/ToastScreen.kt | 151 ----- .../mytv/ui/screens/video/PlayerState.kt | 157 ----- .../java/top/yogiczy/mytv/ui/theme/Color.kt | 27 - .../yogiczy/mytv/ui/theme/LeanbackTheme.kt | 218 +++++++ .../top/yogiczy/mytv/ui/theme/MobileTheme.kt | 37 ++ .../top/yogiczy/mytv/ui/theme/PadTheme.kt | 37 ++ .../java/top/yogiczy/mytv/ui/theme/Theme.kt | 51 -- .../java/top/yogiczy/mytv/ui/theme/Type.kt | 116 ---- .../top/yogiczy/mytv/ui/utils/HttpServer.kt | 63 +- .../java/top/yogiczy/mytv/ui/utils/Logger.kt | 11 +- .../yogiczy/mytv/ui/utils/ModifierUtils.kt | 96 +-- .../java/top/yogiczy/mytv/ui/utils/Padding.kt | 28 - .../main/java/top/yogiczy/mytv/ui/utils/SP.kt | 110 ++-- .../top/yogiczy/mytv/ui/utils/VersionUtil.kt | 36 ++ app/src/main/res/drawable-xhdpi/tv_banner.png | Bin 0 -> 4702 bytes .../main/res/font/harmonyos_sans_black.ttf | Bin 0 -> 145696 bytes app/src/main/res/font/harmonyos_sans_bold.ttf | Bin 0 -> 145860 bytes .../main/res/font/harmonyos_sans_light.ttf | Bin 0 -> 147552 bytes .../main/res/font/harmonyos_sans_medium.ttf | Bin 0 -> 146164 bytes .../main/res/font/harmonyos_sans_regular.ttf | Bin 0 -> 146616 bytes app/src/main/res/font/harmonyos_sans_thin.ttf | Bin 0 -> 148124 bytes .../mipmap-anydpi-v26/ic_launcher_round.xml | 6 + app/src/main/res/mipmap-hdpi/ic_launcher.png | Bin 4331 -> 3214 bytes .../mipmap-hdpi/ic_launcher_foreground.png | Bin 6152 -> 2515 bytes .../mipmap-hdpi/ic_launcher_monochrome.png | Bin 3322 -> 2475 bytes .../res/mipmap-hdpi/ic_launcher_round.png | Bin 0 -> 5300 bytes .../ic_launcher_round_background.png | Bin 0 -> 856 bytes .../ic_launcher_round_foreground.png | Bin 0 -> 2515 bytes .../ic_launcher_round_monochrome.png | Bin 0 -> 2475 bytes app/src/main/res/mipmap-mdpi/ic_launcher.png | Bin 2591 -> 1849 bytes .../mipmap-mdpi/ic_launcher_foreground.png | Bin 4012 -> 1286 bytes .../mipmap-mdpi/ic_launcher_monochrome.png | Bin 2111 -> 1250 bytes .../res/mipmap-mdpi/ic_launcher_round.png | Bin 0 -> 3063 bytes .../ic_launcher_round_background.png | Bin 0 -> 462 bytes .../ic_launcher_round_foreground.png | Bin 0 -> 1286 bytes .../ic_launcher_round_monochrome.png | Bin 0 -> 1250 bytes app/src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 6405 -> 4264 bytes .../mipmap-xhdpi/ic_launcher_foreground.png | Bin 9360 -> 3040 bytes .../mipmap-xhdpi/ic_launcher_monochrome.png | Bin 4957 -> 2946 bytes .../res/mipmap-xhdpi/ic_launcher_round.png | Bin 0 -> 7227 bytes .../ic_launcher_round_background.png | Bin 0 -> 1319 bytes .../ic_launcher_round_foreground.png | Bin 0 -> 3040 bytes .../ic_launcher_round_monochrome.png | Bin 0 -> 2946 bytes app/src/main/res/mipmap-xhdpi/tv_banner.png | Bin 13758 -> 0 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 10874 -> 7381 bytes .../mipmap-xxhdpi/ic_launcher_foreground.png | Bin 15423 -> 6358 bytes .../mipmap-xxhdpi/ic_launcher_monochrome.png | Bin 8305 -> 6233 bytes .../res/mipmap-xxhdpi/ic_launcher_round.png | Bin 0 -> 12353 bytes .../ic_launcher_round_background.png | Bin 0 -> 2952 bytes .../ic_launcher_round_foreground.png | Bin 0 -> 6358 bytes .../ic_launcher_round_monochrome.png | Bin 0 -> 6233 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 16248 -> 10418 bytes .../mipmap-xxxhdpi/ic_launcher_foreground.png | Bin 22596 -> 8639 bytes .../mipmap-xxxhdpi/ic_launcher_monochrome.png | Bin 11741 -> 8406 bytes .../res/mipmap-xxxhdpi/ic_launcher_round.png | Bin 0 -> 17003 bytes .../ic_launcher_round_background.png | Bin 0 -> 4235 bytes .../ic_launcher_round_foreground.png | Bin 0 -> 8639 bytes .../ic_launcher_round_monochrome.png | Bin 0 -> 8406 bytes app/src/main/res/raw/index.html | 472 ++++++--------- app/src/main/res/values/themes.xml | 9 +- app/src/main/res/xml/backup_rules.xml | 13 + .../main/res/xml/data_extraction_rules.xml | 19 + .../java/top/yogiczy/mytv/ExampleUnitTest.kt | 17 + build.gradle.kts | 4 +- gradle/libs.versions.toml | 56 +- gradle/wrapper/gradle-wrapper.properties | 4 +- screenshots/Screenshot_panel.png | Bin 603538 -> 470077 bytes screenshots/Screenshot_settings.png | Bin 533951 -> 102963 bytes screenshots/Screenshot_temp_panel.png | Bin 851835 -> 600702 bytes 203 files changed, 7447 insertions(+), 6163 deletions(-) create mode 100644 .idea/deploymentTargetSelector.xml delete mode 100644 .idea/dictionaries/Administrator.xml delete mode 100644 .idea/encodings.xml create mode 100644 .idea/material_theme_project_new.xml create mode 100644 .idea/other.xml create mode 100644 .idea/runConfigurations/app.xml create mode 100644 app/src/androidTest/java/top/yogiczy/mytv/ExampleInstrumentedTest.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/LeanbackActivity.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/MobileActivity.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/PadActivity.kt rename app/src/main/java/top/yogiczy/mytv/data/entities/{GithubRelease.kt => GitRelease.kt} (58%) delete mode 100644 app/src/main/java/top/yogiczy/mytv/data/models/IptvResponseItem.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/FileCacheRepository.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/GithubRepository.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/IptvRepository.kt rename app/src/main/java/top/yogiczy/mytv/data/repositories/{ => epg}/EpgRepository.kt (53%) create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/epg/fetcher/DefaultEpgFetcher.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/epg/fetcher/EpgFetcher.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/epg/fetcher/XmlEpgFetcher.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/epg/fetcher/XmlGzEpgFetcher.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/git/GitRepository.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/git/parser/GitReleaseParser.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/git/parser/GiteeGitReleaseParser.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/git/parser/GithubGitReleaseParser.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/iptv/IptvRepository.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/iptv/parser/DefaultIptvParser.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/iptv/parser/IptvParser.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/iptv/parser/M3uIptvParser.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/data/repositories/iptv/parser/TvboxIptvParser.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/material/LeanbackPadding.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/tvmaterial/Dialog.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/tvmaterial/Shapes.kt rename app/src/main/java/top/yogiczy/mytv/ui/{App.kt => LeanbackApp.kt} (58%) delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/classicpanel/ClassicPanelScreen.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/classicpanel/components/ClassicPanelEpgList.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/classicpanel/components/ClassicPanelIptvGroupList.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/classicpanel/components/ClassicPanelIptvList.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/home/HomeScreen.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/home/HomeScreenViewModel.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/home/components/HomeContent.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/classicpanel/ClassicPanelScreen.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/classicpanel/components/ClassicPanelEpgList.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/classicpanel/components/ClassicPanelIptvGroupList.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/classicpanel/components/ClassicPanelIptvList.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/components/Visible.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/main/MainScreen.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/main/MainViewModel.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/main/components/MainContent.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/main/components/MainContentState.kt rename app/src/main/java/top/yogiczy/mytv/ui/screens/{ => leanback}/monitor/MonitorScreen.kt (64%) rename app/src/main/java/top/yogiczy/mytv/ui/screens/{panel/PanelDigitChannelSelectScreen.kt => leanback/panel/PanelChannelNoSelectScreen.kt} (63%) create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/panel/PanelDateTimeScreen.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/panel/PanelScreen.kt rename app/src/main/java/top/yogiczy/mytv/ui/screens/{ => leanback}/panel/PanelTempScreen.kt (54%) create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/panel/components/PanelChannelNo.kt rename app/src/main/java/top/yogiczy/mytv/ui/screens/{ => leanback}/panel/components/PanelDateTime.kt (78%) create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/panel/components/PanelIptvEpg.kt rename app/src/main/java/top/yogiczy/mytv/ui/screens/{ => leanback}/panel/components/PanelIptvFavoriteList.kt (53%) rename app/src/main/java/top/yogiczy/mytv/ui/screens/{ => leanback}/panel/components/PanelIptvGroupList.kt (57%) rename app/src/main/java/top/yogiczy/mytv/ui/screens/{ => leanback}/panel/components/PanelIptvInfo.kt (61%) create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/panel/components/PanelIptvItem.kt rename app/src/main/java/top/yogiczy/mytv/ui/screens/{ => leanback}/panel/components/PanelIptvList.kt (54%) rename app/src/main/java/top/yogiczy/mytv/ui/screens/{ => leanback}/panel/components/PanelPlayerInfo.kt (57%) create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/quickpanel/QuickPanelScreen.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/SettingsCategories.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/SettingsScreen.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/SettingsViewModel.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/components/SettingsCategoryAbout.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/components/SettingsCategoryApp.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/components/SettingsCategoryContent.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/components/SettingsCategoryDebug.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/components/SettingsCategoryEpg.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/components/SettingsCategoryFavorite.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/components/SettingsCategoryIptv.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/components/SettingsCategoryList.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/components/SettingsCategoryListItem.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/components/SettingsCategoryMore.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/components/SettingsCategoryUI.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/settings/components/SettingsCategoryUpdate.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/toast/ToastScreen.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/toast/ToastState.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/update/UpdateScreen.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/update/UpdateViewModel.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/update/components/UpdateDialog.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/video/VideoPlayerErrorScreen.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/video/VideoPlayerState.kt rename app/src/main/java/top/yogiczy/mytv/ui/screens/{ => leanback}/video/VideoScreen.kt (61%) rename app/src/main/java/top/yogiczy/mytv/ui/screens/{video/components/VideoDetailInfo.kt => leanback/video/components/VideoPlayerMetadata.kt} (58%) create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/video/player/Media3VideoPlayer.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/leanback/video/player/VideoPlayer.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/panel/PanelScreen.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/panel/PanelTimeScreen.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/panel/components/PanelChannelNo.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/panel/components/PanelIptvItem.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/SettingsScreen.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/SettingsState.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/SettingsAppInfo.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/SettingsCustomEpgItem.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/SettingsCustomIptvItem.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/SettingsDebugItem.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/SettingsFavoriteItem.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/SettingsItem.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/SettingsList.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/SettingsMain.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/SettingsMoreItem.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/SettingsUIItem.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/SettingsUpdateItem.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/SettingsUpdaterDialog.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/settings/components/UpdateState.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/toast/ToastScreen.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/screens/video/PlayerState.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/theme/Color.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/theme/LeanbackTheme.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/theme/MobileTheme.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/theme/PadTheme.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/theme/Theme.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/theme/Type.kt delete mode 100644 app/src/main/java/top/yogiczy/mytv/ui/utils/Padding.kt create mode 100644 app/src/main/java/top/yogiczy/mytv/ui/utils/VersionUtil.kt create mode 100644 app/src/main/res/drawable-xhdpi/tv_banner.png create mode 100644 app/src/main/res/font/harmonyos_sans_black.ttf create mode 100644 app/src/main/res/font/harmonyos_sans_bold.ttf create mode 100644 app/src/main/res/font/harmonyos_sans_light.ttf create mode 100644 app/src/main/res/font/harmonyos_sans_medium.ttf create mode 100644 app/src/main/res/font/harmonyos_sans_regular.ttf create mode 100644 app/src/main/res/font/harmonyos_sans_thin.ttf create mode 100644 app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round_background.png create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round_foreground.png create mode 100644 app/src/main/res/mipmap-hdpi/ic_launcher_round_monochrome.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round_background.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round_foreground.png create mode 100644 app/src/main/res/mipmap-mdpi/ic_launcher_round_monochrome.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round_background.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round_foreground.png create mode 100644 app/src/main/res/mipmap-xhdpi/ic_launcher_round_monochrome.png delete mode 100644 app/src/main/res/mipmap-xhdpi/tv_banner.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round_background.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round_foreground.png create mode 100644 app/src/main/res/mipmap-xxhdpi/ic_launcher_round_monochrome.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round_background.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round_foreground.png create mode 100644 app/src/main/res/mipmap-xxxhdpi/ic_launcher_round_monochrome.png create mode 100644 app/src/main/res/xml/backup_rules.xml create mode 100644 app/src/main/res/xml/data_extraction_rules.xml create mode 100644 app/src/test/java/top/yogiczy/mytv/ExampleUnitTest.kt diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ce385590..834ff578 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,9 +38,9 @@ jobs: - name: 重命名应用 run: | - for file in app/release/app-*.apk; do + for file in app/build/outputs/apk/release/app-*.apk; do if [[ $file =~ app-(.?*)release.apk ]]; then - new_file_name="app/release/mytv-android-${BASH_REMATCH[1]}${{ steps.version.outputs.version }}.apk" + new_file_name="app/build/outputs/apk/release/mytv-android-${BASH_REMATCH[1]}${{ steps.version.outputs.version }}.apk" mv "$file" "$new_file_name" fi done @@ -48,7 +48,7 @@ jobs: - name: Prepare artifacts run: | mkdir artifacts - cp app/release/*.apk artifacts/ + cp app/build/outputs/apk/release/*.apk artifacts/ - name: Upload Release uses: ncipollo/release-action@v1 diff --git a/.gitignore b/.gitignore index fab5d1d2..42a9a399 100644 --- a/.gitignore +++ b/.gitignore @@ -19,4 +19,4 @@ .externalNativeBuild .cxx local.properties -key.properties +key.properties \ No newline at end of file diff --git a/.idea/appInsightsSettings.xml b/.idea/appInsightsSettings.xml index e77bdba4..371f2e29 100644 --- a/.idea/appInsightsSettings.xml +++ b/.idea/appInsightsSettings.xml @@ -1,7 +1,6 @@ -