-
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9dd5d8e
commit ac60904
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
...build/generated/compose/resourceGenerator/kotlin/movies/shared/generated/resources/Res.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@file:OptIn( | ||
org.jetbrains.compose.resources.InternalResourceApi::class, | ||
org.jetbrains.compose.resources.ExperimentalResourceApi::class, | ||
) | ||
|
||
package movies.shared.generated.resources | ||
|
||
import org.jetbrains.compose.resources.ExperimentalResourceApi | ||
import org.jetbrains.compose.resources.readResourceBytes | ||
|
||
@ExperimentalResourceApi | ||
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(path) | ||
|
||
public object drawable | ||
|
||
public object string | ||
|
||
public object font | ||
} |