Skip to content

Commit 3d63a89

Browse files
authored
Merge pull request #53 from ZeyadAbdullah679/patch-1
Revise README for plugin setup instructions
2 parents 5963c71 + 4de8c3b commit 3d63a89

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,24 @@ This is incredibly useful for:
136136

137137
[![Maven Central](https://img.shields.io/maven-central/v/com.github.skydoves/compose-stability-runtime.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22com.github.skydoves%22%20AND%20a:%compose-stability-runtime%22)
138138

139-
Add the dependency below to your `libs.versions.toml` file:
139+
First, add the plugin to the `[plugins]` section of your `libs.versions.toml` file:
140140

141141
```toml
142142
stability-analyzer = { id = "com.github.skydoves.compose.stability.analyzer", version = "0.5.2" }
143143
```
144144

145-
Next, apply the plugin on your root's `build.gradle.kts` file like below:
145+
Then, apply it to your root `build.gradle.kts` with `apply false`:
146+
147+
```kotlin
148+
alias(libs.plugins.stability.analyzer) apply false
149+
```
150+
151+
Finally, apply the plugin to your app or shared module's `build.gradle.kts`:
146152

147153
```kotlin
148154
alias(libs.plugins.stability.analyzer)
149155
```
156+
Sync your project to complete the setup.
150157

151158
### Kotlin Version Mapping
152159

0 commit comments

Comments
 (0)