Skip to content

Commit

Permalink
fix hidden library dependency (alpha4 fails on attempt to add api dep…
Browse files Browse the repository at this point in the history
…endency to androidTest configuration)
  • Loading branch information
sergeshustoff committed Feb 19, 2023
1 parent f7a867b commit 188cae9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 8 deletions.
14 changes: 11 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Because library uses undocumented compiler api that often changes each library v

| DI.kt version | Supported kotlin versions |
|---------------|----------------------------------|
| 1.1.0-alpha4 | 1.8.0 - 1.8.10 (k2 with new api) |
| 1.1.0-alpha5 | 1.8.0 - 1.8.10 (k2 with new api) |
| 1.0.3 | 1.8.0 - 1.8.10 (k2 with hacks) |
| 1.0.2 | 1.7.0 - 1.7.21 |
| 1.0.1 | 1.6.2x |
Expand All @@ -54,7 +54,15 @@ In build.gradle file in module add plugin:
```groovy
plugins {
...
id 'io.github.sergeshustoff.dikt' version '1.1.0-alpha4'
id 'io.github.sergeshustoff.dikt' version '1.1.0-alpha5'
}
```

Or use this if you only need base api without code generation (Injectable and InjectableSingleInScope interfaces):

```groovy
dependencies {
implementation "io.github.sergeshustoff.dikt:dikt:1.1.0-alpha5"
}
```

Expand Down Expand Up @@ -144,7 +152,7 @@ This interface can be used in project without dikt compiler plugin:

```groovy
dependencies {
implementation 'io.github.sergeshustoff.dikt:dikt:1.1.0-alpha4'
implementation 'io.github.sergeshustoff.dikt:dikt:1.1.0-alpha5'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ class DiktGradlePlugin : KotlinCompilerPluginSupportPlugin {
target.afterEvaluate { project ->
project.configurations.filter { it.name.endsWith("implementation", ignoreCase = true) }.forEach {
project.dependencies.add(it.name, project.dependencies.create("io.github.sergeshustoff.dikt:dikt-internal:$version"))
}
project.configurations.filter { it.name.endsWith("api", ignoreCase = true) }.forEach {
project.dependencies.add(it.name, project.dependencies.create("io.github.sergeshustoff.dikt:dikt:$version"))
}
}
Expand All @@ -40,7 +38,7 @@ class DiktGradlePlugin : KotlinCompilerPluginSupportPlugin {
}

companion object {
private const val version = "1.1.0-alpha4"
private const val version = "1.1.0-alpha5"
}
}

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ org.gradle.jvmargs=-Xmx3g
kotlin_version=1.8.10

# don't forget to update DiktGradlePlugin
dikt_version=1.1.0-alpha4
VERSION_NAME=1.1.0-alpha4
dikt_version=1.1.0-alpha5
VERSION_NAME=1.1.0-alpha5
dikt_sample_version=1.1.0-alpha4

GROUP=io.github.sergeshustoff.dikt
Expand Down

0 comments on commit 188cae9

Please sign in to comment.