aboutsummaryrefslogtreecommitdiff
path: root/objectivec/GPBWellKnownTypes.h
Commit message (Collapse)AuthorAgeFilesLines
* Timestamp helper fix, Duration helper cleanup.Thomas Van Lenten2017-01-121-3/+14
| | | | | | | | | - The Timestamp proto does not allow for negative nanos fields, so the seconds must be shifted and a positive nanos then applied. - Tweak the helpers on Duration to make it clear there is no "base" time involved. - Update the unittests for duration and timestamp to cover positive and negative NSTimeIntervals and what their impact is on the protos.
* Merge pull request #1970 from thomasvl/objc_any_helpersThomas Van Lenten2016-09-091-0/+125
|\ | | | | Objc any helpers
| * Add ObjC helpers for Any WKT.Thomas Van Lenten2016-09-081-0/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Capture the ObjC prefix used when generating the the file. - Track the containing type on descriptors. - Mark descriptors where the message class name got a suffix added to it. - Expose a fullName property on Descriptors. - Add helpers for packing/unpacking Any messages. - Bump the ObjC runtime version number. Since we added methods and invoke them in the generated code, ensure the code is running against a matching version. Otherwise, someone could compile against headers, but run with a framework that is older and get unknown selector failures. This should trip clearer messaging. Fixes https://github.com/google/protobuf/issues/1674
* | Fix error and add note about lossy issuesThomas Van Lenten2016-09-081-3/+13
|/
* Migrating documentation of the ObjectiveC runtime code to appledoc. (#1867)Sergio Campamá2016-08-081-2/+38
| | | | | | | | Work for #1866 Migrates all the public class docs over to appledoc format. While Xcode is fine with blank lines in `///` comments, appledoc (used by cocoadocs) isn't and was leaving a bunch of info off the doc pages. The generator still needs to be updated to do this also; that will be a follow up CL.
* Better support for using the proto library from a framework.Thomas Van Lenten2016-05-241-2/+13
| | | | | | | | | | | | | | - Add generator constant for the default framework name. - Add generator api for making the CPP symbol from the name. - Add generator api to see if it is a bundled proto file. - Output a CPP conditional and two imports for the core library headers. - Add helper for generating the #import for file headers to deal with the framework imports. - Add a reference from the unittests to a WKT to use that to inspect how imports generate. - Update the podspec to define the CPP symbol and require pods 1.0 (or later). Fixes https://github.com/google/protobuf/issues/1457
* Revert "Add packFrom, unpackTo and is in google.protobuf.Any."Thomas Van Lenten2015-08-111-20/+0
| | | | | | This reverts commit 7366efd81e7f36108aa35e66fca61da8a65762c2. Still some discussion about the api to expose the helpers with.
* Add packFrom, unpackTo and is in google.protobuf.Any.TeBoring2015-07-211-1/+21
| | | | | | The previous two methods make it easy to transform between any and normal message. unPackeTo will throw error if the type url in any doesn't match the type of the message to be transformed to. is checks any's type url matches the give GPBMessage type.
* Add nonnil markup to ObjC library.Thomas Van Lenten2015-06-161-0/+4
| | | | Add the clang annotations to the objc library and generated code to help with Swift bridging and compiler checks.
* Alpha 1 drop of Google's Objective C plugin and runtime support for protobufs.Thomas Van Lenten2015-05-061-0/+48