Thomas Van Lenten 58cd4a47e8 ObjC fixup for the branch. 10 лет назад
..
DevTools 1dcc329427 Objective C Second Alpha Drop 10 лет назад
ProtocolBuffers_OSX.xcodeproj 58cd4a47e8 ObjC fixup for the branch. 10 лет назад
ProtocolBuffers_iOS.xcodeproj 58cd4a47e8 ObjC fixup for the branch. 10 лет назад
Tests 58cd4a47e8 ObjC fixup for the branch. 10 лет назад
google 50a765ba03 Fix bugs in objective-c. 10 лет назад
GPBArray.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBArray.m 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBArray_PackagePrivate.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBBootstrap.h 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBCodedInputStream.h 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBCodedInputStream.m 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBCodedInputStream_PackagePrivate.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBCodedOutputStream.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBCodedOutputStream.m 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBDescriptor.h 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBDescriptor.m 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBDescriptor_PackagePrivate.h 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBDictionary.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBDictionary.m 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBDictionary_PackagePrivate.h 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBExtensionField.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBExtensionField.m 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBExtensionField_PackagePrivate.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBExtensionRegistry.h 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBExtensionRegistry.m 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBField.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBField.m 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBField_PackagePrivate.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBMessage.h 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBMessage.m 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBMessage_PackagePrivate.h 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBProtocolBuffers.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBProtocolBuffers.m 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBProtocolBuffers_RuntimeSupport.h 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBRootObject.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBRootObject.m 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBRootObject_PackagePrivate.h 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBTypes.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBUnknownFieldSet.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBUnknownFieldSet.m 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBUnknownFieldSet_PackagePrivate.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBUtilities.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBUtilities.m 1dcc329427 Objective C Second Alpha Drop 10 лет назад
GPBUtilities_PackagePrivate.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBWellKnownTypes.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBWellKnownTypes.m 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBWireFormat.h 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
GPBWireFormat.m 30650d81d9 Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs. 10 лет назад
README.md 1dcc329427 Objective C Second Alpha Drop 10 лет назад
generate_descriptors_proto.sh 1dcc329427 Objective C Second Alpha Drop 10 лет назад

README.md

Protocol Buffers - Google's data interchange format

Build Status

Copyright 2008 Google Inc.

This directory contains the Objective C Protocol Buffers runtime library.

Requirements

The Objective C implemention requires:

  • Objective C 2.0 Runtime (32bit & 64bit iOS, 64bit OS X).
  • Xcode 6.3 (or later).
  • The library code does not use ARC (for performance reasons), but it all can be called from ARC code.

Installation

The full distribution pulled from github includes the sources for both the compiler (protoc) and the runtime (this directory). To build the compiler and run the runtime tests, you can use:

 $ objectivec/DevTools/full_mac_build.sh

This will generate the src/protoc binary.

Usage

There are two ways to include the Runtime sources in your project:

Add objectivec/\*.h & objectivec/GPBProtocolBuffers.m to your project.

or

Add objectivec/\*.h & objectivec/\*.m except for objectivec/GPBProtocolBuffers.m to your project.

If the target is using ARC, remember to turn off ARC (-fno-objc-arc) for the .m files.

The files generated by protoc for the *.proto files (\*.pbobjc.h' and *.pbobjc.m`) are then also added to the target.

The Objective C classes/enums can be used from Swift code.

Objective C Generator Options

objc_class_prefix=<prefix> (no default)

Since Objective C uses a global namespace for all of its classes, there can be collisions. This option provides a prefix that will be added to the Enums and Objects (for messages) generated from the proto. Convention is to base the prefix on the package the proto is in.

Contributing

Please make updates to the tests along with changes. If just changing the runtime, the Xcode projects can be used to build and run tests. If change also require changes to the generated code, objectivec/DevTools/full_mac_build.sh can be used to easily rebuild and test changes. Passing -h to the script will show the addition options that could be useful.

Documentation

The complete documentation for Protocol Buffers is available via the web at:

https://developers.google.com/protocol-buffers/