Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revisit how the WKTs are bundled with ObjC. #7173

Merged
merged 1 commit into from Feb 10, 2020

Conversation

thomasvl
Copy link
Contributor

@thomasvl thomasvl commented Feb 4, 2020

There are have been a few issues around people using case sensitive file systems
what Xcode/clang does when looking at the paths. In attempts to solve one set of
warnings, new warnings/errors happened in different setup. So, to hopefully put
these problem away for got, move the WKTs to be at the same level as the other
headers.

  • Revert "Override CocoaPods module to lowercase (Override CocoaPods module to lowercase #6464)"
    This reverts commit 479ba82.
  • Move WKTs to the objectivec directory and make the old headers shim back to
    the new locations.
  • Update objectivec/generate_well_known_types.sh to check them one at a time
    and to deal with the new locations for them.

@thomasvl
Copy link
Contributor Author

thomasvl commented Feb 4, 2020

@paulb777 @dmaclach fyi

objectivec/generate_well_known_types.sh Show resolved Hide resolved
objectivec/generate_well_known_types.sh Outdated Show resolved Hide resolved
objectivec/generate_well_known_types.sh Outdated Show resolved Hide resolved
There are have been a few issues around people using case sensitive file systems
what Xcode/clang does when looking at the paths. In attempts to solve one set of
warnings, new warnings/errors happened in different setup. So, to hopefully put
these problem away for got, move the WKTs to be at the same level as the other
headers.

- Revert "Override CocoaPods module to lowercase (protocolbuffers#6464)"
  This reverts commit 479ba82.
- Move WKTs to the objectivec directory and make the old headers shim back to
  the new locations.
- Update objectivec/generate_well_known_types.sh to check them one at a time
  and to deal with the new locations for them.

Fixes protocolbuffers#6803
@thomasvl thomasvl merged commit 56c48ae into protocolbuffers:master Feb 10, 2020
@thomasvl thomasvl deleted the objc_flatten_wkt_paths branch February 10, 2020 17:20
thomasvl added a commit to thomasvl/protobuf that referenced this pull request Mar 1, 2022
Overdue followup to protocolbuffers#7173

Since all the files are at the same level as the runtime headers, there is no
need for things to be framework based imports, they should all just work like
the other headers do.

- Directly generate the bundled header imports into the preamble section when
  generating for a bundled proto.
- Update the preamble generation to skip the CPP wrapper when generating for a
  bundled proto file.
- Regenerate the WKTs.
- Update GPBProtocolBuffer.h to also skip the CPP wrapping.
thomasvl added a commit to thomasvl/protobuf that referenced this pull request Mar 1, 2022
Overdue followup to protocolbuffers#7173

Since all the files are at the same level as the runtime headers, there is no
need for things to be framework based imports, they should all just work like
the other headers do.

- Directly generate the bundled header imports into the preamble section when
  generating for a bundled proto.
- Update the preamble generation to skip the CPP wrapper when generating for a
  bundled proto file.
- Regenerate the WKTs.
- Update GPBProtocolBuffer.h to also skip the CPP wrapping.

GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS in the podspec and non bundled files still
has to exist because that comes into play for those files to find the runtime
headers.
thomasvl added a commit to thomasvl/protobuf that referenced this pull request Mar 1, 2022
Overdue followup to protocolbuffers#7173

Since all the files are at the same level as the runtime headers, there is no
need for things to be framework based imports, they should all just work like
the other headers do.

- Directly generate the bundled header imports into the preamble section when
  generating for a bundled proto.
- Update the preamble generation to skip the CPP wrapper when generating for a
  bundled proto file.
- Regenerate the WKTs.
- Update GPBProtocolBuffer.h/GPBWellKnownTypes.h to also skip the CPP wrapping.

GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS in the podspec and non bundled files still
has to exist because that comes into play for those files to find the runtime
headers.
thomasvl added a commit to thomasvl/protobuf that referenced this pull request Mar 1, 2022
Overdue followup to protocolbuffers#7173

Since all the files are at the same level as the runtime headers, there is no
need for things to be framework based imports, they should all just work like
the other headers do.

- Directly generate the bundled header imports into the preamble section when
  generating for a bundled proto.
- Update the preamble generation to skip the CPP wrapper when generating for a
  bundled proto file.
- Regenerate the WKTs.
- Update GPBProtocolBuffer.h/GPBWellKnownTypes.h to also skip the CPP wrapping.

GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS in the podspec and non bundled files still
has to exist because that comes into play for those files to find the runtime
headers.
thomasvl added a commit to thomasvl/protobuf that referenced this pull request Mar 1, 2022
Overdue followup to protocolbuffers#7173

Since all the files are at the same level as the runtime headers, there is no
need for things to be framework based imports, they should all just work like
the other headers do.

- Directly generate the bundled header imports into the preamble section when
  generating for a bundled proto.
- Update the preamble generation to skip the CPP wrapper when generating for a
  bundled proto file.
- Regenerate the WKTs.
- Update GPBProtocolBuffer.h/GPBWellKnownTypes.h to also skip the CPP wrapping.

GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS in the podspec and non bundled files still
has to exist because that comes into play for those files to find the runtime
headers.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants