Jacob Rhoda
10/12/2023, 4:29 PMexpect
a type in my common code, and use actual typealias
to make it a native type in my platform code. Specifically, I use it to make an iOS/Android library type into a common type. However, wherever I use this type in common code, the compiler is telling me that I need to opt-in with the ExperimentalForeignApi
. However, it doesn’t appear that the kotlin.cinterop
package is available in common code. How do I work around this?mbonnin
10/12/2023, 5:09 PMJacob Rhoda
10/12/2023, 5:17 PMmbonnin
10/12/2023, 5:18 PMJacob Rhoda
10/12/2023, 5:52 PMactual
implementation. For example, I wrote a wrapper around the AppAuth libraries to provide authentication on both platforms with a common API. They don’t really care the AuthState
implementation, it just needs to pass along a reference to the platform code.