File tree Expand file tree Collapse file tree 6 files changed +45
-95
lines changed
permission_handler_windows/windows
permission_handler_windows Expand file tree Collapse file tree 6 files changed +45
-95
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ dependencies:
2727 permission_handler_android : ^13.0.0
2828 permission_handler_apple : ^9.4.6
2929 permission_handler_html : ^0.1.1
30- permission_handler_windows : ^0.2.1
30+ permission_handler_windows :
31+ path : ../permission_handler_windows
3132 permission_handler_platform_interface : ^4.3.0
3233
3334dev_dependencies :
Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ include_directories(BEFORE SYSTEM ${CMAKE_BINARY_DIR}/include)
4242
4343add_library (${PLUGIN_NAME} SHARED
4444 "include/permission_handler_windows/permission_handler_windows_plugin.h"
45- "include/permission_handler /permission_handler_plugin.h"
45+ "include/permission_handler_windows /permission_handler_plugin.h"
4646 "permission_handler_windows_plugin.cpp"
4747)
4848apply_standard_settings(${PLUGIN_NAME} )
Original file line number Diff line number Diff line change 11#ifndef PACKAGES_PERMISSION_HANDLER_PERMISSION_HANDLER_WINDOWS_WINDOWS_INCLUDE_PERMISSION_HANDLER_PERMISSION_HANDLER_PLUGIN_H_
22#define PACKAGES_PERMISSION_HANDLER_PERMISSION_HANDLER_WINDOWS_WINDOWS_INCLUDE_PERMISSION_HANDLER_PERMISSION_HANDLER_PLUGIN_H_
33
4- // Compatibility header for permission_handler_windows plugin
5- // This header redirects to the actual plugin header to maintain compatibility
6- #include "../permission_handler_windows/permission_handler_windows_plugin.h"
4+ #include <flutter/plugin_registrar.h>
5+
6+ #ifdef FLUTTER_PLUGIN_IMPL
7+ #define FLUTTER_PLUGIN_EXPORT __declspec(dllexport)
8+ #else
9+ #define FLUTTER_PLUGIN_EXPORT __declspec(dllimport)
10+ #endif
11+
12+ #if defined(__cplusplus )
13+ extern "C" {
14+ #endif
15+
16+ FLUTTER_PLUGIN_EXPORT void PermissionHandlerWindowsPluginRegisterWithRegistrar (
17+ FlutterDesktopPluginRegistrarRef registrar );
18+
19+ #if defined(__cplusplus )
20+ } // extern "C"
21+ #endif
722
823#endif // PACKAGES_PERMISSION_HANDLER_PERMISSION_HANDLER_WINDOWS_WINDOWS_INCLUDE_PERMISSION_HANDLER_PERMISSION_HANDLER_PLUGIN_H_
Original file line number Diff line number Diff line change 1+ #ifndef PACKAGES_PERMISSION_HANDLER_PERMISSION_HANDLER_WINDOWS_WINDOWS_INCLUDE_PERMISSION_HANDLER_WINDOWS_PERMISSION_HANDLER_PLUGIN_H_
2+ #define PACKAGES_PERMISSION_HANDLER_PERMISSION_HANDLER_WINDOWS_WINDOWS_INCLUDE_PERMISSION_HANDLER_WINDOWS_PERMISSION_HANDLER_PLUGIN_H_
3+
4+ #include <flutter/plugin_registrar.h>
5+
6+ #ifdef FLUTTER_PLUGIN_IMPL
7+ #define FLUTTER_PLUGIN_EXPORT __declspec(dllexport)
8+ #else
9+ #define FLUTTER_PLUGIN_EXPORT __declspec(dllimport)
10+ #endif
11+
12+ #if defined(__cplusplus )
13+ extern "C" {
14+ #endif
15+
16+ FLUTTER_PLUGIN_EXPORT void PermissionHandlerWindowsPluginRegisterWithRegistrar (
17+ FlutterDesktopPluginRegistrarRef registrar );
18+
19+ #if defined(__cplusplus )
20+ } // extern "C"
21+ #endif
22+
23+ #endif // PACKAGES_PERMISSION_HANDLER_PERMISSION_HANDLER_WINDOWS_WINDOWS_INCLUDE_PERMISSION_HANDLER_WINDOWS_PERMISSION_HANDLER_PLUGIN_H_
Original file line number Diff line number Diff line change 1- #include " include/permission_handler_windows/permission_handler_windows_plugin .h"
1+ #include " include/permission_handler_windows/permission_handler_plugin .h"
22
33#include < flutter/method_channel.h>
44#include < flutter/plugin_registrar_windows.h>
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments