1. 13 Jan, 2017 1 commit
    • Thomas Van Lenten's avatar
      Timestamp helper fix, Duration helper cleanup. · d0bc096b
      Thomas Van Lenten authored
      - 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.
      d0bc096b
  2. 12 Jan, 2017 2 commits
  3. 08 Sep, 2016 1 commit
    • Thomas Van Lenten's avatar
      Add ObjC helpers for Any WKT. · 337ec306
      Thomas Van Lenten authored
      - 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
      337ec306
  4. 07 Jul, 2016 1 commit
    • Thomas Van Lenten's avatar
      Don't #import the .m files. · be0d7f66
      Thomas Van Lenten authored
      As bazel folks are looking at getting auto generation of module maps going and
      the importing of sources files causes issues there.  We were only do it to
      hack around some of the apple linker behaviors around objc classes and
      categories, but even that isn't complete and CocoaPods was already doing -ObjC,
      and developers not using pods could have still needed it to ensure everything
      was linked anyways; so drop the hack of importing sources.
      be0d7f66
  5. 11 Aug, 2015 1 commit
  6. 29 Jul, 2015 1 commit
  7. 21 Jul, 2015 1 commit
    • TeBoring's avatar
      Add packFrom, unpackTo and is in google.protobuf.Any. · 7366efd8
      TeBoring authored
      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.
      7366efd8
  8. 06 May, 2015 1 commit