Skip to content

Commit a6d5e10

Browse files
committed
fix bridge lib copy on windows
1 parent 33e1e3a commit a6d5e10

File tree

4 files changed

+10
-17
lines changed

4 files changed

+10
-17
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.8.5
2+
- fix bridge lib copy on windows
3+
14
## 3.8.4
25
- Add Bridge calls to init to prevent stripping in profile mode
36

example/pubspec.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ packages:
116116
path: ".."
117117
relative: true
118118
source: path
119-
version: "3.8.3"
119+
version: "3.8.5"
120120
ffi:
121121
dependency: transitive
122122
description:

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: fast_rsa
22
description: library for use RSA with support for android and ios, macOS, linux, windows and web
3-
version: 3.8.4
3+
version: 3.8.5
44
homepage: https://github.com/jerson/flutter-rsa
55

66
environment:

windows/CMakeLists.txt

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,12 @@ target_include_directories(${PLUGIN_NAME} INTERFACE
1717
"${CMAKE_CURRENT_SOURCE_DIR}/include")
1818
target_link_libraries(${PLUGIN_NAME} PRIVATE flutter flutter_wrapper_plugin)
1919

20-
# List of absolute paths to libraries that should be bundled with the plugin
21-
set(fast_rsa_bundled_libraries
22-
""
23-
PARENT_SCOPE
24-
)
25-
2620
set(BUILD_BUNDLE_DIR "$<TARGET_FILE_DIR:${BINARY_NAME}>")
27-
# Make the "install" step default, as it's required to run.
28-
set(CMAKE_VS_INCLUDE_INSTALL_TO_DEFAULT_BUILD 1)
29-
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
30-
set(CMAKE_INSTALL_PREFIX "${BUILD_BUNDLE_DIR}" CACHE PATH "..." FORCE)
31-
endif()
3221

33-
set(INSTALL_BUNDLE_LIB_DIR "${CMAKE_INSTALL_PREFIX}")
3422
set(LIBRSA_BRIDGE "librsa_bridge.dll")
3523
set(LIBRSA_BRIDGE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/shared/${LIBRSA_BRIDGE}")
36-
install(CODE "file(REMOVE_RECURSE \"${INSTALL_BUNDLE_LIB_DIR}/${LIBRSA_BRIDGE}\")" COMPONENT Runtime)
37-
install(FILES "${LIBRSA_BRIDGE_PATH}" DESTINATION "${INSTALL_BUNDLE_LIB_DIR}" COMPONENT Runtime)
38-
24+
# List of absolute paths to libraries that should be bundled with the plugin
25+
set(fast_rsa_bundled_libraries
26+
${LIBRSA_BRIDGE_PATH}
27+
PARENT_SCOPE
28+
)

0 commit comments

Comments
 (0)