forked from lizongying/my-tv-0
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit d9ce06d
Showing
67 changed files
with
3,568 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: Bug 反馈 | ||
description: 反馈一个 Bug | ||
labels: [ "bug" ] | ||
title: "[BUG] " | ||
body: | ||
- type: checkboxes | ||
id: checklist | ||
attributes: | ||
label: 检查清单 | ||
description: 确保我们的错误报告表单适合您。 | ||
options: | ||
- label: 之前没有人提交过类似或相同的 bug report。 | ||
required: true | ||
- label: 我正在使用本软件的最新版本。 | ||
required: true | ||
- type: dropdown | ||
id: version | ||
attributes: | ||
label: my-ty 版本 | ||
description: 请选择正在使用的版本 | ||
options: | ||
- 最新稳定版 | ||
- 最新 CI 版 | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: bug | ||
attributes: | ||
label: Bug 描述 | ||
description: 请描述 bug 详情 | ||
placeholder: | | ||
e.g. Crashed when generating snapshot. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: expected | ||
attributes: | ||
label: 预期行为 | ||
description: 你预期会发生什么? | ||
placeholder: | | ||
e.g. A New snapshot! | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: actual | ||
attributes: | ||
label: 实际行为 | ||
description: 反而发生了什么? | ||
placeholder: | | ||
e.g. Crashed. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps | ||
attributes: | ||
label: 复现步骤 | ||
description: 如何复现这个 bug。 | ||
placeholder: | | ||
1. Open the app | ||
2. Crashed | ||
What an app. | ||
- type: input | ||
id: ui | ||
attributes: | ||
label: UI / OS | ||
description: 你的电视系统 UI 或 OS 或 品牌 | ||
placeholder: TCL / XIAOMI / PHONE / etc. | ||
validations: | ||
required: true | ||
- type: input | ||
id: android | ||
attributes: | ||
label: Android 版本 | ||
description: 你的 Android 版本 | ||
placeholder: "12" | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: additional | ||
attributes: | ||
label: 额外信息 | ||
description: 任何你觉得值得说的。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: 功能(新频道)请求 | ||
description: 提出一个建议 | ||
labels: [ "enhancement" ] | ||
title: "[FR] " | ||
body: | ||
- type: checkboxes | ||
id: checklist | ||
attributes: | ||
label: 检查清单 | ||
description: 确保我们的错误报告表单适合您。 | ||
options: | ||
- label: 之前没有人提交过类似或相同的功能请求。 | ||
required: true | ||
- label: 这个建议不会背离 LibChecker 的初衷。 | ||
required: true | ||
- type: textarea | ||
id: propose | ||
attributes: | ||
label: 改进目的 | ||
description: 改进有什么用 | ||
placeholder: | | ||
Show your idea here. | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: solution | ||
attributes: | ||
label: 解决方案 | ||
description: 你会怎么完成这个改进? | ||
placeholder: | | ||
How to do it on your opinion? Or left this blank | ||
- type: textarea | ||
id: addition | ||
attributes: | ||
label: 额外信息 | ||
description: 任何你觉得值得说的。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: build | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
java-version: '17' | ||
distribution: 'temurin' | ||
|
||
- name: Run build with Gradle wrapper | ||
run: ./gradlew assembleRelease -PIS_SO_BUILD=false | ||
|
||
- name: Sign app APK | ||
id: sign_app | ||
uses: r0adkll/sign-android-release@v1 | ||
with: | ||
releaseDirectory: app/build/outputs/apk/release | ||
alias: ${{ secrets.ALIAS }} | ||
signingKeyBase64: ${{ secrets.KEYSTORE }} | ||
keyStorePassword: ${{ secrets.KEYSTORE_PASSWORD }} | ||
keyPassword: ${{ secrets.ALIAS_PASSWORD }} | ||
env: | ||
# override default build-tools version (29.0.3) -- optional | ||
BUILD_TOOLS_VERSION: "34.0.0" | ||
|
||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: false | ||
prerelease: false | ||
|
||
- name: Upload Release Asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ${{ steps.sign_app.outputs.signedReleaseFile }} | ||
asset_name: my-tv-${{ github.ref_name }}.apk | ||
asset_content_type: application/vnd.android.package-archive |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
*.iml | ||
.gradle | ||
.idea | ||
/local.properties | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
local.properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# 我的电视·〇 | ||
|
||
电视播放软件,可以自定义源 | ||
|
||
## 使用 | ||
|
||
下载安装 [releases](https://github.com/lizongying/my-tv-0/releases/) | ||
|
||
更多地址 [my-tv](https://lyrics.run/my-tv-0.html) | ||
|
||
 | ||
|
||
## 更新日志 | ||
|
||
### v1.0.0 | ||
|
||
* 基本视频播放 | ||
|
||
## 其他 | ||
|
||
小米电视可以使用小米电视助手进行安装 | ||
|
||
如电视可以启用ADB,也可以通过ADB进行安装: | ||
|
||
```shell | ||
adb install my-tv-0.apk | ||
``` | ||
|
||
## TODO | ||
|
||
* 音量不同 | ||
* 收藏夹 | ||
* 自定义源 | ||
* 节目增加预告 | ||
* 频道列表优化 | ||
|
||
## 赞赏 | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
plugins { | ||
id("com.android.application") | ||
id("org.jetbrains.kotlin.android") | ||
} | ||
|
||
android { | ||
namespace = "com.lizongying.mytv0" | ||
compileSdk = 34 | ||
|
||
defaultConfig { | ||
applicationId = "com.lizongying.mytv0" | ||
minSdk = 23 | ||
targetSdk = 34 | ||
versionCode = 1 | ||
versionName = "1.0" | ||
|
||
|
||
} | ||
|
||
buildFeatures { | ||
viewBinding = true | ||
} | ||
|
||
buildTypes { | ||
release { | ||
isMinifyEnabled = false | ||
proguardFiles( | ||
getDefaultProguardFile("proguard-android-optimize.txt"), | ||
"proguard-rules.pro" | ||
) | ||
} | ||
} | ||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_1_8 | ||
targetCompatibility = JavaVersion.VERSION_1_8 | ||
} | ||
kotlinOptions { | ||
jvmTarget = "1.8" | ||
} | ||
} | ||
|
||
dependencies { | ||
val media3Version = "1.3.0-rc01" | ||
implementation("androidx.media3:media3-ui:$media3Version") | ||
|
||
// For media playback using ExoPlayer | ||
implementation("androidx.media3:media3-exoplayer:$media3Version") | ||
|
||
// For HLS playback support with ExoPlayer | ||
implementation("androidx.media3:media3-exoplayer-hls:$media3Version") | ||
|
||
implementation("androidx.core:core-ktx:1.12.0") | ||
implementation("androidx.leanback:leanback:1.0.0") | ||
implementation("com.github.bumptech.glide:glide:4.11.0") | ||
|
||
// 21:2.9.0 17:2.6.4 | ||
val retrofit2Version = "2.6.4" | ||
implementation("com.squareup.retrofit2:converter-gson:$retrofit2Version") | ||
implementation ("com.squareup.retrofit2:converter-protobuf:$retrofit2Version") | ||
implementation ("com.squareup.retrofit2:retrofit:$retrofit2Version") | ||
|
||
// For yunos | ||
val exoplayerVersion = "2.13.3" | ||
implementation("com.google.android.exoplayer:exoplayer-ui:$exoplayerVersion") | ||
implementation("com.google.android.exoplayer:exoplayer-core:$exoplayerVersion") | ||
implementation("com.google.android.exoplayer:exoplayer-hls:$exoplayerVersion") | ||
|
||
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.8.0-RC") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"version": 3, | ||
"artifactType": { | ||
"type": "APK", | ||
"kind": "Directory" | ||
}, | ||
"applicationId": "com.lizongying.mytv0", | ||
"variantName": "release", | ||
"elements": [ | ||
{ | ||
"type": "SINGLE", | ||
"filters": [], | ||
"attributes": [], | ||
"versionCode": 1, | ||
"versionName": "1.0", | ||
"outputFile": "app-release.apk" | ||
} | ||
], | ||
"elementType": "File" | ||
} |
Oops, something went wrong.