Skip to content

Commit

Permalink
Flatten Protos subspec in podspec.
Browse files Browse the repository at this point in the history
Pin to specific protobuf version.
  • Loading branch information
pauldemarco committed Apr 1, 2020
1 parent 07cd496 commit 1f2d7f3
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions ios/flutter_blue.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,13 @@ Bluetooth Low Energy plugin for Flutter.
s.license = { :file => '../LICENSE' }
s.author = { 'Paul DeMarco' => 'paulmdemarco@gmail.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.public_header_files = 'Classes/**/*.h'
s.source_files = 'Classes/**/*', 'gen/**/*'
s.public_header_files = 'Classes/**/*.h', 'gen/**/*.h'
s.dependency 'Flutter'
s.platform = :ios, '8.0'
s.framework = 'CoreBluetooth'

s.subspec 'Protos' do |ss|
ss.source_files = 'gen/**/*.pbobjc.{h,m}'
ss.header_mappings_dir = '.'
ss.requires_arc = false
ss.dependency 'Protobuf'
end
s.dependency 'Protobuf', '~> 3.11.4'
s.requires_arc = false

# Flutter.framework does not contain a i386 slice. Only x86_64 simulators are supported.
s.pod_target_xcconfig = { 'DEFINES_MODULE' => 'YES', 'VALID_ARCHS[sdk=iphonesimulator*]' => 'x86_64', 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1', }
Expand Down

0 comments on commit 1f2d7f3

Please sign in to comment.