Commit Graph

7456 Commits

Author SHA1 Message Date
Vadim Semenov f4cea1b0cd Fix typo in KDoc for Element.getPolymorphicElement 2020-04-29 07:35:22 +03:00
Ilya Kirillov 94bc8eaf83 Wizard: remove copyrights from iOS template 2020-04-28 21:34:48 +03:00
Ilya Kirillov 6a9a97006b Wizard: fix not created by default xcode framework in shared module
the runForXcode task is not generating xcode framework
if there is no source files in shared module
2020-04-28 21:34:47 +03:00
Ilya Kirillov 47125553cb Wizard: fix android project template
It was not able to be built as lint task required com.android.tools.build:gradle
in classpath to work

#KT-38579 fixed
2020-04-28 21:34:46 +03:00
Ilya Kirillov 56eebed1d8 Wizard: fix kotlin and resources directory names in Android module
#KT-38428 fixed
2020-04-28 21:34:42 +03:00
Ilya Kirillov 1a68e40ebd Wizard: add common target to FullStackWebApplicationProjectTemplate 2020-04-28 21:34:40 +03:00
Ilya Kirillov 78b5be94e9 Wizard: validate project path for emptiness
#KT-38567 fixed
2020-04-28 21:34:39 +03:00
Anton Bannykh 2992d49a1d JS IR: fix findAssociatedObjects for primitive type KClass'es 2020-04-28 19:08:44 +03:00
Dmitry Petrov 878e838f0b JVM: Suspend converted references inherit AdaptedFunctionReference 2020-04-28 18:56:37 +03:00
Anton Bannykh e8a6ddceaa JS IR: hide runtime helpers from users 2020-04-28 16:40:07 +03:00
Alexander Udalov 94346e8a03 Add JVM target bytecode version 14
#KT-38413 Fixed
2020-04-28 13:00:23 +02:00
Sergey Igushkin e3d33cdc10 Drop Gradle < 6.0 support for Kotlin MPP Gradle plugin
This is required due to issues with dependency resolution of the
kotlinx library modules published in a way that their root MPP module
contains the JVM artifacts so that consumers that can't read Gradle
module metadata get the JVM JAR and POM. Gradle 6.0+ fails to resolve
those modules in a variant-aware way, always choosing the JVM artifacts.

To avoid issues on the consumer side when these dependencies are used,
we decided to drop support for Gradle < 6.0 in the MPP plugin.

Issue #KMM-233 Fixed
2020-04-28 09:33:17 +00:00
Ilya Goncharov 6b5b23f37b [Gradle, JS] Remove propagation moduleName from legacy to ir target
#KT-38614 fixed
2020-04-27 18:01:29 +03:00
Anton Bannykh 442331acc9 IR JS: support findAssociatedObject feature (KT-37418 fixed) 2020-04-27 17:23:19 +03:00
Konstantin Tskhovrebov 6d7e428d89 Get first platform from platformCompilations instead host platform.
Fixed #KMM-234
2020-04-27 16:54:29 +03:00
Nikolay Krasko 4230a17427 Revert "Force bootstrap stdlib in modules that used in composite build"
This reverts commit ad76562c
2020-04-27 15:58:38 +03:00
Nikolay Krasko ad76562cbc Force bootstrap stdlib in modules that used in composite build 2020-04-27 15:36:49 +03:00
Abduqodiri Qurbonzoda 2307692064 Remove String.format with non-null locale
Introducing new overloads with @SinceKotlin(1.4) annotation
and marking the old ones @LowPriorityInOverloadResolution breaks
all code that uses the format(locale, args) overload with
-api-version 1.3. Because the low priority of the non-1.4 version makes
format(args) preferable in all cases.
For example, "%02X".format(Locale.ROOT, 1) throws
IllegalFormatConversionException: x != java.util.Locale.
2020-04-24 18:00:37 +03:00
Ilya Goncharov 7a928dfed2 [Gradle, JS] Build gradle node module with only package.json content 2020-04-24 16:32:54 +03:00
Ilya Goncharov c64a80d132 [Gradle, JS] Move suppress gson null issue for particular fields
[Gradle, JS] Fix package json creation from existed package json w/o version

[Gradle, JS] Add task for publishing package json

[Gradle, JS] Add skip on empty npm dependencies

[Gradle, JS] Publishing package json with installed modules

[Gradle, JS] Add publishingPackageJson for compilation npm resolution

[Gradle, JS] Add publishingPackageJson to jar task

[Gradle, JS] PublishingPackageJsonTask now in jar

[Gradle, JS] Actual skipping of package json creation

[Gradle, JS] jar task depends only on main publishing package json

[Gradle, JS] Move calculation of packageJson

[Gradle, JS] Filter file dependencies
2020-04-24 16:32:54 +03:00
Sergey Igushkin af09cb0e57 fix testLanguageSettingsApplied 2020-04-24 12:54:39 +03:00
Sergey Igushkin 60c49d26e3 Add Gradle integration tests running the IDE HMPP highlighting tests 2020-04-24 12:54:38 +03:00
Sergey Igushkin a9dd194383 Fix wrong assumption in getHostSpecificSourceSets (KMM-225)
The assumption that each source set is already registered in at least
one compilation would break Android targets which are configured later
on the execution path, and also fail when there are unused source sets.

