Skip to content

Android: AndroidBuildConfig issues #6141

@souvlakias

Description

@souvlakias

While migrating Jetcaster, core.data module does not compile

[1-129/130] Jetcaster.core.data.compile.super.kotlinlib.KotlinModule
[1-129] Compiling 26 Kotlin sources and reading 19 Java sources to /home/styl/projects/sample-apps/compose-samples-with-mill/out/Jetcaster/core/data/compile.super/kotlinlib/KotlinModule.dest/classes ...
[1-129] e: e: file:///home/styl/projects/sample-apps/compose-samples-with-mill/Jetcaster/core/data/src/main/java/com/example/jetcaster/core/data/di/DataDiModule.kt:22:40 Unresolved reference 'BuildConfig'.

This happens because the source file imports import com.example.jetcaster.core.data.BuildConfig and our generated BuildConfig does not declare a package name so the import fails.

EDIT:
Also noticed that our current implementation of BuildConfig extends AndroidAppModule. This shouldn't be the case as normal modules could have it as well.

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