You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add experimental support for incremental annotation processing in mini-processor (#13)
* Add experimental support for incremental annotation processing in mini-processor
* Update mini-processor/build.gradle
* Apply suggestions from code review
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -202,6 +202,31 @@ dependencies {
202
202
}
203
203
```
204
204
205
+
### Recommended settings
206
+
#### JDK8 requirements
207
+
Ensure that your project has compatibility with Java 8:
208
+
```groovy
209
+
android {
210
+
compileOptions {
211
+
sourceCompatibility = JavaVersion.VERSION_1_8
212
+
targetCompatibility = JavaVersion.VERSION_1_8
213
+
}
214
+
215
+
kotlinOptions {
216
+
jvmTarget = "1.8"
217
+
}
218
+
}
219
+
```
220
+
#### Improve compilation speed
221
+
In order to speed up the compilation process, it is recommended to add the following settings in
222
+
your `gradle.properties`:
223
+
```groovy
224
+
## Improves kapt speed with parallel annotation processing tasks, may impact in memory usage
225
+
kapt.use.worker.api=true
226
+
## Enables Gradle build cache
227
+
org.gradle.caching=true
228
+
```
229
+
205
230
### \[Android] Setting up your App file
206
231
207
232
You'll need to add the following snippet to your `Application`'s `onCreate` method. If you don't have it, then create it and reference it in your `AndroidManifest.xml` file:
0 commit comments