Skip to content
Permalink
Browse files

Added on-demand protobuf generation

  • Loading branch information...
kleest committed May 23, 2018
1 parent db1966d commit 0c6cc4c977a96d28d194b71fc9d532b84fc04ba8
@@ -0,0 +1,3 @@
[submodule "protocol"]
path = protobuf/src/main/proto/protocol
url = ../protocol.git
@@ -23,7 +23,10 @@ dependencies {
//This must NOT be included
//compile fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':nfcd')
implementation 'com.google.protobuf:protobuf-java:3.5+'
implementation project(':protobuf')
implementation 'com.google.protobuf:protobuf-lite:3.0.1'

// support libraries
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:design:27.1.1'

@@ -5,7 +5,7 @@
import android.widget.TextView;

import com.google.protobuf.ByteString;
import com.google.protobuf.Message;
import com.google.protobuf.MessageLite;

import tud.seemuh.nfcgate.network.c2c.C2C;
import tud.seemuh.nfcgate.network.c2s.C2S;
@@ -165,7 +165,7 @@ private void setButtonTexts() {
return dataMsg.build();
}

private void sendMessage(Message msg, MessageCase mcase) {
private void sendMessage(MessageLite msg, MessageCase mcase) {
if (status == Status.NOT_CONNECTED) {
Log.e(TAG, "sendMessage: Trying to send message while not connected. Failed, doing nothing");
return;
Oops, something went wrong.

0 comments on commit 0c6cc4c

Please sign in to comment.
You can’t perform that action at this time.