Giter VIP home page Giter VIP logo

Comments (5)

mwildehahn avatar mwildehahn commented on July 17, 2024

Or maybe I'm misunderstanding how to distribute my protobuf registry as a framework where the import ProtocolBuffers line is required.

from protobuf-swift.

alexeyxo avatar alexeyxo commented on July 17, 2024

For the sake of simplicity, you can create a folder structure:
protobufs/google/protobuf/
Copy swift-descriptor.proto and descriptor.proto in this folder.

In this case, you can simply compile the files protoc request_registry.proto --swift_out =" ./ "
Line import ProtocolBuffers can also disable
using option (.google.protobuf.swift_file_options) .compile_for_framework = false;

from protobuf-swift.

mwildehahn avatar mwildehahn commented on July 17, 2024

are there examples on the proper way to include protos in your project?

i want to keep the proto definitions in their own repo since its shared with multiple languages. i was then thinking of creating a framework just for the proto definitions and using that in my xcode projects as needed.

i don't think I can do this though because all of the generated proto structs and classes are listed as "internal" so they're not available outside of the framework.

from protobuf-swift.

mwildehahn avatar mwildehahn commented on July 17, 2024

ah shit, i just realized this is for that: https://github.com/alexeyxo/protobuf-swift#access-control

is there no way to set those preferences from the command line so they don't have to be defined in each file?

from protobuf-swift.

alexeyxo avatar alexeyxo commented on July 17, 2024

Comand Line Arguments - are the arguments "protoc", the third party plugins hasn't to opportunity them.

from protobuf-swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.