| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190 | 
							- {
 
- 	"version": "2.0.0",
 
- 	// https://code.visualstudio.com/docs/editor/tasks
 
- 	// https://gist.github.com/deadalusai/9e13e36d61ec7fb72148
 
- 	// ${workspaceRoot}: the root folder of the team
 
- 	// ${file}: the current opened file
 
- 	// ${fileBasename}: the current opened file's basename
 
- 	// ${fileDirname}: the current opened file's dirname
 
- 	// ${fileExtname}: the current opened file's extension
 
- 	// ${cwd}: the current working directory of the spawned process
 
- 	"tasks": [
 
- 		{
 
- 			"label": "AF: Clean + Rebuild All",
 
- 			"type": "shell",
 
- 			"dependsOrder": "sequence",
 
- 			"dependsOn": [
 
- 				"AF: Rust Clean",
 
- 				"AF: Flutter Clean",
 
- 				"AF: build_flowy_sdk",
 
- 				"AF: Flutter Pub Get",
 
- 				"AF: Flutter Package Get",
 
- 				"AF: Generate Language Files",
 
- 				"AF: Generate Freezed Files",
 
- 			],
 
- 			"presentation": {
 
- 				"reveal": "always",
 
- 				"panel": "new"
 
- 			}
 
- 		},
 
- 		{
 
- 			"label": "AF: Clean + Rebuild All (Android)",
 
- 			"type": "shell",
 
- 			"dependsOrder": "sequence",
 
- 			"dependsOn": [
 
- 				"AF: Rust Clean",
 
- 				"AF: Flutter Clean",
 
- 				"AF: build_flowy_sdk_for_android",
 
- 				"AF: Flutter Pub Get",
 
- 				"AF: Flutter Package Get",
 
- 				"AF: Generate Language Files",
 
- 				"AF: Generate Freezed Files",
 
- 			],
 
- 			"presentation": {
 
- 				"reveal": "always",
 
- 				"panel": "new",
 
- 			},
 
- 		},
 
- 		{
 
- 			"label": "AF: build_flowy_sdk_for_android",
 
- 			"type": "shell",
 
- 			"command": "cargo make --profile development-android flowy-sdk-dev-android",
 
- 			"group": "build",
 
- 			"options": {
 
- 				"cwd": "${workspaceFolder}"
 
- 			}
 
- 		},
 
- 		{
 
- 			"label": "AF: build_flowy_sdk",
 
- 			"type": "shell",
 
- 			"command": "sh ./scripts/build_sdk.sh",
 
- 			"windows": {
 
- 				"options": {
 
- 					"env": {
 
- 						"FLOWY_DEV_ENV": "Windows"
 
- 					},
 
- 					"shell": {
 
- 						"executable": "cmd.exe",
 
- 						"args": [
 
- 							"/d",
 
- 							"/c",
 
- 							".\\scripts\\build_sdk.cmd"
 
- 						]
 
- 					}
 
- 				}
 
- 			},
 
- 			"linux": {
 
- 				"options": {
 
- 					"env": {
 
- 						"FLOWY_DEV_ENV": "Linux"
 
- 					}
 
- 				}
 
- 			},
 
- 			"osx": {
 
- 				"options": {
 
- 					"env": {
 
- 						"FLOWY_DEV_ENV": "macOS"
 
- 					}
 
- 				}
 
- 			},
 
- 			"group": "build",
 
- 			"options": {
 
- 				"cwd": "${workspaceFolder}"
 
- 			}
 
- 		},
 
- 		{
 
- 			"label": "AF: Code Gen",
 
- 			"type": "shell",
 
- 			"dependsOrder": "sequence",
 
- 			"dependsOn": [
 
- 				"AF: Flutter Clean",
 
- 				"AF: Flutter Pub Get",
 
- 				"AF: Flutter Package Get",
 
- 				"AF: Generate Language Files",
 
- 				"AF: Generate Freezed Files"
 
- 			],
 
- 			"group": {
 
- 				"kind": "build",
 
- 				"isDefault": true
 
- 			},
 
- 			"presentation": {
 
- 				"reveal": "always",
 
- 				"panel": "new"
 
- 			}
 
- 		},
 
- 		{
 
- 			"label": "AF: Flutter Clean",
 
- 			"type": "shell",
 
- 			"command": "flutter clean",
 
- 			"options": {
 
- 				"cwd": "${workspaceFolder}/app_flowy"
 
- 			}
 
- 		},
 
- 		{
 
- 			"label": "AF: Flutter Pub Get",
 
- 			"type": "shell",
 
- 			"command": "flutter pub get",
 
- 			"options": {
 
- 				"cwd": "${workspaceFolder}/app_flowy"
 
- 			}
 
- 		},
 
- 		{
 
- 			"label": "AF: Flutter Package Get",
 
- 			"type": "shell",
 
- 			"command": "flutter packages pub get",
 
- 			"options": {
 
- 				"cwd": "${workspaceFolder}/app_flowy"
 
- 			}
 
- 		},
 
- 		{
 
- 			"label": "AF: Generate Freezed Files",
 
- 			"type": "shell",
 
- 			"command": "flutter pub run build_runner build --delete-conflicting-outputs",
 
- 			"options": {
 
- 				"cwd": "${workspaceFolder}/app_flowy"
 
- 			}
 
- 		},
 
- 		{
 
- 			"label": "AF: Generate Language Files",
 
- 			"type": "shell",
 
- 			"command": "sh ./scripts/generate_language_files.sh",
 
- 			"windows": {
 
- 				"options": {
 
- 					"shell": {
 
- 						"executable": "cmd.exe",
 
- 						"args": [
 
- 							"/d",
 
- 							"/c",
 
- 							".\\scripts\\generate_language_files.cmd"
 
- 						]
 
- 					}
 
- 				}
 
- 			},
 
- 			"group": "build",
 
- 			"options": {
 
- 				"cwd": "${workspaceFolder}"
 
- 			}
 
- 		},
 
- 		{
 
- 			"label": "AF: Rust Clean",
 
- 			"type": "shell",
 
- 			"command": "cargo make flowy_clean",
 
- 			"group": "build",
 
- 			"options": {
 
- 				"cwd": "${workspaceFolder}"
 
- 			}
 
- 		},
 
- 		{
 
- 			"label": "AF: flutter build aar",
 
- 			"type": "flutter",
 
- 			"command": "flutter",
 
- 			"args": [
 
- 				"build",
 
- 				"aar"
 
- 			],
 
- 			"group": "build",
 
- 			"problemMatcher": [],
 
- 			"detail": "app_flowy"
 
- 		}
 
- 	]
 
- }
 
 
  |