Tianyu Zhu
02/14/2023, 7:59 PMexternal functions? How do they work? Is there a Java equivalent?Kirill Grouchnikov
02/14/2023, 8:00 PMKirill Grouchnikov
02/14/2023, 8:02 PMexternal functions, that are implemented in C++ and accessed via the JNI bridgeKirill Grouchnikov
02/14/2023, 8:03 PMnativeTianyu Zhu
02/14/2023, 8:04 PMTianyu Zhu
02/14/2023, 8:08 PMexternal function with... not a native function?
I want to declare an external function in an API module, and then implement it in different ways in subsequent modules.Kirill Grouchnikov
02/14/2023, 8:10 PMexpect and actual most likelyTianyu Zhu
02/14/2023, 8:11 PMKirill Grouchnikov
02/14/2023, 8:12 PMTianyu Zhu
02/14/2023, 8:12 PMKirill Grouchnikov
02/14/2023, 8:13 PMexternal might not be relevantPaul Griffith
02/15/2023, 1:35 AMGoetz Markgraf
02/15/2023, 6:33 AMinterface and “somewhere else” create a class that extends that interface .Klitos Kyriacou
02/15/2023, 9:04 AMimport the function name or just use its fully qualified name (including package name) at the place where you use it. Kotlin will know about this function if it is in the classpath. So all you have to do, if you have a number of alternative jars containing alternative implementations of the function, is to include one of those jars in your classpath when you compile the Kotlin file that uses the function.