-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathbuild.gradle
91 lines (84 loc) · 2.58 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
apply plugin: 'com.android.application'
apply plugin: 'com.google.protobuf'
buildscript {
dependencies {
classpath "com.google.protobuf:protobuf-gradle-plugin:0.8.3"
classpath 'com.google.gms:google-services:4.0.1'
}
}
android {
compileSdkVersion 27
defaultConfig {
applicationId "com.google.capillary.demo.android"
minSdkVersion 19
targetSdkVersion 27
versionCode 1
versionName "1.0"
multiDexEnabled true
}
sourceSets {
main {
proto {
srcDir project(':demo:common').projectDir.toString() + '/proto'
}
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'build-data.properties'
}
}
// Checkstyle doesn't run automatically with android
task checkstyleMain(type: Checkstyle) {
source "src/main/java"
include '**/*.java'
classpath = files()
}
check.dependsOn checkstyleMain
def grpcVersion = '1.7.0' // CURRENT_GRPC_VERSION
dependencies {
implementation project(':demo:common')
implementation 'com.google.capillary:lib-android:1.0.0'
implementation('com.google.crypto.tink:tink-android:1.1.0', {
exclude group: 'com.google.protobuf'
})
implementation 'com.android.support:appcompat-v7:27.1.1'
implementation 'com.android.support:support-v4:27.1.1'
implementation 'javax.annotation:javax.annotation-api:1.2'
implementation 'com.android.support.constraint:constraint-layout:1.1.0'
implementation 'com.google.protobuf:protobuf-java:3.4.0'
implementation "io.grpc:grpc-okhttp:${grpcVersion}"
implementation "io.grpc:grpc-protobuf:${grpcVersion}"
implementation "io.grpc:grpc-stub:${grpcVersion}"
implementation 'com.google.firebase:firebase-core:16.0.0'
implementation 'com.google.firebase:firebase-messaging:17.0.0'
implementation 'com.android.support:multidex:1.0.3'
implementation 'joda-time:joda-time:2.9.9'
androidTestImplementation 'com.android.support:multidex:1.0.3'
}
protobuf {
protoc {
artifact = 'com.google.protobuf:protoc:3.4.0'
}
plugins {
grpc {
artifact = "io.grpc:protoc-gen-grpc-java:${grpcVersion}"
}
}
generateProtoTasks {
all().each { task ->
task.builtins {
add java
}
}
all()*.plugins {
grpc {
option 'enable_deprecated=false'
}
}
}
}
apply plugin: 'com.google.gms.google-services'