FaN
05/08/2024, 4:12 PMFaN
05/08/2024, 4:13 PMFaN
05/08/2024, 4:13 PMFaN
05/08/2024, 4:14 PMFaN
05/09/2024, 6:18 PMFaN
05/09/2024, 6:19 PMFaN
05/09/2024, 6:20 PMFaN
05/09/2024, 6:38 PMSuresh Maidaragi
05/14/2024, 12:22 PM.html file
post updating moko resource library to 0.24.0-beta-3. and we are able to render other files except .html file
Lee Wilson
05/17/2024, 9:52 AMFatal Exception: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at androidx.fragment.app.FragmentManager.checkStateLoss(FragmentManager.java:1632)
at androidx.fragment.app.FragmentManager.enqueueAction(FragmentManager.java:1672)
at androidx.fragment.app.BackStackRecord.commitInternal(BackStackRecord.java:341)
at androidx.fragment.app.BackStackRecord.commit(BackStackRecord.java:306)
at dev.icerock.moko.permissions.PermissionsControllerImpl.getOrCreateResolverFragment(PermissionsControllerImpl.kt:124)
at dev.icerock.moko.permissions.PermissionsControllerImpl.getPermissionState(PermissionsControllerImpl.kt:90)
at dev.icerock.moko.permissions.PermissionsControllerImpl.isPermissionGranted(PermissionsControllerImpl.kt:66)
Has anyone encountered this one before? This is using lib version 0.16.0, Android 14.Giorgi
05/21/2024, 4:25 PMBlaž Vantur
06/04/2024, 2:16 PMGeorge Karpenko
06/05/2024, 11:22 AMmoko-resources:0.24.0-beta-4
and kotlin 1.9.23
. I've copied moko-resources manually via task:
./gradlew shared:copyResourcesSharedReleaseXCFrameworkToApp \
-Pmoko.resources.BUILT_PRODUCTS_DIR="$BUILT_PRODUCTS_DIR" \
-Pmoko.resources.CONTENTS_FOLDER_PATH="$CONTENTS_FOLDER_PATH"
And everything worked fine there.
Now i'm upgrading to kotlin 2.0.0
and latest moko-resources:0.24.0-beta-5
with already added configureCopyXCFrameworkResources("shared")
instead of custom script. But after linkReleaseFrameworkIosArm64
succeeded i do my custom copyXCFramework
which is:
fun Task.copyXCFramework(projectName: String) {
val buildPathRelease =
"build/bin/ios${if (isIosSimulator()) "Simulator" else ""}Arm64/releaseFramework/$projectName.framework"
val iosXCBinaryPath = "../iosApp/Libraries/$projectName.xcframework"
project.delete(iosXCBinaryPath)
project.copy {
from(buildPathRelease)
into(iosXCBinaryPath)
}
}
so on this stage i'm not able to copy moko files, because it fails on:
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring project ':shared'.
> Could not create task ':shared:copyXCFramework'.
> Cannot convert URL 'sts-client.shared:localization.bundle' to a file.
Can you help me with this without repro?khalid64927
06/29/2024, 12:20 PMJazmine Barroga
07/18/2024, 1:58 PMShakhzod Ilkhomov
07/25/2024, 5:59 AM// bind tracker to lifecycle
viewModel.locationTracker.bind(lifecycle, this, supportFragmentManager)
I don't know how to bind this locationTracker as I don't have supportFragmentManager in my project..(Vladimir Malykhin
07/26/2024, 7:29 AMmediaPickerController.pickImage(MediaSource.CAMERA)
when I make photo and come back to screen, I can not receive Bitmap and have a problem with screen composition ^ for example - main top app bar relocate to up to place system tip app bar and not answered of click back action
I use next version moko
moko.permissions.version = 0.17.0
moko.media.version = 0.11.0
Antonis Radz
10/16/2024, 9:42 AMMuaz KADAN
10/22/2024, 8:23 AMMuaz KADAN
10/24/2024, 2:13 PMMoko-resources has out of box implementation function for read text files from common code - readText()
But when I try to access readText()
I can't find it
am I missing something ?Patrick Cavanagh
10/28/2024, 4:04 PMMuaz KADAN
11/08/2024, 9:33 AMHarshad Pawar
11/08/2024, 1:50 PMHarshad Pawar
11/14/2024, 6:03 AMcom.google.accompanist:accompanist-permissions
is Moko is also using this library under the hood for remember permission state and permission resultMatija Sokol
12/04/2024, 9:43 AMimport org.jetbrains.kotlin.gradle.plugin.attributes.KlibPackaging
val resolvableConfiguration = configurations.resolvable("resolvable") {
attributes.attribute(KlibPackaging.ATTRIBUTE, project.objects.named(KlibPackaging.PACKED))
}
But, if I run this my issue is still here. Exactly, problem is this. For reference, I'm working on KMP project.
So, my questions are:
• Is this code snippet only change I need to do or I need to apply resolvableConfiguration
somewhere?
• In which gradle file I need to do it (project
or module
level)?Khush
12/12/2024, 6:12 AMFATAL EXCEPTION: main
Process: com.jetbrains.kmpapp, PID: 24156
java.lang.ClassCastException: com.jetbrains.kmpapp.MainActivity cannot be cast to androidx.fragment.app.FragmentActivity
at dev.icerock.moko.media.compose.BindMediaPickerEffect_androidKt$BindMediaPickerEffect$1.invokeSuspend(BindMediaPickerEffect.android.kt:24)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:101)
at androidx.compose.ui.platform.AndroidUiDispatcher.performTrampolineDispatch(AndroidUiDispatcher.android.kt:81)
at androidx.compose.ui.platform.AndroidUiDispatcher.access$performTrampolineDispatch(AndroidUiDispatcher.android.kt:41)
at androidx.compose.ui.platform.AndroidUiDispatcher$dispatchCallback$1.run(AndroidUiDispatcher.android.kt:57)
at android.os.Handler.handleCallback(Handler.java:958)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:205)
at android.os.Looper.loop(Looper.java:294)
at android.app.ActivityThread.main(ActivityThread.java:8177)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [androidx.compose.ui.platform.MotionDurationScaleImpl@1538ab5, androidx.compose.runtime.BroadcastFrameClock@1d3654a, StandaloneCoroutine{Cancelling}@11adcbb, AndroidUiDispatcher@b5325d8]
kevin.cianfarini
01/07/2025, 4:41 PM2.1.0
cannot be consumed from 2.0.X
.
See more here: https://github.com/icerockdev/moko-resources/issues/796#issuecomment-2575750611Muaz KADAN
01/23/2025, 1:13 PMcontext.resources.getIdentifier(
"hellow_message_$1",
"string",
context.packageName
)
David Nedrow
03/11/2025, 4:47 PMgradle.build.kts
, (project) gradle.build.kts
, and libs.versions.toml
?Abhijeet Kumar
03/21/2025, 5:35 AM