diff --git a/android/app/build.gradle.kts b/android/app/build.gradle.kts index bfc7e3445b..16bbfdbb8f 100644 --- a/android/app/build.gradle.kts +++ b/android/app/build.gradle.kts @@ -208,6 +208,8 @@ val syncRoomSchemaSnapshot = tasks.register("syncRoomSchemaSnapshot") { // variant's KSP round writes byte-identical JSON. Depending on all of them would make a single // `testFullDebugUnitTest` run four KSP rounds instead of one. dependsOn(tasks.matching { it.name == "kspFullDebugKotlin" }) + // Unit-test KSP can clear the snapshot after Sync has copied it; order Sync after those tasks. + mustRunAfter(tasks.matching { it.name.startsWith("ksp") && it.name.contains("UnitTest") }) } tasks.withType().configureEach {