Andrew Watson
def
ios { compilations.getByName("main") { cinterops { val observer by creating { defFile(project.file("src/nativeInterop/cinterop/observer.def")) packageName("com.kashif.common") compilerOpts("-I/src/nativeInterop/cinterop") includeDirs { allHeaders("src/nativeInterop/cinterop") } } } } }
language = Objective-C --- #import <Foundation/Foundation.h> @protocol NSObjectObserver @required - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary<NSKeyValueChangeKey, id> *)change context:(void *)context; @end;
kotlin.mpp.enableCInteropCommonization=true
Alex Dmitriev
enableCInteropCommonization
A modern programming language that makes developers happier.