Pavel Kunyavskiy
156c341eeb
[K/N] Implement objc overridablity condition for IR
...
^KT-61511
2023-10-13 08:15:01 +00:00
Vladimir Sukharev
520983d52c
[K/N] Add failing test for KT-62262: NPE compiling uikit sample
...
^KT-62262
2023-10-05 14:37:13 +00:00
Ilya Chernikov
b821009617
K2: add missing checks for integral parameter type on implicit coercion
...
#KT-61418 fixed
#KT-61442 fixed
#KT-61441 fixed
2023-08-25 08:55:58 +00:00
Pavel Punegov
2b6ca6d8e1
[K/N] Exclude a part of the test that fails due to the ^KT-61418
2023-08-23 15:40:07 +00:00
mvicsokolova
5f431e4e87
[K/N] Updated deprecations for native atomics
...
* Removed deprecated methods from the new atomics in kotlin.concurrent
* Changed deprecation level from WARNING to ERROR for the old atomics in kotlin.native.concurrent
* Removed FreezingIsDeprecated annotation from kotlin.concurrent.AtomicReference
See KT-58123
Merge-request: KT-MR-10650
Merged-by: Maria Sokolova <maria.sokolova@jetbrains.com >
2023-08-22 13:42:12 +00:00
Aleksei.Glushko
0a09d1e140
[K/N] Use ptr-sized types in objc_firendly_dealloc tests
...
Merge-request: KT-MR-11525
Merged-by: Alexey Glushko <aleksei.glushko@jetbrains.com >
2023-08-08 15:38:36 +00:00
Abduqodiri Qurbonzoda
0f33d71de3
Migrate Vector128 from kotlin.native to kotlinx.cinterop #KT-58402
...
Make kotlin.native.Vector128 a typealias for kotlinx.cinterop.Vector128
Choose source compatibility over binary compatibility.
2023-07-31 19:38:05 +00:00
Pavel Kunyavskiy
858f432807
[K/N] Normalize on nan values in code generator
...
^KT-56041
2023-07-28 15:53:34 +00:00
Aleksei.Glushko
1eda35a59c
[K/N] Process objc run loop on the finalizer thread ^KT-58851
...
Merge-request: KT-MR-11024
Merged-by: Alexey Glushko <aleksei.glushko@jetbrains.com >
2023-07-27 14:17:48 +00:00
Pavel Kunyavskiy
0fbc42de03
[K/N] Remove interop_kt49034_objcprotocol test
...
It doesn't check anything meaningful after d797505f06
^KT-56028
2023-07-26 08:32:09 +00:00
Svyatoslav Scherbina
3280d3ef80
Native: prepare existing tests for cinterop adding ExperimentalForeignApi
...
cinterop tool should add ExperimentalForeignApi to all generated
declarations by default. This commit prepares existing tests for this.
^KT-58362
2023-07-21 11:54:14 +00:00
Pavel Kunyavskiy
396cfb3956
[K/N] Make cast to objc forward declaration unchecked
...
Before this commit it caused compiler crash.
Unchecked cast warning to be done later.
^KT-59645
2023-07-05 06:49:34 +00:00
Abduqodiri Qurbonzoda
209c916a7e
OptIn ExperimentalNativeApi
2023-06-30 15:27:09 +00:00
Sergey Bogolepov
aee9b7aae3
[K/N] Add a trivial test-case for KT-59167
2023-06-30 09:01:38 +00:00
Svyatoslav Scherbina
1bf3d55bdf
Native: add detachObjCObject internal function for Obj-C objects
...
For a Kotlin wrapper of an Objective-C object, this functions zeroes
and releases the strong reference from the Kotlin wrapper to the
Objective-C object.
Usually, such a release happens only when the Kotlin wrapper is GCed.
So using this function can help that happen sooner.
^KT-59134
2023-06-07 11:57:54 +00:00
Alexander Shabalin
aea8bac7d2
[K/N] Do not compile for deprecated targets and legacy MM
...
^KT-56533
^KT-58853
2023-05-30 16:44:58 +00:00
Vladimir Sukharev
363c56e226
[K2/N] Export C adapters for non-root packages
...
^KT-56182
Merge-request: KT-MR-10160
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-05-19 11:40:59 +00:00
Alexander Shabalin
860d0e32f7
[K/N] Add tests on ObjCAction and ObjCOutlet. ^KT-58441
2023-05-05 19:02:34 +00:00
Vsevolod Tolstopyatov
f4e8ae5191
Explicitly declare stability levels of declarations in kotlinx.cinterop package
...
* @ExperimentalForeignApi for all declarations that operate on
unmanaged memory (i.e. pointers and references)
* @BetaInteropApi for the rest of the interoperability declarations,
namely Swift/CInterop-specific interfaces and convenience-functions
### Implementation details
* Some typealiases are not marked explicitly because it crashes the compiler,
yet their experimentality is properly propagated
* License header is adjusted where it previously had been existing
* Deprecated with ERROR interop declarations that are deprecated for more than
two years are removed
* WASM target interop declarations are deprecated
* Deliberately make Boolean.toByte and Byte.toBoolean foreign-experimental to scare
people away
^KT-57728 fixed
Merge-request: KT-MR-9788
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
2023-05-04 13:52:21 +00:00
Alexander Shabalin
968bf424b4
[K/N] Fix interop_objc_kt56402 with different GCs ^KT-56402
...
Merge-request: KT-MR-9865
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2023-04-28 17:10:07 +00:00
Alexander Shabalin
82f94015f1
[K/N] Dispose ObjC objects from main thread on main thread. ^KT-56402
...
Merge-request: KT-MR-9515
Merged-by: Alexander Shabalin <Alexander.Shabalin@jetbrains.com >
2023-04-26 07:35:44 +00:00
Pavel Punegov
a98c2c178f
[K/N][test] Add missing parenthesis that discovered frontend issue
...
See also ^KT-58131
Merge-request: KT-MR-9702
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2023-04-20 11:59:59 +00:00
Abduqodiri Qurbonzoda
5407ac1c72
[K/N] Mark UnhandledExceptionHook-related API with ExperimentalNativeApi
...
Instead of ExperimentalStdlibApi
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-19 20:36:31 +00:00
Vsevolod Tolstopyatov
af9252aa96
Mark all Worker-related API as obsolete.
...
* Explain what obsolete means and why workers are obsolete
* Add some documentation to workers to explain its common pitfalls
^KT-54702
Merge-request: KT-MR-9563
Merged-by: Vsevolod Tolstopyatov <qwwdfsad@gmail.com >
2023-04-19 09:28:23 +00:00
Abduqodiri Qurbonzoda
e1c91ee50f
[K/N] Move kotlin.native.internal.GC into kotlin.native.runtime
...
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-12 13:07:50 +03:00
Abduqodiri Qurbonzoda
bb8498b0c5
[K/N] Move kotlin.native.internal.Debugging into kotlin.native.runtime
...
As a part of efforts to stabilize Native stdlib #KT-55765.
2023-04-12 13:07:49 +03:00
Abduqodiri Qurbonzoda
8e995e6c62
[K/N] Deprecate ArrayIndexOutOfBoundsException
...
As a part of efforts to stabilize Native stdlib.
2023-04-11 13:32:54 +00:00
Abduqodiri Qurbonzoda
54bbeae273
[K/N] Internalize TypeCastException
...
As a part of efforts to stabilize Native stdlib.
2023-04-08 21:50:34 +03:00
Alexander Shabalin
87da670319
[K/N] Add more tests on associated object handling ^KT-56233
2023-04-06 11:40:44 +00:00
Pavel Punegov
57904f117f
[K/N][test] Add missing opt-in for setUnhandledExceptionHook
...
This is follow-up to KT-MR-9340
Merge-request: KT-MR-9488
Merged-by: Pavel Punegov <Pavel.Punegov@jetbrains.com >
2023-04-05 16:04:56 +00:00
Abduqodiri Qurbonzoda
8663239369
[K/N] Mark UnhandledExceptionHook-related API as experimental
...
As a part of efforts to stabilize Native stdlib.
2023-04-01 20:40:40 +03:00
Svyatoslav Scherbina
65d781758c
Native: fix objc_direct tests on platforms with 32-bit NSUInteger
...
On some platforms, `NSUInteger` is 32-bit, while the objc_direct tests
expected it to be represented as `ULong`. So the tests failed on those
platforms.
Fix the tests by replacing `NSUInteger` with `uint64_t`.
2023-03-29 13:29:08 +00:00
Ilya Chernikov
8edf8573b5
Revert "[K2/N] adjust interop_objc_direct test for K2 because of ^KT-55902"
...
This reverts commit 8315eeaf92 .
2023-03-17 08:57:52 +00:00
Svyatoslav Scherbina
8315eeaf92
[K2/N] adjust interop_objc_direct test for K2 because of ^KT-55902
...
K2 doesn't support implicit integer coercion for cinterop yet.
2023-03-13 13:39:51 +00:00
Gleb Lukianets
fc96eb6d8d
[KN] CInterop: __attribute__((objc_direct)) support
...
Merge-request: KT-MR-8828
Merged-by: Gleb Lukianets <Gleb.Lukianets@jetbrains.com >
2023-03-02 10:36:53 +00:00
Vladimir Sukharev
7c9e567496
[K2/N] KT-56028: Enable and patch test interop_kt49034_objcclass
...
Merge-request: KT-MR-8942
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2023-02-23 13:08:33 +00:00
Svyatoslav Scherbina
445d44b79a
K2/Native: simplify forward declarations test to make it work with K2
2023-01-30 11:00:32 +00:00
Svyatoslav Scherbina
f3ed006ed9
Native: add a test for forward declarations with two cinterop libs
2023-01-30 11:00:31 +00:00
Svyatoslav Scherbina
d4f5d5297f
K2/Native: simplify forward declarations test to make it work with K2
2023-01-30 11:00:31 +00:00
Svyatoslav Scherbina
46a85d9729
Native: add a test for cinterop forward declarations
2023-01-30 11:00:30 +00:00
Roman Efremov
5bd76dbf0b
Temporarily comment failing Enum.entries resolve in K/N C interop
...
See KT-53929
2023-01-23 12:53:07 +01:00
Pavel Kunyavskiy
fbc39fcab1
[K/N] Make a reproducer test for KT-55938
...
^KT-55938
2023-01-18 08:29:51 +01:00
Sergey Bogolepov
9bffec268a
[K/N] Add a trivial test-case for KT-40426
2023-01-17 17:54:28 +00:00
Sergey Bogolepov
8120025076
[K/N] Add a test for KT-55653
2023-01-16 13:26:09 +00:00
Sergey Bogolepov
3ade4fbedc
[K/N] Add backend.native test for objcClassesIncludingCategories
2023-01-16 13:26:08 +00:00
Vladimir Sukharev
b883dc5434
[KT-39120] Add "-fmodules" argument support to Cinterop
...
Merge-request: KT-MR-6921
Merged-by: Vladimir Sukharev <Vladimir.Sukharev@jetbrains.com >
2022-11-30 08:46:40 +00:00
Johan Bay
bc13173ea9
[K/N] cinterop: Do not expand non-constant macros
...
Expanding macros such as __FILE__ or __TIME__ exposes
arbitrary generated filenames and timestamps from the compiler
pipeline which are not useful for interop and makes the klib
generation non-deterministic. This patch instead redefines
the macros to just map to their name in the properties
available from Kotlin.
Co-authored-by: Johan Bay <jobay@google.com >
2022-10-12 16:54:00 +00:00
Pavel Kunyavskiy
2a36c08e1f
[K/N] Fix nan tests on mips
2022-09-08 12:13:43 +00:00
Pavel Kunyavskiy
d822d3e7c6
[K/N] Reenable constant inlining except for Double nan constants
...
^KT-52970
2022-09-05 06:06:44 +00:00
Pavel Kunyavskiy
895a8ff149
[K/N] Basic support of Enum.entries for Native
...
No forward compatibility yet, with old klib IR linker will fail.
^KT-53324
2022-08-25 12:40:30 +00:00