From d4851ebb4009e89f3de5fe81edd27409f158d26d Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 24 Jan 2023 01:24:53 +0800 Subject: [PATCH] revert 8fb3c452bea8dfb9c1de14db8b06f158d31147dd --- flutter/pubspec.lock | 66 +++++++++++++++++++++++++++++++---- libs/hbb_common/src/config.rs | 10 ++---- 2 files changed, 62 insertions(+), 14 deletions(-) diff --git a/flutter/pubspec.lock b/flutter/pubspec.lock index ef57f375c..15a1a23ac 100644 --- a/flutter/pubspec.lock +++ b/flutter/pubspec.lock @@ -78,6 +78,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.3.1" + build_cli_annotations: + dependency: transitive + description: + name: build_cli_annotations + url: "https://pub.dartlang.org" + source: hosted + version: "2.1.0" build_config: dependency: transitive description: @@ -169,6 +176,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.0.1" + cli_util: + dependency: transitive + description: + name: cli_util + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.5" clock: dependency: transitive description: @@ -190,6 +204,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.16.0" + colorize: + dependency: transitive + description: + name: colorize + url: "https://pub.dartlang.org" + source: hosted + version: "3.0.0" contextmenu: dependency: "direct main" description: @@ -339,6 +360,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "2.0.1" + ffigen: + dependency: "direct dev" + description: + name: ffigen + url: "https://pub.dartlang.org" + source: hosted + version: "7.2.4" file: dependency: transitive description: @@ -429,12 +457,10 @@ packages: flutter_rust_bridge: dependency: "direct main" description: - path: frb_dart - ref: master - resolved-ref: e5adce55eea0b74d3680e66a2c5252edf17b07e1 - url: "https://github.com/SoLongAndThanksForAllThePizza/flutter_rust_bridge" - source: git - version: "1.32.0" + name: flutter_rust_bridge + url: "https://pub.dartlang.org" + source: hosted + version: "1.61.1" flutter_svg: dependency: "direct main" description: @@ -846,6 +872,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.2.1" + puppeteer: + dependency: transitive + description: + name: puppeteer + url: "https://pub.dartlang.org" + source: hosted + version: "2.12.0" qr_code_scanner: dependency: "direct main" description: @@ -853,6 +886,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.0.1" + quiver: + dependency: transitive + description: + name: quiver + url: "https://pub.dartlang.org" + source: hosted + version: "3.2.1" rxdart: dependency: transitive description: @@ -890,6 +930,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "1.4.0" + shelf_static: + dependency: transitive + description: + name: shelf_static + url: "https://pub.dartlang.org" + source: hosted + version: "1.1.1" shelf_web_socket: dependency: transitive description: @@ -1256,6 +1303,13 @@ packages: url: "https://pub.dartlang.org" source: hosted version: "3.1.1" + yaml_edit: + dependency: transitive + description: + name: yaml_edit + url: "https://pub.dartlang.org" + source: hosted + version: "2.0.3" zxing2: dependency: "direct main" description: diff --git a/libs/hbb_common/src/config.rs b/libs/hbb_common/src/config.rs index abec5b231..1e3bde9eb 100644 --- a/libs/hbb_common/src/config.rs +++ b/libs/hbb_common/src/config.rs @@ -49,10 +49,7 @@ lazy_static::lazy_static! { static ref CONFIG2: Arc> = Arc::new(RwLock::new(Config2::load())); static ref LOCAL_CONFIG: Arc> = Arc::new(RwLock::new(LocalConfig::load())); pub static ref ONLINE: Arc>> = Default::default(); - pub static ref PROD_RENDEZVOUS_SERVER: Arc> = Arc::new(RwLock::new(match option_env!("RENDEZVOUS_SERVER") { - Some(key) => key, - _ => "", - }.to_owned())); + pub static ref PROD_RENDEZVOUS_SERVER: Arc> = Default::default(); pub static ref APP_NAME: Arc> = Arc::new(RwLock::new("RustDesk".to_owned())); static ref KEY_PAIR: Arc, Vec)>>> = Default::default(); static ref HW_CODEC_CONFIG: Arc> = Arc::new(RwLock::new(HwCodecConfig::load())); @@ -86,10 +83,7 @@ const RENDEZVOUS_SERVERS: &'static [&'static str] = &[ "rs-cn.rustdesk.com", ]; -pub const RS_PUB_KEY: &'static str = match option_env!("RS_PUB_KEY") { - Some(key) => key, - None => "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw=", -}; +pub const RS_PUB_KEY: &'static str = "OeVuKk5nlHiXp+APNn0Y3pC1Iwpwn44JGqrQCsWqmBw="; pub const RENDEZVOUS_PORT: i32 = 21116; pub const RELAY_PORT: i32 = 21117;