kmp init
This commit is contained in:
@ -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)
|
||||
}
|
||||
@ -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>
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
@ -1,44 +0,0 @@
|
||||
<vector
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="450dp"
|
||||
android:height="450dp"
|
||||
android:viewportWidth="64"
|
||||
android:viewportHeight="64">
|
||||
<path
|
||||
android:pathData="M56.25,18V46L32,60 7.75,46V18L32,4Z"
|
||||
android:fillColor="#6075f2"/>
|
||||
<path
|
||||
android:pathData="m41.5,26.5v11L32,43V60L56.25,46V18Z"
|
||||
android:fillColor="#6b57ff"/>
|
||||
<path
|
||||
android:pathData="m32,43 l-9.5,-5.5v-11L7.75,18V46L32,60Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:centerX="23.131"
|
||||
android:centerY="18.441"
|
||||
android:gradientRadius="42.132"
|
||||
android:type="radial">
|
||||
<item android:offset="0" android:color="#FF5383EC"/>
|
||||
<item android:offset="0.867" android:color="#FF7F52FF"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="M22.5,26.5 L32,21 41.5,26.5 56.25,18 32,4 7.75,18Z">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:startX="44.172"
|
||||
android:startY="4.377"
|
||||
android:endX="17.973"
|
||||
android:endY="34.035"
|
||||
android:type="linear">
|
||||
<item android:offset="0" android:color="#FF33C3FF"/>
|
||||
<item android:offset="0.878" android:color="#FF5383EC"/>
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:pathData="m32,21 l9.526,5.5v11L32,43 22.474,37.5v-11z"
|
||||
android:fillColor="#000000"/>
|
||||
</vector>
|
||||
Reference in New Issue
Block a user