π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Allow developers to customize their VSCode configuration
Manav Rathiebe6774ff4ff
diff --git a/.gitignore b/.gitignoreindex e43b0f9889..35ef93d427 100644--- a/.gitignore+++ b/.gitignore@@ -1 +1,5 @@+# Let folks use their custom .vscode settings+.vscode++# macOS.DS_Storediff --git a/auth/.gitignore b/auth/.gitignoreindex 23840740bd..b909f8341f 100644--- a/auth/.gitignore+++ b/auth/.gitignore@@ -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/diff --git a/auth/.vscode/extensions.json b/auth/.vscode/extensions.jsondeleted file mode 100644index 03e0c3b73e..0000000000--- a/auth/.vscode/extensions.json+++ /dev/null@@ -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"- ]-}diff --git a/auth/.vscode/launch.json b/auth/.vscode/launch.jsondeleted file mode 100644index 1384f5dde2..0000000000--- a/auth/.vscode/launch.json+++ /dev/null@@ -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"]- }- ]-}diff --git a/auth/docs/vscode/extensions.json b/auth/docs/vscode/extensions.jsonnew file mode 100644index 0000000000..e8e851920a--- /dev/null+++ b/auth/docs/vscode/extensions.json@@ -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"+ ]+}diff --git a/auth/docs/vscode/launch.json b/auth/docs/vscode/launch.jsonnew file mode 100644index 0000000000..9ad9970580--- /dev/null+++ b/auth/docs/vscode/launch.json@@ -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"]+ }+ ]+}diff --git a/auth/.vscode/settings.json b/auth/docs/vscode/settings.jsonsimilarity index 100%rename from auth/.vscode/settings.jsonrename to auth/docs/vscode/settings.jsondiff --git a/mobile/.gitignore b/mobile/.gitignoreindex 3a331414f5..40821c9c1a 100644--- a/mobile/.gitignore+++ b/mobile/.gitignore@@ -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\ No newline at end of file+TensorFlowLiteC.frameworkdiff --git a/mobile/README.md b/mobile/README.mdindex 8661baf41f..a770d1d167 100644--- a/mobile/README.md+++ b/mobile/README.md@@ -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).+## ποΈ AttributionsCity coordinates from [Simple Maps](https://simplemaps.com/data/world-cities)diff --git a/mobile/.vscode/launch.json.example b/mobile/docs/vscode/launch.jsonsimilarity index 60%rename from mobile/.vscode/launch.json.examplerename to mobile/docs/vscode/launch.jsonindex 1e6b9ae6f6..437d6ac30a 100644--- a/mobile/.vscode/launch.json.example+++ b/mobile/docs/vscode/launch.json@@ -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"+ ]+ }]-}\ No newline at end of file+}diff --git a/mobile/.vscode/settings.json.example b/mobile/docs/vscode/settings.jsonsimilarity index 96%rename from mobile/.vscode/settings.json.examplerename to mobile/docs/vscode/settings.jsonindex 54c04225f4..b6a9a3c02c 100644--- a/mobile/.vscode/settings.json.example+++ b/mobile/docs/vscode/settings.json@@ -1,3 +1,3 @@{"dart.flutterSdkPath": "thirdparty/flutter/bin"-}\ No newline at end of file+}