gmazzo/gradle-buildconfig-plugin

[Ktor] Imports issue

yaroslav-android opened this issue · 2 comments

Problem description

I've trying to use your lib with Ktor project. The issue that I faced is the import of files.

IDEA cannot see BuildConfig.TOKEN
image

Additional information

I've added it into gradle.build as buildConfigField("String", "TOKEN", "\"${token.app}\""). I am trying to call BuildConfig.TOKEN from Application class.

I've checked generated class BuildConfig and it looks good:

package test.test.test.test

import kotlin.String

object BuildConfig {
    const val TOKEN: String =  "token"
}

Hey, can you provide a small sample project to test it? I'm not a Ktor user

Closing it for now, if you have a sample project I can test on, I'll take a look. Regards