-
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies and configuration files
- Loading branch information
1 parent
94d6d0b
commit ab8f2d1
Showing
16 changed files
with
809 additions
and
607 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.DS_STORE | ||
app/metrics | ||
app/.fvm/flutter_sdk | ||
.puro |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"terminal.integrated.cwd": "app/", | ||
"build-runner.commandToUse": "flutter", | ||
"dart.flutterSdkPath": "/Users/gaetan/.puro/envs/beta/flutter", | ||
"dart.sdkPath": "/Users/gaetan/.puro/envs/beta/flutter/bin/cache/dart-sdk" | ||
} | ||
"dart.flutterSdkPath": ".puro/", | ||
"dart.sdkPath": ".puro/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"terminal.integrated.cwd": "app/", | ||
"build-runner.commandToUse": "flutter", | ||
"dart.flutterSdkPath": ".puro/", | ||
"dart.sdkPath": ".puro/" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/usr/bin/env bash | ||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
APP_DIR=$(dirname "$SCRIPT_DIR") | ||
# first arg is the version | ||
VERSION=$1 | ||
|
||
# ccheck if $PURO_ROOT is not set or not valid | ||
if [ -z "$PURO_ROOT" ] || [ ! -d "$PURO_ROOT" ]; then | ||
echo "PURO_ROOT not set or not valid: \"$PURO_ROOT\", falling back to looking for puro executable" | ||
PURO_EXE=$(command -v puro) | ||
if [ -z "$PURO_EXE" ]; then | ||
echo "puro not found" | ||
exit 1 | ||
fi | ||
PURO_ROOT=$(dirname "$(dirname "$PURO_EXE")") | ||
fi | ||
|
||
ln -s -f "$PURO_ROOT" "$APP_DIR/.puro" | ||
if [ $? -ne 0 ]; then | ||
echo "Failed to create symlink" | ||
exit 1 | ||
fi | ||
echo "Created symlink to $PURO_ROOT at $APP_DIR/.puro" | ||
|
||
# if provided, use puro use <version> | ||
if [ -n "$VERSION" ]; then | ||
"$PURO_ROOT/.puro/bin/puro" use "$VERSION" --project "$APP_DIR" | ||
fi | ||
|
||
# update .vscode/settings.json to replace PURO_ROOT with $APP_DIR/.puro using jq in dart.flutterSdkPath and dart.sdkPath | ||
NEW_SETTINGS=$(jq --arg PURO_ROOT ".puro/" '.["dart.flutterSdkPath"] = $PURO_ROOT | .["dart.sdkPath"] = $PURO_ROOT' "$APP_DIR/.vscode/settings.json") | ||
# print changes using git diff with color without header (tail) | ||
echo "$NEW_SETTINGS" | git diff --no-index --color=always --no-prefix -- "$APP_DIR/.vscode/settings.json" - | tail -n +6 | ||
# write changes to settings.json | ||
echo "$NEW_SETTINGS" > "$APP_DIR/.vscode/settings.json" | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
app/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.