Commit Graph

6591 Commits

Author SHA1 Message Date
Alexander Udalov e0b9ffa780 Regenerate builtins sources 2020-01-03 13:09:43 +01:00
Alexander Udalov 8a4510c21b Regenerate tests 2020-01-02 10:31:00 +01:00
Vyacheslav Gerasimov 1b00996c86 Mute failing test-kotlin-version-in-manifest
Should be unmuted after #KT-35776 is fixed
2019-12-31 16:37:14 +03:00
Ilya Gorbunov a98f36bce4 Reorganize existing Closeable/AutoCloseable.use tests 2019-12-28 03:02:01 +03:00
Toshiaki Kameyama 941de655c4 Add contract for 'use'
#KT-35216 Fixed
2019-12-28 02:54:29 +03:00
Ilya Gorbunov 043eddb432 Cleanup: use effects introduced by contracts of assert* functions 2019-12-28 02:51:56 +03:00
Miguel Serra 4fa5e2d85c KT-20357: Add samples for linkedSetOf 2019-12-26 20:07:39 +03:00
Tillmann Berg 95300ae31d KT-20357: Add sample for reduce, reduceRight and their indexed counterparts 2019-12-26 19:57:33 +03:00
Ilya Gorbunov 6d092b5f71 Add more reduceOrNull tests
- Test for unsigned arrays
- Update binary api dump with the new functions
2019-12-26 19:27:47 +03:00
Alfredo Delli Bovi 9546307243 Add sample for reduceOrNull and reduceRightOrNull 2019-12-26 19:27:46 +03:00
Alfredo Delli Bovi 06008c40ab KT-33761 Add reduceRightOrNull 2019-12-26 19:27:46 +03:00
Alfredo Delli Bovi f5d696d3c4 KT-33761 Add reduceOrNull 2019-12-26 19:27:46 +03:00
Yaroslav Chernyshev 1a3cf3b792 [Gradle, Native] Added subspecs support in CocoaPods plugin
#KT-32750 fixed
2019-12-26 15:28:00 +03:00
Igor Chevdar f8fd5092c6 [native-gradle-plugin] Disabled cache building for iOS devices 2019-12-25 16:16:55 +05:00
Svyatoslav Kuzmich d74721716a [JS IR] Use short klib names instead of absolute paths 2019-12-25 13:44:57 +03:00
Svyatoslav Kuzmich 31c84e9ac4 [JS IR] Build stdlib using compiler from repo
Previously JS IR versions of stdlib and kotlin-test were build
by default using compiler previously built on a buildserver.

It had some issues:
 - This required us to advance bootstrap every time we made any
   incompatible IR changes. This happens often since IR ABI is
   not quite stable yet.

 - We never tested the exact combination of compiler and stdlib we publish

   We tested:
    - new compiler with new stdlib build by new compiler (in box tests)
    - old compiler with new stdlib build by old compiler (in stdlib tests)

   We published:
    - new compiler with new stdlib build by old compiler

After this change JS IR compiler tests, builds and publishes
single configuration:

    new compiler with new stdlib build by new compiler

JS IR stdlib and kotlin-test are now built using JavaExec of CLI instead
of Gradle plugin to avoid troubles of loading a freshly built plugin.

This also allows to have a granular dependencies: we don't rebuild klib
if we changed a lowering in a compiler backend, but we do rebuild it if
we changed IR serialization algorithm.
2019-12-25 13:44:57 +03:00
Roman Artemev 9871f8c579 [JS BE] Fix DCE to let it remove constant properties 2019-12-24 19:26:05 +03:00
Ivan Gavrilovic 62924ddcd4 KT-35472: Detect when content of annotation processor changes
Even if annotation processor classpath is the same, in case
individual entries change (e.g. bulding annotationo processor
from source), KATP should run non-incrementally.

Test: KaptIncrementalWithIsolatingApt.testUnchangedAnnotationProcessorClasspathButContentChanged
2019-12-24 15:14:47 +09:00
Stéphane Nicolas 7b227f3113 Remove Redundant Project
Just some syntax cleanup when visting the file.
Note: I was trying to understand why the output folders of kapt are creating so eagerly in a build, during configuration time indeed...(they should be created later, during execution).
2019-12-24 15:14:47 +09:00
Igor Chevdar 1b95040934 [kotlin-native-plugin] Two fixes:
* Added property to select the cache kind (none, dynamic, static)
* Fixed the check if the cache needs to be rebuilt
2019-12-23 12:37:38 +03:00
Ilya Goncharov 74889ef3ad [Gradle, JS] Actualize node and yarn version
#KT-35599 fixed
2019-12-23 11:31:15 +03:00
Ilya Goncharov 24e3310393 [Gradle, JS] Add check on run and dist task
- Check existence of compile output file to prevent fail in case of NO-SOURCE

#KT-31894 fixed
2019-12-23 11:29:17 +03:00
Ilya Kirillov 69e9ae94c6 Use snakeyaml from maven instead of from intellij
As new-project-wizard-cli module is not bundled into the plugin jar
2019-12-20 14:13:29 +03:00
Dmitriy Novozhilov 26f7bf1c21 Regenerate tests 2019-12-20 11:33:06 +03:00
Ilya Kirillov d6daaf14f8 Fix "Protected function call from public-API inline function is prohibited" error 2019-12-20 04:12:49 +03:00
Alexander Udalov 16db3a8b5f Fix compiler and IDE tests on Experimental/RequiresOptIn
See cdbabf224f, e009c7064e
2019-12-18 14:09:06 +01:00
Ilya Kirillov 1ab405a86c Wizard: introduce unit test mode 2019-12-18 15:54:51 +03:00
Ilya Kirillov 1c30572844 Wizard: fix android tests 2019-12-18 15:54:50 +03:00
Ilya Kirillov 7204ab091a Wizard: add suggested module names for js targets 2019-12-18 15:54:44 +03:00
Ilya Kirillov fc9f63d49f Wizard: do not allow to create more than one target of each type 2019-12-18 15:54:42 +03:00
Ilya Kirillov aa2992e84a Wizard: add additional applicability checker for template 2019-12-18 15:54:41 +03:00
Ilya Kirillov 40367635cc Wizard: remove unused android service 2019-12-18 15:54:40 +03:00
Ilya Kirillov af174b4f74 Wizard: format templates code 2019-12-18 15:54:38 +03:00
Ilya Kirillov b29e6d0c69 Wizard: add simple js template 2019-12-18 15:54:36 +03:00
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