Skip to content

Commit 8276ff4

Browse files
committed
Merge branch 'develop' into feature/mobile
# Conflicts: # app/src/main/kotlin/dev/aaa1115910/bv/viewmodel/user/UserSpaceViewModel.kt # bili-api/src/main/kotlin/dev/aaa1115910/biliapi/entity/user/Space.kt # bili-api/src/test/kotlin/dev/aaa1115910/biliapi/repositories/UserRepositoryTest.kt # gradle/androidx.versions.toml
2 parents 9749706 + fdc7f1e commit 8276ff4

File tree

27 files changed

+681
-147
lines changed

27 files changed

+681
-147
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,11 @@ body:
66
attributes:
77
value: |
88
## 反馈须知
9-
- 请务必完整填写下面的内容,如果缺少必要的信息,可能会在未核实的情况下直接关闭
10-
- 请务必完整填写下面的内容,如果缺少必要的信息,可能会在未核实的情况下直接关闭
11-
- 请务必完整填写下面的内容,如果缺少必要的信息,可能会在未核实的情况下直接关闭
9+
- 请务必完整填写下面的内容,如果缺少必要的信息,将无法解决任何问题
1210
- 一个 issue 请只反馈一个 bug 或功能建议,一次性反馈多个不同的问题或建议或将会被直接关闭
13-
- 一个 issue 请只反馈一个 bug 或功能建议,一次性反馈多个不同的问题或建议或将会被直接关闭
14-
- 一个 issue 请只反馈一个 bug 或功能建议,一次性反馈多个不同的问题或建议或将会被直接关闭
15-
- 注意你的标题,以简单的一段字概括你所遇到的问题。无意义标题直接关闭
16-
- 注意你的标题,以简单的一段字概括你所遇到的问题。无意义标题直接关闭
17-
- 注意你的标题,以简单的一段字概括你所遇到的问题。无意义标题直接关闭
11+
- 注意你的标题,以简单的一段字概括你所遇到的问题。不要使用无意义内容或全部复制粘贴
12+
- 该项目不为任何旧版本提供维护支持,请务必确认已更新到最新版本
13+
- 应用仅支持系统硬件解码,如遇到播放卡顿或无法播放,请先检查设备芯片性能以及编码支持情况
1814
1915
- type: textarea
2016
id: description
@@ -49,13 +45,25 @@ body:
4945
attributes:
5046
label: 截图
5147
description: 如果可以,提交截图更有助于我们分析问题
48+
- type: checkboxes
49+
id: app-version-confirm-use-latest
50+
validations:
51+
required: true
52+
attributes:
53+
label: 该项目不确认已更新到以下所示的最新版本
54+
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)
57+
options:
58+
- label: 我已更新到最新版本
59+
required: true
5260
- type: input
5361
id: app-version
5462
validations:
5563
required: true
5664
attributes:
57-
label: 应用版本
58-
placeholder: 0.0.1.r29.a6d7ecb.release
65+
label: 当前版本号
66+
placeholder: 0.0.1.r29.a6d7ecb.release (或使用缩写例如 r29)
5967
- type: input
6068
id: android-version
6169
validations:

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,11 @@ body:
66
attributes:
77
value: |
88
## 反馈须知
9-
- 请务必完整填写下面的内容,如果缺少必要的信息,可能会在未核实的情况下直接关闭
10-
- 请务必完整填写下面的内容,如果缺少必要的信息,可能会在未核实的情况下直接关闭
11-
- 请务必完整填写下面的内容,如果缺少必要的信息,可能会在未核实的情况下直接关闭
9+
- 请务必完整填写下面的内容,如果缺少必要的信息,将无法解决任何问题
1210
- 一个 issue 请只反馈一个 bug 或功能建议,一次性反馈多个不同的问题或建议或将会被直接关闭
13-
- 一个 issue 请只反馈一个 bug 或功能建议,一次性反馈多个不同的问题或建议或将会被直接关闭
14-
- 一个 issue 请只反馈一个 bug 或功能建议,一次性反馈多个不同的问题或建议或将会被直接关闭
15-
- 注意你的标题,以简单的一段字概括你所遇到的问题。无意义标题直接关闭
16-
- 注意你的标题,以简单的一段字概括你所遇到的问题。无意义标题直接关闭
17-
- 注意你的标题,以简单的一段字概括你所遇到的问题。无意义标题直接关闭
18-
- 提出建议也不一定会做,这不可能是万能的许愿机,如果自己确实想要,建议 fork 项目自己实现
19-
- 提出建议也不一定会做,这不可能是万能的许愿机,如果自己确实想要,建议 fork 项目自己实现
11+
- 注意你的标题,以简单的一段字概括你所遇到的问题。不要使用无意义内容或全部复制粘贴
2012
- 提出建议也不一定会做,这不可能是万能的许愿机,如果自己确实想要,建议 fork 项目自己实现
13+
- 该项目不为任何旧版本提供维护支持,请务必确认已更新到最新版本
2114
2215
- type: textarea
2316
id: problem-description

.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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66

77
~~Bug Video~~
88

9-
[![App Center Release](https://img.shields.io/endpoint?url=https%3A%2F%2Funtitled-ecso9wcazr6c.runkit.sh)](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%2Funtitled-q0r11y8pnjaw.runkit.sh)](https://install.appcenter.ms/users/aaa1115910-gmail.com/apps/bv/distribution_groups/alpha)
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)
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)

