Revert "paparazzi: add note about Kotlin 1.7.0 compat [deploy]"

This workaround is too involved when you can just set `android.composeOptions.kotlinCompilerExtensionVersion`.

This reverts commit 157bfc1d8c.
This commit is contained in:
Harsh Shandilya 2022-07-09 19:13:58 +05:30
parent 7ddcd937a8
commit 1b98f90c3e
1 changed files with 0 additions and 20 deletions

View File

@ -122,26 +122,6 @@ class UserProfileTest {
}
```
### Upgrading to Kotlin 1.7.0 and beyond
As of writing, Paparazzi 1.0.0 ships with Compose Compiler 1.2.0-alpha05, which means it is only compatible with Kotlin 1.6.20 and nothing else. To work around this, you can add an explicit dependency to the newer Compose Compiler that supports the version of Kotlin you are using.
```toml
// gradle/libs.versions.toml
[libs]
androidx-compose-compiler = "androidx.compose.compiler:compiler:1.2.0"
```
```diff
// paparazzi-tests/build.gradle.kts
dependencies {
+ // Workaround for Paparazzi using an older Compose Compiler dependency
+ add("kotlinCompilerPluginClasspath", libs.androidx.compose.compiler)
testImplementation(kotlin("test-junit"))
testImplementation(libs.kotlinx.datetime)
testImplementation(libs.testparameterinjector)
```
[paparazzi]: https://github.com/cashapp/paparazzi
[compose]: https://d.android.com/jetpack/compose
[compose-jb]: https://github.com/jetbrains/compose-jb