mirror of
https://github.com/immich-app/immich.git
synced 2024-12-25 10:43:13 +02:00
chore(mobile): Adds dart format to static analysis (#7193)
Adds dart format to static analysis
This commit is contained in:
parent
9e7cb52413
commit
dd53795953
6
.github/workflows/static_analysis.yml
vendored
6
.github/workflows/static_analysis.yml
vendored
@ -32,7 +32,11 @@ jobs:
|
|||||||
- name: Run dart analyze
|
- name: Run dart analyze
|
||||||
run: dart analyze --fatal-infos
|
run: dart analyze --fatal-infos
|
||||||
working-directory: ./mobile
|
working-directory: ./mobile
|
||||||
|
|
||||||
|
- name: Run dart format
|
||||||
|
run: dart format lib/ --set-exit-if-changed
|
||||||
|
working-directory: ./mobile
|
||||||
|
|
||||||
# Enable after riverpod generator migration is completed
|
# Enable after riverpod generator migration is completed
|
||||||
# - name: Run dart custom lint
|
# - name: Run dart custom lint
|
||||||
# run: dart run custom_lint
|
# run: dart run custom_lint
|
||||||
|
@ -110,7 +110,8 @@ class WebsocketNotifier extends StateNotifier<WebsocketState> {
|
|||||||
final endpoint = Uri.parse(Store.get(StoreKey.serverEndpoint));
|
final endpoint = Uri.parse(Store.get(StoreKey.serverEndpoint));
|
||||||
final headers = {"x-immich-user-token": accessToken};
|
final headers = {"x-immich-user-token": accessToken};
|
||||||
if (endpoint.userInfo.isNotEmpty) {
|
if (endpoint.userInfo.isNotEmpty) {
|
||||||
headers["Authorization"] = "Basic ${base64.encode(utf8.encode(endpoint.userInfo))}";
|
headers["Authorization"] =
|
||||||
|
"Basic ${base64.encode(utf8.encode(endpoint.userInfo))}";
|
||||||
}
|
}
|
||||||
|
|
||||||
debugPrint("Attempting to connect to websocket");
|
debugPrint("Attempting to connect to websocket");
|
||||||
|
Loading…
Reference in New Issue
Block a user