Open sebastienrouif opened 9 months ago
3.5.0 ContextUtillsKt
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package io.github.kakaocup.kakao.common.utilities
public fun getResourceColor(@androidx.annotation.ColorRes resId: kotlin.Int): kotlin.Int { /* compiled code */ }
public fun getResourceDrawable(@androidx.annotation.DrawableRes resId: kotlin.Int): android.graphics.drawable.Drawable? { /* compiled code */ }
public fun getResourceString(@androidx.annotation.StringRes resId: kotlin.Int): kotlin.String { /* compiled code */ }
@sebastienrouif thanks for reporting. Will try to fix in the next release
Looks like issue related for Gradle configuration when functions declared without explicit classes
ContextUtills.kt
...
fun getResourceDrawable(@DrawableRes resId: Int) =
ContextCompat.getDrawable(InstrumentationRegistry.getInstrumentation().targetContext, resId)
...
Classes not found
However if
...
object ContextUtils {
...
fun getResourceDrawable(@DrawableRes resId: Int) =
ContextCompat.getDrawable(InstrumentationRegistry.getInstrumentation().targetContext, resId)
...
}
All works as expected
Steps to reproduce:
getResourceDrawable
it will buildObserved Results:
function is not found
Expected Results:
function should be accessible, visibility hasn't changed
Relevant Code:
PR with reproduction on Sample App