Is there any way to keep the compiler happy about ...
# multiplatform
m
Is there any way to keep the compiler happy about properties of a shared class which are inherited in a platform specific area? Billing code can be abstracted away from Google and Apple billing with classes in the correct sections that inherit from them appropriately, but do I have to choose names distinct from both? Is that a clear enough question?
m
What I've done is add extension properties and functions to the
expect class
, any then have those delegate to the correct platform specific properties.
👍 1
m
Thanks for that @mkrussel. I was hoping for a way to avoid adding to what's already there, but this strengthens my thought that it's not possible 😞