Commit Graph

4759 Commits

Author SHA1 Message Date
Ilya Goncharov 402dfd5da7 [Gradle, JS] Use RegularFile to not explicit dependsOn
^KT-32273 fixed
^KT-36451 fixed
^KT-37258 fixed
2020-06-03 15:59:33 +03:00
Ilya Goncharov e27bd04ba2 [Gradle, JS] Add dependency on dce task
^KT-32273 fixed
^KT-36451 fixed
^KT-37258 fixed
2020-06-03 15:59:32 +03:00
Ilya Goncharov d3260bca27 [Gradle, JS] JsBinaryType to KotlinJsBinaryType 2020-06-03 15:59:32 +03:00
Ilya Goncharov d27ad99daa [Gradle, JS] KotlinJsType to KotlinJsMode 2020-06-03 15:59:32 +03:00
Ilya Goncharov a5e46568ee [Gradle, JS] Move common part of webpack configuration to separate fun
^KT-32273 fixed
^KT-36451 fixed
^KT-37258 fixed
2020-06-03 15:59:32 +03:00
Ilya Goncharov ef63d6f84c [Gradle, JS] Add resolveFromModulesFirst to build tasks 2020-06-03 15:59:32 +03:00
Ilya Goncharov d4d8495840 [Gradle, JS] Use property for webpack entry 2020-06-03 15:59:32 +03:00
Ilya Goncharov 65db6bb2a5 [Gradle, JS] Add dce to development
^KT-32273 fixed
^KT-36451 fixed
^KT-37258 fixed
2020-06-03 15:59:31 +03:00
Ilya Goncharov 9d8eb65a5e [Gradle, JS] Use API form Gradle 5.0 2020-06-03 15:59:31 +03:00
Henrik Tunedal 71da941c8b Use system-specific user cache directory in main-kts
#KT-38222 fixed
2020-06-03 11:11:33 +02:00
Henrik Tunedal 8f80cf5664 Improve hashing of script files 2020-06-03 11:11:30 +02:00
Ilya Goncharov 890da492fb [Gradle, JS] Fix grammar in methods for JS import 2020-06-03 12:04:20 +03:00
Ilya Goncharov bc4d7e0020 [Gradle, JS] Fix grammar on comment 2020-06-03 12:04:20 +03:00
Ilya Gorbunov e2c3455445 Document NaN propagation in top-level minOf/maxOf functions 2020-06-02 19:01:44 +03:00
Ilya Gorbunov d19f9ee0c5 Simplify min/max implementation 2020-06-02 19:01:44 +03:00
Ilya Gorbunov b4ba00ca36 Document and test NaN propagation of maxOf/minOf
Also simplify minOf/maxOf implementations

#KT-38708
2020-06-02 19:01:44 +03:00
Ilya Gorbunov 7b68de38e1 Introduce minOf/maxOf, minOfWith/maxOfWith and their OrNull variants
#KT-38708 Fixed
2020-06-02 19:01:44 +03:00
Ilya Gorbunov 6a24becd1d Introduce sumOf with various selector types
#KT-11253
2020-06-02 19:01:43 +03:00
Ilya Gorbunov bdd53ee9cd Introduce new overloads of flatMap and flatMapTo
- Sequence<T>.flatMap((T) -> Iterable<R>)
- Iterable<T>.flatMap((T) -> Sequence<R>)
- Array<T>.flatMap((T) -> Sequence<R>)
- Map.flatMap((Entry) -> Sequence<R>)

KT-34506
2020-06-02 19:01:43 +03:00
Ilya Gorbunov 562788ceb9 stdlib-gen: allow template function sequences 2020-06-02 19:01:43 +03:00
Ilya Gorbunov 79afc4f72b stdlib-gen: avoid placing exact duplicates of annotations 2020-06-02 19:01:43 +03:00
Ilya Goncharov 83e17cbf09 [Gradle, JS] Use name of target, not name of preset 2020-06-02 14:42:54 +03:00
Ilya Goncharov b68715441f [Gradle, JS] Remove redundant fixing names
- in case when target name is `jsLegacy` with enabled both mode, we should get `jsLegacyMain` and `jsLegacyTest`, and Gradle plugin creates targets `jsLegacyLegacy` and `jsLegacyIr`, schema is name+suffix where name can be any, KotlinJsTargetPreset's name is name+`Both` so in KotlinJsTargetPreset in `both` case we need remove only `Both` suffix

