Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: waifu-project/movie
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: release-v2.1.4
Choose a base ref
...
head repository: waifu-project/movie
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dev
Choose a head ref
Loading
Showing with 6,154 additions and 4,795 deletions.
  1. +1 −1 .fvmrc
  2. +1 −0 .gitattributes
  3. +28 −28 .github/workflows/release.yml
  4. +4 −1 .gitignore
  5. +37 −2 .metadata
  6. +12 −1 .vscode/launch.json
  7. +2 −1 .vscode/settings.json
  8. +71 −0 .vscode/tasks.json
  9. +43 −0 .zed/tasks.json
  10. +37 −37 README.md
  11. +27 −31 android/app/build.gradle
  12. +3 −3 android/app/src/debug/AndroidManifest.xml
  13. +36 −29 android/app/src/main/AndroidManifest.xml
  14. +0 −6 android/app/src/main/java/io/github/d1y/movie/movie/MainActivity.java
  15. +5 −0 android/app/src/main/kotlin/io/github/d1y/movie/movie/MainActivity.kt
  16. BIN android/app/src/main/res/drawable-hdpi/splash.png
  17. BIN android/app/src/main/res/drawable-mdpi/splash.png
  18. BIN android/app/src/main/res/drawable-v21/background.png
  19. +10 −7 android/app/src/main/res/drawable-v21/launch_background.xml
  20. BIN android/app/src/main/res/drawable-xhdpi/splash.png
  21. BIN android/app/src/main/res/drawable-xxhdpi/splash.png
  22. BIN android/app/src/main/res/drawable-xxxhdpi/splash.png
  23. BIN android/app/src/main/res/drawable/background.png
  24. +10 −7 android/app/src/main/res/drawable/launch_background.xml
  25. +2 −2 android/app/src/main/res/values-night/styles.xml
  26. +3 −4 android/app/src/main/res/values/styles.xml
  27. +3 −3 android/app/src/profile/AndroidManifest.xml
  28. +5 −14 android/build.gradle
  29. +1 −1 android/gradle.properties
  30. +1 −2 android/gradle/wrapper/gradle-wrapper.properties
  31. +22 −8 android/settings.gradle
  32. +3 −0 devtools_options.yaml
  33. +2 −0 docs/keyboard.md
  34. +12 −0 docs/protocol.md
  35. +2 −4 docs/start_dev.md
  36. +1 −1 ios/Flutter/AppFrameworkInfo.plist
  37. +1 −1 ios/Podfile
  38. +61 −53 ios/Podfile.lock
  39. +1 −1 ios/Runner.xcodeproj/project.pbxproj
  40. +1 −1 ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
  41. +21 −6 ios/Runner/Info.plist
  42. +12 −0 ios/RunnerTests/RunnerTests.swift
  43. +13 −0 lib/app/extension.dart
  44. +292 −71 lib/app/modules/home/controllers/home_controller.dart
  45. +2 −3 lib/app/modules/home/views/cupertino_license.dart
  46. +0 −9 lib/app/modules/home/views/home_config.dart
  47. +15 −24 lib/app/modules/home/views/home_view.dart
  48. +29 −48 lib/app/modules/home/views/index_home_view.dart
  49. +9 −9 lib/app/modules/home/views/mirror_check.dart
  50. +37 −40 lib/app/modules/home/views/mirrortable.dart
  51. +2 −2 lib/app/modules/home/views/nsfwtable.dart
  52. +10 −12 lib/app/modules/home/views/parse_vip_manage.dart
  53. +17 −16 lib/app/modules/home/views/search_view.dart
  54. +46 −43 lib/app/modules/home/views/settings_view.dart
  55. +80 −77 lib/app/modules/home/views/source_help.dart
  56. +20 −22 lib/app/modules/play/controllers/play_controller.dart
  57. +11 −11 lib/app/modules/play/views/chewie_view.dart
  58. +5 −7 lib/app/modules/play/views/custom_play.dart
  59. +259 −258 lib/app/modules/play/views/play_view.dart
  60. +16 −48 lib/app/modules/play/views/webview_view.dart
  61. +9 −0 lib/app/shared/bus.dart
  62. +5 −6 lib/app/shared/mirror_category.dart
  63. +9 −9 lib/app/shared/mirror_status_stack.dart
  64. +3 −5 lib/app/widget/k_body.dart
  65. +6 −5 lib/app/widget/k_empty_mirror.dart
  66. +2 −1 lib/app/widget/k_error_stack.dart
  67. +6 −8 lib/app/widget/k_pagination.dart
  68. +2 −2 lib/app/widget/k_tag.dart
  69. +1 −1 lib/app/widget/k_title_bar.dart
  70. +61 −63 lib/app/widget/mac.dart
  71. +3 −3 lib/app/widget/movie_card_item.dart
  72. +10 −10 lib/app/widget/wechat_popmenu.dart
  73. +16 −16 lib/app/widget/window_appbar.dart
  74. +1 −0 lib/builtin/README.md
  75. +14 −0 lib/builtin/maccms/maccms.dart
  76. +0 −5 lib/config.dart
  77. +5 −2 lib/isar/repo.dart
  78. +0 −4 lib/isar/schema/mirror_schema.dart
  79. +1 −1 lib/isar/schema/parse_schema.dart
  80. +0 −1 lib/isar/schema/settings_schema.dart
  81. +12 −6 lib/main.dart
  82. +1 −2 lib/shared/enum.dart
  83. +43 −24 lib/{spider → }/shared/manage.dart
  84. +0 −91 lib/spider/abstract/spider_movie.dart
  85. +0 −98 lib/spider/abstract/spider_serialize.dart
  86. +0 −180 lib/utils/http.dart
  87. +6 −2 lib/utils/screen_helper.dart
  88. +3 −4 lib/widget/flutter_custom_license_page.dart
  89. +6 −2 lib/widget/simple_html/custom_render.dart
  90. +13 −19 lib/widget/simple_html/flutter_html.dart
  91. +174 −100 lib/widget/simple_html/html_parser.dart
  92. +4 −1 lib/widget/simple_html/src/anchor.dart
  93. +444 −203 lib/widget/simple_html/src/css_parser.dart
  94. +11 −10 lib/widget/simple_html/src/extension.dart
  95. +9 −1 lib/widget/simple_html/src/html_elements.dart
  96. +13 −14 lib/widget/simple_html/src/interactable_element.dart
  97. +61 −49 lib/widget/simple_html/src/layout_element.dart
  98. +47 −37 lib/widget/simple_html/src/replaced_element.dart
  99. +10 −7 lib/widget/simple_html/src/styled_element.dart
  100. +6 −5 lib/widget/simple_html/src/utils.dart
  101. +36 −31 lib/widget/simple_html/style.dart
  102. +8 −0 linux/flutter/generated_plugin_registrant.cc
  103. +2 −0 linux/flutter/generated_plugins.cmake
  104. +13 −3 macos/Flutter/GeneratedPluginRegistrant.swift
  105. +0 −13 macos/Flutter/ephemeral/Flutter-Generated.xcconfig
  106. +0 −14 macos/Flutter/ephemeral/flutter_export_environment.sh
  107. +1 −1 macos/Podfile
  108. +49 −26 macos/Podfile.lock
  109. +4 −4 macos/Runner.xcodeproj/project.pbxproj
  110. +1 −1 macos/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
  111. +15 −0 macos/Runner/Info.plist
  112. +12 −0 macos/RunnerTests/RunnerTests.swift
  113. 0 {thirdparty → packages}/command_palette/.gitignore
  114. 0 {thirdparty → packages}/command_palette/.metadata
  115. 0 {thirdparty → packages}/command_palette/LICENSE
  116. 0 {thirdparty → packages}/command_palette/README.md
  117. 0 {thirdparty → packages}/command_palette/lib/command_palette.dart
  118. +1 −1 {thirdparty → packages}/command_palette/lib/src/command_palette.dart
  119. 0 {thirdparty → packages}/command_palette/lib/src/controller/command_palette_controller.dart
  120. 0 {thirdparty → packages}/command_palette/lib/src/models/command_palette_action.dart
  121. 0 {thirdparty → packages}/command_palette/lib/src/models/command_palette_config.dart
  122. 0 {thirdparty → packages}/command_palette/lib/src/models/command_palette_style.dart
  123. 0 {thirdparty → packages}/command_palette/lib/src/models/matched_command_palette_action.dart
  124. 0 {thirdparty → packages}/command_palette/lib/src/utils/filter.dart
  125. 0 {thirdparty → packages}/command_palette/lib/src/widgets/command_palette_instructions.dart
  126. +4 −2 {thirdparty → packages}/command_palette/lib/src/widgets/command_palette_modal.dart
  127. 0 {thirdparty → packages}/command_palette/lib/src/widgets/command_palette_text_field.dart
  128. 0 {thirdparty → packages}/command_palette/lib/src/widgets/keyboard_key_icon.dart
  129. +2 −1 {thirdparty → packages}/command_palette/lib/src/widgets/options/command_palette_body.dart
  130. 0 {thirdparty → packages}/command_palette/lib/src/widgets/options/option_highlighter.dart
  131. +48 −24 {thirdparty → packages}/command_palette/pubspec.lock
  132. 0 {thirdparty → packages}/command_palette/pubspec.yaml
  133. 0 {thirdparty → packages}/flappy_search_bar_ns/.gitignore
  134. 0 {thirdparty → packages}/flappy_search_bar_ns/.metadata
  135. 0 {thirdparty → packages}/flappy_search_bar_ns/LICENSE
  136. 0 {thirdparty → packages}/flappy_search_bar_ns/README.md
  137. +1 −2 {thirdparty → packages}/flappy_search_bar_ns/lib/flappy_search_bar.dart
  138. 0 {thirdparty → packages}/flappy_search_bar_ns/lib/scaled_tile.dart
  139. 0 {thirdparty → packages}/flappy_search_bar_ns/lib/search_bar_style.dart
  140. +49 −48 {thirdparty/command_palette/example → packages/flappy_search_bar_ns}/pubspec.lock
  141. 0 {thirdparty → packages}/flappy_search_bar_ns/pubspec.yaml
  142. +10 −0 packages/flutter_cupertino_settings/.gitignore
  143. +87 −0 packages/flutter_cupertino_settings/lib/flutter_cupertino_settings.dart
  144. +80 −0 packages/flutter_cupertino_settings/lib/widgets/button.dart
  145. +56 −0 packages/flutter_cupertino_settings/lib/widgets/control.dart
  146. +23 −0 packages/flutter_cupertino_settings/lib/widgets/description.dart
  147. +31 −0 packages/flutter_cupertino_settings/lib/widgets/header.dart
  148. +129 −0 packages/flutter_cupertino_settings/lib/widgets/link.dart
  149. +63 −0 packages/flutter_cupertino_settings/lib/widgets/secret.dart
  150. +94 −0 packages/flutter_cupertino_settings/lib/widgets/selection.dart
  151. +27 −0 packages/flutter_cupertino_settings/lib/widgets/spacer.dart
  152. +88 −0 packages/flutter_cupertino_settings/lib/widgets/widget.dart
  153. +12 −0 packages/flutter_cupertino_settings/pubspec.yaml
  154. +53 −0 packages/flutter_cupertino_settings/readme.md
  155. +9 −0 packages/simple/lib/intent.dart
  156. +21 −0 packages/simple/lib/utils.dart
  157. +4 −0 packages/simple/lib/x.dart
  158. +62 −30 {thirdparty/flappy_search_bar_ns → packages/simple}/pubspec.lock
  159. +15 −0 packages/simple/pubspec.yaml
  160. +29 −0 packages/xi/.gitignore
  161. +5 −0 packages/xi/README.md
  162. +255 −106 {lib/spider/impl → packages/xi/lib/adapters}/mac_cms.dart
  163. +235 −0 packages/xi/lib/interface.dart
  164. +1 −22 {lib/spider → packages/xi/lib}/models/mac_cms/source_data.dart
  165. +4 −4 {lib/spider → packages/xi/lib}/models/mac_cms/xml_data.dart
  166. +4 −3 {lib/spider → packages/xi/lib}/models/mac_cms/xml_search_data.dart
  167. +1 −0 packages/xi/lib/models/models.dart
  168. +37 −0 packages/xi/lib/models/spec.dart
  169. +19 −26 { → packages/xi}/lib/utils/helper.dart
  170. +121 −0 packages/xi/lib/utils/http.dart
  171. +4 −7 { → packages/xi}/lib/utils/json.dart
  172. +63 −0 packages/xi/lib/utils/maccms.dart
  173. +1 −1 { → packages/xi}/lib/utils/path.dart
  174. +34 −39 {lib/spider → packages/xi/lib}/utils/source.dart
  175. +7 −0 packages/xi/lib/utils/utils.dart
  176. +1 −1 { → packages/xi}/lib/utils/xid.dart
  177. +8 −0 packages/xi/lib/xi.dart
  178. +22 −0 packages/xi/pubspec.yaml
  179. +7 −0 packages/xi/test/xi_test.dart
  180. +478 −297 pubspec.lock
  181. +56 −51 pubspec.yaml
  182. +39 −0 schema/README.md
  183. +35 −0 schema/assets.json
  184. +63 −0 schema/v1.json
  185. +1 −0 script/.gitignore
  186. +51 −0 script/add_builtin_yoyo.mjs
  187. +9 −0 script/bundle-ios
  188. +2 −0 mac.sh → script/bundle-mac
  189. +4 −0 script/ckbot/.gitignore
  190. +5 −0 script/ckbot/README.md
  191. +42 −0 script/ckbot/go.mod
  192. +95 −0 script/ckbot/go.sum
  193. +647 −0 script/ckbot/main.go
  194. +202 −0 script/ckbot/template.html
  195. +48 −0 script/create_schema.mjs
  196. +2 −2 script/fetch_git_info.sh
  197. +14 −0 script/patch.d.ts
  198. +0 −5 script/tag.d.ts
  199. 0 {lib/spider/models → test}/.gitkeep
  200. +0 −4 thirdparty/command_palette/.fvm/fvm_config.json
  201. +0 −65 thirdparty/command_palette/.github/workflows/ci.yml
  202. +0 −24 thirdparty/command_palette/.github/workflows/publish.yml
  203. +0 −10 thirdparty/command_palette/.vscode/settings.json
  204. +0 −94 thirdparty/command_palette/CHANGELOG.md
  205. +0 −4 thirdparty/command_palette/analysis_options.yaml
  206. +0 −5 thirdparty/command_palette/codecov.yml
  207. +0 −55 thirdparty/command_palette/example/.gitignore
  208. +0 −45 thirdparty/command_palette/example/.metadata
  209. +0 −16 thirdparty/command_palette/example/README.md
  210. +0 −29 thirdparty/command_palette/example/analysis_options.yaml
  211. +0 −200 thirdparty/command_palette/example/lib/main.dart
  212. +0 −23 thirdparty/command_palette/example/pubspec.yaml
  213. BIN thirdparty/command_palette/readme_assets/demo2.gif
  214. BIN thirdparty/command_palette/readme_assets/old_demo.gif
  215. +0 −80 thirdparty/command_palette/test/command_palette_instructions_test.dart
  216. +0 −409 thirdparty/command_palette/test/command_palette_keyboard_shortcuts_test.dart
  217. +0 −199 thirdparty/command_palette/test/command_palette_options_test.dart
  218. +0 −77 thirdparty/command_palette/test/command_palette_text_field_test.dart
  219. +0 −61 thirdparty/command_palette/test/filter_test.dart
  220. +0 −129 thirdparty/command_palette/test/programmatic_control_test.dart
  221. +0 −149 thirdparty/command_palette/test/regression/command_palette_state_reset_test.dart
  222. +0 −146 thirdparty/command_palette/test/scroll_to_item_test.dart
  223. +0 −15 thirdparty/command_palette/test/utils.dart
  224. +0 −54 thirdparty/flappy_search_bar_ns/CHANGELOG.md
  225. BIN web/favicon.png
  226. BIN web/icons/Icon-192.png
  227. BIN web/icons/Icon-512.png
  228. BIN web/icons/Icon-maskable-192.png
  229. BIN web/icons/Icon-maskable-512.png
  230. +0 −107 web/index.html
  231. +0 −35 web/manifest.json
  232. BIN web/splash/img/dark-1x.png
  233. BIN web/splash/img/dark-2x.png
  234. BIN web/splash/img/dark-3x.png
  235. BIN web/splash/img/dark-4x.png
  236. BIN web/splash/img/light-1x.png
  237. BIN web/splash/img/light-2x.png
  238. BIN web/splash/img/light-3x.png
  239. BIN web/splash/img/light-4x.png
  240. +0 −43 web/splash/style.css
  241. +12 −0 windows/flutter/generated_plugin_registrant.cc
  242. +4 −0 windows/flutter/generated_plugins.cmake
  243. +5 −0 windows/runner/flutter_window.cpp
  244. +11 −0 windows/runner/main.cpp
2 changes: 1 addition & 1 deletion .fvmrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"flutter": "3.10.3"
"flutter": "3.22.0"
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html linguist-language=go
56 changes: 28 additions & 28 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,17 @@
name: yyrelease
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json
name: yoyo build
on:
push:
tags:
- "release-v*"

env:
FLUTTER_VERSION: 3.10.3
FLUTTER_VERSION: 3.22.0
LINUX_DEPENDENCIES: git wget unzip python3 zip xz-utils curl clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev liblzma-dev libjsoncpp-dev cmake-data libjsoncpp25 libsecret-1-dev libsecret-1-0 librhash0 libsqlite3-dev libappindicator3-dev gettext libwebkit2gtk-4.1-dev

jobs:

build-with-windows:
build-windows:
runs-on: windows-latest

steps:
@@ -26,21 +27,21 @@ jobs:
flutter pub run build_runner build
- name: Enable windows build
run: flutter config --enable-windows-desktop
- name: Build artifacts
- name: Build windows
run: flutter build windows --release
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
filename: yy-windows.zip
directory: build/windows/runner/Release
directory: build/windows/x64/runner/Release
- name: Upload assets
uses: actions/upload-artifact@v3
with:
name: windows
path: build/windows/runner/Release/yy-windows.zip
path: build/windows/x64/runner/Release/yy-windows.zip

