Im not able to reference expected class.
# amper
g
Im not able to reference expected class.
message has been deleted
I would expect that it should import it no problem
j
I also find this strange. If it's possible for you, would you mind sharing a zip of your project?
Also note that expect/actual classes are in Beta at the moment, so there might be some hiccups
g
umm it will need github token to build
u
There is a subtlety with expect classes constructors that make them different from the usual classes. Basically, here you declared the expect class without any constructors. If you change it to
expect class CrashlyticsManager()
(note the parentheses) it would also mean that all the actuals should have the zero-argument constructor explicitly mentioned. That's why you can't reference it in common—because, basically it doesn't exist from the common source point of view.
smart 2
g
ohh, adding () worked
👍 1
j
Good catch!