Skip to content

Commit 8164b21

Browse files
use of custom generated path in example-cmp
1 parent 5c7a502 commit 8164b21

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

docs/reference/koin-annotations/modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@ class SimpleApp
146146
:::
147147

148148

149-
## Default Module (Deprecated since Annotations 2.2)
149+
## Default Module (Deprecated since 1.3.0)
150150

151151
:::warning
152-
The default module approach is deprecated since Annotations 2.2. We recommend using explicit modules with `@Module` and `@Configuration` annotations for better organization and clarity.
152+
The default module approach is deprecated since Annotations 1.3.0. We recommend using explicit modules with `@Module` and `@Configuration` annotations for better organization and clarity.
153153
:::
154154

155155
While using definitions, you may need to organize them in modules or not. Previously, you could use the "default" generated module to host definitions without explicit modules.

docs/reference/koin-annotations/options.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ The Koin Annotations KSP processor supports several configuration options that c
2121
### KOIN_DEFAULT_MODULE
2222
- **Type**: Boolean
2323
- **Default**: `false`
24-
- **Status**: ⚠️ **Deprecated**
25-
- **Description**: Automatically generates a default module if no explicit module is found for a given definition. **This option is deprecated and discouraged.** Instead, use the `@Configuration` annotation and `@KoinApplication` to bootstrap your application automatically.
24+
- **Status**: ⚠️ **Deprecated since 1.3.0**
25+
- **Description**: Automatically generates a default module if no explicit module is found for a given definition. **This option is deprecated since Annotations 1.3.0 and discouraged.** Instead, use the `@Configuration` annotation and `@KoinApplication` to bootstrap your application automatically.
2626
- **Usage**: Avoid using this option. Prefer explicit module organization with `@Configuration` and `@KoinApplication` for better code clarity and maintainability.
2727

2828
### KOIN_GENERATION_PACKAGE

docs/reference/koin-annotations/start.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class MyPresenter(@Provided val provided : MyProvidedComponent)
111111
### Default Module (Deprecated since 1.3.0)
112112

113113
:::warning
114-
The default module approach is deprecated since Annotations 1.3. We recommend using explicit modules with `@Module` and `@Configuration` annotations for better organization and clarity.
114+
The default module approach is deprecated since Annotations 1.3.0. We recommend using explicit modules with `@Module` and `@Configuration` annotations for better organization and clarity.
115115
:::
116116

117117
Previously, the Koin compiler would detect any definition not bound to a module and put it in a "default module". This approach is now deprecated in favor of using `@Configuration` and `@KoinApplication` annotations.

docs/setup/annotations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Here are the currently available Koin Annotations versions:
1515

1616
## KSP Plugin
1717

18-
We need the KSP Plugin to work (https://github.com/google/ksp). Follow the official [KSP Setup documentation](https://kotlinlang.org/docs/ksp-quickstart.html).
18+
We need the [Google KSP](https://github.com/google/ksp) to work. Follow the official [KSP Setup documentation](https://kotlinlang.org/docs/ksp-quickstart.html).
1919

2020
Just add the Gradle plugin:
2121
```kotlin

example-cmp/composeApp/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ tasks.matching { it.name.startsWith("ksp") && it.name != "kspCommonMainKotlinMet
9898
ksp {
9999
arg("KOIN_CONFIG_CHECK","true")
100100
arg("KOIN_LOG_TIMES","true")
101+
arg("KOIN_GENERATION_PACKAGE","com.jetbrains.generated")
101102
}
102103

103104
allOpen {

example-cmp/composeApp/src/commonMain/kotlin/com/jetbrains/kmpapp/di/Koin.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import com.jetbrains.kmpapp.native.PlatformComponentA
44
import com.jetbrains.kmpapp.native.PlatformComponentB
55
import com.jetbrains.kmpapp.native.PlatformComponentD2
66
import io.kotzilla.sdk.analytics.koin.analytics
7+
import io.kotzilla.sdk.config.Environment
78
import org.koin.core.annotation.KoinApplication
89
import org.koin.dsl.KoinAppDeclaration
910
import org.koin.dsl.includes
10-
import org.koin.ksp.generated.*
11+
import com.jetbrains.generated.*
12+
//import org.koin.ksp.generated.*
1113
import org.koin.mp.KoinPlatform
1214

1315
@KoinApplication

example-cmp/data/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@ tasks.matching { it.name.startsWith("ksp") && it.name != "kspCommonMainKotlinMet
6767
ksp {
6868
arg("KOIN_CONFIG_CHECK","true")
6969
arg("KOIN_LOG_TIMES","true")
70+
arg("KOIN_GENERATION_PACKAGE","com.jetbrains.generated")
7071
}
7172

7273
android {

0 commit comments

Comments
 (0)