Fix references in OBJC_INTEROP.md (#2170)

This commit is contained in:
Ilya Matveev
2018-10-04 16:02:50 +03:00
committed by GitHub
parent efc3461fd9
commit a25c4f97f5
+4 -4
View File
@@ -8,14 +8,14 @@ Swift/Objective-C.
Kotlin/Native provides bidirectional interoperability with Objective-C. Kotlin/Native provides bidirectional interoperability with Objective-C.
Objective-C frameworks and libraries can be used in Kotlin code if Objective-C frameworks and libraries can be used in Kotlin code if
properly imported to the build (system frameworks are imported by default). properly imported to the build (system frameworks are imported by default).
See e.g. "Interop libraries" in See e.g. "Using cinterop" in
[Gradle plugin documentation](GRADLE_PLUGIN.md#building-artifacts). [Gradle plugin documentation](GRADLE_PLUGIN.md#using-cinterop).
A Swift library can be used in Kotlin code if its API is exported to Objective-C A Swift library can be used in Kotlin code if its API is exported to Objective-C
with `@objc`. Pure Swift modules are not yet supported. with `@objc`. Pure Swift modules are not yet supported.
Kotlin modules can be used in Swift/Objective-C code if compiled into a Kotlin modules can be used in Swift/Objective-C code if compiled into a
[framework](GRADLE_PLUGIN.md#framework). See [calculator sample](https://github.com/JetBrains/kotlin-native/tree/master/samples/calculator) framework (see "Targets and output kinds" section in [Gradle plugin documentation](GRADLE_PLUGIN.md#targets-and-output-kinds)).
for an example. See [calculator sample](https://github.com/JetBrains/kotlin-native/tree/master/samples/calculator) for an example.
## Mappings ## Mappings