Skip to content

Commit

Permalink
Merge pull request #495 from xiaoyaocz/dev
Browse files Browse the repository at this point in the history
Release 1.7.3 / TV 1.1.9
  • Loading branch information
xiaoyaocz authored Aug 13, 2024
2 parents cbaaad8 + f7eb5d0 commit b12df3c
Show file tree
Hide file tree
Showing 9 changed files with 198 additions and 188 deletions.
6 changes: 3 additions & 3 deletions assets/app_version.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": "1.7.2",
"version_num": 10702,
"version_desc": "- - 修复斗鱼分类无法加载 #485\n- 修复哔哩哔哩直播加载失败 #489\n- 支持远程同步数据\n- 支持导入导出应用设置\n- 支持手动输入Cookie登录哔哩哔哩 #463\n- 支持定时自动更新关注列表 #453",
"version": "1.7.3",
"version_num": 10703,
"version_desc": "- 修复斗鱼分类无法加载 #485\n- 修复哔哩哔哩直播加载失败 #489\n- 支持远程同步数据\n- 支持导入导出应用设置\n- 支持手动输入Cookie登录哔哩哔哩 #463\n- 支持定时自动更新关注列表 #453",
"prerelease":false,
"download_url": "https://github.com/xiaoyaocz/dart_simple_live/releases"
}
4 changes: 2 additions & 2 deletions assets/tv_app_version.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"version": "1.1.8",
"version_num": 10108,
"version": "1.1.9",
"version_num": 10109,
"version_desc": "- 修复斗鱼分类无法加载\n- 修复哔哩哔哩直播加载失败\n- 支持定时自动更新关注列表",
"prerelease":true,
"download_url": "https://github.com/xiaoyaocz/dart_simple_live/releases"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ class AppSettingsController extends GetxController {
.getValue(LocalStorageService.kAutoUpdateFollowEnable, true);

autoUpdateFollowDuration.value = LocalStorageService.instance
.getValue(LocalStorageService.kAutoUpdateFollowEnable, 10);
.getValue(LocalStorageService.kUpdateFollowDuration, 10);

updateFollowThreadCount.value = LocalStorageService.instance
.getValue(LocalStorageService.kUpdateFollowThreadCount, 4);
Expand Down Expand Up @@ -490,7 +490,7 @@ class AppSettingsController extends GetxController {
void setAutoUpdateFollowDuration(int e) {
autoUpdateFollowDuration.value = e;
LocalStorageService.instance
.setValue(LocalStorageService.kAutoUpdateFollowEnable, e);
.setValue(LocalStorageService.kUpdateFollowDuration, e);
}

var updateFollowThreadCount = 4.obs;
Expand Down
11 changes: 8 additions & 3 deletions simple_live_app/lib/services/local_storage_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,14 @@ class LocalStorageService extends GetxService {
}

T getValue<T>(dynamic key, T defaultValue) {
var value = settingsBox.get(key, defaultValue: defaultValue) as T;
Log.d("Get LocalStorage:$key\r\n$value");
return value;
try {
var value = settingsBox.get(key, defaultValue: defaultValue) as T;
Log.d("Get LocalStorage:$key\r\n$value");
return value;
} catch (e) {
Log.logPrint(e);
return defaultValue;
}
}

Future setValue<T>(dynamic key, T value) async {
Expand Down
4 changes: 2 additions & 2 deletions simple_live_app/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: simple_live_app
version: 1.7.2+10702
version: 1.7.3+10703
publish_to: none
description: "Simple Live APP"
environment:
Expand All @@ -10,7 +10,7 @@ dependencies:
path: ../simple_live_core
# 图标
cupertino_icons: ^1.0.2
remixicon: ^1.0.0 #Remix图标
remixicon: ^1.2.0 #Remix图标

# 框架、工具
get: ^4.6.6 #状态管理、路由管理、国际化
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class AppSettingsController extends GetxController {
.getValue(LocalStorageService.kAutoUpdateFollowEnable, true);

autoUpdateFollowDuration.value = LocalStorageService.instance
.getValue(LocalStorageService.kAutoUpdateFollowEnable, 10);
.getValue(LocalStorageService.kUpdateFollowDuration, 10);

updateFollowThreadCount.value = LocalStorageService.instance
.getValue(LocalStorageService.kUpdateFollowThreadCount, 4);
Expand Down Expand Up @@ -325,7 +325,7 @@ class AppSettingsController extends GetxController {
void setAutoUpdateFollowDuration(int e) {
autoUpdateFollowDuration.value = e;
LocalStorageService.instance
.setValue(LocalStorageService.kAutoUpdateFollowEnable, e);
.setValue(LocalStorageService.kUpdateFollowDuration, e);
}

var updateFollowThreadCount = 4.obs;
Expand Down
11 changes: 8 additions & 3 deletions simple_live_tv_app/lib/services/local_storage_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,14 @@ class LocalStorageService extends GetxService {
}

T getValue<T>(dynamic key, T defaultValue) {
var value = settingsBox.get(key, defaultValue: defaultValue) as T;
Log.d("Get LocalStorage:$key\r\n$value");
return value;
try {
var value = settingsBox.get(key, defaultValue: defaultValue) as T;
Log.d("Get LocalStorage:$key\r\n$value");
return value;
} catch (e) {
Log.logPrint(e);
return defaultValue;
}
}

Future setValue<T>(dynamic key, T value) async {
Expand Down
Loading

0 comments on commit b12df3c

Please sign in to comment.