| apply plugin: 'com.android.application' |
| apply plugin: 'com.google.protobuf' |
| sourceCompatibility JavaVersion.VERSION_1_8 |
| targetCompatibility JavaVersion.VERSION_1_8 |
| applicationId "io.grpc.clientcacheexample" |
| testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" |
| debug { minifyEnabled false } |
| proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| disable 'GoogleAppIndexingWarning', 'HardcodedText', 'InvalidPackage' |
| protoc { artifact = 'com.google.protobuf:protoc:3.22.3' } |
| grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.56.1-SNAPSHOT' // CURRENT_GRPC_VERSION |
| grpc { // Options added to --grpc_out |
| implementation 'com.android.support:appcompat-v7:27.0.2' |
| // You need to build grpc-java to obtain these libraries below. |
| implementation 'io.grpc:grpc-okhttp:1.56.1-SNAPSHOT' // CURRENT_GRPC_VERSION |
| implementation 'io.grpc:grpc-protobuf-lite:1.56.1-SNAPSHOT' // CURRENT_GRPC_VERSION |
| implementation 'io.grpc:grpc-stub:1.56.1-SNAPSHOT' // CURRENT_GRPC_VERSION |
| implementation 'org.apache.tomcat:annotations-api:6.0.53' |
| testImplementation 'junit:junit:4.13.2' |
| testImplementation 'com.google.truth:truth:1.0.1' |
| testImplementation 'io.grpc:grpc-testing:1.56.1-SNAPSHOT' // CURRENT_GRPC_VERSION |