MacOS support
This commit is contained in:
parent
5446a6f611
commit
c833bd2d3b
51 changed files with 2004 additions and 436 deletions
37
macos/.gitignore
vendored
Normal file
37
macos/.gitignore
vendored
Normal file
|
@ -0,0 +1,37 @@
|
|||
.idea/
|
||||
.vagrant/
|
||||
.sconsign.dblite
|
||||
.svn/
|
||||
|
||||
.DS_Store
|
||||
*.swp
|
||||
profile
|
||||
|
||||
DerivedData/
|
||||
build/
|
||||
GeneratedPluginRegistrant.h
|
||||
GeneratedPluginRegistrant.m
|
||||
|
||||
.generated/
|
||||
|
||||
*.pbxuser
|
||||
*.mode1v3
|
||||
*.mode2v3
|
||||
*.perspectivev3
|
||||
|
||||
!default.pbxuser
|
||||
!default.mode1v3
|
||||
!default.mode2v3
|
||||
!default.perspectivev3
|
||||
|
||||
xcuserdata
|
||||
|
||||
*.moved-aside
|
||||
|
||||
*.pyc
|
||||
*sync/
|
||||
Icon?
|
||||
.tags*
|
||||
|
||||
/Flutter/Generated.xcconfig
|
||||
/Flutter/flutter_export_environment.sh
|
0
macos/Assets/.gitkeep
Normal file
0
macos/Assets/.gitkeep
Normal file
16
macos/Classes/AudioPlayer.h
Normal file
16
macos/Classes/AudioPlayer.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
#import <FlutterMacOS/FlutterMacOS.h>
|
||||
|
||||
@interface AudioPlayer : NSObject<FlutterStreamHandler>
|
||||
|
||||
- (instancetype)initWithRegistrar:(NSObject<FlutterPluginRegistrar> *)registrar playerId:(NSString*)idParam;
|
||||
|
||||
@end
|
||||
|
||||
enum PlaybackState {
|
||||
none,
|
||||
stopped,
|
||||
paused,
|
||||
playing,
|
||||
connecting,
|
||||
completed
|
||||
};
|
1
macos/Classes/AudioPlayer.m
Symbolic link
1
macos/Classes/AudioPlayer.m
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../darwin/Classes/AudioPlayer.m
|
4
macos/Classes/JustAudioPlugin.h
Normal file
4
macos/Classes/JustAudioPlugin.h
Normal file
|
@ -0,0 +1,4 @@
|
|||
#import <FlutterMacOS/FlutterMacOS.h>
|
||||
|
||||
@interface JustAudioPlugin : NSObject<FlutterPlugin>
|
||||
@end
|
1
macos/Classes/JustAudioPlugin.m
Symbolic link
1
macos/Classes/JustAudioPlugin.m
Symbolic link
|
@ -0,0 +1 @@
|
|||
../../darwin/Classes/JustAudioPlugin.m
|
21
macos/just_audio.podspec
Normal file
21
macos/just_audio.podspec
Normal file
|
@ -0,0 +1,21 @@
|
|||
#
|
||||
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
|
||||
#
|
||||
Pod::Spec.new do |s|
|
||||
s.name = 'just_audio'
|
||||
s.version = '0.0.1'
|
||||
s.summary = 'A new flutter plugin project.'
|
||||
s.description = <<-DESC
|
||||
A new flutter plugin project.
|
||||
DESC
|
||||
s.homepage = 'http://example.com'
|
||||
s.license = { :file => '../LICENSE' }
|
||||
s.author = { 'Your Company' => 'email@example.com' }
|
||||
s.source = { :path => '.' }
|
||||
s.source_files = 'Classes/**/*'
|
||||
s.public_header_files = 'Classes/**/*.h'
|
||||
s.dependency 'FlutterMacOS'
|
||||
s.platform = :osx, '10.11'
|
||||
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES' }
|
||||
end
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue