Skip to content

ADD THE ABILITY TO DISABLE THE JSR330 COMPATIBILITY #333

@AnandaAp

Description

@AnandaAp

Describe the bug
The latest version forced to included any dagger annotation without any ways to prevent it. All of existing injected Java class which didn't have any default constructor effected by koin module generated process on ksp build stage.

To Reproduce
Steps to reproduce the behavior:

  1. Implement latest koin annotation version on combined java-kotlin android project
  2. Had the dagger 1 or hilt for java-kotlin classes injection.
  3. Build the project
  4. See error due to generated hava class didnt have any default constructor, but the injection only on constructor with params. Example:
    Class A { @inject public A(SomeClass param) { ...} }

Expected behavior
Koin had the ability to whether disable the JSR330 compatibility or specify only kotlin classes

Koin project used and used version (please complete the following information):
Koin annotation 2.3.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions