forked from pauldemarco/flutter_blue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflutter_blue.podspec
46 lines (41 loc) · 1.32 KB
/
flutter_blue.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'flutter_blue'
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 'Flutter'
s.dependency '!ProtoCompiler'
s.framework = 'CoreBluetooth'
protoc = ENV['PWD'] + '/Pods/!ProtoCompiler/protoc'
objc_out = 'gen'
proto_in = '../protos'
s.prepare_command = <<-CMD
mkdir -p #{objc_out}
#{protoc} \
--objc_out=#{objc_out} \
--proto_path=#{proto_in} \
#{proto_in}/*.proto
CMD
s.subspec 'Protos' do |ss|
ss.source_files = 'gen/**/*.pbobjc.{h,m}'
ss.header_mappings_dir = 'gen'
ss.requires_arc = false
ss.dependency 'Protobuf'
end
s.pod_target_xcconfig = {
# This is needed by all pods that depend on Protobuf:
'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1',
}
s.ios.deployment_target = '8.0'
end