File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -121,3 +121,28 @@ public class SimpleProto {
121
121
public byte [] toByteArray ();
122
122
}
123
123
```
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
+ ```
You can’t perform that action at this time.
0 commit comments