junkomatic
junkomatic
I switched the dependencies in both modules 'lib' and 'lib-android' to protobuf-lite, and built those modules. The 'lib' module built fine with no errors. The 'lib-android' module contains a few...
I simply added the line: ``` option optimize_for = LITE_RUNTIME; ``` to the capillary_internal.proto, and both modules now build without error! I guess now I will try to build the...
I lack the knowledge and documentation to apply the plugin: com.google.protobuf:protoc-gen-javalite to the Gradle files myself in any meaningful way. Its always a little unnerving when trying to add things...
ok, I see now that it is a plugin for protoc itself, therefore I should remove the gradle protobuf plugins that automatically generate code, and instead generate the code manually...
Inside the gradle.build for the 'lib' module (this is the only module generating protobuf code) the protobuf{} definition now looks like this: ``` protobuf { protoc { artifact = 'com.google.protobuf:protoc:3.0.0'...
also the sourceDirs inside the idea{} block needs to be changed to .../javalite instead of .../java. This seems to be working as far as I can tell. Ideally, the lib-android...
Also: In order to run the Capillary Server (lib) alongside the 'com.google.firebase:firebase-admin:6.8.0' dependency required for Firestore, you must also include dependency: ```implementation 'io.grpc:grpc-auth:1.19.0'``` or else there is an IncompatibleClassChangeError stemming...