#KT-39213 Fixed
2020-06-02 12:52:13 +03:00
Andrey Uskov 44f16eac2e Fixed resolution of dependencies on js libraries compiled in both mode
#KT-39213 Fixed
2020-06-02 12:52:13 +03:00
nataliya.valtman d6cb469e66 use Gradle 5.6 for tests with android build tool 28.0.3 2020-06-02 11:26:56 +03:00
Konstantin Tskhovrebov 94a4aacd9e Move commonizer to gradle task and attach to lazy file collection. 2020-06-02 11:03:51 +03:00
Mikhail Zarechenskiy 0ab9b3639b Approximate types for lambda literals before serialization 2020-05-31 17:38:18 +03:00
Ilya Goncharov a41b746774 Revert "[Gradle, JS] Output file path as input fo js compile task"
This reverts commit df173c8c
2020-05-29 19:39:17 +03:00
Ilya Goncharov df173c8c93 [Gradle, JS] Output file path as input fo js compile task
^KT-38676 fixed
2020-05-29 17:37:00 +03:00
Ilya Goncharov bb9e8a8a50 [Gradle, JS] Fix warning message with new line
^KT-39210 fixed
^KT-31669 fixed
2020-05-29 17:20:10 +03:00
Ilya Goncharov 1b841adfff [Gradle, JS] Fix param name
^KT-39210 fixed
^KT-31669 fixed
2020-05-29 17:20:00 +03:00
Ilya Goncharov 9fd211cfcd [Gradle, JS] Manually singleton because Gradle Daemon
^KT-39210 fixed
^KT-31669 fixed
2020-05-29 17:19:44 +03:00
Ilya Goncharov 59c2bc25d5 [Gradle, JS] Detect multiple plugins for NodeJsRootPlugin and YarnPlugin
^KT-39210 fixed
^KT-31669 fixed
2020-05-29 17:19:27 +03:00
Ilya Goncharov 39869f009e [Gradle, JS] Throw error in JS part when plugins goes from different classloaders
^KT-39210 fixed
^KT-31669 fixed
2020-05-29 17:19:13 +03:00
Ilya Goncharov 2e39c1164d Move detecting of multiple kotlin plugins into extract class
^KT-39210 fixed
^KT-31669 fixed
2020-05-29 17:18:57 +03:00
Dmitry Petrov 5db6a0b563 New mangling rules require language version 1.4 (not compiler version)
Follow-up to a270ee094c
2020-05-29 15:15:54 +03:00
nataliya.valtman ff06e60a06 Revert "run for 28.0.2"
This reverts commit 86d52d41
2020-05-29 10:09:50 +03:00
nataliya.valtman 86d52d4123 run for 28.0.2 2020-05-29 10:07:34 +03:00
Ilya Gorbunov 23414496c4 Annotation to enable overload resolution by lambda return type
#KT-38480
2020-05-29 09:36:32 +03:00
Ilya Gorbunov f243b8946f Restore testOmittedStdlibVersion originally added in commit 15feeddc 2020-05-29 04:10:17 +03:00
Ilya Gorbunov d47981f07b Drop gradle ITs depending on AGP versions below 3.2
AGP of these versions cannot handle module-info class included in
kotlin-stdlib artifact from now on.
2020-05-29 04:10:17 +03:00
Dmitry Petrov 94509bdb4e KT-39228 Fix inliner when latest 1.4 compiler used with 1.3 stdlib
Since 1.4.0-dev-8774, we mangle functions returning inline class values,
including functions with return type 'kotlin.Result'. This causes
incompatibility when 1.4 compiler is used with 1.3 (or just some
pre-1.4.0-dev-8774) standard library.

Also, write "message from the future" on functions returning inline
class values indicating that they can be used since compiler version 1.4
(otherwise 1.3 compiler using 1.4 stdlib would fail to find some
@InlineOnly functions such as 'Result.success' and 'Result.failure').
2020-05-29 00:53:00 +03:00
Andrey Uskov 8dcbc391fe Implemented collecting JS compilation mode
#KT-36410 Fixed
2020-05-28 22:08:13 +03:00
Andrey Uskov a431e20b45 Fix import of js MPP source sets in both mode
#KT-38706 Fixed
2020-05-28 22:07:55 +03:00
Andrey Uskov 351d706e0d Fixed reporting NPM download time
#KT-39109 Fixed
2020-05-28 22:07:27 +03:00
Ilya Goncharov bf5810a349 [Gradle, JS] Fix text after proof read
#KT-35641 fixed
#KT-35611 fixed
2020-05-28 12:14:34 +03:00
Ilya Goncharov 85e5f8a736 [Gradle, JS] Deprecation of kotlin2js and kotlin-dce-js plugins
#KT-35641 fixed
#KT-35611 fixed
2020-05-28 12:13:28 +03:00
Dmitriy Dolovov 118c4b96cc [Commonizer] Leaf source sets should depend on commonized "common" libs
^KMM-241
2020-05-28 12:12:40 +07:00
Alexander Udalov 4520e02bae Support fun interfaces in kotlinx-metadata
#KT-37421 Fixed
2020-05-27 23:29:12 +02:00
Nataliya Valtman bd66e87440 KT-38250 The minimal supported Gradle version is 5.3 now
Gradle integration tests: use at least OLDEST_SUPPORTED version.

extract minSupportedGradleVersion for using both in check and tests

avoid using Usage.JAVA_API_JARS and JAVA_RUNTIME_JARS
2020-05-27 19:05:45 +03:00