Commit Graph

129 Commits

Author SHA1 Message Date
Dmitriy Dolovov 9bbfe9c1ac Rename: KonanPlatform, KonanPlatforms -> NativePlatform, NativePlatforms 2020-03-29 23:20:52 +07:00
Dmitriy Dolovov cc6e4e5cfb IDE, Native: Don't produce CompositePackageFragmentProvider when unnecessary 2020-03-29 23:20:35 +07:00
Dmitriy Dolovov c23a11a6fc Refactoring: Clean-up usage of KlibMetadataFactories 2020-03-27 13:12:01 +07:00
Dmitry Gridin 84c9929935 i18n: NativeDefinitions: remove redundant bundle
#KT-37483
2020-03-24 16:18:05 +07:00
Dmitry Gridin afb8ff1dd5 i18n: NativeDefinitions: add getter to property
#KT-37483
2020-03-24 15:25:53 +07:00
Dmitriy Dolovov 01558f48ae KLIB: Clean-up AbstractKlibLibraryInfo API 2020-03-24 13:37:51 +07:00
Dmitriy Dolovov f46fc7d848 IDE: Fix i18n for KlibMetaFileType 2020-03-23 15:39:33 +07:00
Dmitriy Dolovov f4aa0fad44 IDE: Unify creation of KLIB package fragment providers (common, native) 2020-03-23 15:39:27 +07:00
Dmitriy Dolovov bf4a153c0c IDE: Use CachingIdeKlibMetadataLoader in Native & Common KLIB analysis 2020-03-23 15:39:21 +07:00
Dmitriy Dolovov c8a9b88504 IDE: Refactor NativePlatformKindResolution & NativeResolverForModuleFactory 2020-03-23 15:39:05 +07:00
Dmitriy Dolovov 98877eb87e IDE: Rename NativeLibraryInfo to NativeKlibLibraryInfo 2020-03-23 15:38:59 +07:00
Dmitriy Dolovov 816db96113 IDE: Drop NativeLibraryInfo.NATIVE_LIBRARY_CAPABILITY 2020-03-23 15:38:53 +07:00
Dmitriy Dolovov 5f7a6d55a8 KLIB: Fix compilation 2020-03-23 15:38:46 +07:00
Dmitry Savvinov 26ab9b4fc9 Move Klib-related logic from idea-native module 2020-03-23 15:38:40 +07:00
Dmitry Savvinov 417554dca0 Move .klib files from KotlinNativeFileTypeFactory to Kotlin-wide one 2020-03-23 15:38:32 +07:00
Dmitry Savvinov 987e1019a8 Rename everything non-Native specific to Klib 2020-03-23 15:38:26 +07:00
Dmitry Savvinov b6d811c69c Extract common logic of detecting klibs and creating LibraryInfo by klib 2020-03-23 15:38:19 +07:00
Dmitry Savvinov 6ccb8cd0a3 Properly check platform of klib by reading manifest 2020-03-23 15:38:11 +07:00
Zalim Bashorov eaac5bdac4 [IDE KN] Treat klib as Kotlin/Native library iff manifest contains builtins_platform==NATIVE 2020-03-20 01:27:41 +03:00
Dmitriy Dolovov 94df78aea0 K/N in IDE: Drop support of "konan.native" package 2020-03-16 19:52:28 +07:00
Dmitry Gridin 7507d62ec3 i18n: replace KotlinBundleBase with AbstractKotlinBundle 2020-03-16 18:40:49 +07:00
Roman Golyshev c3cbcc0842 i18n: move all kotlin bundles to resources/messages directories 2020-03-16 18:40:47 +07:00
Yan Zhulanow f1d21b02e9 i18n: Add bundle for idea-native 2020-03-16 18:40:42 +07:00
Roman Artemev 25a91a217e [KLIB] Fix package for NullFlexibleTypeDeserializer 2020-02-26 14:55:53 +03:00
Dmitriy Dolovov acc3395ca5 IDE: Don't analyze incompatible KLIBs with components
Issue #KT-36213
2020-02-01 17:07:13 +07:00
Dmitriy Dolovov 4336096775 Use "tooling" KLIB resolve strategy in IDE and commonizer
Issue #KT-36213
2020-02-01 17:07:02 +07:00
Dmitriy Dolovov 9594b8db42 Rename Kotlin/Native modules for uniformity 2020-01-29 20:30:46 +07:00
Dmitriy Dolovov b49e6ac581 Rename :kotlin-native:kotlin-native-library-reader to :native:frontend.native 2020-01-29 20:30:29 +07:00
Dmitriy Dolovov 3b33df6564 Reduce external dependencies in :kotlin-native:kotlin-native-library-reader 2020-01-29 15:29:49 +07:00
Dmitriy Dolovov cd71f250e5 Move KonanFactories out of :kotlin-native:kotlin-native-library-reader 2020-01-29 15:29:35 +07:00
Alexander Gorshenev 8b036ace26 Moved several more components to resolveSingleFileKlib 2020-01-27 20:21:32 +03:00
Alexander Gorshenev dfa509ec5b This reverts commits
afb2e9f38d.
    8c4fa6446d.
    f3bc533073.
    ccf084b1a5.
2020-01-27 15:30:16 +03:00
Alexander Gorshenev 8c4fa6446d Moved several more components to resolveSingleFileKlib 2020-01-27 14:24:14 +03:00
Dmitry Savvinov 6d45b048cb Check for presence of ir-folder in klibs additionally for Kotlin/Native 2020-01-25 15:59:12 +03:00
Mikhail Zarechenskiy 0e90d538df FIC: propagate info about conversions for deserialized classes 2020-01-17 19:36:08 +03:00
Dmitriy Dolovov 5803fcdeb4 Bugfix: KotlinIdeaResolutionException on absent/corrupted KLIB artifact
Issue #KT-35839
2020-01-09 17:13:54 +07:00
Dmitriy Dolovov 59e84e826b Fast check of Kotlin/Native KLIBs by virtual files 2019-12-25 11:42:14 +07:00
Zalim Bashorov 646c7ad0af [IDE, klib] Support in IDE klibs with dynamic type 2019-12-17 22:06:55 +03:00
Dmitry Gridin 09bcfab047 KotlinNativeModuleConfigurator: fix INRE
#EA-219416 Fixed
2019-12-17 17:20:35 +07:00
Dmitry Savvinov f45c11c6f2 Use constantSdkDependencyIfAny in getKeyForSdk as well 2019-12-13 19:11:02 +03:00
Dmitriy Dolovov 5b8be16f13 Kotlin/Native IDE plugin clean-up
- Re-organize classes
2019-12-13 15:52:25 +03:00
Dmitriy Dolovov 36ed29d4d5 Convert KotlinNativeMetaBinary from Java to Kotlin 2019-12-13 15:52:17 +03:00
Dmitriy Dolovov 511a4089ca Kotlin/Native IDE plugin clean-up
- Drop KotlinNativeMetadataVersion in favor of KlibMetadataVersion
- Drop KotlinNativeProtoBasedClassDataFinder in favor of KlibMetadataClassDataFinder
2019-12-13 15:52:10 +03:00
Dmitriy Dolovov deb4025987 Fix: Use more precise KLIB compatibility check (by metadata version)
Issue #KT-34811
2019-12-13 15:51:54 +03:00
Alexander Gorshenev b0f077ff4b Plumbing KlibMetadataVersion and KlibIrVersion values to klib manifest 2019-11-30 18:37:38 +03:00
Dmitry Savvinov 0dc7c37b62 Choose SDK consistently at least for non-COMPOSITE analysis
In COMPOSITE analysis we don't have a constant SDK dependency for whole
ResolutionFacade, so we have to find it manually via calling
'findSdkAcrossDependencies'

In SEPARATE mode we do have such a constant SDK dependency, but there
was an assumption that it doesn't make a difference (i.e.
findSdkAcrossDependencies always return the same SDK as passed constant
one)

Turns out that assumption was wrong, particularly for projects with
duplicate SDK entries in project structure. Then we would choose one SDK
in some cases, and the other one on other cases - even though they a
bit-to-bit equal, we will create separate descriptors for them, which
might lead to some issues, like in KT-34802

^KT-34802 Fixed
2019-11-21 18:56:49 +03:00
Dmitriy Dolovov 1b2091d536 Fix: KLIB reading error on Windows
Issue #KT-34909
2019-11-14 20:37:43 +07:00
Kirill Shmakov 72591e34b3 Support android_x64/86 in cinterop definitions 2019-10-31 18:35:06 +03:00
Kirill Shmakov c7bd6d8ede Support watchos and tvos in cinterop definitions 2019-10-30 22:14:38 +03:00
Dmitriy Dolovov 905823fb1d Fix: Notify user in IDE on K/N KLIBs with incompatible ABI version
Issue #KT-34159
2019-10-25 11:10:46 +07:00