Sergey Igushkin
603bae398f
Fix BuildCacheIT and BuildCacheRelocationIT
...
* Adjust the log checks for newer Gradle versions
* Use AGP 3.6.0 and Gradle 5.6.1 as the older version
2020-06-04 10:41:25 +00:00
Dmitry Petrov
de25359a90
Fix stdlib compilation after updated @JvmName check
...
Previously, extension receiver type was not taken into account when
checking for @JvmName annotation applicability to possibly mangled
functions (such functions, however, were mangled).
This bug was fixed, but, unfortunately, not before such functions were
added to stdlib ('sumOf' family).
2020-06-04 12:16:28 +03:00
Dmitry Petrov
202bbdf8dd
Forward compatibility hacks for Result.{success, failure}
...
Don't mangled functions annotated with @JvmName.
Annotate 'Result.success' and 'Result.failure' with @JvmName and
@Suppress("INAPPLICABLE_JVM_NAME").
NB this would require bootstrap.
2020-06-04 12:16:27 +03:00
Ilya Kirillov
8a4521864e
Wizard: use cache redirector on project importing tests
2020-06-04 12:00:42 +03:00
Ilya Kirillov
cce5a9a1ca
Wizard: download latest dev version for tests from bintray
2020-06-04 12:00:42 +03:00
Ilya Goncharov
74e4a817cb
[Gradle, JS] Fix test after changing type of IR link task on mode
2020-06-04 10:24:06 +03:00
Valeriy.Vyrva
c023a02884
Create SortedMap with Comparator and items
...
KT-34142
2020-06-04 02:04:22 +03:00
Abduqodiri Qurbonzoda
e3fb74b656
Promote KClass.cast/safeCast, KAnnotatedElement.hasAnnotation() to stable
2020-06-03 23:50:48 +03:00
Sergey Igushkin
35b1bb05c8
Merge KT-MR-1260 from rr/gradle/igushkin/fix-kt-39304-unused-source-sets-failure
2020-06-03 14:32:53 +00:00
Anton Bannykh
a18bfad53a
Add stdlib API test + remove some extra IR stdlib API's
2020-06-03 17:14:29 +03:00
Ilya Goncharov
426f164e02
[Gradle, JS] Webpack on file providers for task configuration avoidance
2020-06-03 15:59:33 +03:00
Ilya Goncharov
01f3e4b083
[Gradle, JS] Make destinationDir as var
2020-06-03 15:59:33 +03:00
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
Svyatoslav Kuzmich
af13ae1ef2
[JS] Add klib to kostlin-stdlib-js.jar distribution
...
Fixes KTI-177 and KT-35857
2020-06-03 14:16:46 +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
a476d1dbc4
String prototypes polyfills on Object.defineProperty
2020-06-02 14:56:29 +03:00
Ilya Goncharov
9431fc4693
Polyfill for Arrays should be declared with Object.defineProperty
...
To not be enumerable
2020-06-02 14:56:29 +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
Abduqodiri Qurbonzoda
c29e434d33
Remove SuccessOrFailure.kt
2020-06-02 12:04:47 +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
Sergey Igushkin
f7ed3139ab
Fix unused source sets missing in compilationsBySourceSets (KT-39304)
...
Issue #KT-39304 Fixed
2020-06-02 00:48:55 +03:00
Abduqodiri Qurbonzoda
30037682f8
Revert "Promote String <-> utf8 and CharArray conversions to stable"
...
This reverts commit aba97033
2020-06-01 23:30:55 +03:00
Abduqodiri Qurbonzoda
aba97033f0
Promote String <-> utf8 and CharArray conversions to stable
2020-06-01 22:47:01 +03:00
Abduqodiri Qurbonzoda
f6a739bbc5
Promote bit query api to stable
2020-06-01 22:18:55 +03:00
Abduqodiri Qurbonzoda
1bd63bb07f
Make consistent parameter nullability with appendLine
2020-06-01 22:00:36 +03:00
Abduqodiri Qurbonzoda
e05eeea6cd
Promote common StringBuilder to stable
2020-06-01 22:00:34 +03:00
Abduqodiri Qurbonzoda
4568e438a9
Promote ExperimentalStdlibApi to stable
2020-06-01 21:59:32 +03:00
Ilya Gorbunov
7cc4cc0cec
Make testDeepTreeOddEvenNodesMutual two times easier
...
Otherwise it often times out in JS tests in a parallel build.
2020-06-01 20:15:55 +03:00