Skip to content

Commit 9ee53b9

Browse files
Added: permission_handler_windows/windows/include/permission_handler/permission_handler_plugin.h (compatibility header)
Updated: permission_handler_windows/windows/CMakeLists.txt (added compatibility header to build)
1 parent 86a6e1d commit 9ee53b9

File tree

3 files changed

+98
-0
lines changed

3 files changed

+98
-0
lines changed

permission_handler_windows/windows/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ include_directories(BEFORE SYSTEM ${CMAKE_BINARY_DIR}/include)
4242

4343
add_library(${PLUGIN_NAME} SHARED
4444
"include/permission_handler_windows/permission_handler_windows_plugin.h"
45+
"include/permission_handler/permission_handler_plugin.h"
4546
"permission_handler_windows_plugin.cpp"
4647
)
4748
apply_standard_settings(${PLUGIN_NAME})
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#ifndef PACKAGES_PERMISSION_HANDLER_PERMISSION_HANDLER_WINDOWS_WINDOWS_INCLUDE_PERMISSION_HANDLER_PERMISSION_HANDLER_PLUGIN_H_
2+
#define PACKAGES_PERMISSION_HANDLER_PERMISSION_HANDLER_WINDOWS_WINDOWS_INCLUDE_PERMISSION_HANDLER_PERMISSION_HANDLER_PLUGIN_H_
3+
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"
7+
8+
#endif // PACKAGES_PERMISSION_HANDLER_PERMISSION_HANDLER_WINDOWS_WINDOWS_INCLUDE_PERMISSION_HANDLER_PERMISSION_HANDLER_PLUGIN_H_

test_permission_app/pubspec.yaml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: test_permission_app
2+
description: "A new Flutter project."
3+
# The following line prevents the package from being accidentally published to
4+
# pub.dev using `flutter pub publish`. This is preferred for private packages.
5+
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
6+
7+
# The following defines the version and build number for your application.
8+
# A version number is three numbers separated by dots, like 1.2.43
9+
# followed by an optional build number separated by a +.
10+
# Both the version and the builder number may be overridden in flutter
11+
# build by specifying --build-name and --build-number, respectively.
12+
# In Android, build-name is used as versionName while build-number used as versionCode.
13+
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
14+
# In iOS, build-name is used as CFBundleShortVersionString while build-number is used as CFBundleVersion.
15+
# Read more about iOS versioning at
16+
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
17+
# In Windows, build-name is used as the major, minor, and patch parts
18+
# of the product and file versions while build-number is used as the build suffix.
19+
version: 1.0.0+1
20+
21+
environment:
22+
sdk: ^3.5.0
23+
24+
# Dependencies specify other packages that your package needs in order to work.
25+
# To automatically upgrade your package dependencies to the latest versions
26+
# consider running `flutter pub upgrade --major-versions`. Alternatively,
27+
# dependencies can be manually updated by changing the version numbers below to
28+
# the latest version available on pub.dev. To see which dependencies have newer
29+
# versions available, run `flutter pub outdated`.
30+
dependencies:
31+
flutter:
32+
sdk: flutter
33+
34+
35+
# The following adds the Cupertino Icons font to your application.
36+
# Use with the CupertinoIcons class for iOS style icons.
37+
cupertino_icons: ^1.0.8
38+
permission_handler:
39+
path: flutter-permission-handler/permission_handler
40+
41+
dev_dependencies:
42+
flutter_test:
43+
sdk: flutter
44+
45+
# The "flutter_lints" package below contains a set of recommended lints to
46+
# encourage good coding practices. The lint set provided by the package is
47+
# activated in the `analysis_options.yaml` file located at the root of your
48+
# package. See that file for information about deactivating specific lint
49+
# rules and activating additional ones.
50+
flutter_lints: ^5.0.0
51+
52+
# For information on the generic Dart part of this file, see the
53+
# following page: https://dart.dev/tools/pub/dependencies
54+
55+
# The following section is specific to Flutter packages.
56+
flutter:
57+
58+
# The following line ensures that the Material Icons font is
59+
# included with your application, so that you can use the icons in
60+
# the material Icons class.
61+
uses-material-design: true
62+
63+
# To add assets to your application, add an assets section, like this:
64+
# assets:
65+
# - images/a_dot_burr.jpeg
66+
# - images/a_dot_ham.jpeg
67+
68+
# An image asset can refer to one or more resolution-specific "variants", see
69+
# https://flutter.dev/to/resolution-aware-images
70+
71+
# For details regarding adding assets from package dependencies, see
72+
# https://flutter.dev/to/asset-from-package
73+
74+
# To add custom fonts to your application, add a fonts section here,
75+
# in this format:
76+
# fonts:
77+
# - family: Schyler
78+
# fonts:
79+
# - asset: fonts/Schyler-Regular.ttf
80+
# - asset: fonts/Schyler-Italic.ttf
81+
# style: italic
82+
# - family: Trajan Pro
83+
# fonts:
84+
# - asset: fonts/TrajanPro.ttf
85+
# - asset: fonts/TrajanPro_Bold.ttf
86+
# weight: 700
87+
#
88+
# For details regarding fonts from package dependencies,
89+
# see https://flutter.dev/to/font-from-package

0 commit comments

Comments
 (0)