-
Notifications
You must be signed in to change notification settings - Fork 233
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Beginning of darwin implementation * More changes to separate macos code * Updated code to run on macos * Fixed linking macos * Added microphone usage privacy info * Added requestMacOSMicrophonePermission * Fixed macos implementation * Updated readme * Updated support for macos for the audio_player_interaction * Removed old ios files * Revert "Removed old ios files" This reverts commit f0ac94e. * Removed correct old ios library files * Updated example pod os version
- Loading branch information
1 parent
1a40e48
commit ce6fb90
Showing
73 changed files
with
2,772 additions
and
1,373 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...ples/audio_player_interaction/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Flutter-related | ||
**/Flutter/ephemeral/ | ||
**/Pods/ | ||
|
||
# Xcode-related | ||
**/dgph | ||
**/xcuserdata/ |
2 changes: 2 additions & 0 deletions
2
examples/audio_player_interaction/macos/Flutter/Flutter-Debug.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
2 changes: 2 additions & 0 deletions
2
examples/audio_player_interaction/macos/Flutter/Flutter-Release.xcconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
16 changes: 16 additions & 0 deletions
16
examples/audio_player_interaction/macos/Flutter/GeneratedPluginRegistrant.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// | ||
// Generated file. Do not edit. | ||
// | ||
|
||
import FlutterMacOS | ||
import Foundation | ||
|
||
import audioplayers_darwin | ||
import path_provider_foundation | ||
import speech_to_text | ||
|
||
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { | ||
AudioplayersDarwinPlugin.register(with: registry.registrar(forPlugin: "AudioplayersDarwinPlugin")) | ||
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) | ||
SpeechToTextPlugin.register(with: registry.registrar(forPlugin: "SpeechToTextPlugin")) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
platform :osx, '10.15' | ||
|
||
# CocoaPods analytics sends network stats synchronously affecting flutter build latency. | ||
ENV['COCOAPODS_DISABLE_STATS'] = 'true' | ||
|
||
project 'Runner', { | ||
'Debug' => :debug, | ||
'Profile' => :release, | ||
'Release' => :release, | ||
} | ||
|
||
def flutter_root | ||
generated_xcode_build_settings_path = File.expand_path(File.join('..', 'Flutter', 'ephemeral', 'Flutter-Generated.xcconfig'), __FILE__) | ||
unless File.exist?(generated_xcode_build_settings_path) | ||
raise "#{generated_xcode_build_settings_path} must exist. If you're running pod install manually, make sure \"flutter pub get\" is executed first" | ||
end | ||
|
||
File.foreach(generated_xcode_build_settings_path) do |line| | ||
matches = line.match(/FLUTTER_ROOT\=(.*)/) | ||
return matches[1].strip if matches | ||
end | ||
raise "FLUTTER_ROOT not found in #{generated_xcode_build_settings_path}. Try deleting Flutter-Generated.xcconfig, then run \"flutter pub get\"" | ||
end | ||
|
||
require File.expand_path(File.join('packages', 'flutter_tools', 'bin', 'podhelper'), flutter_root) | ||
|
||
flutter_macos_podfile_setup | ||
|
||
target 'Runner' do | ||
use_frameworks! | ||
use_modular_headers! | ||
|
||
flutter_install_all_macos_pods File.dirname(File.realpath(__FILE__)) | ||
target 'RunnerTests' do | ||
inherit! :search_paths | ||
end | ||
end | ||
|
||
post_install do |installer| | ||
installer.pods_project.targets.each do |target| | ||
flutter_additional_macos_build_settings(target) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
PODS: | ||
- audioplayers_darwin (0.0.1): | ||
- FlutterMacOS | ||
- FlutterMacOS (1.0.0) | ||
- path_provider_foundation (0.0.1): | ||
- Flutter | ||
- FlutterMacOS | ||
- speech_to_text (0.0.1): | ||
- Flutter | ||
- FlutterMacOS | ||
- Try | ||
- Try (2.1.1) | ||
|
||
DEPENDENCIES: | ||
- audioplayers_darwin (from `Flutter/ephemeral/.symlinks/plugins/audioplayers_darwin/macos`) | ||
- FlutterMacOS (from `Flutter/ephemeral`) | ||
- path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin`) | ||
- speech_to_text (from `Flutter/ephemeral/.symlinks/plugins/speech_to_text/darwin`) | ||
|
||
SPEC REPOS: | ||
trunk: | ||
- Try | ||
|
||
EXTERNAL SOURCES: | ||
audioplayers_darwin: | ||
:path: Flutter/ephemeral/.symlinks/plugins/audioplayers_darwin/macos | ||
FlutterMacOS: | ||
:path: Flutter/ephemeral | ||
path_provider_foundation: | ||
:path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/darwin | ||
speech_to_text: | ||
:path: Flutter/ephemeral/.symlinks/plugins/speech_to_text/darwin | ||
|
||
SPEC CHECKSUMS: | ||
audioplayers_darwin: dcad41de4fbd0099cb3749f7ab3b0cb8f70b810c | ||
FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 | ||
path_provider_foundation: 3784922295ac71e43754bd15e0653ccfd36a147c | ||
speech_to_text: 627d3fd2194770b51abb324ba45c2d39398f24a8 | ||
Try: 5ef669ae832617b3cee58cb2c6f99fb767a4ff96 | ||
|
||
PODFILE CHECKSUM: 9ebaf0ce3d369aaa26a9ea0e159195ed94724cf3 | ||
|
||
COCOAPODS: 1.15.2 |
Oops, something went wrong.