build-with-linux-x86_64:
build-linux-x86_64:
runs-on: ubuntu-22.04

env:
@@ -77,19 +78,19 @@ jobs:
name: x86_64_linux
path: build/linux/x64/release/${{ env.TARBALL_NAME }}

build-cross-platform-and-release:
runs-on: macos-12
build-macOS-and-release:
runs-on: macos-latest
steps:
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.4.1'
xcode-version: latest-stable
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-java@v2
with:
distribution: "zulu"
java-version: "11"
java-version: "17"
- uses: subosito/flutter-action@v2
with:
flutter-version: ${{ env.FLUTTER_VERSION }}
@@ -98,32 +99,31 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- name: generate release notes
- name: Generate release notes
run: node script/draft-release-notes.js > release-notes.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: build apk(archs)

- name: Build android apk(muitple archs)
run: |
bash script/fetch_git_info.sh
flutter pub get
flutter pub run build_runner build
flutter pub deps
flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
- name: build all arch
run: flutter build apk --release
flutter build apk --release
# flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi

# 我的iOS都升到18.0了, 还搞鸡毛啊
# - run: |
# flutter build ios --release --no-codesign
# cd build/ios/iphoneos
# mkdir Payload
# cd Payload
# ln -s ../Runner.app
# cd ..
# zip -r app.ipa Payload
- name: Build iOS ipa
run: |
flutter build ios --release --no-codesign
cd build/ios/iphoneos
mkdir Payload
cd Payload
ln -s ../Runner.app
cd ..
zip -r yoyo.ipa Payload
- name: build macos
- name: Build macOS
run: |
flutter config --enable-macos-desktop
flutter build macos --release
@@ -138,11 +138,11 @@ jobs:
with:
name: windows

