This commit is contained in:
2025-07-19 00:49:47 +03:00
parent f213a11368
commit 91f6ce8288
98 changed files with 172 additions and 10556 deletions

View File

@ -1,23 +0,0 @@
@file:OptIn(InternalResourceApi::class)
package sclient.composeapp.generated.resources
import kotlin.OptIn
import kotlin.String
import kotlin.collections.MutableMap
import org.jetbrains.compose.resources.DrawableResource
import org.jetbrains.compose.resources.InternalResourceApi
import org.jetbrains.compose.resources.ResourceItem
private const val MD: String = "composeResources/sclient.composeapp.generated.resources/"
internal val Res.drawable.compose_multiplatform: DrawableResource by lazy {
DrawableResource("drawable:compose_multiplatform", setOf(
ResourceItem(setOf(), "${MD}drawable/compose-multiplatform.xml", -1, -1),
))
}
@InternalResourceApi
internal fun _collectCommonMainDrawable0Resources(map: MutableMap<String, DrawableResource>) {
map.put("compose_multiplatform", Res.drawable.compose_multiplatform)
}

View File

@ -1,19 +0,0 @@
package sclient.composeapp.generated.resources
import kotlin.String
import kotlin.collections.Map
import org.jetbrains.compose.resources.DrawableResource
import org.jetbrains.compose.resources.FontResource
import org.jetbrains.compose.resources.PluralStringResource
import org.jetbrains.compose.resources.StringArrayResource
import org.jetbrains.compose.resources.StringResource
internal expect val Res.allDrawableResources: Map<String, DrawableResource>
internal expect val Res.allStringResources: Map<String, StringResource>
internal expect val Res.allStringArrayResources: Map<String, StringArrayResource>
internal expect val Res.allPluralStringResources: Map<String, PluralStringResource>
internal expect val Res.allFontResources: Map<String, FontResource>

View File

@ -1,47 +0,0 @@
@file:OptIn(InternalResourceApi::class)
@file:Suppress(
"RedundantVisibilityModifier",
"REDUNDANT_VISIBILITY_MODIFIER",
)
package sclient.composeapp.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/sclient.composeapp.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/sclient.composeapp.generated.resources/" + path)
public object drawable
public object string
public object array
public object plurals
public object font
}

View File

@ -1,38 +0,0 @@
@file:OptIn(org.jetbrains.compose.resources.InternalResourceApi::class)
package sclient.composeapp.generated.resources
import kotlin.OptIn
import kotlin.String
import kotlin.collections.Map
import org.jetbrains.compose.resources.DrawableResource
import org.jetbrains.compose.resources.FontResource
import org.jetbrains.compose.resources.PluralStringResource
import org.jetbrains.compose.resources.StringArrayResource
import org.jetbrains.compose.resources.StringResource
internal actual val Res.allDrawableResources: Map<String, DrawableResource> by lazy {
val map = mutableMapOf<String, DrawableResource>()
_collectCommonMainDrawable0Resources(map)
return@lazy map
}
internal actual val Res.allStringResources: Map<String, StringResource> by lazy {
val map = mutableMapOf<String, StringResource>()
return@lazy map
}
internal actual val Res.allStringArrayResources: Map<String, StringArrayResource> by lazy {
val map = mutableMapOf<String, StringArrayResource>()
return@lazy map
}
internal actual val Res.allPluralStringResources: Map<String, PluralStringResource> by lazy {
val map = mutableMapOf<String, PluralStringResource>()
return@lazy map
}
internal actual val Res.allFontResources: Map<String, FontResource> by lazy {
val map = mutableMapOf<String, FontResource>()
return@lazy map
}

View File

@ -1,38 +0,0 @@
@file:OptIn(org.jetbrains.compose.resources.InternalResourceApi::class)
package sclient.composeapp.generated.resources
import kotlin.OptIn
import kotlin.String
import kotlin.collections.Map
import org.jetbrains.compose.resources.DrawableResource
import org.jetbrains.compose.resources.FontResource
import org.jetbrains.compose.resources.PluralStringResource
import org.jetbrains.compose.resources.StringArrayResource
import org.jetbrains.compose.resources.StringResource
internal actual val Res.allDrawableResources: Map<String, DrawableResource> by lazy {
val map = mutableMapOf<String, DrawableResource>()
_collectCommonMainDrawable0Resources(map)
return@lazy map
}
internal actual val Res.allStringResources: Map<String, StringResource> by lazy {
val map = mutableMapOf<String, StringResource>()
return@lazy map
}
internal actual val Res.allStringArrayResources: Map<String, StringArrayResource> by lazy {
val map = mutableMapOf<String, StringArrayResource>()
return@lazy map
}
internal actual val Res.allPluralStringResources: Map<String, PluralStringResource> by lazy {
val map = mutableMapOf<String, PluralStringResource>()
return@lazy map
}
internal actual val Res.allFontResources: Map<String, FontResource> by lazy {
val map = mutableMapOf<String, FontResource>()
return@lazy map
}