Allow developers to customize their VSCode configuration
For folks who're using the git integration from within VSCode, the top level directory needs to be open in VSCode for using git GUI from VSCode. However, for using the Run & debug configurations they need to open ente/mobile is opened in VSCode. As a solution - gitignore .vscode - provide sample VSCode configuration files is mobile/docs/vscode and auth/docs/vscode - mention it in the README (will update the auth README later, have to do a few more changes to it first)
This commit is contained in:
parent
307ddf0b33
commit
ebe6774ff4
11 changed files with 83 additions and 87 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1 +1,5 @@
|
|||
# Let folks use their custom .vscode settings
|
||||
.vscode
|
||||
|
||||
# macOS
|
||||
.DS_Store
|
||||
|
|
5
auth/.gitignore
vendored
5
auth/.gitignore
vendored
|
@ -15,11 +15,6 @@
|
|||
*.iws
|
||||
.idea/
|
||||
|
||||
# The .vscode folder contains launch configuration and tasks you configure in
|
||||
# VS Code which you may wish to be included in version control, so this line
|
||||
# is commented out by default.
|
||||
#.vscode/
|
||||
|
||||
# Flutter/Dart/Pub related
|
||||
**/doc/api/
|
||||
.dart_tool/
|
||||
|
|
9
auth/.vscode/extensions.json
vendored
9
auth/.vscode/extensions.json
vendored
|
@ -1,9 +0,0 @@
|
|||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=827846
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"dart-code.dart-code",
|
||||
"dart-code.flutter",
|
||||
"felixangelov.bloc"
|
||||
]
|
||||
}
|
46
auth/.vscode/launch.json
vendored
46
auth/.vscode/launch.json
vendored
|
@ -1,46 +0,0 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Local",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"flutterMode": "debug",
|
||||
"program": "lib/main.dart",
|
||||
"args": ["--dart-define", "endpoint=http://localhost:8080"]
|
||||
},
|
||||
{
|
||||
"name": "Android Dev",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"program": "lib/main.dart",
|
||||
"args": [
|
||||
"--dart-define",
|
||||
"endpoint=http://192.168.1.3:8080",
|
||||
"--flavor",
|
||||
"independent"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "iOS Dev",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"program": "lib/main.dart",
|
||||
"args": ["--dart-define", "endpoint=http://192.168.1.30:8080"]
|
||||
},
|
||||
{
|
||||
"name": "iOS Prod",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"program": "lib/main.dart",
|
||||
"args": ["--target", "lib/main.dart"]
|
||||
},
|
||||
{
|
||||
"name": "Android Prod",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"program": "lib/main.dart",
|
||||
"args": ["--target", "lib/main.dart", "--flavor", "independent"]
|
||||
}
|
||||
]
|
||||
}
|
9
auth/docs/vscode/extensions.json
Normal file
9
auth/docs/vscode/extensions.json
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
// See https://go.microsoft.com/fwlink/?LinkId=827846
|
||||
// for the documentation about the extensions.json format
|
||||
"recommendations": [
|
||||
"dart-code.dart-code",
|
||||
"dart-code.flutter",
|
||||
"felixangelov.bloc"
|
||||
]
|
||||
}
|
46
auth/docs/vscode/launch.json
Normal file
46
auth/docs/vscode/launch.json
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Auth Local",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"flutterMode": "debug",
|
||||
"program": "lib/main.dart",
|
||||
"args": ["--dart-define", "endpoint=http://localhost:8080"]
|
||||
},
|
||||
{
|
||||
"name": "Auth Android Dev",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"program": "lib/main.dart",
|
||||
"args": [
|
||||
"--dart-define",
|
||||
"endpoint=http://192.168.1.3:8080",
|
||||
"--flavor",
|
||||
"independent"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "Auth iOS Dev",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"program": "lib/main.dart",
|
||||
"args": ["--dart-define", "endpoint=http://192.168.1.30:8080"]
|
||||
},
|
||||
{
|
||||
"name": "Auth iOS Prod",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"program": "lib/main.dart",
|
||||
"args": ["--target", "lib/main.dart"]
|
||||
},
|
||||
{
|
||||
"name": "Auth Android Prod",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"program": "lib/main.dart",
|
||||
"args": ["--target", "lib/main.dart", "--flavor", "independent"]
|
||||
}
|
||||
]
|
||||
}
|
6
mobile/.gitignore
vendored
6
mobile/.gitignore
vendored
|
@ -15,10 +15,6 @@
|
|||
*.iws
|
||||
.idea/
|
||||
|
||||
#Visual Studio Code related
|
||||
.vscode/launch.json
|
||||
.vscode/settings.json
|
||||
|
||||
# Flutter/Dart/Pub related
|
||||
**/doc/api/
|
||||
.dart_tool/
|
||||
|
@ -42,4 +38,4 @@ android/app/.settings/*
|
|||
|
||||
|
||||
fastlane/report.xml
|
||||
TensorFlowLiteC.framework
|
||||
TensorFlowLiteC.framework
|
||||
|
|
|
@ -68,6 +68,10 @@ You can alternatively install the build from PlayStore or F-Droid.
|
|||
|
||||
Some common issues and troubleshooting tips are in [docs/dev](docs/dev.md).
|
||||
|
||||
If you're using VSCode, you might find it useful to create a top level `.vscode`
|
||||
(it will be gitignored) and add relevant sample configuration files from
|
||||
[docs/vscode](docs/vscode).
|
||||
|
||||
## 🏙️ Attributions
|
||||
|
||||
City coordinates from [Simple Maps](https://simplemaps.com/data/world-cities)
|
||||
|
|
|
@ -5,50 +5,47 @@
|
|||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Android Prod",
|
||||
"name": "Photos Android Prod",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"flutterMode": "debug",
|
||||
"program": "lib/main.dart",
|
||||
"args": [
|
||||
"--flavor",
|
||||
"independent"
|
||||
]
|
||||
"program": "mobile/lib/main.dart",
|
||||
"args": ["--flavor", "independent"]
|
||||
},
|
||||
{
|
||||
"name": "Android Local",
|
||||
"name": "Photos Android Local",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"flutterMode": "debug",
|
||||
"program": "lib/main.dart",
|
||||
"program": "mobile/lib/main.dart",
|
||||
"args": [
|
||||
"--flavor",
|
||||
"independent",
|
||||
"--dart-define",
|
||||
"endpoint=http://localhost:8080",
|
||||
"--dart-define",
|
||||
"web-family=http://localhost:3003",
|
||||
"web-family=http://localhost:3003"
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "iOS Prod",
|
||||
"name": "Photos iOS Prod",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"flutterMode": "debug",
|
||||
"program": "lib/main.dart"
|
||||
"program": "mobile/lib/main.dart"
|
||||
},
|
||||
{
|
||||
"name": "iOS Local",
|
||||
"name": "Photos iOS Local",
|
||||
"request": "launch",
|
||||
"type": "dart",
|
||||
"flutterMode": "debug",
|
||||
"program": "lib/main.dart",
|
||||
"args": [
|
||||
"--dart-define",
|
||||
"endpoint=http://localhost:8080",
|
||||
"--dart-define",
|
||||
"web-family=http://localhost:3003"
|
||||
]
|
||||
},
|
||||
"program": "mobile/lib/main.dart",
|
||||
"args": [
|
||||
"--dart-define",
|
||||
"endpoint=http://localhost:8080",
|
||||
"--dart-define",
|
||||
"web-family=http://localhost:3003"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
|
@ -1,3 +1,3 @@
|
|||
{
|
||||
"dart.flutterSdkPath": "thirdparty/flutter/bin"
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue