Skip to content

psmjazz/NativeBridge-Protobuf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NativeBridge-Protobuf

Protobuf Messages for NativeBridge

Build

build Protobuf Messages of Android(java/kotlin), iOS(swift) and Unity(C#) outputs are located in 'out' folder

  • out/csharp
  • out/kotlin
  • out/swift

Mac (On Apple Silicon)

Open terminal and run

cd [location of this project]
sh ./build.sh

Others

  1. Find proper version of protoc excutables in protobuf release
  2. Open build.sh and change PROTOC_DIR with downloaded protoc excutable location
PROTOC_DIR="[Downloaded protoc location]"
  1. Intel chip Mac may have to rebuild protoc-swift. Follow this link and change PROTOC_SWIFT_DIR with rebuilded protoc-swift location
PROTOC_SWIFT_DIR="[Rebuilded protoc-swift location]"

NOTE: Build for swift protobuf message only supported in mac. delete below line if you are not building on Mac

$PROTOC_DIR --proto_path=$SOURCE_DIR --swift_out=$SWIFT_OUT $SOURCE_DIR/*.proto --swift_opt=Visibility=Public

About

Protobuf for NativeBridge

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages