There doesn't seem to be a straightforward way to add generated header files to our Xcode project without checking them in. This change lets users easily call rust functions declared in the lib.rs.h header file.
Depends on D4953
Differential D5084
[native] add CXX header files to Xcode project varun on Sep 8 2022, 9:46 AM. Authored by Tags None Referenced Files
Details There doesn't seem to be a straightforward way to add generated header files to our Xcode project without checking them in. This change lets users easily call rust functions declared in the lib.rs.h header file. Depends on D4953 Built the mobile app in Xcode
Diff Detail
Event TimelineComment Actions I would like to avoid doing grpc/grpc_client and instead just have it under grpc/, after https://phab.comm.dev/D5045, only the client will remain in the folder Comment Actions Unstaged changes in working copy: native/cpp/CommonCpp/grpc/grpc_client/cxx.h native/cpp/CommonCpp/grpc/grpc_client/lib.rs.h Let's add these to .gitignore (Accepting, but should address @jon's feedback and get his acceptance before landing) Comment Actions Can we use the same approach as we do for other generated grpc files? E.g. mark them accordingly so that they don't show up on review. Comment Actions we actually don't want to .gitignore these. we need to check them in for now probably need to fix the formatting of the generated files or something if you're seeing unstaged changes? Comment Actions hmmm now the project.pbxproj file is showing up as generated on phabricator (which it is, but we still want phabricator to show it). is it because the word @generated appears? Comment Actions i think this makes sense as a separate change because i'll be moving a bunch of files and it'll clutter this diff. what do you think? Comment Actions
with the generated file collapse, it will just be the paths which change. unless your manually editing the files. Either way, the other revision which moved out the protos has landed, so I think we should avoid creating another directory. Comment Actions Yes, that's the reason. We should use comm/shared/scripts/mark-generated.sh script instead of doing it directly. Comment Actions the mark-generated file appears to be specific to the gRPC codegen'd files. it's doing a replacement, whereas we need to prefix the keyword in the cxx files. i'm going to undo the latest change and defer this https://linear.app/comm/issue/ENG-1810/improve-rust-library-integration-in-xcode Comment Actions the grpc_client folder existed prior to this diff. it's the folder that contains the cargo project for the library that i'm introducing in native. we can definitely reduce some nesting now that your restructuring diffs have landed, but it doesn't make sense to me to address that here. lmk if i'm misunderstanding something Comment Actions undo script change that marks files as generated kept the "@generated" line on the header files, though Comment Actions this will likely need to be updated with https://linear.app/comm/issue/ENG-1804 anyway. I guess I'm fine |