Alexander Udalov
cdbabf224f
Introduce RequiresOptIn and OptIn annotations
...
RequiresOptIn should be used now instead of Experimental, OptIn instead
of UseExperimental. See https://github.com/Kotlin/KEEP/pull/201 .
This change adds the new declarations only to the stdlib, and supports
them in the compiler. Because of the way compiler loads annotations, we
need to bootstrap it first before deprecating the old annotations and
updating tests.
#KT-34647 Fixed
2019-12-17 18:17:48 +01:00
Abduqodiri Qurbonzoda
b868e6f8da
Rename Appendable methods parameters
2019-12-17 19:04:00 +03:00
Igor Chevdar
6f16d02920
[gradle-native-plugin] Build static caches instead of dynamic
2019-12-17 14:37:34 +03:00
Anton Bannykh
d6fcde7316
JS_IR: fix typecheck corner case
...
Consider `fun <E : I> foo(a: Any?) = a as? E`, where I is an interface.
This check used to fail, because the `a == null` was missing, and
the `isInterface` stdlib method crashes if the first argument
is null. This change adds the null check.
Also this change prettifies the instance check in case of type parameter
left operand.
2019-12-15 17:36:24 +03:00
Igor Chevdar
a7b3f26cef
[native-gradle-plugin] Supported klib cache (building and using)
2019-12-12 16:53:59 +03:00
Ilya Goncharov
364d6a5afa
[Gradle, JS] Actualize NPM dependencies
2019-12-12 16:44:30 +03:00
Ilya Goncharov
6e19004a4f
[Gradle, JS] Add comment for test
2019-12-12 12:42:35 +03:00
Ilya Goncharov
1bc47b3f6f
[Gradle, JS] Add test for package.json deserializing
2019-12-12 12:42:35 +03:00
Ilya Goncharov
b9a529d7d0
[Gradle, JS] Hack for GSON to get non-null values
2019-12-12 12:42:35 +03:00
Ilya Goncharov
7d98d33e3d
[Gradle, JS] Hack for GSON to get non-null values
2019-12-12 12:42:34 +03:00
Ilya Matveev
6bc0fe121a
Gradle: Escape TC service messages in debug logs
...
The MPP plugin uses TC service messages to interact with JS and
native test runs an writes received messages to a debug log. But
if a build is executed by TeamCity, these log messages may be
treated by TC as actual service messages.
This patch transforms the logged messages to avoid this issue.
2019-12-11 19:57:22 +07:00
Ilya Matveev
33df86338b
Gradle, tests: Improve tests for running simulator unit-tests
2019-12-11 19:57:22 +07:00
Ilya Matveev
254864a49d
Gradle, native, JS: Support excluding tests using TestFilter
...
TestFilter.excludePatterns was introduced in Gradle 5.0. This
patch adds support for this API in native and JS test tasks
and deprecates the old property used for test excludes.
2019-12-11 19:57:21 +07:00
Ilya Matveev
cc3438f20c
Gradle, native: Add separate classes for targets with different tests
2019-12-11 19:57:21 +07:00
Ilya Matveev
e6ab70c18d
Gradle, native: Support simulator tests
2019-12-11 19:57:21 +07:00
Ilya Goncharov
ccea2b73da
[Gradle, JS] Add using Debuggable non headless chrome
2019-12-11 14:29:12 +03:00
Ilya Chernikov
ba056bf78c
[minor] Remove irrelevant part of the test
2019-12-11 12:20:48 +01:00
Mikhail Zarechenskiy
cad0d7ff7f
Fix compilation of maven-plugin test after 508330e0bb
2019-12-11 12:43:23 +03:00
Tillmann Berg
cf86dc9a89
KT-20357: Add sample for Collections distinct and distinctBy methods
2019-12-11 07:42:05 +03:00
Ilya Goncharov
f8b1e95830
[Gradle, JS] Inline single used method for prefix matching
2019-12-10 11:41:03 +03:00
Ilya Goncharov
8c6941dc5b
[Gradle, JS] Java and JS difference in fqn should affect exclude patterns too
2019-12-10 11:37:13 +03:00
Ilya Goncharov
770e5147d0
[Gradle, JS] Java and JS difference in fqn should affect exclude patterns too
2019-12-10 11:37:13 +03:00
Ilya Goncharov
da16d48068
[Gradle, JS] Remove debug console
2019-12-10 11:26:48 +03:00
Ilya Goncharov
096a6c9551
[Gradle, JS] Fix failing Karma tests for empty tests
...
#KT-35318 fixed
2019-12-10 11:25:35 +03:00
Ivan Gavrilovic
7f77cc55f3
Update the test for cleanup
...
Make sure all sources are removed before adding a new Java source,
and make assertions about stubs and kotlinc generated .class files.
2019-12-03 23:05:22 +01:00
Ivan Gavrilovic
e07b2e30e2
KT-34258: Make sure to clean up stale files even if no Kotlin sources
...
If running incrementally, even if there aren't any Kotlin sources to
compile, there could be stale output files that need to be removed. E.g
stub generation must have generated .java files removed if all Kotlin
sources are removed. Kotlin compile task will be skipped only if there
are no Kotlin sources and task run is non-incremental.
Test: KaptIncrementalIT.testRemoveAllKotlinSources
2019-12-03 23:05:21 +01:00
Ilya Chernikov
615624802c
Add kotlinx-html test
...
Among other things it tests the packagePartProvider fix above
2019-12-02 16:46:53 +01:00
Ilya Goncharov
22cb6fa836
[Gradle, JS] Fix case with null distribution
2019-12-02 17:44:26 +03:00
Ilya Goncharov
c267357596
[Gradle, JS] Add distribution DSL
2019-12-02 17:44:26 +03:00
Ilya Goncharov
fe9ddd9f22
[Gradle, JS] Check if resourcesDir exists and resourceDir is input directory
2019-12-02 17:44:26 +03:00
Ilya Goncharov
053469dcec
[Gradle, JS] Copy index.html from resources to dist
2019-12-02 17:44:26 +03:00
Ilya Goncharov
ae4a1e3cca
[Gradle, JS] Fix check on Kotlin/JS modules from NPM in DCE
...
#KT-35198 fixed
2019-12-02 14:06:41 +03:00
Ilya Goncharov
408f958273
[Gradle, JS] Add idle run for debug node tests
...
Source maps can be loaded by NodeJS
2019-12-02 13:23:03 +03:00
Alexander Gorshenev
b0f077ff4b
Plumbing KlibMetadataVersion and KlibIrVersion values to klib manifest
2019-11-30 18:37:38 +03:00
Dmitry Borodin
664d69b752
Add flatMap sample KT-20357
2019-11-29 17:35:06 +03:00
Dat Trieu
f334ad2ffc
KT-20357: Add samples for associate* functions ( #2798 )
...
* KT-20357: Add samples for functions related to associate
* KT-20357: Use same fib function for both samples
* KT-20357: Use examples with duplicate keys and simplify examples with primitives
* KT-20357: Use primitive samples for all arrays
* KT-20357: Use String splitting example to better illustrate the use for associate over associateBy with a valueSelector
2019-11-29 16:54:02 +03:00
Ilya Goncharov
25dea2ccce
[Gradle, JS] Add description of separator of java inner classes
2019-11-29 15:09:36 +03:00
Ilya Goncharov
d02bcb30e3
[Gradle, JS] Move classNameOnlyRegExp to class level
2019-11-29 15:09:36 +03:00
Ilya Goncharov
418c0496f1
[Gradle, JS] Fix regex on method
...
- Find method declaration like not containing dot
2019-11-29 15:09:36 +03:00
Ilya Goncharov
3e1fe0af92
[Gradle, JS] Add exact filter by class name only
2019-11-29 15:09:36 +03:00
Ilya Goncharov
0037e74d3e
[Gradle, JS] Fix StartsWith filter
2019-11-29 15:09:35 +03:00
Ilya Goncharov
de8610a279
[Gradle, JS] Add java class filters like in gradle
2019-11-29 15:09:35 +03:00
Ilya Goncharov
50d165167c
[Gradle, JS] Update npm dependencies
2019-11-29 15:09:35 +03:00
Vyacheslav Gerasimov
8d31d4a60f
Replace com.moowork.node plugin with com.github.node-gradle.node
2019-11-27 21:26:34 +03:00
Vyacheslav Gerasimov
81e24fbdb4
Build: Extract version of com.moowork.node to the settings.gradle
2019-11-27 21:26:34 +03:00
Vyacheslav Gerasimov
ea9b490467
Fix usage of nullable in gradle 6.0 DomainObjectContext.project
2019-11-27 21:26:33 +03:00
Vyacheslav Gerasimov
b9031f0c68
Fix overrides of removed in gradle 6.0 AbstractCompile.compile
...
https://github.com/gradle/gradle/commit/5e7476de957792b6d2f164968b4023539a0385f2
2019-11-27 21:26:33 +03:00
Sergey Igushkin
fa2ef816b1
Support Gradle instant execution with Kotlin/JVM and Android tasks
...
Issue #KT-35126 Fixed
2019-11-27 17:59:45 +03:00
Ilya Goncharov
ad09492eb0
[Gradle, JS] Migrate on only name-version npm dependencies
...
#KT-32179 fixed
2019-11-26 16:05:17 +03:00
Ilya Goncharov
95b56e10b4
[Gradle, JS] Activate root npm dependency declaration for multiplatform
2019-11-26 16:04:37 +03:00