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
Dmitry Jemerov
608f5892f9
Set library kind when importing projects from Gradle
2017-07-17 11:58:57 +02:00
Mikhail Glukhikh
dfe2c16bc7
More cleanup: lift return / assignment out
2017-07-10 12:59:58 +03:00
Mikhail Glukhikh
9c06739594
Cleanup: apply "lift out..." inspection (+ some others)
2017-07-07 18:15:30 +03:00
Vyacheslav Gerasimov
ee53e81e8e
Fix Android resource reference folding
...
Properly fold qualified expressions and handle nested references
#KT-18429 Fixed
2017-07-07 03:24:03 +03:00
Vyacheslav Gerasimov
7c6ffff198
Refactor Kotlin Gradle configurator
2017-07-07 03:23:34 +03:00
Vyacheslav Gerasimov
2ec1a4311a
Implement Kotlin configurator for GSK
...
#KT-14965 Fixed
2017-07-07 03:23:17 +03:00
Vyacheslav Gerasimov
2116877991
J2K: rename KotlinAndroidGradleModuleConfigurator .java -> kt
2017-07-07 03:22:28 +03:00
Vyacheslav Gerasimov
fdf098d65c
Add gutter icon with navigation to related files for Android components
2017-06-06 20:47:30 +03:00
Vyacheslav Gerasimov
3f03b05bd3
Fix Android gutterIcon test, use findGuttersAtCaret method
2017-06-06 20:47:21 +03:00
Vyacheslav Gerasimov
15bfd4439a
Fix AddTargetVersionCheckQuickFix, generate else branch with TODO
...
when surrounded statement used as expression
#KT-17786 Fixed
#KT-17788 Fixed
2017-06-06 20:46:53 +03:00
Vyacheslav Gerasimov
33c3ba815f
Fix Android SuppressLint and Api quickfixes: proper annotation placing
...
#KT-17783 Fixed
#KT-17787 Fixed
2017-06-06 20:46:40 +03:00
Nikolay Krasko
0980446836
Fix running Android tests locally on windows
2017-06-06 14:56:22 +03:00
Zalim Bashorov
fb9d88315a
Don't print unnecessary empty line separators when generate tests
2017-05-16 19:42:47 +03:00
Vyacheslav Gerasimov
9552666aa6
Use platform-25 for android tests
...
Add Android platform-25 to dependencies
Update platform tools to 25.0.3
2017-04-27 16:02:37 +03:00
Vyacheslav Gerasimov
49c8dfbb06
Add gutter icons for Android resource references
...
#KT-16843 Fixed
2017-04-26 18:38:29 +03:00
Vyacheslav Gerasimov
386ec53dd5
Update AndroidTestCase to AS 2.3 + Android tests refactoring
2017-04-26 18:38:29 +03:00
Vyacheslav Gerasimov
06c8de02b5
Add intentions for registering Android components in manifest
...
Activity, Service, BroadcastReceiver
#KT-17389 Fixed
2017-04-18 19:04:15 +03:00
Vyacheslav Gerasimov
5b58a6f9e8
Add intentions Add/Remove/Redo parcelable implementation
...
#KT-17465 Fixed
#KT-12049 Fixed
2017-04-18 19:04:14 +03:00
Zalim Bashorov
05c3e7e81d
Don't export kotlin-reflect form util module and add it explicitly where it's required.
...
Also, remove kotlin-reflect form container module.
Main goal is get rid of kotlin-reflect.jar from modules what required for minimal compiler.jar which can compile Kotlin only to JS to make it smaller.
2017-04-17 18:18:31 +03:00
Vyacheslav Gerasimov
1d134ffc72
Register Android api quickfixes for inlined api inspection
...
#KT-14857 Fixed
2017-04-10 12:39:40 +03:00
Vyacheslav Gerasimov
70d24d0108
Fix NoSwingUnderWriteActionException in KotlinAndroidAddStringResource
2017-04-10 12:38:34 +03:00
Alexey Sedunov
a8a9c3bbf4
Kotlin Facet: Fix platform detection in android-gradle projects
...
Sort candidate library names by descending length.
Suppress common library if platform-specific one is also present
#KT-16827 Fixed
2017-04-04 14:35:08 +03:00
Dmitry Jemerov
265e765ec9
Allow to exclude specific qualified names from import in tests
...
In tests, ImportFix imports the first available candidate. This can
lead to non-deterministic tests when multiple candidates are available.
With this fix, unwanted candidates can be excluded.
2017-03-27 19:48:59 +02:00
Dmitry Jemerov
88372132be
Delete Android facet in teardown
2017-03-27 19:48:58 +02:00
Dmitry Jemerov
4f229c3fdc
Convert AbstractQuickFixMultiFileTest to light fixture test case
2017-03-27 19:48:51 +02:00
Dmitry Jemerov
8e26d5257f
Don't add stdlib-jre7 or stdlib-jre8 dependencies when configuring Kotlin with pre-1.1 version
...
#KT-16401 Fixed
2017-03-21 14:02:05 +01:00
Mikhail Glukhikh
e6cefba98b
Fix imports vs 2016.3 (ResourceFoldingBuilder)
2017-03-20 18:45:30 +01:00
Nikolay Krasko
2eb6c393a4
Move android modules to Java 8 SDK
2017-03-20 18:45:29 +01:00
Yan Zhulanow
59055e28ee
CreateFileResourceQuickFix now accepts ResourceFolderType instead of ResourceType
...
(cherry picked from commit 55f350f)
2017-03-20 18:45:26 +01:00
Vyacheslav Gerasimov
180ae070ee
Fixed KotlinAndroidResourceQuickFixProvider for AS 2.2
2017-03-20 18:45:24 +01:00
Dmitry Jemerov
594e2b6a77
fix compilation
2017-03-20 18:45:23 +01:00
Yan Zhulanow
24c9b6e171
Migrate IDEA plugin code to Android Studio 2.2 (br 145)
2017-03-20 18:45:15 +01:00
Alexey Sedunov
cf9d7a0470
Kotlin Facet: Detect platform by stdlib dependency in android-gradle projects
...
#KT-16827 Fixed
2017-03-16 03:14:38 +03:00
Mikhail Glukhikh
b121bf8802
Cleanup: fix some compiler warnings (mostly deprecations, javaClass)
2017-03-15 17:35:31 +03:00
Dmitry Jemerov
8c3936a0ee
Update to UAST 0.12
2017-03-09 17:07:43 +01:00
Vyacheslav Gerasimov
5e4459f41d
Fix broken MultiFileHighlightingTest
...
Android resource folding builder should not run in non-Android projects
2017-03-06 14:31:01 +03:00
Vyacheslav Gerasimov
1376c8f8cf
Implement quickfixes for Android Lint api issues
...
#KT-16624 Fixed
#KT-16625 Fixed
#KT-14947 Fixed
2017-03-03 16:22:36 +03:00
Vyacheslav Gerasimov
a907ec92b5
Implement Android resource reference folding
...
#KT-15451 Fixed
2017-03-03 16:18:20 +03:00
Yan Zhulanow
593fbadc98
Force using the 'kotlin-stdlib-jre7' artifact when configuring Android modules with JDK >= 1.8 as Dex can't process our 'kotlin-stdlib-jre8' artifact.
...
This fixes KT-16530: Configure Kotlin in Project inserts dependency to kotlin-stdlib-jre8 in Android projects.
2017-03-01 18:50:22 +03:00
Dmitry Jemerov
acc19f2ab6
Don't add 'kotlin' source root to build.gradle by default
...
#KT-14830 Fixed
2017-01-26 19:08:57 +01:00
Dmitry Jemerov
68bd5bd323
Fix project leak due to not disposed dialog
2017-01-26 18:55:17 +01:00
Kirill Rakhman
ca86dbee72
Android: Add intention to generate View constructor convention
...
Fixes #KT-15150
2017-01-26 00:56:33 +03:00
Vyacheslav Gerasimov
d0f1b81bfa
Fixed bugs in Kotlin Android Lint CleanupDetector
...
#KT-14780 Fixed
#KT-14677 Fixed
(cherry picked from commit f591b4958e4a836d37d70c2ad8ff15e626c6342a)
2017-01-25 10:50:35 +03:00
Mikhail Zarechenskiy
6cccad9647
Update year in license and regenerate tests
2017-01-10 12:01:17 +03:00
Vyacheslav Gerasimov
9c78301008
Invoke rename handler with editor if possible in IllegalIdentifierInspection.RenameIdentifierFix
...
#KT-14760 Fixed
#KT-11646 Fixed
2016-12-12 13:47:58 +03:00
Vyacheslav Gerasimov
60bc35b787
Implemented suppress lint intention action for android lint (KT-12020)
...
#KT-12020 Fixed
2016-11-21 17:16:27 +03:00
Vyacheslav Gerasimov
d90ec3e777
Fixed KotlinLintTestGenerated.testJavaPerformance + refactoring
...
Moved android lint tests from uast-kotlin to idea-android
2016-11-16 18:05:09 +03:00
Dmitry Jemerov
47c80a1ad1
KotlinWithGradleConfigurator: J2K
2016-11-11 14:39:18 +01:00