13
13
// limitations under the License.
14
14
15
15
plugins {
16
- id ' firebase-library'
17
16
id ' com.google.protobuf'
18
- }
19
-
20
- configurations. create(" protobuild" )
21
- dependencies {
22
- protobuild project(path : " :encoders:protoc-gen-firebase-encoders" , configuration : " shadow" )
17
+ id ' firebase-library'
18
+ id ' kotlin-android'
23
19
}
24
20
25
21
protobuf {
22
+ dependencies {
23
+ // Include the project dependency directly
24
+ implementation project(' :encoders:protoc-gen-firebase-encoders' )
25
+ }
26
26
protoc {
27
27
artifact = " com.google.protobuf:protoc:$protocVersion "
28
28
}
29
29
plugins {
30
30
firebaseEncoders {
31
- path = configurations . protobuild . asPath
31
+ path = project( ' :encoders:protoc-gen-firebase-encoders ' ) . buildDir . path + ' /libs ' + ' /protoc-gen-firebase-encoders-all.jar '
32
32
}
33
33
}
34
34
generateProtoTasks {
35
+
35
36
all(). each { task ->
36
37
task. dependsOn configurations. protobuild
37
38
task. inputs. file ' code_gen_cfg.textproto'
@@ -42,7 +43,9 @@ protobuf {
42
43
}
43
44
task. builtins {
44
45
remove java
46
+ remove kotlin
45
47
}
48
+
46
49
}
47
50
}
48
51
}
@@ -75,67 +78,69 @@ android {
75
78
}
76
79
77
80
dependencies {
78
- implementation ' com.google.firebase:firebase-common:20.3.1'
79
- implementation ' com.google.firebase:firebase-components:17.1.0'
80
- implementation ' com.google.firebase:firebase-installations-interop:17.1.0'
81
- implementation ' com.google.firebase:firebase-datatransport:18.1.7'
82
- implementation ' com.google.android.datatransport:transport-api:3.0.0'
83
- implementation ' com.google.android.datatransport:transport-runtime:3.1.8'
84
- implementation ' com.google.android.datatransport:transport-backend-cct:3.1.8'
85
- implementation ' com.google.firebase:firebase-encoders:17.0.0'
86
- implementation ' com.google.firebase:firebase-encoders-json:18.0.0'
87
- implementation " com.google.firebase:firebase-encoders-proto:16.0.0"
88
- implementation " com.google.firebase:firebase-installations:17.1.3"
81
+ androidTestImplementation " androidx.annotation:annotation:1.0.0"
82
+ androidTestImplementation " androidx.test.ext:junit:$androidxTestJUnitVersion "
83
+ androidTestImplementation " com.google.truth:truth:$googleTruthVersion "
84
+ androidTestImplementation ' androidx.test:runner:1.2.0'
85
+ androidTestImplementation ' junit:junit:4.12'
86
+ androidTestImplementation ' org.mockito:mockito-core:2.25.0'
87
+ androidTestImplementation ' org.mockito:mockito-inline:2.25.0'
88
+ androidTestImplementation project(' :integ-testing' )
89
89
annotationProcessor project(" :encoders:firebase-encoders-processor" )
90
-
91
- implementation ' androidx.annotation:annotation:1.2.0'
92
- implementation " com.google.android.gms:play-services-tasks:18.0.1"
93
90
implementation " com.google.android.gms:play-services-basement:18.1.0"
94
- implementation ' com.google.android.gms:play-services-base :18.0.1'
95
- implementation ' com.google.android.gms:play-services-stats:17.0.2 '
96
- implementation ' com.google.firebase:firebase-measurement-connector:19 .0.0'
91
+ implementation " com.google.android.gms:play-services-tasks :18.0.1"
92
+ implementation " com.google.errorprone:error_prone_annotations:2.9.0 "
93
+ implementation " com.google.firebase:firebase-encoders-proto:16 .0.0"
97
94
implementation " com.google.firebase:firebase-iid-interop:17.1.0"
95
+ implementation " org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion "
96
+ implementation ' androidx.annotation:annotation:1.2.0'
97
+ implementation ' com.google.android.datatransport:transport-api:3.0.0'
98
+ implementation ' com.google.android.datatransport:transport-backend-cct:3.1.8'
99
+ implementation ' com.google.android.datatransport:transport-runtime:3.1.8'
100
+ implementation ' com.google.android.gms:play-services-base:18.0.1'
98
101
implementation ' com.google.android.gms:play-services-cloud-messaging:17.0.1'
99
- implementation " com.google.errorprone:error_prone_annotations:2.9.0"
100
- testImplementation (" com.google.api-client:google-api-client:1.30.9" ) {
101
- exclude group : " org.apache.httpcomponents" , module : " httpclient"
102
+ implementation ' com.google.android.gms:play-services-stats:17.0.2'
103
+ implementation(' com.google.firebase:firebase-datatransport:18.1.7' ) {
104
+ exclude group : ' com.google.firebase' , module : ' firebase-common'
105
+ exclude group : ' com.google.firebase' , module : ' firebase-components'
106
+ }
107
+ implementation ' com.google.firebase:firebase-encoders-json:18.0.0'
108
+ implementation ' com.google.firebase:firebase-encoders:17.0.0'
109
+ implementation(' com.google.firebase:firebase-installations-interop:17.1.0' )
110
+ implementation(' com.google.firebase:firebase-measurement-connector:19.0.0' )
111
+ implementation(project(" :firebase-common" ))
112
+ implementation(project(" :firebase-components" ))
113
+ implementation(project(" :firebase-installations" )) {
114
+ exclude group : ' com.google.firebase' , module : ' firebase-common'
115
+ exclude group : ' com.google.firebase' , module : ' firebase-components'
102
116
}
103
- testCompileOnly ' com.google.auto.value:auto-value-annotations:1.6.3'
104
- testAnnotationProcessor " com.google.auto.value:auto-value:1.6.3"
105
-
106
117
javadocClasspath ' com.google.auto.value:auto-value-annotations:1.6.6'
107
-
118
+ testAnnotationProcessor " com.google.auto.value:auto-value:1.6.3"
119
+ testCompileOnly ' com.google.auto.value:auto-value-annotations:1.6.3'
108
120
testImplementation " androidx.test:core:$androidxTestCoreVersion "
109
- testImplementation ' com.google.android.gms:play-services-cloud-messaging:17.0.1'
121
+ testImplementation " com.google.truth:truth:$googleTruthVersion "
122
+ testImplementation " org.robolectric:robolectric:$robolectricVersion "
123
+ testImplementation ' androidx.core:core:1.6.0'
124
+ testImplementation ' androidx.test.espresso:espresso-intents:3.2.0'
125
+ testImplementation ' androidx.test.ext:truth:1.4.0'
126
+ testImplementation ' androidx.test.services:test-services:1.2.0'
110
127
testImplementation ' androidx.test:rules:1.2.0'
111
128
testImplementation ' androidx.test:runner:1.2.0'
112
- testImplementation " org.robolectric:robolectric:$robolectricVersion "
129
+ testImplementation ' com.android.support.test:runner:1.0.2'
130
+ testImplementation ' com.fasterxml.jackson.core:jackson-databind:2.9.8'
131
+ testImplementation ' com.google.android.gms:play-services-cloud-messaging:17.0.1'
132
+ testImplementation ' com.google.android.gms:play-services-vision:20.1.3'
133
+ testImplementation ' com.google.guava:guava-testlib:12.0-rc2'
134
+ testImplementation ' junit:junit:4.12'
113
135
testImplementation ' junit:junit:4.13-beta-2'
114
136
testImplementation ' org.mockito:mockito-core:2.25.0'
115
- testImplementation " com.google.truth:truth:$googleTruthVersion "
116
- testImplementation ' com.google.android.gms:play-services-vision:20.1.3'
137
+ testImplementation (" com.google.api-client:google-api-client:1.30.9" ) {
138
+ exclude group : " org.apache.httpcomponents" , module : " httpclient"
139
+ }
117
140
testImplementation (" com.google.firebase:firebase-iid:21.1.0" ) {
118
141
exclude group : " com.google.firebase" , module : " firebase-common"
119
142
exclude group : " com.google.firebase" , module : " firebase-components"
120
143
exclude group : " com.google.firebase" , module : " firebase-installations-interop"
121
144
exclude group : " com.google.firebase" , module : " firebase-installations"
122
145
}
123
-
124
- testImplementation ' com.android.support.test:runner:1.0.2'
125
- testImplementation ' com.fasterxml.jackson.core:jackson-databind:2.9.8'
126
- testImplementation ' com.google.guava:guava-testlib:12.0-rc2'
127
- testImplementation ' androidx.test.espresso:espresso-intents:3.2.0'
128
- testImplementation ' androidx.test:rules:1.2.0'
129
- testImplementation ' androidx.test.ext:truth:1.4.0'
130
- testImplementation ' androidx.test.services:test-services:1.2.0'
131
- testImplementation ' androidx.core:core:1.6.0'
132
-
133
- androidTestImplementation project(' :integ-testing' )
134
- androidTestImplementation " androidx.test.ext:junit:$androidxTestJUnitVersion "
135
- androidTestImplementation ' androidx.test:runner:1.2.0'
136
- androidTestImplementation " com.google.truth:truth:$googleTruthVersion "
137
- androidTestImplementation ' junit:junit:4.12'
138
- androidTestImplementation " androidx.annotation:annotation:1.0.0"
139
- androidTestImplementation ' org.mockito:mockito-core:2.25.0'
140
- androidTestImplementation ' org.mockito:mockito-inline:2.25.0'
141
- }
146
+ }
0 commit comments