Huy Tâm
01/22/2024, 8:46 AMHuy Tâm
01/22/2024, 8:54 AMAnimatedVisibility(showImage) *{*
Image(
painterResource("compose-multiplatform.xml"),
null
)
}
Djuro
01/22/2024, 10:55 AMpainterResource("action_back_white.svg")
or if compose-multiplatform.xml
is an image try moving it to MR/images/
directory, currently it is in MR/
directoryHuy Tâm
01/22/2024, 10:58 AMDjuro
01/22/2024, 11:02 AMmultiplatformResourcesClassName
?Huy Tâm
01/22/2024, 11:04 AMAnimatedVisibility(showImage) *{*
Image(
painterResource("compose-multiplatform.xml"),
null
)
}
is throw error that missing resources.Huy Tâm
01/22/2024, 11:05 AMDjuro
01/22/2024, 11:20 AMcompose-multiplatform.xml
to commonMain/resources/MR/images/
and change code to
Image( painterResources(MR.images.compose-multiplatform), null )
Huy Tâm
01/22/2024, 11:22 AMHuy Tâm
01/22/2024, 11:23 AMalex009
01/22/2024, 1:01 PMHuy Tâm
01/23/2024, 8:40 AM':shared:resources:copyFrameworkResourcesToApp' as task 'copyFrameworkResourcesToApp' not found in project ':shared:resources'.
moko 0.23.0 work fine.
My structure module resources:
• shared.
◦ resourcesHuy Tâm
01/23/2024, 8:40 AMHuy Tâm
01/23/2024, 8:43 AM# Type a script or drag a script file from your workspace to insert its path.
"$SRCROOT/../gradlew" -p "$SRCROOT/../" :shared:resources:copyFrameworkResourcesToApp \
-Pmoko.resources.BUILT_PRODUCTS_DIR="$BUILT_PRODUCTS_DIR" \
-Pmoko.resources.CONTENTS_FOLDER_PATH="$CONTENTS_FOLDER_PATH" \
-Pkotlin.native.cocoapods.platform="$PLATFORM_NAME" \
-Pkotlin.native.cocoapods.archs="$ARCHS" \
-Pkotlin.native.cocoapods.configuration="$CONFIGURATION"
Huy Tâm
01/23/2024, 8:44 AMHuy Tâm
01/23/2024, 9:14 AMYahor
01/23/2024, 10:56 AMalex009
01/23/2024, 12:37 PMHuy Tâm
01/24/2024, 2:31 AMalex009
01/25/2024, 3:11 AMalex009
01/25/2024, 3:14 AMHuy Tâm
01/25/2024, 3:35 AMHuy Tâm
02/15/2024, 6:34 AM0.24.0-alpha-4
but it’s not working in my case.
Compose resource might replaced by moko resource in ios/
Please use this sample. https://kotlinlang.slack.com/archives/CMC5LN42W/p1706001275518289?thread_ts=1705913203.842639&cid=CMC5LN42W
got error.
Uncaught Kotlin exception: org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: compose-multiplatform.xml
Konstantin Kolchurin
03/18/2024, 6:14 PMHuy Tâm
03/19/2024, 3:14 AM