Yan Zhulanow
037caf3a17
Kapt: Prefer Kotlin diagnostic locations over ones from stubs
2017-12-01 22:53:19 +09:00
Alexander Udalov
aca74cef0e
Replace dependencies on kotlin-reflect with kotlin-reflect-api
...
See the previous commit for information on the kotlin-reflect vs
kotlin-reflect-api distinction.
Add kotlin-reflect as an explicit runtime dependency of most of the test
configurations because even though they all depend on tests-common, the
runtime dependency on kotlin-reflect is not exported from tests-common
to other modules because the projectTests dependency is not transitive.
2017-11-28 12:35:49 +01:00
Vyacheslav Gerasimov
26dcd1c706
Add kapt3-idea to test runtime of idea-android
2017-11-27 20:20:40 +03:00
Dmitry Jemerov
fd763bde17
Reorder imports to avoid merge conflict
...
(cherry picked from commit 4286cce)
2017-11-22 18:30:34 +01:00
Dmitry Jemerov
e00cc5ab3d
Don't crash with old versions of Android Gradle plugin
...
#KT-21383 Fixed
2017-11-22 14:14:26 +01:00
Alexander Udalov
33549362cb
Move compiler/tests-common/{src -> tests}, adjust dependencies
2017-10-31 07:36:45 +01:00
Alexander Udalov
c2276e2ccb
Rename module ':compiler.tests-common' -> ':compiler:tests-common'
2017-10-31 07:36:45 +01:00
Nikolay Krasko
6a43743c98
Configure new projects with kotlin-stdlib-jdk7/8 (KT-20286)
...
No migration for old projects has been added yet.
#KT-20286 Fixed
2017-10-25 15:01:10 +03:00
Dmitry Jemerov
81615fa551
Correctly propagate dependencies in multiplatform projects with Android
2017-10-23 14:59:56 +02:00
Dmitry Jemerov
cc85ac44b3
Rename KotlinPlatformGradleDetector to KotlinGradleModelFacade
2017-10-23 14:59:56 +02:00
Dmitry Jemerov
14a30e09c6
Use binary path instead of name to locate libraries from Android deps
2017-10-23 14:59:56 +02:00
Nikolay Krasko
3145c096a7
Refactoring: introduce Sdk.version extension
...
(cherry picked from commit d387e6e)
2017-10-03 16:10:33 +03:00
Alexander Udalov
113c83b47a
Minor, cleanup AbstractQuickFixMultiFileTest
2017-09-25 12:00:18 +03:00
Simon Ogorodnik
129dc42a25
Fix JPS classpath
2017-09-20 11:51:26 +02:00
Ilya Chernikov
3aabeca191
Fix maven and android tests after modularizing and rebasing
2017-09-20 11:51:21 +02:00
Simon Ogorodnik
360a692af8
Apply rri/yole/modularize, create gradle run configuration for IDEA
2017-09-19 23:58:41 +02:00
Ilya Chernikov
b4c9422376
Rearrange and rename idea-plugin related and annotation-processing modules
2017-09-19 23:58:37 +02:00
Ilya Chernikov
d039d191f2
Fix tests in the new build infrastructure
2017-09-19 23:58:30 +02:00
Alexander Podkhalyuzin
3f8170d369
Clean idea files generated on the gradle import, add them to .gitignore
2017-09-19 23:58:27 +02:00
Ilya Chernikov
deda50dbbb
Continue switching projects to improved dsl: sourceSets and test running
2017-09-19 21:37:26 +02:00
Ilya Chernikov
336e24b837
Fix project structure after rebase on master
2017-09-19 21:37:25 +02:00
Ilya Chernikov
aa4fdaa713
Implement publishing in the build
2017-09-19 21:37:13 +02:00
Ilya Chernikov
61dfb75e0e
Implement Gradle Kotlin DSL build
2017-09-19 21:37:06 +02:00
Yan Zhulanow
d9f99971bb
Disable old Parcelable quickfixes if @Parcelize annotation is present
2017-09-14 19:36:47 +03:00
Yan Zhulanow
9984b6f9d1
Minor: Refactoring
2017-09-14 19:29:10 +03:00
Yan Zhulanow
83bf257666
Kapt: Attach kapt stub location when reporting annotation processor errors
2017-09-14 19:16:55 +03:00
Yan Zhulanow
4ac8a98050
Kapt: Hide fake "Error while annotation processing" error in Android Studio build console
2017-09-14 19:16:54 +03:00
Yan Zhulanow
69051a4764
Simplify KotlinOutputParser, remove old reflection-based logic that didn't work well with the newer versions of Android Studio
2017-09-14 19:16:53 +03:00
Mikhail Glukhikh
92215b41b9
Replace resolveToDescriptor with unsafeResolveToDescriptor
...
Now unsafeResolveToDescriptor is equivalent to resolveToDescriptorIfAny
but throws exception in case no descriptor is found.
Old version of resolveToDescriptor is kept intact but made deprecated.
Some clarifying comments were added
2017-09-14 17:20:37 +03:00
Dmitry Jemerov
0fa4e1cbaf
Set scope of plugin dependencies to provided
2017-09-01 13:11:39 +02:00
Vyacheslav Gerasimov
5220dfc0ad
Android: Add inspection & quickfix to convert findViewById to api 26
...
#KT-19940 Fixed Target Version 1.1.5
2017-09-01 13:32:52 +03:00
Vyacheslav Gerasimov
56a075eab6
UAST: Fix annotation arguments processing
...
multiple unnamed arguments represented as value named expression with array initializer
call kind for array in annotation argument should be "array initializer" instead of "method call"
#KT-16600 Fixed Target Versions 1.1.5
2017-09-01 13:31:50 +03:00
Dmitry Jemerov
e0bf438195
Move .xml files back to main idea module
2017-09-01 11:57:37 +02:00
Dmitry Jemerov
8b0d606ab5
Move Android .xml file to idea-android module
2017-09-01 11:57:37 +02:00
Dmitry Jemerov
d8b6bd5cb3
Decouple idea-analysis from Android
...
Introduce API for extending syntax highlighting; use it in android
component
2017-09-01 11:57:37 +02:00
Vyacheslav Gerasimov
aedb4c0ade
Android Lint: Fix constant evaluation in annotation parameter
...
#KT-17785 Fixed Target Versions 1.1.5
2017-08-23 13:18:56 +03:00
Dmitry Jemerov
f7c17d6a64
Naming convention inspections
2017-08-16 15:45:33 +02:00
Dmitry Jemerov
e3963fccf4
Move Gradle-related classes to idea-gradle module
2017-08-15 16:51:42 +02:00
Mikhael Bogdanov
4e868c5232
Update AndroidProjectKey package
2017-08-10 22:05:48 +03:00
Vyacheslav Gerasimov
c1cfd70ae7
Fix tests compilation
2017-08-10 22:05:46 +03:00
Vyacheslav Gerasimov
b825a8db43
Fix compilation AndroidResourceReferenceAnnotator
2017-08-10 22:05:46 +03:00
Dmitry Jemerov
62e583903e
Fix compilation gotoResourceHelper, KotlinAndroidTestCase
2017-08-10 22:05:45 +03:00
Mikhail Glukhikh
c675824c0a
Fix compilation PlatformAndroidGradleDetector
2017-08-10 22:05:45 +03:00
Yan Zhulanow
6336c4ee98
Fix compilation androidUtil, MyReferredResourceFieldInfo requires module
2017-08-10 22:05:45 +03:00
Dmitry Jemerov
be1022db2b
Fix compilation NewKotlinActivityAction, gradle sync classes moved
2017-08-10 22:05:45 +03:00
Dmitry Jemerov
88420311cb
Look at library content to detect library kind when importing
2017-08-02 17:10:01 +02:00
Mikhail Glukhikh
c5a81691fb
Partial code cleanup: can be private and some others applied
2017-08-01 17:08:56 +03:00
Mikhail Glukhikh
951e8cd91a
Code cleanup: unnecessary local variable applied
2017-07-21 18:58:48 +03:00
Yan Zhulanow
069579fd79
Debugger: Disable code interpreting by default in evaluator
...
Provide the compiled bytecode to debugger instead of interpreting the expression by default.
This significantly increases evaluation speed in numerous cases, e.g. `(1..10000).map { it.toString() }.count()`.
Leave interpreter mode as a fallback.
Android does not provide decent in-memory class loading support.
Moreover, we need to run dex on the compiled classes, and it required significant time.
So for now compiling evaluator for Android is available only in Android O, and only if there're any local classes or non-inline lambdas (evaluator didn't work for them before so we may consider this change as an improvement).
2017-07-18 18:22:28 +03:00
Dmitry Jemerov
0fa09adf17
Provide library kind for common libraries; get rid of autodetection
2017-07-17 11:58:57 +02:00