Issue #KMM-225 Fixed
2020-04-24 12:54:37 +03:00
Sergey Igushkin 67f4b7e2b0 Add a dependency from all klib-originated modules to the main module
This is required, for instance, to properly resolve supertypes across
the modules.

Issue #KT-37832 Fixed
2020-04-24 12:54:36 +03:00
Ilya Goncharov 9e4c1ee4e8 [Gradle, JS] Add explanation comment on compiler type in KotlinJsCompilerTypeHolder 2020-04-23 18:43:19 +03:00
Ilya Goncharov f95ff049c6 [Gradle, JS] Test check several ways to configure compiler type
#KT-38519 fixed
2020-04-23 18:09:59 +03:00
Ilya Goncharov 9a3bf54d9d [Gradle, JS] Add compiler type values on extension type
#KT-38519 fixed
2020-04-23 18:09:49 +03:00
Ilya Goncharov f87f32c5a8 [Gradle, JS] root package json must run after simple package jsons
KT-34832
2020-04-23 17:21:17 +03:00
Ilya Goncharov 923986d6a0 [Gradle, JS] Replace close on prepare
#KT-34832 fixed
2020-04-23 15:49:35 +03:00
Ilya Goncharov 7fa0faf48c [Gradle, JS] Fix registering yarn extension before node plugin
#KT-34832 fixed
2020-04-23 15:49:35 +03:00
Ilya Goncharov bded8443f1 [Gradle, JS] Root package json must run after all package json
#KT-34832 fixed
2020-04-23 15:49:35 +03:00
Ilya Goncharov b0efd1d7ce [Gradle, JS] Commonize root package json to prepared files for extensibility via other npm package managers
#KT-34832 fixed
#KT-35194 fixed
2020-04-23 15:49:33 +03:00
Ilya Goncharov 2f8649a337 [Gradle, JS] up-to-date check on npm install, not on root package.json
#KT-34832 fixed
2020-04-23 15:46:58 +03:00
Ilya Goncharov 742e27d7f5 [Gradle, JS] Rearrange
#KT-34832 fixed
2020-04-23 15:46:47 +03:00
Ilya Goncharov e412224572 [Gradle, JS] Resolve -> install
#KT-34832 fixed
2020-04-23 15:46:36 +03:00
Ilya Goncharov 0af6454e44 [Gradle, JS] Add new state for npm resolution
#KT-34832 fixed
2020-04-23 15:46:25 +03:00
Ilya Goncharov 9174e184d3 [Gradle, JS] Rename Installed on prepared
#KT-34832 fixed
2020-04-23 15:46:13 +03:00
Ilya Goncharov 578a33767b [Gradle, JS] Npm resolution plugins work in resolve phase too
#KT-34832 fixed
2020-04-23 15:46:01 +03:00
Ilya Goncharov 910f60b731 [Gradle, JS] Not run task if root package.json doesn't exist
#KT-34832 fixed
2020-04-23 15:45:50 +03:00
Ilya Goncharov 86573c6dd1 [Gradle, JS] Divide creating root package and install tasks
#KT-34832 fixed
2020-04-23 15:45:34 +03:00
Alexey Trilis 3ad597ca5c Introduce MSE and EME APIs to Kotlin/JS stdlib
#KT-37910 Fixed
2020-04-23 15:35:04 +03:00
Ilya Chernikov 8616864e6b Revert "Drop unnecessary dependency from embeddable compiler to daemon"
The commit breaks gradle plugin, because it relies on this dependency.
This reverts commit 86d47b49
2020-04-23 11:21:27 +02:00
nataliya.valtman f9ebce331c remove execOperation for compiler workers 2020-04-23 07:59:57 +03:00
Abduqodiri Qurbonzoda 5af76a07d4 Fix CharArray sort in JS IR-backend 2020-04-22 23:46:50 +03:00
Ilya Goncharov ac11bc6710 [Gradle, JS] Remove copypaste in js compiler argument
#KT-38485 fixed
2020-04-22 16:34:14 +03:00
Ilya Goncharov 8e282e8aad [Gradle, JS] Change byArgument on byArgumentOrNull
#KT-38485 fixed
2020-04-22 16:33:41 +03:00
Ilya Goncharov 47c27726b9 [Gradle, JS] Fix test
#KT-38485 fixed
2020-04-22 16:33:22 +03:00
Ilya Goncharov c7f7f2bcbb [Gradle, JS] Add string sompiler setting in js plugin
#KT-38485 fixed
2020-04-22 16:33:03 +03:00
Ilya Muradyan 6f40ad7de2 Add test for not evaluated snippet 2020-04-22 11:07:32 +02:00
Ilya Muradyan ea1a6fbee7 Add history consistency check 2020-04-22 11:07:32 +02:00