app/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ dependencies {
166166
implementation(androidx.activity.compose)
167167
implementation(androidx.core.ktx)
168168
implementation(androidx.core.splashscreen)
169+
implementation(androidx.compose.constraintlayout)
169170
implementation(androidx.compose.ui)
170171
implementation(androidx.compose.ui.util)
171172
implementation(androidx.compose.ui.tooling.preview)

app/proguard-rules.pro

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,4 +92,8 @@
9292
-dontwarn java.lang.management.RuntimeMXBean
9393

9494
# LibVLC
95-
-keep class org.videolan.libvlc.** { *; }
95+
-keep class org.videolan.libvlc.** { *; }
96+
97+
# gRPC
98+
-keep class bilibili.rpc.** { *; }
99+
-keep class com.google.protobuf.** { *; }

app/src/debug/AndroidManifest.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@
88
<meta-data
99
android:name="firebase_crashlytics_collection_enabled"
1010
android:value="false" />
11+
<meta-data
12+
android:name="firebase_analytics_collection_deactivated"
13+
android:value="true" />
1114
</application>
1215
</manifest>

app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
android:supportsRtl="true"
2828
android:theme="@style/Theme.BV"
2929
tools:ignore="UnusedAttribute">
30+
<activity
31+
android:name=".activities.video.RemoteControllerPanelDemoActivity"
32+
android:exported="false"
33+
android:label="@string/title_activity_remote_controller_panel_demo"
34+
android:theme="@style/Theme.BV" />
3035
<activity
3136
android:name=".activities.settings.LogsActivity"
3237
android:exported="false"
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
package dev.aaa1115910.bv.activities.video
2+
3+
import android.app.Activity
4+
import android.content.Context
5+
import android.content.Intent
6+
import android.os.Bundle
7+
import androidx.activity.ComponentActivity
8+
import androidx.activity.compose.setContent
9+
import androidx.compose.foundation.layout.fillMaxSize
10+
import androidx.compose.runtime.Composable
11+
import androidx.compose.ui.Modifier
12+
import androidx.compose.ui.platform.LocalContext
13+
import dev.aaa1115910.bv.component.RemoteControlPanelDemo
14+
import dev.aaa1115910.bv.entity.proxy.ProxyArea
15+
import dev.aaa1115910.bv.ui.theme.BVTheme
16+
import dev.aaa1115910.bv.util.Prefs
17+
18+
class RemoteControllerPanelDemoActivity : ComponentActivity() {
19+
companion object {
20+
fun actionStart(
21+
context: Context,
22+
avid: Int,
23+
cid: Int,
24+
title: String,
25+
partTitle: String,
26+
played: Int,
27+
fromSeason: Boolean,
28+
subType: Int? = null,
29+
epid: Int? = null,
30+
seasonId: Int? = null,
31+
isVerticalVideo: Boolean = false,
32+
proxyArea: ProxyArea = ProxyArea.MainLand
33+
) {
34+
context.startActivity(
35+
Intent(context, RemoteControllerPanelDemoActivity::class.java).apply {
36+
putExtra("avid", avid)
37+
putExtra("cid", cid)
38+
putExtra("title", title)
39+
putExtra("partTitle", partTitle)
40+
putExtra("played", played)
41+
putExtra("fromSeason", fromSeason)
42+
putExtra("subType", subType)
43+
putExtra("epid", epid)
44+
putExtra("seasonId", seasonId)
45+
putExtra("isVerticalVideo", isVerticalVideo)
46+
putExtra("proxy_area", proxyArea.ordinal)
47+
}
48+
)
49+
}
50+
}
51+
52+
override fun onCreate(savedInstanceState: Bundle?) {
53+
super.onCreate(savedInstanceState)
54+
setContent {
55+
BVTheme {
56+
RemoteControllerPanelDemoScreen()
57+
}
58+
}
59+
}
60+
}
61+
62+
@Composable
63+
fun RemoteControllerPanelDemoScreen(
64+
modifier: Modifier = Modifier
65+
) {
66+
val context = LocalContext.current
67+
val intent = (context as Activity).intent
68+
69+
val continueToPlayerV3 = {
70+
Prefs.showedRemoteControllerPanelDemo = true
71+
VideoPlayerV3Activity.actionStart(
72+
context = context,
73+
avid = intent.getIntExtra("avid", 0),
74+
cid = intent.getIntExtra("cid", 0),
75+
title = intent.getStringExtra("title") ?: "",
76+
partTitle = intent.getStringExtra("partTitle") ?: "",
77+
played = intent.getIntExtra("played", 0),
78+
fromSeason = intent.getBooleanExtra("fromSeason", false),
79+
subType = intent.getIntExtra("subType", 0),
80+
epid = intent.getIntExtra("epid", 0),
81+
seasonId = intent.getIntExtra("seasonId", 0),
82+
isVerticalVideo = intent.getBooleanExtra("isVerticalVideo", false),
83+
proxyArea = ProxyArea.entries[intent.getIntExtra("proxy_area", 0)]
84+
)
85+
context.finish()
86+
}
87+
88+
RemoteControlPanelDemo(
89+
modifier = modifier.fillMaxSize(),
90+
onConfirm = continueToPlayerV3
91+
)
92+
}

0 commit comments

Comments
 (0)