Current scope: MoneySurfer| all classes
|
com.georgeci.moneysurfer.feature.account.generated.resources
Coverage Summary for Class: Res (com.georgeci.moneysurfer.feature.account.generated.resources)
| Class | Method, % | Branch, % | Line, % | Instruction, % |
|---|---|---|---|---|
| Res | 0% (0/2) | 0% (0/2) | 0% (0/7) | |
| Res$array | 100% (1/1) | 100% (1/1) | 100% (2/2) | |
| Res$drawable | 0% (0/1) | 0% (0/1) | 0% (0/2) | |
| Res$font | 0% (0/1) | 0% (0/1) | 0% (0/2) | |
| Res$plurals | 100% (1/1) | 100% (1/1) | 100% (2/2) | |
| Res$string | 100% (1/1) | 100% (1/1) | 100% (2/2) | |
| Total | 42.9% (3/7) | 42.9% (3/7) | 35.3% (6/17) |
@file:OptIn(InternalResourceApi::class)
@file:Suppress(
"RedundantVisibilityModifier",
"REDUNDANT_VISIBILITY_MODIFIER",
)
package com.georgeci.moneysurfer.feature.account.generated.resources
import kotlin.ByteArray
import kotlin.OptIn
import kotlin.String
import kotlin.Suppress
import org.jetbrains.compose.resources.InternalResourceApi
import org.jetbrains.compose.resources.getResourceUri
import org.jetbrains.compose.resources.readResourceBytes
internal object Res {
/**
* Reads the content of the resource file at the specified path and returns it as a byte array.
*
* Example: `val bytes = Res.readBytes("files/key.bin")`
*
* @param path The path of the file to read in the compose resource's directory.
* @return The content of the file as a byte array.
*/
public suspend fun readBytes(path: String): ByteArray = readResourceBytes("composeResources/com.georgeci.moneysurfer.feature.account.generated.resources/" + path)
/**
* Returns the URI string of the resource file at the specified path.
*
* Example: `val uri = Res.getUri("files/key.bin")`
*
* @param path The path of the file in the compose resource's directory.
* @return The URI string of the file.
*/
public fun getUri(path: String): String = getResourceUri("composeResources/com.georgeci.moneysurfer.feature.account.generated.resources/" + path)
public object drawable
public object string
public object array
public object plurals
public object font
}