mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
chore: update launch option
This commit is contained in:
parent
c9424c5d55
commit
9012494e1f
6
frontend/app_flowy/.vscode/launch.json
vendored
6
frontend/app_flowy/.vscode/launch.json
vendored
@ -11,8 +11,7 @@
|
|||||||
"type": "dart",
|
"type": "dart",
|
||||||
"preLaunchTask": "build_flowy_sdk",
|
"preLaunchTask": "build_flowy_sdk",
|
||||||
"env":{
|
"env":{
|
||||||
"RUST_LOG":"info",
|
"RUST_LOG":"debug"
|
||||||
"INTEGRATION_ENV":"develop",
|
|
||||||
},
|
},
|
||||||
"cwd": "${workspaceRoot}"
|
"cwd": "${workspaceRoot}"
|
||||||
},
|
},
|
||||||
@ -23,8 +22,7 @@
|
|||||||
"type": "dart",
|
"type": "dart",
|
||||||
"preLaunchTask": "build_flowy_sdk",
|
"preLaunchTask": "build_flowy_sdk",
|
||||||
"env":{
|
"env":{
|
||||||
"RUST_LOG":"trace",
|
"RUST_LOG":"trace"
|
||||||
"INTEGRATION_ENV":"develop",
|
|
||||||
},
|
},
|
||||||
"cwd": "${workspaceRoot}"
|
"cwd": "${workspaceRoot}"
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
|
|
||||||
import 'package:app_flowy/startup/tasks/prelude.dart';
|
import 'package:app_flowy/startup/tasks/prelude.dart';
|
||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:get_it/get_it.dart';
|
import 'package:get_it/get_it.dart';
|
||||||
import 'package:app_flowy/workspace/infrastructure/deps_resolver.dart';
|
import 'package:app_flowy/workspace/infrastructure/deps_resolver.dart';
|
||||||
@ -115,8 +116,8 @@ IntegrationEnv integrationEnv() {
|
|||||||
if (Platform.environment.containsKey('FLUTTER_TEST')) {
|
if (Platform.environment.containsKey('FLUTTER_TEST')) {
|
||||||
return IntegrationEnv.test;
|
return IntegrationEnv.test;
|
||||||
}
|
}
|
||||||
const value = String.fromEnvironment('INTEGRATION_ENV');
|
|
||||||
if (value == 'release') {
|
if (kReleaseMode) {
|
||||||
return IntegrationEnv.release;
|
return IntegrationEnv.release;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@ pub struct FlowySDKConfig {
|
|||||||
impl fmt::Debug for FlowySDKConfig {
|
impl fmt::Debug for FlowySDKConfig {
|
||||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||||
f.debug_struct("FlowySDKConfig")
|
f.debug_struct("FlowySDKConfig")
|
||||||
.field("name", &self.name)
|
|
||||||
.field("root", &self.root)
|
.field("root", &self.root)
|
||||||
.field("server_config", &self.server_config)
|
.field("server_config", &self.server_config)
|
||||||
.finish()
|
.finish()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user