-
-
Notifications
You must be signed in to change notification settings - Fork 874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added macOS implementation #946
base: main
Are you sure you want to change the base?
Changes from all commits
05e2b3a
73ae9ae
3f7470a
4dc8d3f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This plugin maintains a |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Miscellaneous | ||
*.class | ||
*.log | ||
*.pyc | ||
*.swp | ||
.DS_Store | ||
.atom/ | ||
.buildlog/ | ||
.history | ||
.svn/ | ||
migrate_working_dir/ | ||
|
||
# IntelliJ related | ||
*.iml | ||
*.ipr | ||
*.iws | ||
.idea/ | ||
|
||
# The .vscode folder contains launch configuration and tasks you configure in | ||
# VS Code which you may wish to be included in version control, so this line | ||
# is commented out by default. | ||
#.vscode/ | ||
|
||
# Flutter/Dart/Pub related | ||
# Libraries should not include pubspec.lock, per https://dart.dev/guides/libraries/private-files#pubspeclock. | ||
/pubspec.lock | ||
**/doc/api/ | ||
.dart_tool/ | ||
.packages | ||
build/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# This file tracks properties of this Flutter project. | ||
# Used by Flutter tool to assess capabilities and perform upgrades etc. | ||
# | ||
# This file should be version controlled. | ||
|
||
version: | ||
revision: eb6d86ee27deecba4a83536aa20f366a6044895c | ||
channel: stable | ||
|
||
project_type: plugin | ||
|
||
# Tracks metadata for the flutter migrate command | ||
migration: | ||
platforms: | ||
- platform: root | ||
create_revision: eb6d86ee27deecba4a83536aa20f366a6044895c | ||
base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c | ||
- platform: ios | ||
create_revision: eb6d86ee27deecba4a83536aa20f366a6044895c | ||
base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c | ||
- platform: macos | ||
create_revision: eb6d86ee27deecba4a83536aa20f366a6044895c | ||
base_revision: eb6d86ee27deecba4a83536aa20f366a6044895c | ||
|
||
# User provided section | ||
|
||
# List of Local paths (relative to this file) that should be | ||
# ignored by the migrate tool. | ||
# | ||
# Files that are not part of the templates will be ignored by default. | ||
unmanaged_files: | ||
- 'lib/main.dart' | ||
- 'ios/Runner.xcodeproj/project.pbxproj' |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert this file, we maintain a version of the |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
# Additional information about this file can be found at | ||
# https://dart.dev/guides/language/analysis-options |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please revert this file, we maintain a version of the analysis_options.yaml in the root of the repository. This file will override the setting configured there. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This file configures the analyzer, which statically analyzes Dart code to | ||
# check for errors, warnings, and lints. | ||
# | ||
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled | ||
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be | ||
# invoked from the command line by running `flutter analyze`. | ||
|
||
# The following line activates a set of recommended lints for Flutter apps, | ||
# packages, and plugins designed to encourage good coding practices. | ||
include: package:flutter_lints/flutter.yaml | ||
|
||
linter: | ||
# The lint rules applied to this project can be customized in the | ||
# section below to disable rules from the `package:flutter_lints/flutter.yaml` | ||
# included above or to enable additional rules. A list of all available lints | ||
# and their documentation is published at | ||
# https://dart-lang.github.io/linter/lints/index.html. | ||
# | ||
# Instead of disabling a lint rule for the entire project in the | ||
# section below, it can also be suppressed for a single line of code | ||
# or a specific dart file by using the `// ignore: name_of_lint` and | ||
# `// ignore_for_file: name_of_lint` syntax on the line or in the file | ||
# producing the lint. | ||
rules: | ||
# avoid_print: false # Uncomment to disable the `avoid_print` rule | ||
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule | ||
|
||
# Additional information about this file can be found at | ||
# https://dart.dev/guides/language/analysis-options |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>CADisableMinimumFrameDurationOnPhone</key> | ||
<true/> | ||
<key>CFBundleDevelopmentRegion</key> | ||
<string>$(DEVELOPMENT_LANGUAGE)</string> | ||
<key>CFBundleExecutable</key> | ||
|
@@ -22,6 +24,38 @@ | |
<string>$(FLUTTER_BUILD_NUMBER)</string> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>NSAppleMusicUsageDescription</key> | ||
<string>Music!</string> | ||
<key>NSBluetoothAlwaysUsageDescription</key> | ||
<string>bluetooth</string> | ||
<key>NSBluetoothPeripheralUsageDescription</key> | ||
<string>bluetooth</string> | ||
<key>NSCalendarsUsageDescription</key> | ||
<string>Calendars</string> | ||
<key>NSCameraUsageDescription</key> | ||
<string>camera</string> | ||
<key>NSContactsUsageDescription</key> | ||
<string>contacts</string> | ||
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key> | ||
<string>Always and when in use!</string> | ||
<key>NSLocationAlwaysUsageDescription</key> | ||
<string>Can I have location always?</string> | ||
<key>NSLocationUsageDescription</key> | ||
<string>Older devices need location.</string> | ||
<key>NSLocationWhenInUseUsageDescription</key> | ||
<string>Need location when in use</string> | ||
<key>NSMicrophoneUsageDescription</key> | ||
<string>microphone</string> | ||
<key>NSMotionUsageDescription</key> | ||
<string>motion</string> | ||
<key>NSPhotoLibraryUsageDescription</key> | ||
<string>photos</string> | ||
<key>NSRemindersUsageDescription</key> | ||
<string>reminders</string> | ||
<key>NSSpeechRecognitionUsageDescription</key> | ||
<string>speech</string> | ||
<key>NSUserTrackingUsageDescription</key> | ||
<string>appTrackingTransparency</string> | ||
Comment on lines
+27
to
+58
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any specific reason why the comments have been removed? They were added on purpose for developers looking at this file to understand how permissions are mapped to the If there is not specific reason for removing the comments, please rollback this change. |
||
<key>UILaunchStoryboardName</key> | ||
<string>LaunchScreen</string> | ||
<key>UIMainStoryboardFile</key> | ||
|
@@ -41,63 +75,7 @@ | |
</array> | ||
<key>UIViewControllerBasedStatusBarAppearance</key> | ||
<false/> | ||
|
||
<!-- Permission options for the `location` group --> | ||
<key>NSLocationWhenInUseUsageDescription</key> | ||
<string>Need location when in use</string> | ||
<key>NSLocationAlwaysAndWhenInUseUsageDescription</key> | ||
<string>Always and when in use!</string> | ||
<key>NSLocationUsageDescription</key> | ||
<string>Older devices need location.</string> | ||
<key>NSLocationAlwaysUsageDescription</key> | ||
<string>Can I have location always?</string> | ||
|
||
<!-- Permission options for the `mediaLibrary` group --> | ||
<key>NSAppleMusicUsageDescription</key> | ||
<string>Music!</string> | ||
<key>kTCCServiceMediaLibrary</key> | ||
<string>media</string> | ||
|
||
<!-- Permission options for the `calendar` group --> | ||
<key>NSCalendarsUsageDescription</key> | ||
<string>Calendars</string> | ||
|
||
<!-- Permission options for the `camera` group --> | ||
<key>NSCameraUsageDescription</key> | ||
<string>camera</string> | ||
|
||
<!-- Permission options for the `contacts` group --> | ||
<key>NSContactsUsageDescription</key> | ||
<string>contacts</string> | ||
|
||
<!-- Permission options for the `microphone` group --> | ||
<key>NSMicrophoneUsageDescription</key> | ||
<string>microphone</string> | ||
|
||
<!-- Permission options for the `speech` group --> | ||
<key>NSSpeechRecognitionUsageDescription</key> | ||
<string>speech</string> | ||
|
||
<!-- Permission options for the `sensors` group --> | ||
<key>NSMotionUsageDescription</key> | ||
<string>motion</string> | ||
|
||
<!-- Permission options for the `photos` group --> | ||
<key>NSPhotoLibraryUsageDescription</key> | ||
<string>photos</string> | ||
|
||
<!-- Permission options for the `reminder` group --> | ||
<key>NSRemindersUsageDescription</key> | ||
<string>reminders</string> | ||
|
||
<!-- Permission options for the `bluetooth` --> | ||
<key>NSBluetoothAlwaysUsageDescription</key> | ||
<string>bluetooth</string> | ||
<key>NSBluetoothPeripheralUsageDescription</key> | ||
<string>bluetooth</string> | ||
|
||
<!-- Permission options for the `appTrackingTransparency` --> | ||
<key>NSUserTrackingUsageDescription</key> | ||
<string>appTrackingTransparency</string> | ||
<key>kTCCServiceMediaLibrary</key> | ||
<string>media</string> | ||
</dict> | ||
</plist> |
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This plugin maintains a .gitignore file in the root of the repository. The Please add the missing entries in the root |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Flutter-related | ||
**/Flutter/ephemeral/ | ||
**/Pods/ | ||
|
||
# Xcode-related | ||
**/dgph | ||
**/xcuserdata/ |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.debug.xcconfig" | ||
#include "ephemeral/Flutter-Generated.xcconfig" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include? "Pods/Target Support Files/Pods-Runner/Pods-Runner.release.xcconfig" | ||
#include "ephemeral/Flutter-Generated.xcconfig" |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// | ||
// Generated file. Do not edit. | ||
// | ||
|
||
import FlutterMacOS | ||
import Foundation | ||
|
||
import permission_handler_apple | ||
import url_launcher_macos | ||
|
||
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { | ||
PermissionHandlerPlugin.register(with: registry.registrar(forPlugin: "PermissionHandlerPlugin")) | ||
UrlLauncherPlugin.register(with: registry.registrar(forPlugin: "UrlLauncherPlugin")) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert this file as it should not be related to adding macOS support.
This is most likely automatically generated by Flutter but I'd prefer to have this updated in a separate PR.