Commit Graph

7490 Commits

Author SHA1 Message Date
Roman Artemev 9d9930f748 [JS SCRIPT] Fix test dependencies
- make sure kotlin stdlib is compiled and accessible
2020-05-14 17:58:33 +03:00
Roman Artemev 0e21dd15ba [JS SCRIPT] Fix script test data 2020-05-14 17:58:33 +03:00
Alexander Udalov 82551e91a4 Add KClass.isFun modifier to reflection
#KT-38881 Fixed
2020-05-14 14:05:51 +02:00
Ilya Gorbunov 188bcf0e7b stdlib-js-ir: do not copy source directories from the same project 2020-05-14 10:40:34 +03:00
Ilya Gorbunov 46b0784508 Disable kotlinMetadata compilation for js-ir-minimal-for-test
Use more convenient way to specify dependency on source syncing tasks.
2020-05-14 10:40:18 +03:00
Ilya Gorbunov a95f205c1a Binary compatibility validator is now an external tool
Use its code from a dependency.
2020-05-13 19:00:35 +03:00
Alexander Udalov 0ce16b9d8c Support non-reified type parameters in typeOf in JVM and JVM_IR
#KT-30279 Fixed
2020-05-13 10:04:28 +02:00
Alexander Udalov 012ffa2993 Support new scheme of compilation of OptionalExpectation annotations
Instead of generating these annotation classes as package-private on
JVM, serialize their metadata to the .kotlin_module file, and load it
when compiling dependent multiplatform modules.

The problem with generating them as package-private was that
kotlin-stdlib for JVM would end up declaring symbols from other
platforms, which would include some annotations from package
kotlin.native. But using that package is discouraged by some tools
because it has a Java keyword in its name. In particular, jlink refused
to work with such artifact altogether (KT-21266).

 #KT-38652 Fixed
2020-05-12 19:28:57 +02:00
Ilya Gorbunov 5d724a8cbc Fix samples package import
Dokka can only clean samples.* import when converting samples to
runnable.
2020-05-12 17:35:33 +03:00
Kirill Shmakov 84c6c365db Wizard: Reorder build phases in iOS template (fix KT-38810) 2020-05-12 17:32:37 +03:00
Kirill Shmakov cc7b8cc558 Wizard: Add KMM-related property in iOS template gradle.properties 2020-05-12 17:32:37 +03:00
Ilya Muradyan 8a1b44cc2b Add snippet result type to analysis output of REPL IDE services 2020-05-11 10:45:49 +02:00
Ilya Chernikov c496b93218 [minor] refactor repl API file layout 2020-05-11 10:45:48 +02:00
Abduqodiri Qurbonzoda 0c7b04a495 Document fromIndex and toIndex parameters #KT-38388 2020-05-09 23:34:03 +03:00
Kirill Shmakov a590fe3d65 Wizard: Use simpler debug information settings 2020-05-08 23:23:52 +03:00
Svyatoslav Kuzmich 3d5003d476 [JS_IR] Use new plugin to build Kotlin/JS stdlib with IR compiler
- Switch to building stdlib with bootstrap compiler since IR is stable
  enough
- Build stdlib with coreLibs by default
- Include JS IR stdlib to kotlin distribution
2020-05-08 10:37:48 +03:00
Sergey Igushkin 292563451c Fix falsely skipped shared-native source sets in HMPP (KT-38746)
Issue #KT-38746 Fixed
2020-05-07 11:55:29 +00:00
subroh0508 50151e0e01 [Gradle, JS]AbstractNpmDependencyExtension -> DefaultNpmDependencyExtension 2020-05-07 10:21:51 +03:00
subroh0508 abf942b928 [Gradle, JS]Add optionalNpm methods 2020-05-07 10:21:51 +03:00
subroh0508 34e8b11475 [Gradle, JS]Add directoryNpmDependency method 2020-05-07 10:21:51 +03:00
subroh0508 121897133e [Gradle, JS]Delete peerNpm method used by file argument 2020-05-07 10:21:51 +03:00
subroh0508 231324d119 [Gradle, JS]Add peerNpm method for peerDependencies to KotlinDependencyHandler 2020-05-07 10:21:51 +03:00
subroh0508 3e2feac4ea [Gradle, JS]Add devNpm method for devDependencies to KotlinDependencyHandler 2020-05-07 10:21:51 +03:00
Mikhail Bogdanov 4f7599076c Postpone JvmDefault deprecation. Revert "Deprecate @JvmDefault"
This reverts commit c11f3868
2020-05-04 10:02:16 +02:00
Dmitry Savvinov f3830cb07e Make KotlinNativeTasks.konanTargetsForManifest non-nullable, otherwise Gradle fails 2020-05-01 12:56:10 +03:00
Dmitry Savvinov 686d00ddf5 Collect and pass to K2Native actual targets of native-shared compilation
^KT-38658 Fixed
2020-04-30 20:05:45 +03:00
Abduqodiri Qurbonzoda ec166db506 Implement collection builders 2020-04-30 02:28:41 +03:00
Ilya Goncharov e17e3401eb [Gradle, JS] Use disambiguation classifier in platform only for both
#KT-38635 fixed
2020-04-29 13:27:48 +03:00
Alexander Udalov 9fa8e009c6 Support equals/hashCode for fun interfaces in JVM and JVM_IR
#KT-33455 Fixed
2020-04-29 12:15:50 +02:00
Andrey Uskov 55934ff63a Fixed collecting MPP targets in gradle statistics 2020-04-29 13:01:24 +03:00
Andrey Uskov 96887d6e9f Fixed import of JS source sets with Both mode
Added flag indicating that source set naming contract is violated. In this case disambiguition classifier is ignored in IDE.
#KT-37562 Fixed
2020-04-29 13:01:21 +03:00
Ilya Goncharov 1f40a71cbe [Gradle, JS] No create target on import if no target in DSL
#KT-38469 fixed
2020-04-29 12:59:35 +03:00
Ilya Gorbunov 9c2e149b5b Expect/actual kotlin.Throws annotation
#KT-34848
2020-04-29 09:17:54 +03:00
Mike Samuel 580ffc1d99 Reformat FrameworkAdapter example code in comment
The example code shows up all on one line in the generated docs.

https://kotlinlang.org/api/latest/kotlin.test/kotlin.test/-framework-adapter/ shows

> suite('a suite', false, function() { suite('a subsuite', false, ...

Use a fenced code block with a language identifier.
2020-04-29 07:36:46 +03:00
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