Ilya Kirillov
5d56f3d28b
Wizard: do not print duplicated repositories
2019-12-18 15:54:35 +03:00
Ilya Kirillov
32a151f561
Wizard: introduce interceptors for module templates
2019-12-18 15:54:33 +03:00
Ilya Kirillov
8bf9c31880
Wizard: add simple JS client template
2019-12-18 15:54:30 +03:00
Ilya Kirillov
56fccce305
Wizard: add basic ktor server template
2019-12-18 15:54:27 +03:00
Ilya Kirillov
f927fb3471
Wizard: introduce ServicesManager & correctly handle disabled gradle & maven Idea plugins
2019-12-18 15:54:24 +03:00
Ilya Kirillov
aca193ddd2
Wizard: Add initial version of the new project wizard
2019-12-18 15:54:16 +03:00
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
Natalia Selezneva
2f35d6d868
Scripting: save inputs stamp and diagnostics to file attributes
...
Check if they are up to date and initiate configuration update only in case they are out of date
^KT-35205
2019-12-16 14:55:45 +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 Gorbunov
f0e67f8397
Fix coreLibsInstall composite task
...
It was broken after the commit bbdbc2896b ,
which included kotlin-stdlib-js-ir project into coreLibs list,
but that project didn't have 'install' task, on which 'coreLibsInstall' depends
2019-12-11 06:36:40 +03:00
Abduqodiri Qurbonzoda
56cae75404
Fix StringBuilder reverse test
2019-12-10 13:07:27 +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
Abduqodiri Qurbonzoda
19e001afad
Commonize Float.rangeTo(Float) #KT-35299
2019-12-09 20:24:06 +03:00
Abduqodiri Qurbonzoda
20d02dd0ee
Commonize StringBuilder
2019-12-04 22:15:33 +03:00
Abduqodiri Qurbonzoda
1431e27a7b
Move StringBuilder to its own file
2019-12-04 22:15:33 +03:00
Abduqodiri Qurbonzoda
0c033297a8
Move Appendable to its own file
2019-12-04 22:15:33 +03:00
Abduqodiri Qurbonzoda
50752d47fe
Move CharacterCodingException to its own file
2019-12-04 22:15:33 +03:00
Abduqodiri Qurbonzoda
956e085b22
Rename text.kt file to StringBuilderJs.kt
2019-12-04 22:15:33 +03:00
Abduqodiri Qurbonzoda
2155f1680f
Fix small mistake in CharSequence.lastIndexOf documentation
2019-12-04 22:15:33 +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 Gorbunov
edfd933348
Improve Result docs to emphasize that any Throwable exception is caught
...
#KT-33447 Fixed
2019-12-03 21:08:31 +03: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