Skip to content

Commit

Permalink
Fixed some issues (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ committed Oct 12, 2024
1 parent e36e119 commit eea94dc
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 3 deletions.
10 changes: 10 additions & 0 deletions DarockBili Watch App/MeowBili-Watch-App-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
</dict>
</plist>
2 changes: 1 addition & 1 deletion DarockBili Watch App/Others/SettingsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ struct ScreenTimeSettingsView: View {
Button(action: {
isScreenTimeEnabled = true
}, label: {
Text("Screen-time.on")
Text("开启“屏幕使用时间”")
})
} footer: {
Text("Screen-time.usage")
Expand Down
4 changes: 2 additions & 2 deletions DarockBili Watch App/PersonalCenter/HistoryView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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" {
Expand Down
27 changes: 27 additions & 0 deletions Localizable.xcstrings
Original file line number Diff line number Diff line change
Expand Up @@ -4736,6 +4736,33 @@
}
}
}
},
"将不再记录您的屏幕使用时间, 已记录的数据不会被删除" : {

},
"开启“屏幕使用时间”" : {

},
"番剧" : {

},
"直播" : {

},
"确认" : {

},
"视频" : {

},
"视频下载列表" : {

},
"神秘代码" : {

},
"这里空空如也" : {

}
},
"version" : "1.0"
Expand Down
15 changes: 15 additions & 0 deletions MeowBili-Watch-App-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
</dict>
</plist>
8 changes: 8 additions & 0 deletions MeowBili/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
</dict>
</plist>

0 comments on commit eea94dc

Please sign in to comment.