flutter_blue.podspec 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. #
  2. # To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html.
  3. # Run `pod lib lint flutter_blue.podspec' to validate before publishing.
  4. #
  5. Pod::Spec.new do |s|
  6. s.name = 'flutter_blue'
  7. s.version = '0.0.1'
  8. s.summary = 'Bluetooth Low Energy plugin for Flutter.'
  9. s.description = <<-DESC
  10. Bluetooth Low Energy plugin for Flutter.
  11. DESC
  12. s.homepage = 'https://github.com/pauldemarco/flutter_blue'
  13. s.license = { :file => '../LICENSE' }
  14. s.author = { 'Paul DeMarco' => 'paulmdemarco@gmail.com' }
  15. s.source = { :path => '.' }
  16. s.source_files = 'Classes/**/*', 'gen/**/*'
  17. s.public_header_files = 'Classes/**/*.h', 'gen/**/*.h'
  18. s.dependency 'FlutterMacOS'
  19. s.platform = :osx, '10.13'
  20. s.framework = 'CoreBluetooth'
  21. s.subspec "Protos" do |ss|
  22. ss.source_files = "gen/*.pbobjc.{h,m}", "gen/**/*.pbobjc.{h,m}"
  23. ss.header_mappings_dir = "gen"
  24. ss.requires_arc = false
  25. ss.dependency "Protobuf", '~> 3.11.4'
  26. end
  27. s.pod_target_xcconfig = {
  28. 'DEFINES_MODULE' => 'YES',
  29. 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
  30. }
  31. end