mirror of
https://gitlab.com/veilid/veilid.git
synced 2024-12-25 07:19:26 -05:00
fix-flutter-example
This commit is contained in:
parent
0af138a3aa
commit
d99db7a1e2
@ -64,7 +64,9 @@ impl WebsocketNetworkConnection {
|
|||||||
instrument(level = "trace", err, skip(self))
|
instrument(level = "trace", err, skip(self))
|
||||||
)]
|
)]
|
||||||
pub async fn close(&self) -> io::Result<NetworkResult<()>> {
|
pub async fn close(&self) -> io::Result<NetworkResult<()>> {
|
||||||
|
#[allow(unused_variables)]
|
||||||
let x = self.inner.ws_meta.close().await.map_err(to_io);
|
let x = self.inner.ws_meta.close().await.map_err(to_io);
|
||||||
|
#[cfg(feature = "verbose-tracing")]
|
||||||
log_net!(debug "close result: {:?}", x);
|
log_net!(debug "close result: {:?}", x);
|
||||||
Ok(NetworkResult::value(()))
|
Ok(NetworkResult::value(()))
|
||||||
}
|
}
|
||||||
|
@ -77,10 +77,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: convert
|
name: convert
|
||||||
sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592"
|
sha256: b30acd5944035672bc15c6b7a8b47d773e41e2f17de064350988c5d02adb1c68
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "3.1.1"
|
version: "3.1.2"
|
||||||
cupertino_icons:
|
cupertino_icons:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
@ -125,10 +125,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: fixnum
|
name: fixnum
|
||||||
sha256: "25517a4deb0c03aa0f32fd12db525856438902d9c16536311e76cdc57b31d7d1"
|
sha256: b6dc7065e46c974bc7c5f143080a6764ec7a4be6da1285ececdc37be96de53be
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.1.0"
|
version: "1.1.1"
|
||||||
flutter:
|
flutter:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description: flutter
|
description: flutter
|
||||||
@ -432,10 +432,10 @@ packages:
|
|||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
name: typed_data
|
name: typed_data
|
||||||
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
|
sha256: f9049c039ebfeb4cf7a7104a675823cd72dba8297f264b6637062516699fa006
|
||||||
url: "https://pub.dev"
|
url: "https://pub.dev"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "1.3.2"
|
version: "1.4.0"
|
||||||
vector_math:
|
vector_math:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
@ -20,6 +20,27 @@ target_link_libraries(${PLUGIN_NAME} PRIVATE PkgConfig::GTK)
|
|||||||
|
|
||||||
include(./rust.cmake)
|
include(./rust.cmake)
|
||||||
# List of absolute paths to libraries that should be bundled with the plugin
|
# List of absolute paths to libraries that should be bundled with the plugin
|
||||||
|
|
||||||
|
|
||||||
|
function(get_all_targets var)
|
||||||
|
set(targets)
|
||||||
|
get_all_targets_recursive(targets ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
set(${var} ${targets} PARENT_SCOPE)
|
||||||
|
endfunction()
|
||||||
|
|
||||||
|
macro(get_all_targets_recursive targets dir)
|
||||||
|
get_property(subdirectories DIRECTORY ${dir} PROPERTY SUBDIRECTORIES)
|
||||||
|
foreach(subdir ${subdirectories})
|
||||||
|
get_all_targets_recursive(${targets} ${subdir})
|
||||||
|
endforeach()
|
||||||
|
|
||||||
|
get_property(current_targets DIRECTORY ${dir} PROPERTY BUILDSYSTEM_TARGETS)
|
||||||
|
list(APPEND ${targets} ${current_targets})
|
||||||
|
endmacro()
|
||||||
|
|
||||||
|
# get_all_targets(all_targets)
|
||||||
|
# message("All targets: ${all_targets}")
|
||||||
|
|
||||||
set(veilid_bundled_libraries
|
set(veilid_bundled_libraries
|
||||||
"$<TARGET_FILE:${CRATE_NAME}-shared>"
|
"$<TARGET_FILE:${CRATE_NAME}-shared>"
|
||||||
PARENT_SCOPE
|
PARENT_SCOPE
|
||||||
|
@ -9,7 +9,7 @@ include(FetchContent)
|
|||||||
FetchContent_Declare(
|
FetchContent_Declare(
|
||||||
Corrosion
|
Corrosion
|
||||||
GIT_REPOSITORY https://github.com/AndrewGaspar/corrosion.git
|
GIT_REPOSITORY https://github.com/AndrewGaspar/corrosion.git
|
||||||
GIT_TAG v0.4.4 # Optionally specify a version tag or branch here
|
GIT_TAG v0.5.0 # Optionally specify a version tag or branch here
|
||||||
)
|
)
|
||||||
|
|
||||||
FetchContent_MakeAvailable(Corrosion)
|
FetchContent_MakeAvailable(Corrosion)
|
||||||
@ -27,5 +27,5 @@ corrosion_import_crate(MANIFEST_PATH ${repository_root}/../veilid/Cargo.toml CRA
|
|||||||
|
|
||||||
# Flutter-specific
|
# Flutter-specific
|
||||||
|
|
||||||
set(CRATE_NAME "veilid-flutter")
|
set(CRATE_NAME "veilid_flutter")
|
||||||
target_link_libraries(${PLUGIN_NAME} PUBLIC ${CRATE_NAME})
|
target_link_libraries(${PLUGIN_NAME} PUBLIC ${CRATE_NAME})
|
||||||
|
Loading…
Reference in New Issue
Block a user