From eea94dc7d7b6e615544ac23886d1bd04e17e3b05 Mon Sep 17 00:00:00 2001
From: Mark Chan <45706356+WindowsMEMZ@users.noreply.github.com>
Date: Sun, 11 Feb 2024 13:25:30 +0800
Subject: [PATCH] Fixed some issues (#197)
---
.../MeowBili-Watch-App-Info.plist | 10 +++++++
.../Others/SettingsView.swift | 2 +-
.../PersonalCenter/HistoryView.swift | 4 +--
Localizable.xcstrings | 27 +++++++++++++++++++
MeowBili-Watch-App-Info.plist | 15 +++++++++++
MeowBili/Info.plist | 8 ++++++
6 files changed, 63 insertions(+), 3 deletions(-)
create mode 100644 DarockBili Watch App/MeowBili-Watch-App-Info.plist
create mode 100644 MeowBili-Watch-App-Info.plist
create mode 100644 MeowBili/Info.plist
diff --git a/DarockBili Watch App/MeowBili-Watch-App-Info.plist b/DarockBili Watch App/MeowBili-Watch-App-Info.plist
new file mode 100644
index 000000000..f753731e5
--- /dev/null
+++ b/DarockBili Watch App/MeowBili-Watch-App-Info.plist
@@ -0,0 +1,10 @@
+
+
+
+
+ UIBackgroundModes
+
+ audio
+
+
+
diff --git a/DarockBili Watch App/Others/SettingsView.swift b/DarockBili Watch App/Others/SettingsView.swift
index d054361da..c5b17c9d7 100644
--- a/DarockBili Watch App/Others/SettingsView.swift
+++ b/DarockBili Watch App/Others/SettingsView.swift
@@ -390,7 +390,7 @@ struct ScreenTimeSettingsView: View {
Button(action: {
isScreenTimeEnabled = true
}, label: {
- Text("Screen-time.on")
+ Text("开启“屏幕使用时间”")
})
} footer: {
Text("Screen-time.usage")
diff --git a/DarockBili Watch App/PersonalCenter/HistoryView.swift b/DarockBili Watch App/PersonalCenter/HistoryView.swift
index 0b5348aa5..943b508d3 100644
--- a/DarockBili Watch App/PersonalCenter/HistoryView.swift
+++ b/DarockBili Watch App/PersonalCenter/HistoryView.swift
@@ -90,12 +90,12 @@ struct HistoryView: View {
if isSuccess {
debugPrint(respJson)
if !CheckBApiError(from: respJson) { return }
- guard respJson["data"].dictionary != nil else {
+ let datas = respJson["data"]
+ if datas[0]["business"].string == nil {
hasData = false
isLoaded = true
return
}
- let datas = respJson["data"]
for data in datas {
let type = data.1["business"].string ?? "archive"
if type == "archive" {
diff --git a/Localizable.xcstrings b/Localizable.xcstrings
index 3d6c47f03..2d2251854 100644
--- a/Localizable.xcstrings
+++ b/Localizable.xcstrings
@@ -4736,6 +4736,33 @@
}
}
}
+ },
+ "将不再记录您的屏幕使用时间, 已记录的数据不会被删除" : {
+
+ },
+ "开启“屏幕使用时间”" : {
+
+ },
+ "番剧" : {
+
+ },
+ "直播" : {
+
+ },
+ "确认" : {
+
+ },
+ "视频" : {
+
+ },
+ "视频下载列表" : {
+
+ },
+ "神秘代码" : {
+
+ },
+ "这里空空如也" : {
+
}
},
"version" : "1.0"
diff --git a/MeowBili-Watch-App-Info.plist b/MeowBili-Watch-App-Info.plist
new file mode 100644
index 000000000..f6cad2bc6
--- /dev/null
+++ b/MeowBili-Watch-App-Info.plist
@@ -0,0 +1,15 @@
+
+
+
+
+ NSAppTransportSecurity
+
+ NSAllowsArbitraryLoads
+
+
+ UIBackgroundModes
+
+ audio
+
+
+
diff --git a/MeowBili/Info.plist b/MeowBili/Info.plist
new file mode 100644
index 000000000..bc11256bd
--- /dev/null
+++ b/MeowBili/Info.plist
@@ -0,0 +1,8 @@
+
+
+
+
+ ITSAppUsesNonExemptEncryption
+
+
+