-
Notifications
You must be signed in to change notification settings - Fork 0
/
SILProtoBuffer.podspec
50 lines (40 loc) · 2.42 KB
/
SILProtoBuffer.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
46
47
48
49
50
# passed validation using command below:
# pod spec lint SILProtoBuffer.podspec --verbose --allow-warnings
Pod::Spec.new do |s|
s.name = "SILProtoBuffer"
s.version = "1.0.5"
s.summary = "A networking framework based on Google Protobuf v2.6 & AFNetworking that can help you pack APIs"
s.cocoapods_version = '>= 1.0'
s.homepage = "https://github.com/silver6wings/SilverProtoBuffer"
s.license = "MIT"
s.author = { "silver6wings" => "[email protected]" }
s.platform = :ios,'8.0'
s.source = { :git => "https://github.com/silver6wings/SilverProtobuffer.git",
:tag => "#{s.version}" }
s.requires_arc = true
s.source_files = 'objc-ios/SILProtobuffer/SILProtobuffer.h',
'objc-ios/SILProtobuffer/SILAPI.h',
'objc-ios/SILProtobuffer/SILManager.{h,m}',
'objc-ios/SILProtobuffer/SILParser.{h,m}',
'objc-ios/SILProtobuffer/SILRequester.{h,m}'
s.subspec 'AFNetworking+Silver' do |ss|
ss.source_files = 'objc-ios/AFNetworking/*.{h,m}'
end
s.subspec 'Protobuf260' do |ss|
ss.requires_arc = false
ss.source_files = 'objc-ios/GoogleProtobuf/*.{h,m}',
'objc-ios/GoogleProtobuf/protobuf/Any.pbobjc.{h,m}',
'objc-ios/GoogleProtobuf/protobuf/Api.pbobjc.{h,m}',
'objc-ios/GoogleProtobuf/protobuf/Duration.pbobjc.{h,m}',
'objc-ios/GoogleProtobuf/protobuf/Empty.pbobjc.{h,m}',
'objc-ios/GoogleProtobuf/protobuf/FieldMask.pbobjc.{h,m}',
'objc-ios/GoogleProtobuf/protobuf/SourceContext.pbobjc.{h,m}',
'objc-ios/GoogleProtobuf/protobuf/Struct.pbobjc.{h,m}',
'objc-ios/GoogleProtobuf/protobuf/Timestamp.pbobjc.{h,m}',
'objc-ios/GoogleProtobuf/protobuf/Type.pbobjc.{h,m}',
'objc-ios/GoogleProtobuf/protobuf/Wrappers.pbobjc.{h,m}'
ss.exclude_files = 'objc-ios/GoogleProtobuf/GPBProtocolBuffers.m'
# ss.user_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' }
# ss.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' }
end
end