projectName.podspec.tmpl 1.13 KB
Newer Older
1
#
2
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
3
# Run `pod lib lint {{projectName}}.podspec` to validate before publishing.
4 5 6 7 8 9 10 11 12 13 14
#
Pod::Spec.new do |s|
  s.name             = '{{projectName}}'
  s.version          = '0.0.1'
  s.summary          = '{{description}}'
  s.description      = <<-DESC
{{description}}
                       DESC
  s.homepage         = 'http://example.com'
  s.license          = { :file => '../LICENSE' }
  s.author           = { 'Your Company' => 'email@example.com' }
Daco Harkes's avatar
Daco Harkes committed
15 16 17 18 19

  # This will ensure the source files in Classes/ are included in the native
  # builds of apps using this FFI plugin. Podspec does not support relative
  # paths, so Classes contains a forwarder C file that relatively imports
  # `../src/*` so that the C sources can be shared among all target platforms.
20
  s.source           = { :path => '.' }
Daco Harkes's avatar
Daco Harkes committed
21 22
  s.source_files = 'Classes/**/*'
  s.dependency 'Flutter'
23
  s.platform = :ios, '11.0'
24

Daco Harkes's avatar
Daco Harkes committed
25 26
  # Flutter.framework does not contain a i386 slice.
  s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'i386' }
27
  s.swift_version = '5.0'
28
end