Commit Graph

34 Commits

Author SHA1 Message Date
Svyatoslav Scherbina 0109e6cafb Add test for @ExportObjCClass 2019-11-08 17:27:06 +03:00
SvyatoslavScherbina 6a2812a2d5 Initialize ObjCExport during runtime init too (#3471)
as it may be required during execution of Kotlin code calling Obj-C.
2019-10-18 18:54:52 +03:00
Igor Chevdar b1ed1e6515 Added some tests on interface check for ObjC 2019-09-24 12:23:42 +03:00
Sergey Bogolepov d2a213ffca [watchOS][tvOS] Add Platform.TVOS and Platform.WATCHOS 2019-09-16 15:06:09 +07:00
Svyatoslav Scherbina 9e149b6d91 Don't emit redundant retain-release sequence for Obj-C alloc result
when calling Kotlin constructor generated for Objective-C initializer.

retain-release here is suboptimal and also may provoke specific bugs
to reproduce.
2019-08-13 16:25:51 +03:00
Svyatoslav Scherbina 7efab59bc1 Support importing non-conventional parameterless Objective-C init
Thus fix #2522 by supporting -[NSOutputStream initToMemory].
2019-08-13 16:25:51 +03:00
Nikolay Igotti 81eb6b2be6 Very preliminary relaxed mode draft. (#3129) 2019-07-04 13:58:22 +03:00
Svyatoslav Scherbina d1222907d4 Add ObjCProtocol type to interop runtime 2019-05-31 17:49:14 +03:00
Svyatoslav Scherbina 3c8e12328c Add missing Objective-C interop tests 2019-05-31 17:49:14 +03:00
SvyatoslavScherbina cd4e0af034 Improve support for Objective-C methods clashing with methods of Any (#2914) 2019-04-25 11:29:35 +03:00
SvyatoslavScherbina 14fb86d487 Refactor and improve Objective-C override checks (#2907) 2019-04-24 15:01:47 +03:00
SvyatoslavScherbina a6f1048e8a Fix #2872 (#2898) 2019-04-23 11:40:15 +03:00
Svyatoslav Scherbina d90d6cd47a Add trivial test for @OverrideInit 2019-04-19 13:52:19 +03:00
Svyatoslav Scherbina 39e31d7086 Support *arrayOf(...) for variadic C/Objective-C functions
To be used with named arguments, which may be required to resolve ambiguity.
2019-04-19 13:52:19 +03:00
Svyatoslav Scherbina e437339d9a Support variadic Objective-C methods 2019-04-19 13:52:19 +03:00
Nikolay Igotti d072920133 Rework memory manager to make stack slot update faster (#2813) 2019-04-09 15:40:14 +02:00
Svyatoslav Scherbina 54881b421c Use compiler-generated C stubs to call Objective-C methods
Also
*   Use compiler-generated C stubs when overriding all Objective-C methods
*   Support block types in C stubs generator
2019-04-08 10:03:29 +03:00
SvyatoslavScherbina 4d6614e674 Use compiler-generated C stubs when overriding some Objective-C methods (#2697)
* Add tests to interop_objc_smoke

* Use compiler-generated C stubs when overriding some Objective-C methods
2019-02-22 13:51:08 +03:00
Svyatoslav Scherbina fe2b680be8 Support C enums with forward declarations 2018-12-12 09:32:36 +03:00
Svyatoslav Scherbina 49eee47d7e Fix #2004
Fix delegation to constructor of the same class in Objective-C subclasses
2018-09-05 12:47:03 +03:00
Nikolay Igotti 32fe05afa2 Copyright update. (#1944) 2018-08-27 14:55:51 +03:00
SvyatoslavScherbina 8f1b94f38b Use unsigned types in interop (#1913) 2018-08-24 18:30:56 +03:00
Vasily Levchenko 79755d8fbf [stdlib and samples][rename] konan -> kotlin.native 2018-08-14 15:05:24 +03:00
SvyatoslavScherbina 5f661b20aa Support weak references to Objective-C objects (#1531) 2018-04-24 12:32:43 +03:00
Nikolay Igotti c5c2a080d8 Fix missing dealloc hooks on object freed by cycle collector. (#1487) 2018-04-12 18:40:07 +03:00
Svyatoslav Scherbina 77139d58f8 Unify interop with Objective-C in both directions
Also support casts to Objective-C types
2018-04-12 09:56:29 +03:00
Svyatoslav Scherbina 841bb51e65 Add workaround to interop_objc_smoke for bug in MM 2018-04-12 09:56:29 +03:00
Svyatoslav Scherbina e035ac1022 Support importing string literal macros with cinterop 2018-02-22 10:08:54 +03:00
Svyatoslav Scherbina e1b507f998 Fix fixed NSString* parameters in variadic functions 2018-01-11 12:28:40 +03:00
Svyatoslav Scherbina b700f96e0c Rework stubs for interop globals passed by value
#KT-21855 Fixed
2018-01-09 17:51:50 +03:00
Svyatoslav Scherbina e8f97b0436 Represent Objective-C block pointers in methods as Kotlin functions
Also do some refactoring.
2017-10-17 13:23:21 +03:00
Svyatoslav Scherbina a0dc2ecef2 Enable method signature checks when overriding Objective-C method 2017-10-17 13:23:21 +03:00
Svyatoslav Scherbina 4e285a5ef4 Implement equals, hashCode and toString for Objective-C objects 2017-09-06 23:57:19 +03:00
Svyatoslav Scherbina d3185e3e19 Implement very basic Objective-C interop
Also refactor StubGenerator
2017-08-16 10:04:23 +03:00