Skip to content

Commit

Permalink
ksp migration
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Feb 27, 2024
1 parent dce9435 commit 05ce0de
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Kotlin/ksp-migration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Migrating to KSP

## How kapt and ksp differ?

### Incremental processing
When writing content to a file during processing with ksp, it is necessary to define output mode.

**Aggregating** means that almost any change in the codebase will consider the input as dirty, (meaning, that the processor needs to run again).
**Isolating** means that only changes to the specified files will make input dirty.

### Multiple rounds
ksp executes multiple rounds of processing to make sure all symbols it visits are validated. It’s a useful mechanism if our annotation processing depends on other annotation processors.

PR that migrated WordPress-Android internal processor from kapt to ksp: https://github.com/wordpress-mobile/WordPress-Android/pull/20217

0 comments on commit 05ce0de

Please sign in to comment.