Eury Perez
03/10/2024, 5:18 PMduplicate symbol '_EnterFrame' in:
/Users/{user}/Development/me/Login Sample2/composeApp/build/cocoapods/framework/ComposeApp.framework/ComposeApp[2666](libstdlib-cache.a.o)
/Users/{user}/Development/me/Login Sample2/composeApp/build/cocoapods/framework/composeApp.framework/composeApp[2666](libstdlib-cache.a.o)
duplicate symbol '_ktypew:kotlin.coroutines.CoroutineContext.Key' in:
/Users/{user}/Development/me/Login Sample2/composeApp/build/cocoapods/framework/composeApp.framework/composeApp[2](ComposeApp.framework.o)
/Users/{user}/Development/me/Login Sample2/composeApp/build/cocoapods/framework/ComposeApp.framework/ComposeApp[2](ComposeApp.framework.o)
ld: 15502 duplicate symbols
It shows many more duplicated symbols. The weird thing is that it started failing all of a sudden, I tried rolling back to a previous commit that I'm sure was working and still fails, I'm afraid is an XCode config issue, I hope someone can help me. Here's the code I'm using: https://github.com/euri16/cmp-google-login/tree/single_modulebrandonmcansh
03/11/2024, 1:54 AMDjuro
03/11/2024, 3:00 PMsheetPeekHeight
be so that it fills the remaining space of the scaffold?
I don't want a fixed value. I just want to have it as a Column
and then fill the whole screen when user drags up. Any ideas?Dan
03/12/2024, 3:30 PMComposeUiViewController
from iOS. I would like to trigger a redraw/recompose when the iOS app is opened by another app with a deeplink. Is there a way to do that? I have tried to use an EnvironmentObject
to trigger a redraw but I’m a little lost.neerav
03/15/2024, 11:22 AMXCFramework
When i import generated XCFramework to iOS app its getting crash with below error - Image resource missing.
Uncaught Kotlin exception: org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: drawable/ic_referral_bubble.png
What else I have tried ?
_*As per the 1.6.0 version document <http://compose.re|compose.re>*_sources
hdpi/ldpi/xhdpi etc drawable folder and image as per resolution but after that it gives error with specific folder.
Uncaught Kotlin exception: org.jetbrains.compose.resources.MissingResourceException: Missing resource with path: drawable-xxhdpi/ic_referral_bubble.png
Can anyone please help me how can we resolve this issue. ?
Is this because image resources are not getting added in XCFramework
file ?
ThanksPiotr Bartkowiak
03/15/2024, 2:28 PMUIKitView(
modifier = Modifier.background(Color.Transparent),
background = Color.Transparent,
factory = { someIconFactory() }
)
I also tried adding configuration to the ComposeUiViewController:
ComposeUIViewController(configure = { opaque = false }) {
that didn't help eitherDennis
03/15/2024, 2:39 PMAbdul Basit
03/16/2024, 12:33 PMcannot find 'Main_iosKt' in scope
Main_iosKt.MainViewController()
but the file is there.
internal fun MainViewController() = ComposeUIViewController { AppViewIos() }
file name is main.ios.kt
Any idea ?
CMP version : 1.6.1
Djuro
03/16/2024, 1:57 PMPullToRefreshContainer
work with swipe in compose multiplatform.
I can't get it to start refreshing when there is swipe down (that was behaviour I would expect for it, like in Android)
Code is in the threaddan
03/18/2024, 9:15 AMFaN
03/18/2024, 1:32 PMAlex Styl
03/19/2024, 10:29 AMAlex Styl
03/19/2024, 12:14 PMAlex Styl
03/20/2024, 5:55 AMimport ComposeApp
doesnt work, cause I am assuming I am missing the part where I tell the extension uses the ComposeApp.
Any idea how to link to it?Alex Styl
03/20/2024, 11:32 AMviewDidLoad
but all I get is a blank screen when I share to my app
DispatchQueue.main.async {
// host the SwiftU view
let contentView : UIViewController = MainViewControllerKt.ShareViewController()
self.addChild(contentView)
self.view.addSubview(contentView.view)
// set up constraints
contentView.view.translatesAutoresizingMaskIntoConstraints = false
contentView.view.topAnchor.constraint(equalTo: self.view.topAnchor).isActive = true
contentView.view.bottomAnchor.constraint (equalTo: self.view.bottomAnchor).isActive = true
contentView.view.leftAnchor.constraint(equalTo: self.view.leftAnchor).isActive = true
contentView.view.rightAnchor.constraint (equalTo: self.view.rightAnchor).isActive = true
}
// MainViewController.kt
fun ShareViewController() = ComposeUIViewController {
MaterialTheme {
Text(
text = "Deep Linking App",
modifier = Modifier.background(Color.White).fillMaxSize()
)
}
}
ralf
03/21/2024, 5:05 AM> Task :my-module:compileKotlinIosSimulatorArm64 FAILED
e: Failed to resolve Kotlin library: /Users/rwo/.gradle/caches/modules-2/files-2.1/org.jetbrains.compose.components/components-resources-iosSimulatorArm64/1.6.1/4c88f6112e14f52d558f6cdb7c647e9d750d83b5/library.klib
e: Compilation failed: List is empty.
* Source files: Res.kt, ComposeRenderer.kt, ComposeRendererFactory.kt
* Compiler version: 1.9.23
* Output kind: LIBRARY
This seems to happen only with this target and is likely a regression in the library. Is this a known issue?Ben Abramovitch
03/21/2024, 9:43 PMandroidx.lifecycle:lifecycle-common:2.8.0-alpha03
there's now Lifecycle stuff available for KMP.
I can now see the Lifecycle
items like Lifecycle
, LifecycleOwner
, LifecycleEventObserver
in my common code.
On Android I have LocalLifeCycleOwner
to get the current LifecycleOwner but I don't have something like that in the iOS module?
I tried adding androidx.lifecycle:lifecycle-runtime:2.8.0-alpha03
in the iOS dependencies as well and no luck.
What am i missing so I can get the LifecycleOwner on the iOS side?khairil.ushan
03/22/2024, 10:32 PMandroidx-annotation
.Max
03/24/2024, 1:19 PMval textState = remember { mutableStateOf(TextFieldValue()) }
TextField(
value = textState.value,
onValueChange = { textState.value = it }
)
Does anyone have an idea what is wrong?
compose = "1.6.2"
compose-plugin = "1.6.0"
kotlin = "1.9.22"
Łukasz Lendzion
03/25/2024, 1:31 PMpers
03/25/2024, 3:28 PMDjuro
03/26/2024, 11:31 AMcomposeResources/files
but I was wondering how to do this if I am not using compose multiplatform?
Where should I store a raw file inside the commonMain
and how do I get its path inside the androidMain
and iosMain
?Michal Guspiel
03/26/2024, 2:01 PMonValueChange
is called multiple times. This only happens if my TextField value exists in ViewModel. If value exists in composable use remember
it behaves as expected.
Has anyone faced a similar issue?eygraber
03/26/2024, 8:05 PMdephinera
03/27/2024, 8:39 AM[CP] Copy Pods Resources
build phase when building from AS (yes, I’m using cocoapods). It runs a generated script from the build
folder. I couldn’t find the same thing executed when running from XC.
There’s a key detail here. The project structure is the following:
kmp:
- shared
- sharedSample - depends on shared, `export(projects.shared)` is set in cocoapods.framework {}
iOS:
- iOSModule - depends on sharedSample
- iOS App - depends on iOSModule
The missing resources are within the shared
module. If I copy them to sharedSample
it works and I can run from XC as well. I believe there’s some additional configuration needed due to the complexity of the structure. Do you have any suggestions?Ismail
03/27/2024, 11:58 AMVlad
03/27/2024, 2:35 PM@Environment(\.scenePhase) var scenePhase
...
ContentView()
.ignoresSafeArea(.all)
.onChange(of: scenePhase) { phase in
switch phase {
case .active:
appLifecycle.start()
case .background:
appLifecycle.stop()
default:
break
}
The thing it when the scene reports .background - seems like observing a state and/or recompositions already stopped?!
So basically when .background happens I want to do LaunchEffect.
I wonder if it is how it should be or it is a compose bug?
The DisposableEffect's onDispose is not triggered. The composable tree is still there, but seems like val lifecycleState by viewModel.currentState._collectAsState_()
is stopped.Vlad Mircan
03/27/2024, 6:13 PMiOS
sheet is displayed on top of a screen that has the content built in Compose
.
The default iOS
behaviour causes the screen to shrink (to achieve that stacking effect).
This is all good however, the compose content doesn't react to the changes well, leaving a white streak.Eduardo Ruesta
03/27/2024, 9:10 PM