Skip to content

Commit 295fb40

Browse files
authored
Merge branch 'master' into wuandy/FiltersOnSameField
2 parents 39af874 + e189eed commit 295fb40

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

encoders/README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,3 +121,28 @@ public class SimpleProto {
121121
public byte[] toByteArray();
122122
}
123123
```
124+
125+
### Annotation Processing on Kotlin
126+
127+
The default gradle `annotationProcessor` import doesn't run the processor over kotlin code, so we need to use `kapt`
128+
129+
1. Add the plugin to your build
130+
131+
```gradle
132+
plugins {
133+
id 'java-library'
134+
id 'com.google.protobuf'
135+
id 'kotlin-kapt'
136+
}
137+
```
138+
139+
2. Replace your `annotationProcessor` tag with `kapt`
140+
141+
```gradle
142+
dependencies {
143+
implementation project(":encoders:firebase-encoders")
144+
implementation project(":encoders:firebase-encoders-proto")
145+
// annotationProcessor project(":encoders:firebase-encoders-processor")
146+
kapt project(":encoders:firebase-encoders-processor")
147+
}
148+
```

0 commit comments

Comments
 (0)