Blaž Vantur
04/10/2024, 6:22 AMDevanshu Pathsariya
04/10/2024, 6:30 AMSwapnil Musale
04/10/2024, 6:31 AMcommonMain
sourceSet.
For my one of library to access context useing StartUp library to get the context and saved it in global variable.
I think you need to use expect actual approach to satisfy your requirement for every functionality of which library user wants to access while working.Devanshu Pathsariya
04/10/2024, 6:35 AMBlaž Vantur
04/10/2024, 6:36 AMBlaž Vantur
04/10/2024, 6:37 AMDevanshu Pathsariya
04/10/2024, 6:41 AMkatz
04/10/2024, 6:45 AMexpect class InitInfo
fun myLibFun( initInfo:InitInfo)
android
actual typealias InitInfo = Context
others
actual typalias InitInfo = Unit
Keep in mind - you can not use platform specific classes in common codeBlaž Vantur
04/10/2024, 6:47 AMDavid Wasser
04/10/2024, 1:55 PMArjan van Wieringen
04/13/2024, 2:24 PMDavid Wasser
04/16/2024, 8:10 AM