# build/ios/iphoneos/app.ipa
- uses: softprops/action-gh-release@v2
with:
body_path: release-notes.txt
files: |
build/ios/iphoneos/yoyo.ipa
build/app/outputs/flutter-apk/*.apk
build/macos/Build/Products/Release/yoyo.mac.zip
yy-linux-x86_64.tar.gz
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -57,4 +57,7 @@ fonts/*.ttf
git_info.dart

# FVM Version Cache
.fvm/
.fvm/

flutter_export_environment.sh
Flutter-Generated.xcconfig
39 changes: 37 additions & 2 deletions .metadata
Original file line number Diff line number Diff line change
@@ -4,7 +4,42 @@
# This file should be version controlled and should not be manually edited.

version:
revision: 18116933e77adc82f80866c928266a5b4f1ed645
channel: stable
revision: "5dcb86f68f239346676ceb1ed1ea385bd215fba1"
channel: "stable"

project_type: app

# Tracks metadata for the flutter migrate command
migration:
platforms:
- platform: root
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
- platform: android
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
- platform: ios
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
- platform: linux
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
- platform: macos
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
- platform: web
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
- platform: windows
create_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1
base_revision: 5dcb86f68f239346676ceb1ed1ea385bd215fba1

# User provided section

# List of Local paths (relative to this file) that should be
# ignored by the migrate tool.
#
# Files that are not part of the templates will be ignored by default.
unmanaged_files:
- 'lib/main.dart'
- 'ios/Runner.xcodeproj/project.pbxproj'
13 changes: 12 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -15,6 +15,17 @@
"request": "launch",
"type": "dart",
"flutterMode": "profile"
}
},
{
"name": "ck-debug",
"cwd": "${workspaceFolder}/script/ckbot",
"request": "launch",
"type": "go",
"mode": "auto",
"program": "script/ckbot/main.go",
"env": {
"GITHUB_TOKEN":"大傻春你在干什么"
}
},
]
}
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"dart.flutterSdkPath": ".fvm/versions/3.10.3"
"dart.flutterSdkPath": ".fvm/versions/3.22.0",
"cmake.ignoreCMakeListsMissing": true
}
71 changes: 71 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "fetch git info",
"command": "bash",
"args": [
"script/fetch_git_info.sh"
],
"group": {
"kind": "build",
"isDefault": false
}
},
{
"type": "shell",
"label": "build to macOS and install",
"command": "bash",
"args": [
"script/bundle-mac"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "shell",
"label": "build to iOS",
"command": "bash",
"args": [
"script/bundle-ios"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"type": "shell",
// flutter_launcher_name 与 flutter_launcher_icons 冲突(需要手动取消注释)
"label": "re-generate flutter app name",
"command": "flutter",
"args": [
"pub",
"run",
"flutter_launcher_name:main"
]
},
{
"type": "shell",
"label": "re-generate flutter app icons",
"command": "flutter",
"args": [
"pub",
"run",
"flutter_launcher_icons:main"
]
},
{
"type": "shell",
"label": "dart format",
"command": "dart",
"args": [
"format",
"."
]
}
]
}
43 changes: 43 additions & 0 deletions .zed/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
// https://zed.dev/docs/tasks
[
{
"label": "flutter debug macos",
"command": "flutter",
"args": [ "run", "-d", "macos" ],
"use_new_terminal": true,
"allow_concurrent_runs": false,
"reveal": "always"
},
{
"label": "dart format code",
"command": "dart",
"args": [ "format", "." ],
"use_new_terminal": true,
"allow_concurrent_runs": false,
"reveal": "always"
},
{
"label": "build to macOS and install",
"command": "bash",
"args": [ "script/bundle-mac" ],
"use_new_terminal": true,
"allow_concurrent_runs": false,
"reveal": "always"
},
{
"label": "build to iOS",
"command": "bash",
"args": [ "script/bundle-ios" ],
"use_new_terminal": true,
"allow_concurrent_runs": false,
"reveal": "always"
},
{
"label": "flutter test",
"command": "flutter",
"args": [ "test" ],
"use_new_terminal": true,
"allow_concurrent_runs": false,
"reveal": "always"
}
]
Loading