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",
|
||||
"preLaunchTask": "build_flowy_sdk",
|
||||
"env":{
|
||||
"RUST_LOG":"info",
|
||||
"INTEGRATION_ENV":"develop",
|
||||
"RUST_LOG":"debug"
|
||||
},
|
||||
"cwd": "${workspaceRoot}"
|
||||
},
|
||||
@ -23,8 +22,7 @@
|
||||
"type": "dart",
|
||||
"preLaunchTask": "build_flowy_sdk",
|
||||
"env":{
|
||||
"RUST_LOG":"trace",
|
||||
"INTEGRATION_ENV":"develop",
|
||||
"RUST_LOG":"trace"
|
||||
},
|
||||
"cwd": "${workspaceRoot}"
|
||||
},
|
||||
|
@ -1,6 +1,7 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:app_flowy/startup/tasks/prelude.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get_it/get_it.dart';
|
||||
import 'package:app_flowy/workspace/infrastructure/deps_resolver.dart';
|
||||
@ -115,8 +116,8 @@ IntegrationEnv integrationEnv() {
|
||||
if (Platform.environment.containsKey('FLUTTER_TEST')) {
|
||||
return IntegrationEnv.test;
|
||||
}
|
||||
const value = String.fromEnvironment('INTEGRATION_ENV');
|
||||
if (value == 'release') {
|
||||
|
||||
if (kReleaseMode) {
|
||||
return IntegrationEnv.release;
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,6 @@ pub struct FlowySDKConfig {
|
||||
impl fmt::Debug for FlowySDKConfig {
|
||||
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
|
||||
f.debug_struct("FlowySDKConfig")
|
||||
.field("name", &self.name)
|
||||
.field("root", &self.root)
|
||||
.field("server_config", &self.server_config)
|
||||
.finish()
|
||||
|
Loading…
Reference in New Issue
Block a user