Skip to content

Commit

Permalink
missed one suspend function
Browse files Browse the repository at this point in the history
  • Loading branch information
vpodlesnyak committed Nov 14, 2024
1 parent 7a74666 commit 96fa7c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions resources/api/resources.api
Original file line number Diff line number Diff line change
Expand Up @@ -583,8 +583,8 @@ public class com/splendo/kaluga/resources/RGBColorSerializer : kotlinx/serializa
public final class com/splendo/kaluga/resources/ResourcesKt {
public static final fun asColor (Ljava/lang/String;Lcom/splendo/kaluga/resources/KalugaColorLoader;Lcom/splendo/kaluga/resources/KalugaColor;)Lcom/splendo/kaluga/resources/KalugaColor;
public static synthetic fun asColor$default (Ljava/lang/String;Lcom/splendo/kaluga/resources/KalugaColorLoader;Lcom/splendo/kaluga/resources/KalugaColor;ILjava/lang/Object;)Lcom/splendo/kaluga/resources/KalugaColor;
public static final fun asFont (Ljava/lang/String;Lcom/splendo/kaluga/resources/FontLoader;Landroid/graphics/Typeface;Lkotlin/coroutines/Continuation;)Ljava/lang/Object;
public static synthetic fun asFont$default (Ljava/lang/String;Lcom/splendo/kaluga/resources/FontLoader;Landroid/graphics/Typeface;Lkotlin/coroutines/Continuation;ILjava/lang/Object;)Ljava/lang/Object;
public static final fun asFont (Ljava/lang/String;Lcom/splendo/kaluga/resources/FontLoader;Landroid/graphics/Typeface;)Landroid/graphics/Typeface;
public static synthetic fun asFont$default (Ljava/lang/String;Lcom/splendo/kaluga/resources/FontLoader;Landroid/graphics/Typeface;ILjava/lang/Object;)Landroid/graphics/Typeface;
public static final fun asImage (Ljava/lang/String;Lcom/splendo/kaluga/resources/ImageLoader;Lcom/splendo/kaluga/resources/KalugaImage;)Lcom/splendo/kaluga/resources/KalugaImage;
public static synthetic fun asImage$default (Ljava/lang/String;Lcom/splendo/kaluga/resources/ImageLoader;Lcom/splendo/kaluga/resources/KalugaImage;ILjava/lang/Object;)Lcom/splendo/kaluga/resources/KalugaImage;
public static final fun localized (Ljava/lang/String;Lcom/splendo/kaluga/resources/StringLoader;Ljava/lang/String;)Ljava/lang/String;
Expand Down
2 changes: 1 addition & 1 deletion resources/src/commonMain/kotlin/Resources.kt
Original file line number Diff line number Diff line change
Expand Up @@ -149,4 +149,4 @@ fun String.asImage(imageLoader: ImageLoader = DefaultImageLoader(), defaultValue
* @param defaultValue The [KalugaFont] to return if no match was found for the identifier. Defaults to `null`.
* @return The [KalugaFont] associated with the identifier represented by this String, or [defaultValue] if no such [KalugaFont] could be found.
*/
suspend fun String.asFont(fontLoader: FontLoader = DefaultFontLoader(), defaultValue: KalugaFont? = null): KalugaFont? = fontLoader.loadFont(this, defaultValue)
fun String.asFont(fontLoader: FontLoader = DefaultFontLoader(), defaultValue: KalugaFont? = null): KalugaFont? = fontLoader.loadFont(this, defaultValue)

0 comments on commit 96fa7c4

Please sign in to comment.