InsertKoinIO / koin-annotations

Koin Annotations - About Koin - a pragmatic lightweight dependency injection framework for Kotlin & Kotlin Multiplatform insert-koin.io
https://insert-koin.io
Apache License 2.0
163 stars 44 forks source link

Can't auto generate classes for India package (in.example.app) #155

Closed SidharthMudgil closed 2 months ago

SidharthMudgil commented 3 months ago

Describe the bug I'll take the @Factory annotation as an example. For any app that has a package name which starts with "in.", the @Factory annotations (and pretty much every annotation) won't work. The auto generated file Default.kt will not find the package name because "in" is Special Keyword.

To Reproduce Steps to reproduce the behavior:

  1. Create a project with "in.example.app" as package name
  2. Create a class with the @Factory annotation
  3. Build

    Expected behavior Build succeed

    Fix Just declare a different name in the auto generated variable instead of use the default Kotlin in name.

Koin project used and used version (please complete the following information): koin version 3.4.0 1.4.0-RC3

Similar to #110

arnaudgiuliani commented 2 months ago

same problem as https://github.com/InsertKoinIO/koin-annotations/issues/161

arnaudgiuliani commented 2 months ago

fixed in #1.4.0