Ilya Kirillov
9e96cd4507
Wizard: do not print binaries specification for all native targets
...
#KT-35719 fixed
2020-01-24 11:11:58 +03:00
Ilya Kirillov
bf93d767b3
Wizard: sort & distinct imports in Gradle build files
2020-01-24 11:11:57 +03:00
Ilya Kirillov
dd882c2717
Wizard: move fqName to import in NativeTargetConfigurator
2020-01-24 11:11:56 +03:00
Ilya Kirillov
97416e651e
Wizard: add irs for build files from targets
2020-01-24 11:11:55 +03:00
Ilya Kirillov
2a83111fa3
Wizard: do not add empty gradle project to settings.gradle
2020-01-24 11:11:54 +03:00
Ilya Kirillov
afc320ac8d
Wizard: use settings.gradle instead of .kts for Groovy DSL Gradle projects
...
#KT-35694 fixed
2020-01-24 11:11:53 +03:00
Ilya Kirillov
4f4106a17e
Wizard: print repositories for Maven
...
#KT-35715 fixed
2020-01-24 11:11:52 +03:00
Ilya Kirillov
bced2655e8
Wizard: retrieve repositories from artifacts
2020-01-24 11:11:51 +03:00
Ilya Kirillov
baedd2a253
Wizard: correctly add Kotlin dependencies to singleplatform modules with gradle dsl build system
...
#KT-35695 fixed
2020-01-24 11:11:47 +03:00
Ilya Kirillov
796848b5a9
Wizard: fix adding invalid dependencies for maven build files
...
#KT-35711 fixed
2020-01-24 11:11:45 +03:00
Ilya Kirillov
029dad4d9e
Wizard: allow dashes for module names
...
#KT-35584 fixed
2020-01-24 11:11:40 +03:00
Ilya Kirillov
89199e5cc0
Wizard: fix incorrect ktor repository
...
#KT-35718 fixed
2020-01-24 11:11:34 +03:00
Ilya Kirillov
2df499b12d
Wizard: remove redundant return in native target configuration
...
#KT-35720 fixed
2020-01-24 11:11:33 +03:00
Ilya Kirillov
bfe3b58264
Wizard: fix swapped artifactId and groupId fields titles
...
#KT-35690 fixed
2020-01-24 11:11:32 +03:00
Abduqodiri Qurbonzoda
e89893b6fd
Optimize ArrayDeque tests run time
2020-01-24 05:52:18 +03:00
Ilya Gorbunov
8733d5f9ed
ArrayDeque: avoid triggering JDK 1.6 bug in tests
...
Use System.arraycopy instead of Arrays.copyOfRange to
avoid triggering JDK-7174363 bug in copyOfRange.
Fix package of ArrayDequeTest
2020-01-24 01:39:48 +03:00
Andrey Uskov
beb3165839
Added FUS extensions and new metrics for reporting statistics from gradle
2020-01-23 20:47:21 +03:00
Andrey Uskov
bac0309a9b
Added tests to gradle statistics reporter
2020-01-23 20:47:20 +03:00
Andrey Uskov
33d89e15b5
Metric description and anonymization rules added
...
Added metrics and their anonymization rules added. Persisted gradle
statistical information will not contain any sensitive information.
#KT-33404 Fixed
2020-01-23 20:47:19 +03:00
Andrey Uskov
763e02b3e8
Collecting performance information in Gradle plugin supported
...
The build performance information is collected during the build
when the Kotlin Gradle plugin is applied. Only hashed values are
saved if they may contain sensitive information. Numeric metrics
obtained on the basis of user's project are saved with random seed.
Persisted information is saved in gradleUserHomeDir.
#KT-33404 Fixed
2020-01-23 20:47:19 +03:00
Ilya Gorbunov
76759d3a5f
Drop compatibility stub for experimental unsigned API from 1.3.0
2020-01-23 19:38:02 +03:00
Ilya Gorbunov
8f37ace9ee
Finally drop deprecated mod functions from numeric types
...
#KT-26654
2020-01-23 19:28:22 +03:00
Roman Golyshev
a2b2c47b51
KT-34795 Use maven(...) instead of maven { setUrl(...) } for gradle scripts generation
...
- Use new syntax in tests, but not in actual gradle files
- Reuse public `toKotlinRepositorySnippet` instead of private one
- ^KT-34795 Fixed
2020-01-23 13:45:16 +03:00
Abduqodiri Qurbonzoda
1203df7405
Deprecate floating point to integral types lesser than Int #KT-30360
2020-01-22 23:27:35 +03:00
Abduqodiri Qurbonzoda
e459542e6f
Add removeFirst(OrNull) and removeLast(OrNull) methods to MutableList
2020-01-22 23:22:28 +03:00
Abduqodiri Qurbonzoda
b6849efd47
Common ArrayDeque
2020-01-22 23:22:21 +03:00
Alexander Udalov
3ca0f8a569
Fix incorrect message for new nullability assertion exception in 1.4
...
#KT-36026 Fixed
2020-01-22 14:41:20 +01:00
Ilya Matveev
2c66c3b0b6
Gradle, native: Allow setting destination directory for binaries
...
Issue #KT-29395 fixed
2020-01-22 17:29:32 +07:00
Ilya Matveev
df46dfc63d
Gradle, native: Don't pass to compiler missing klib files
...
We don't compile a klib if there are no sources for it (NO-SOURCE
checks). So, we need to take this fact into account and don't
pass such libraries to compiler in dependent modules. See also:
GH-2617 in the K/N repo.
This patch checks that a klib file exists before passing it to the
compiler.
2020-01-22 17:29:31 +07:00
Ilya Matveev
ce45df2c96
Gradle, tests: Skip building in native binaries test for Groovy DSL
...
This test is one of the most time-consuming tests because
it builds a lot of final native binaries. Moreover, it exists
in two versions: for Groovy DSL and for Kotlin DSL. The only
difference between these versions is build script DSL.
This patch disables project building for the Groovy DSL version to
reduce total test execution time. Now this test only checks that
project configuration is successful. But it's enough to detect DSL
problems.
2020-01-22 17:29:30 +07:00
Ilya Matveev
01622f069e
Gradle, native: Support exporting dependencies for static and shared libs
...
Issue #KT-35352 fixed
2020-01-22 17:29:30 +07:00
Alexander Udalov
e34a207725
Implement KTypeProjection.toString
...
The implementation is checked by tests on typeOf.
#KT-30071 Fixed
2020-01-21 19:34:01 +01:00
Ilya Chernikov
75441386e3
Use scripting cache earlier in the pipeline:
...
before initializing compiler and processing callbacks
2020-01-21 17:42:48 +01:00
Ilya Chernikov
c7d9eaed40
Speed up REPL package member declaration provider
...
about 10-15% on specific test
also preparing test infrastructure for it
2020-01-21 17:42:48 +01:00
Ilya Chernikov
1b65ec75ad
Immplement default cache in main-kts
2020-01-21 17:42:48 +01:00
Ilya Chernikov
a4752087db
Get rid of kotlinx.coroutines usage in saved script runner
...
to reduce dpendencies for the save dscipt running
2020-01-21 17:42:48 +01:00
Ilya Chernikov
5f15cacb1b
Fix ivy mapping to the maven repos in main-kts
2020-01-21 17:42:48 +01:00
Ilya Chernikov
d15d62a338
Check REPL snippet syntax before calling analysis
...
restores the behaviour of the GenericRepl implementation and fixes
issues then invalid code is being compiled
#KT-34888 fixed
2020-01-21 17:42:48 +01:00
Tsvetan
5f0e3018db
KT-27856 Add contracts to Timing.kt lambdas ( #1987 )
2020-01-21 15:42:21 +03:00
Yaroslav Chernyshev
401baa35ab
[Gradle, Native] Implement custom name for generated framework for XCode
2020-01-21 10:23:53 +03:00
Ilya Gorbunov
1336da8453
Rename Clock to TimeSource, ClockMark to TimeMark
...
Step 2: rename classes and interfaces.
Provide deprecated typealiases to smooth migration.
2020-01-21 03:28:35 +03:00
Ilya Gorbunov
a11a25087a
Rename Clock to TimeSource, ClockMark to TimeMark
...
Step 1: rename files
2020-01-21 03:28:35 +03:00
Ilya Gorbunov
15a441141f
Update public API dump after KT-11567 codegen changes came into effect
...
The only questionable case left is a private companion
in a public interface, which is generated as a public synthetic field
2020-01-20 21:29:50 +03:00
Ilya Gorbunov
51c5fcc8b8
Drop experimental stdlib sourceset
...
Haven't used it after pre 1.3
2020-01-20 18:35:21 +03:00
Sergey Igushkin
796d4da9f5
Fix testLanguageSettingsConsistency with default language version 1.4
2020-01-20 16:37:51 +03:00
nataliya.valtman
578132ef1f
CleanDataTask: use provider for input cleanStore
2020-01-18 11:34:21 +03:00
nataliya.valtman
abd60b97f8
YarnPlugin: configuration should be required only at build phase
2020-01-18 11:34:20 +03:00
Alexander Udalov
55e29363dc
Update test data for kotlinp
...
Inline functions require Kotlin compiler at least 1.3.50 if they were
generated by the compiler with API version >= 1.4. This is because since
API version 1.4, we've changed the generation scheme of parameter
nullability assertions and they now refer to methods from the standard
library which did not exist until 1.4. See
JvmSerializerExtension.writeInlineParameterNullCheckRequirement.
2020-01-17 20:40:35 +01:00
Zac Sweers
482874fdc1
Embed proguard/R8 rules in kotlin-reflect artifact jar
...
The Android build pipeline can extract embedded proguard configurations
from dependencies and merge them automatically. This adds a conservative
proguard configuration to the kotlin-reflect JVM artifact in support of
that. This focuses mostly on just retaining what's necessary for
kotlin-reflect's own functionality to operate, but could be expanded if
community feedback discovers other good candidate rules.
With this in place - most Android projects using R8 or Proguard should
Just Work™️ with kotlin-reflect.
2020-01-17 20:03:52 +01:00
Alexander Udalov
ae395bda09
Do not depend on proguard directly in :kotlin-reflect:modularJar
...
This is useful if proguard is disabled with
-Pkotlin.build.proguard=false.
2020-01-17 19:58:27 +01:00