OLD | NEW |
1 # This file describes to Cocoapods how to integrate the Objective-C runtime into
a dependent | 1 # This file describes to Cocoapods how to integrate the Objective-C runtime into
a dependent |
2 # project. | 2 # project. |
3 # Despite this file being specific to Objective-C, it needs to be on the root of
the repository. | 3 # Despite this file being specific to Objective-C, it needs to be on the root of
the repository. |
4 # Otherwise, Cocoapods gives trouble like not picking up the license file correc
tly, or not letting | 4 # Otherwise, Cocoapods gives trouble like not picking up the license file correc
tly, or not letting |
5 # dependent projects use the :git notation to refer to the library. | 5 # dependent projects use the :git notation to refer to the library. |
6 Pod::Spec.new do |s| | 6 Pod::Spec.new do |s| |
7 s.name = 'Protobuf' | 7 s.name = 'Protobuf' |
8 s.version = '3.0.0-beta-2' | 8 s.version = '3.1.0' |
9 s.summary = 'Protocol Buffers v.3 runtime library for Objective-C.' | 9 s.summary = 'Protocol Buffers v.3 runtime library for Objective-C.' |
10 s.homepage = 'https://github.com/google/protobuf' | 10 s.homepage = 'https://github.com/google/protobuf' |
11 s.license = 'New BSD' | 11 s.license = 'New BSD' |
12 s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.c
om' } | 12 s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.c
om' } |
| 13 s.cocoapods_version = '>= 1.0' |
13 | 14 |
14 s.source = { :git => 'https://github.com/google/protobuf.git', | 15 s.source = { :git => 'https://github.com/google/protobuf.git', |
15 :tag => "v#{s.version}" } | 16 :tag => "v#{s.version}" } |
16 | 17 |
17 s.source_files = 'objectivec/*.{h,m}', | 18 s.source_files = 'objectivec/*.{h,m}', |
18 'objectivec/google/protobuf/Any.pbobjc.{h,m}', | 19 'objectivec/google/protobuf/Any.pbobjc.{h,m}', |
19 'objectivec/google/protobuf/Api.pbobjc.{h,m}', | 20 'objectivec/google/protobuf/Api.pbobjc.{h,m}', |
20 'objectivec/google/protobuf/Duration.pbobjc.h', | 21 'objectivec/google/protobuf/Duration.pbobjc.{h,m}', |
21 'objectivec/google/protobuf/Empty.pbobjc.{h,m}', | 22 'objectivec/google/protobuf/Empty.pbobjc.{h,m}', |
22 'objectivec/google/protobuf/FieldMask.pbobjc.{h,m}', | 23 'objectivec/google/protobuf/FieldMask.pbobjc.{h,m}', |
23 'objectivec/google/protobuf/SourceContext.pbobjc.{h,m}', | 24 'objectivec/google/protobuf/SourceContext.pbobjc.{h,m}', |
24 'objectivec/google/protobuf/Struct.pbobjc.{h,m}', | 25 'objectivec/google/protobuf/Struct.pbobjc.{h,m}', |
25 'objectivec/google/protobuf/Timestamp.pbobjc.h', | 26 'objectivec/google/protobuf/Timestamp.pbobjc.{h,m}', |
26 'objectivec/google/protobuf/Type.pbobjc.{h,m}', | 27 'objectivec/google/protobuf/Type.pbobjc.{h,m}', |
27 'objectivec/google/protobuf/Wrappers.pbobjc.{h,m}' | 28 'objectivec/google/protobuf/Wrappers.pbobjc.{h,m}' |
28 # Timestamp.pbobjc.m and Duration.pbobjc.m are #imported by GPBWellKnownTypes.
m. So we can't | |
29 # compile them (duplicate symbols), but we need them available for the importi
ng: | |
30 s.preserve_paths = 'objectivec/google/protobuf/Duration.pbobjc.m', | |
31 'objectivec/google/protobuf/Timestamp.pbobjc.m' | |
32 # The following would cause duplicate symbol definitions. GPBProtocolBuffers i
s expected to be | 29 # The following would cause duplicate symbol definitions. GPBProtocolBuffers i
s expected to be |
33 # left out, as it's an umbrella implementation file. | 30 # left out, as it's an umbrella implementation file. |
34 s.exclude_files = 'objectivec/GPBProtocolBuffers.m' | 31 s.exclude_files = 'objectivec/GPBProtocolBuffers.m' |
35 s.header_mappings_dir = 'objectivec' | 32 |
| 33 # Set a CPP symbol so the code knows to use framework imports. |
| 34 s.user_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB
_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' } |
| 35 s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_
USE_PROTOBUF_FRAMEWORK_IMPORTS=1' } |
36 | 36 |
37 s.ios.deployment_target = '7.1' | 37 s.ios.deployment_target = '7.1' |
38 s.osx.deployment_target = '10.9' | 38 s.osx.deployment_target = '10.9' |
| 39 s.watchos.deployment_target = '2.0' |
39 s.requires_arc = false | 40 s.requires_arc = false |
40 end | 41 end |
OLD | NEW |