Ilya Chernikov
18b53f331a
Fix proguarding of the main-kts
2018-09-21 15:12:53 +02:00
Ilya Matveev
a6f2af03e7
Pass absolute library paths to native compiler
2018-09-20 19:10:27 +03:00
Ilya Chernikov
a6c7f4294c
Annotate DiscoverScriptExtensionsTask properly
...
KT-26978 fixed
2018-09-20 09:44:58 +02:00
Yan Zhulanow
1008adaf02
Do not discover script extensions for Kapt stub generation tasks (KT-26974)
2018-09-19 22:50:31 +03:00
Ilya Gorbunov
86ba5ebf29
Mix kotlin-annotations-jvm with kotlin-reflect into proguard
...
So it can strip these annotations from the resulting jar.
#KT-26929 Fixed
2018-09-19 12:40:47 +03:00
Mikhail Zarechenskiy
86141be61f
Add inference annotations to the dumped declarations
2018-09-18 23:28:54 +03:00
Ilya Gorbunov
1d7ee22bdc
Simplify comparisons for small unsigned types that can fit in Int
...
UByte and UShort can be extended to Int exactly and then compared as ints
2018-09-18 22:25:36 +03:00
Ilya Gorbunov
af29dced98
Make overridden compareTo in unsigned types inline only
2018-09-18 22:25:36 +03:00
Ilya Gorbunov
9e0708e85a
Make most of unsigned operations inline only
2018-09-18 22:25:36 +03:00
Ilya Gorbunov
d793221a7b
Extract unsigned type related extensions to separate classes
...
- Rename class with unsigned number to string conversions to UStringsKt
- Extract Random unsigned extensions to URandomKt
2018-09-18 22:25:36 +03:00
Ilya Matveev
b469afdfcb
Use argument file to run Kotlin/Native compiler
2018-09-18 21:39:44 +03:00
Ilya Matveev
7d6adbd088
Serialize native compiler args
2018-09-18 21:39:44 +03:00
Ilya Chernikov
c0f4933356
Make ivy resolver quiet
2018-09-18 18:39:30 +02:00
Mikhail Zarechenskiy
d7f2eeb6e8
Add BuildInference annotation onto stdlib coroutine builders
2018-09-18 18:55:26 +03:00
Mikhail Zarechenskiy
bc6e091004
Migration change: temporarily specify type explicitly
...
Because of introduction of `BuilderInference` annotation.
Change it back after bootstrap
2018-09-18 18:55:26 +03:00
Mikhail Zarechenskiy
a293aded5d
Introduce builder-like inference with an explicit opt-in for it
...
- Add marker for the experimental type inference features
- Add annotation that will control builder-like inference
- Require that annotation on corresponding parameters and extensions
- Allow to use builder inference without suspendability
Changes in tests and refactorings (rename mainly) are going to be
introduced in further commits
2018-09-18 18:55:25 +03:00
Vyacheslav Gerasimov
5229ed0217
Add compatibility artifact with Mutable and ReadOnly annotations into dist
...
#KT-26916 Fixed
2018-09-18 18:52:32 +03:00
Simon Ogorodnik
818171108e
[K/N] Hack to enable exporting interop libraries
2018-09-18 17:54:57 +03:00
Ilya Matveev
a2c5c515de
Support OptionalExpectation in native
2018-09-18 15:55:49 +03:00
Anton Bannykh
7d5a304cf6
[JS IR BE] support Char.rangeTo()
2018-09-18 15:43:55 +03:00
Anton Bannykh
2e709a81fa
[JS IR BE] Arrays, varargs
2018-09-18 14:36:20 +03:00
Ilya Chernikov
7dd168d4ef
[minor] remove dumping of the proguard config to the wrong file
2018-09-18 08:36:47 +02:00
Ilya Gorbunov
cb47b0cde1
Fix sourcemap of stdlib/js to include new source sets
2018-09-17 17:58:28 +03:00
Ilya Gorbunov
f4af656e20
Remove entire stdlib opt-in for unsigned types to control precisely where they are exposed
2018-09-17 17:58:27 +03:00
Dmitry Petrov
97999a6415
Update testData for public API tests
...
Internal constructors for UIntProgression and ULongProgression are now
correctly detected as non-public API (because of proper metadata).
2018-09-17 17:28:52 +03:00
Roman Artemev
c0ef1311ba
[JS IR BE] Fix runtime for Release coroutines
2018-09-17 15:29:16 +03:00
Roman Artemev
6bb77ba51d
[JS IR BE] Get rid of parameters in doResume method. Make its signature similar for both 1.2 and 1.3 coroutines
2018-09-17 14:52:44 +03:00
Ilya Matveev
e1e02b072b
Use Kotlin/Native 0.9.1 ( #1872 )
2018-09-17 14:30:14 +03:00
Ilya Matveev
82baf6cbb1
Don't add cinterop libraries in compilation output ( #1871 )
2018-09-17 14:29:10 +03:00
Ilya Matveev
ea1abb0680
Provide a DSL for publication settings ( #1869 )
...
* Provide a DSL for publication settings
* Rename DSL method publication -> mavenPublication
* Fix gradle task input/output validation
#KT-26771 fixed.
2018-09-17 11:04:55 +03:00
Ilya Gorbunov
7a7fa56d74
[JS IR BE] New sequence builder mocks for building stdlib
...
#KT-26678
2018-09-16 23:30:36 +03:00
Ilya Gorbunov
aac96c476a
Rename sequence and iterator builder functions and their scope class
...
This introduces new functions instead of the existing sequence builders:
- `sequence` instead of `buildSequence`
- `iterator` instead of `buildIterator`
- `SequenceScope` instead of `SequenceBuilder`
The old functions were deprecated with error and made inline-only, and `SequenceBuilder` has been
made a deprecated typealias to `SequenceScope`.
Move sequence builders to `SequencesKt` facade class.
Replace sequence builder usages in stdlib and samples.
#KT-26678
2018-09-16 23:30:35 +03:00
Ilya Gorbunov
9c812c6e2b
Use new coroutines in samples
2018-09-16 23:30:32 +03:00
Roman Elizarov
4d3d376db8
InlineOnly Result.getOrNull method
2018-09-16 23:27:46 +03:00
Roman Elizarov
feb7239189
Removed SuccessOrFailure.
...
Left deprecated/error typealias to Result for 1.3-Mx users.
2018-09-16 23:27:45 +03:00
Roman Elizarov
1f675c8a74
Fixed unused exceptionOrNull result in map/mapCatching
...
(replaced with isSuccess check)
2018-09-16 23:27:45 +03:00
Ilya Chernikov
73907106e9
Fix script util tests after moving context utils to scripting-jvm
2018-09-16 22:24:59 +02:00
Ilya Chernikov
d760299dc1
Implement context classpath extraction using particular class,...
...
Use it in the main-kts.
Also improve diagnoistics related to the definition loading.
#KT-26828 fixed (after this commit - finally, see also another related commit)
2018-09-15 15:44:53 +02:00
Ilya Chernikov
d9760f00f6
Move context classpath utils from script-util to scripting-jvm
...
since it is the right place to have it in the new structure.
Solves the problem that script-util classes not found then script
definition with context classpath is loaded by the scripting compiler
plugin, since script-util is not packed into embeddable plugin.
The old context utils are deprecated and in fact wrap the new utils.
#KT-26828 fixed (in fact - partially, see another related commit)
2018-09-15 15:43:53 +02:00
Ilya Gorbunov
6bfb5c59a3
Make ResultTest common
...
Use custom exception type to avoid platform differences in toString implementation.
2018-09-14 15:32:25 +03:00
Ilya Gorbunov
b1c2daf1fe
Stdlib: fix name shadowing and names of overridden method parameters
2018-09-14 15:32:25 +03:00
Ilya Gorbunov
bf4be12239
Stdlib: review and suppress warnings
2018-09-14 15:32:25 +03:00
Ilya Gorbunov
6786b9ece2
Stdlib tests: cleanup warnings
2018-09-14 15:32:08 +03:00
Ilya Gorbunov
7e0a658de7
Change nextInt/Long with range parameters from members to extensions
...
We'd like to fix the implementation of these methods, so we could intrinsify them later
or perform other optimizations that are not possible when these methods are open.
2018-09-14 15:15:52 +03:00
Ilya Gorbunov
928fe19801
Rename Random.next* parameters: remaining renames
...
- Correct docs after parameter renaming
- Rename parameters in Random inheritors
- Rename local variables
#KT-26596
2018-09-14 15:15:52 +03:00
kenji tomita
ffb83bbdf0
Rename Random.next* parameters from "origin, bound" to "from, until"
...
Rename Random test methods
#KT-26596
2018-09-14 15:15:52 +03:00
Ilya Matveev
ccd4bc1bff
Add a project property for Kotlin/Native version overriding
2018-09-14 14:58:03 +03:00
Ilya Matveev
80bec0898f
Download native compiler in configuration stage
2018-09-14 14:58:03 +03:00
Ilya Chernikov
a03bfb3561
Implement support for non-kts scripts in gradle
...
#KT-26784 fixed
2018-09-13 20:47:21 +02:00
Ilya Gorbunov
9353cfb526
contentDeepToString: use list instead of set for infinite recursion tracking
...
#KT-26388
2018-09-13 06:10:10 +03:00