Skip to content

Commit 3d440c9

Browse files
committed
Merge branch 'refs/heads/develop' into feature/mobile
# Conflicts: # app/src/main/kotlin/dev/aaa1115910/bv/viewmodel/home/RecommendViewModel.kt # gradle/androidx.versions.toml
2 parents a6d590e + 4c38c7f commit 3d440c9

File tree

148 files changed

+498
-618
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+498
-618
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ body:
5252
attributes:
5353
label: 请确认已更新到以下所示的最新版本
5454
description: |
55-
![App Center Release](https://img.shields.io/endpoint?url=https%3A%2F%2Fbadge.versions.bv.aaa1115910.dev%2F%3Ftype%3Drelease)
56-
![App Center Alpha](https://img.shields.io/endpoint?url=https%3A%2F%2Fbadge.versions.bv.aaa1115910.dev%2F%3Ftype%3Dalpha)
55+
![GitHub Release Release](https://img.shields.io/endpoint?url=https%3A%2F%2Fbadge.versions.bv.aaa1115910.dev%2Fgithub%3Fprerelease%3Dfalse)
56+
![GitHub Release Pre-Release](https://img.shields.io/endpoint?url=https%3A%2F%2Fbadge.versions.bv.aaa1115910.dev%2Fgithub%3Fprerelease%3Dtrue)
5757
options:
5858
- '我正在使用旧版本'
5959
- '已更新到最新 Release 版'

.github/workflows/alpha.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
java-version: '17'
2626
distribution: 'temurin'
2727

28+
- name: Setup Gradle to generate and submit dependency graphs
29+
uses: gradle/actions/setup-gradle@v3
30+
with:
31+
dependency-graph: generate-and-submit
32+
2833
- name: Write google-services.json
2934
env:
3035
DATA: ${{ secrets.GOOGLE_SERVICES_JSON }}

.idea/kotlinc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66

77
~~Bug Video~~
88

9-
[![App Center Release](https://img.shields.io/endpoint?url=https%3A%2F%2Fbadge.versions.bv.aaa1115910.dev%2F%3Ftype%3Drelease)](https://install.appcenter.ms/users/aaa1115910-gmail.com/apps/bv/distribution_groups/public)
10-
[![App Center Alpha](https://img.shields.io/endpoint?url=https%3A%2F%2Fbadge.versions.bv.aaa1115910.dev%2F%3Ftype%3Dalpha)](https://install.appcenter.ms/users/aaa1115910-gmail.com/apps/bv/distribution_groups/alpha)
9+
[![GitHub Release Release](https://img.shields.io/endpoint?url=https%3A%2F%2Fbadge.versions.bv.aaa1115910.dev%2Fgithub%3Fprerelease%3Dfalse)](https://github.com/aaa1115910/bv/releases?q=prerelease%3Afalse)
10+
[![GitHub Release Pre-Release](https://img.shields.io/endpoint?url=https%3A%2F%2Fbadge.versions.bv.aaa1115910.dev%2Fgithub%3Fprerelease%3Dtrue)](https://github.com/aaa1115910/bv/releases?q=prerelease%3Atrue)
1111

1212
[![Workflow Release](https://github.com/aaa1115910/bv/actions/workflows/release.yml/badge.svg)](https://github.com/aaa1115910/bv/actions/workflows/release.yml)
1313
[![Workflow Alpha](https://github.com/aaa1115910/bv/actions/workflows/alpha.yml/badge.svg)](https://github.com/aaa1115910/bv/actions/workflows/alpha.yml)
14-
[![Android Sdk Require](https://img.shields.io/badge/android-5.0%2B-informational)](https://developer.android.com/jetpack/compose/interop/adding#:~:text=minimum%20API%20level%20to%2021%20or%20higher%2C)
14+
[![Android Sdk Require](https://img.shields.io/badge/Android-5.0%2B-informational?logo=android)](https://apilevels.com/#:~:text=Jetpack%20Compose%20requires%20a%20minSdk%20of%2021%20or%20higher)
1515
[![GitHub](https://img.shields.io/github/license/aaa1115910/bv)](https://github.com/aaa1115910/bv)
1616

1717
**BV 不支持在中国大陆地区内的智能电视上使用,如有相关使用需求请使用 [云视听小电视](https://app.bilibili.com)**
@@ -36,13 +36,11 @@ BV ~~(Bug Video)~~ 是一款 [哔哩哔哩](https://www.bilibili.com) 的第三
3636

3737
### Release
3838

39-
- [Github Actions](https://github.com/aaa1115910/bv/actions/workflows/release.yml)
40-
- [AppCenter](https://install.appcenter.ms/users/aaa1115910-gmail.com/apps/bv/distribution_groups/public)
39+
- [Github Release](https://github.com/aaa1115910/bv/releases?q=prerelease%3Afalse)
4140

4241
### Alpha
4342

44-
- [Github Actions](https://github.com/aaa1115910/bv/actions/workflows/alpha.yml)
45-
- [AppCenter](https://install.appcenter.ms/users/aaa1115910-gmail.com/apps/bv/distribution_groups/alpha)
43+
- [Github Release](https://github.com/aaa1115910/bv/releases?q=prerelease%3Atrue)
4644

4745
## License
4846

app/build.gradle.kts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import java.util.Properties
77

88
plugins {
99
alias(gradleLibs.plugins.android.application)
10+
alias(gradleLibs.plugins.compose.compiler)
1011
alias(gradleLibs.plugins.firebase.crashlytics)
1112
alias(gradleLibs.plugins.google.ksp)
1213
alias(gradleLibs.plugins.google.services)
@@ -106,9 +107,6 @@ android {
106107
compose = true
107108
buildConfig = true
108109
}
109-
composeOptions {
110-
kotlinCompilerExtensionVersion = androidx.compose.compiler.get().version
111-
}
112110
packaging {
113111
resources {
114112
excludes += "/META-INF/{AL2.0,LGPL2.1}"

app/proguard-rules.pro

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,14 @@
101101
-dontwarn com.google.protobuf.GeneratedMessageV3$BuilderParent
102102
-dontwarn com.google.protobuf.GeneratedMessageV3$FieldAccessorTable
103103
-dontwarn com.google.protobuf.GeneratedMessageV3
104-
-dontwarn com.google.protobuf.RepeatedFieldBuilderV3
104+
-dontwarn com.google.protobuf.RepeatedFieldBuilderV3
105+
106+
# bv
107+
# Please add these rules to your existing keep rules in order to suppress warnings.
108+
# This is generated automatically by the Android Gradle plugin.
109+
-dontwarn dev.aaa1115910.bv.player.AbstractVideoPlayer
110+
-dontwarn dev.aaa1115910.bv.player.BvVideoPlayerKt
111+
-dontwarn dev.aaa1115910.bv.player.VideoPlayerListener
112+
-dontwarn dev.aaa1115910.bv.player.VideoPlayerOptions
113+
-dontwarn dev.aaa1115910.bv.player.impl.exo.ExoMediaPlayer
114+
-dontwarn dev.aaa1115910.bv.player.impl.exo.ExoPlayerFactory

app/src/main/AndroidManifest.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717
android:name="android.hardware.wifi"
1818
android:required="false" />
1919

20+
<queries>
21+
<package android:name="tw.com.gamer.android.animad" />
22+
</queries>
23+
2024
<application
2125
android:name=".BVApp"
2226
android:allowBackup="true"

app/src/main/kotlin/dev/aaa1115910/bv/activities/video/RemoteControllerPanelDemoActivity.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ class RemoteControllerPanelDemoActivity : ComponentActivity() {
1919
companion object {
2020
fun actionStart(
2121
context: Context,
22-
avid: Int,
23-
cid: Int,
22+
avid: Long,
23+
cid: Long,
2424
title: String,
2525
partTitle: String,
2626
played: Int,
@@ -70,8 +70,8 @@ fun RemoteControllerPanelDemoScreen(
7070
Prefs.showedRemoteControllerPanelDemo = true
7171
VideoPlayerV3Activity.actionStart(
7272
context = context,
73-
avid = intent.getIntExtra("avid", 0),
74-
cid = intent.getIntExtra("cid", 0),
73+
avid = intent.getLongExtra("avid", 0),
74+
cid = intent.getLongExtra("cid", 0),
7575
title = intent.getStringExtra("title") ?: "",
7676
partTitle = intent.getStringExtra("partTitle") ?: "",
7777
played = intent.getIntExtra("played", 0),

app/src/main/kotlin/dev/aaa1115910/bv/activities/video/VideoInfoActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import dev.aaa1115910.bv.ui.theme.BVTheme
1212
class VideoInfoActivity : ComponentActivity() {
1313
companion object {
1414
fun actionStart(
15-
context: Context, aid: Int,
15+
context: Context, aid: Long,
1616
fromSeason: Boolean = false,
1717
proxyArea: ProxyArea = ProxyArea.MainLand
1818
) {

app/src/main/kotlin/dev/aaa1115910/bv/activities/video/VideoPlayerActivity.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import androidx.compose.ui.Modifier
1313
import androidx.compose.ui.res.stringResource
1414
import androidx.compose.ui.text.style.TextAlign
1515
import androidx.media3.exoplayer.ExoPlayer
16-
import androidx.tv.material3.ExperimentalTvMaterial3Api
1716
import androidx.tv.material3.Text
1817
import dev.aaa1115910.bv.R
1918
import dev.aaa1115910.bv.screen.VideoPlayerScreen
@@ -28,8 +27,8 @@ class VideoPlayerActivity : ComponentActivity() {
2827
private val logger = KotlinLogging.logger { }
2928
fun actionStart(
3029
context: Context,
31-
avid: Int,
32-
cid: Int,
30+
avid: Long,
31+
cid: Long,
3332
title: String,
3433
partTitle: String,
3534
played: Int,
@@ -56,7 +55,6 @@ class VideoPlayerActivity : ComponentActivity() {
5655

5756
private val playerViewModel: PlayerViewModel by viewModel()
5857

59-
@OptIn(ExperimentalTvMaterial3Api::class)
6058
@androidx.annotation.OptIn(androidx.media3.common.util.UnstableApi::class)
6159
override fun onCreate(savedInstanceState: Bundle?) {
6260
super.onCreate(savedInstanceState)
@@ -70,8 +68,8 @@ class VideoPlayerActivity : ComponentActivity() {
7068
playerViewModel.preparePlayer(player)
7169

7270
if (intent.hasExtra("avid")) {
73-
val aid = intent.getIntExtra("avid", 170001)
74-
val cid = intent.getIntExtra("cid", 170001)
71+
val aid = intent.getLongExtra("avid", 170001)
72+
val cid = intent.getLongExtra("cid", 170001)
7573
val title = intent.getStringExtra("title") ?: "Unknown Title"
7674
val partTitle = intent.getStringExtra("partTitle") ?: "Unknown Part Title"
7775
val played = intent.getIntExtra("played", 0)

0 commit comments

Comments
 (0)