-
Notifications
You must be signed in to change notification settings - Fork 713
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #985 from noviocare/AM_conditional
Add conditional compilation of media, audio and document pickers for iOS
- Loading branch information
Showing
5 changed files
with
103 additions
and
21 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,20 +2,35 @@ | |
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html | ||
# | ||
Pod::Spec.new do |s| | ||
s.name = 'file_picker' | ||
s.version = '0.0.1' | ||
s.summary = 'A new flutter plugin project.' | ||
s.description = <<-DESC | ||
A new flutter plugin project. | ||
s.name = 'file_picker' | ||
s.version = '0.0.1' | ||
s.summary = 'A flutter plugin to show native file picker dialogs' | ||
s.description = <<-DESC | ||
A flutter plugin to show native file picker dialogs. | ||
DESC | ||
s.homepage = 'http://example.com' | ||
s.license = { :file => '../LICENSE' } | ||
s.author = { 'Your Company' => '[email protected]' } | ||
s.source = { :path => '.' } | ||
s.source_files = 'Classes/**/*' | ||
s.public_header_files = 'Classes/**/*.h' | ||
s.dependency 'Flutter' | ||
s.dependency 'DKImagePickerController/PhotoGallery' | ||
s.homepage = 'https://github.com/miguelpruivo/plugins_flutter_file_picker' | ||
s.license = { :file => '../LICENSE' } | ||
s.author = 'Miguel Ruivo' | ||
s.source = { :path => '.' } | ||
s.source_files = 'Classes/**/*' | ||
s.public_header_files = 'Classes/**/*.h' | ||
|
||
s.ios.deployment_target = '8.0' | ||
|
||
s.dependency 'Flutter' | ||
|
||
preprocess_definitions=[] | ||
if !Pod.const_defined?(:PICKER_MEDIA) || PICKER_MEDIA | ||
preprocess_definitions << ["PICKER_MEDIA=1"] | ||
s.dependency 'DKImagePickerController/PhotoGallery' | ||
end | ||
if !Pod.const_defined?(:PICKER_AUDIO) || PICKER_AUDIO | ||
preprocess_definitions << ["PICKER_AUDIO=1"] | ||
end | ||
if !Pod.const_defined?(:PICKER_DOCUMENT) || PICKER_DOCUMENT | ||
preprocess_definitions << ["PICKER_DOCUMENT=1"] | ||
end | ||
s.pod_target_xcconfig = { "GCC_PREPROCESSOR_DEFINITIONS" => preprocess_definitions } | ||
|
||
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