Alexey Tsvetkov
619663cc88
182: Remove com.android.annotations.NonNull usage from TestUtils.java
...
It is not present in Intellij (182.*) anymore.
Also `org.jetbrains.annotations.NotNull` seems OK here as well.
2018-04-11 16:28:41 +03:00
Vyacheslav Gerasimov
4cf804f30f
181: Restore broken android lint quickfixes
2018-04-11 16:28:37 +03:00
Vyacheslav Gerasimov
283ac840c2
181: Add smali plugin required by android plugin to test runtime
2018-04-11 16:28:29 +03:00
Nicolay Mitropolsky
4e078fe94b
181: Android-related compilation fix (klint.AndroidLintInspectionBase)
2018-04-11 16:28:28 +03:00
Vyacheslav Gerasimov
f31b56a936
181: Fix compatibility after AS 3.0 was merged to 181
2018-04-11 16:28:27 +03:00
Raluca Sauciuc
cab1813dcd
as32: Fix compilation to match changes in SdkConstants ( #1533 )
...
... and match the intended semantics for AndroidxName.
Change-Id: If2148ab8cefcc124a72f63458b7dbddf1a6cfe04
2018-04-11 16:28:24 +03:00
Vyacheslav Gerasimov
054ae37ef4
as32: Fix fqname constant usages for AS 3.2 C3
2018-04-11 16:28:24 +03:00
Raluca Sauciuc
25e193546d
as32: Android framework resource refactoring fixes
...
Change-Id: I5dc44306eb315bc9463aaf3d55ad1a75c1e12015
2018-04-11 16:28:24 +03:00
Vyacheslav Gerasimov
b83da08708
as32: Fix compilation against AS 3.2 C2
2018-04-11 16:28:23 +03:00
Vyacheslav Gerasimov
e2578b6a17
as31: Add smali plugin required by android plugin to test runtime
2018-04-11 16:28:21 +03:00
Vyacheslav Gerasimov
fd0045cf6b
as31: Fix build scripts for AS 3.1
2018-04-11 16:28:21 +03:00
Vyacheslav Gerasimov
25fddaacfb
as31: Fix compilation ResourceReferenceAnnotatorUtil
2018-04-11 16:28:20 +03:00
Vyacheslav Gerasimov
ec460d88a7
as31: Fix compilation KotlinAndroidGradleLibraryDataService.kt for AS 3.1
2018-04-11 16:28:20 +03:00
Vyacheslav Gerasimov
e12e63572c
as31: Fix TypeParameterFindViewByIdInspection for AS 3.0
2018-04-11 16:28:19 +03:00
Alexey Sedunov
6636c4376b
as31: Kotlin Facet: Configure facet based on Android build variant (in AS)
...
#KT-19958 Fixed
2018-04-11 16:28:18 +03:00
Alexey Sedunov
a9cdccc6de
as31: Misc: Fix compilation
2018-04-11 16:28:18 +03:00
Dmitry Jemerov
8568bde4df
as31: Fix compilation
...
(cherry picked from commit bc0bc0e)
2018-04-11 16:28:17 +03:00
Dmitry Jemerov
abce7170be
as31: Implement ConvertJavaToKotlinProvider
...
(cherry picked from commit 34dfa24)
2018-04-11 16:28:17 +03:00
Vyacheslav Gerasimov
38b38511a0
as31: Fix KotlinAndroidLineMarkerProvider for AS 3.0
2018-04-11 16:28:17 +03:00
Vyacheslav Gerasimov
13b192cd47
as31: Moved getRequiredVersion to KotlinAndroidQuickFixProvider
2018-04-11 16:28:16 +03:00
Vyacheslav Gerasimov
11ee744340
as31: Drop custom Kotlin Android lint, register quickfixes with extension point
2018-04-11 16:28:16 +03:00
Vyacheslav Gerasimov
ab532732ed
as31: Fix compilation AndroidResourceReferenceAnnotator
2018-04-11 16:28:15 +03:00
Vyacheslav Gerasimov
7c30e80382
as31: Kotlin Facet: Configure facet on Gradle project sync in Android Studio 2.3
...
#KT-15909 Fixed
(cherry picked from commit 6a490bc681f968ee209580f683804b1ee3baee96)
2018-04-11 16:28:14 +03:00
Vyacheslav Gerasimov
6bca651848
as31: Fix compilation for Android Studio 2.4
2018-04-11 16:28:14 +03:00
Vyacheslav Gerasimov
a4699add8e
as31: Fix gotoResourceHelper: MyReferredResourceFieldInfo now requires module
2018-04-11 16:28:14 +03:00
Vyacheslav Gerasimov
b6abe84357
as31: Fix ResourceFoldingBuilder for AS 2.4
2018-04-11 16:28:14 +03:00
Vyacheslav Gerasimov
7c02d55b23
Remove explicit jar specification from ide modules build scripts
...
They often change between ide versions and difficult to maintain
2018-04-09 21:47:48 +03:00
Yan Zhulanow
78f2fe1eab
Pill: Add idea-android-output-parser module to JPS model
2018-04-02 19:26:32 +03:00
Yan Zhulanow
ff4cdfb43e
Remove "New Kotlin Activity" action as Android plugin can generate it by itself (#KT-22845, EA-114706)
2018-04-02 19:14:40 +03:00
Nikolay Krasko
70d236cb8d
Always configure "idea.home.path" system variable
...
When TestLoggerFactory is initialized in tests it checks that variable
and it it's not present uses classpath to search for logger configuration.
If this search is unsuccessful a lot of exceptions are written to log:
java.lang.RuntimeException: Could not find installation home path. Please make sure bin/idea.properties is present in the installation directory.
at com.intellij.openapi.application.PathManager.getHomePath(PathManager.java:96)
at com.intellij.testFramework.TestLoggerFactory.reconfigure(TestLoggerFactory.java:67)
2018-03-29 19:49:00 +03:00
Alexey Tsvetkov
8a82c1618c
Use Plugins DSL in Kotlin Gradle scripts
...
When plugins DSL is used, there is no need to
manually generate typesafe accessors for extensions and
conventions (by running `./gradlew kotlinDslAccessorsSnapshot`).
2018-03-26 16:09:29 +03:00
Zalim Bashorov
9970dd051f
Fix copyright's start year in generated tests
2018-03-14 15:04:58 +03:00
Yan Zhulanow
df88acaefd
Get rid of test-to-production dependencies as it's not supported in plain IDEA projects
2018-03-02 03:15:24 +03:00
Yan Zhulanow
a0c105adbe
Fixes to make the project compile when using Pill
2018-03-02 03:15:19 +03:00
Yan Zhulanow
34d1611ed4
Add Pill support to compiler and IDE modules
2018-03-02 03:15:17 +03:00
Mikhail Glukhikh
b436ee6e19
Replace some of RESOLVED_CALL & REFERENCE_TARGET usages to resolveToCall
2018-02-27 18:24:55 +03:00
Mikhail Glukhikh
84993ec3a0
Resolution API: introduce and use KtElement.resolveToCall()
2018-02-20 20:25:42 +03:00
Mikhail Glukhikh
5848bc9a44
Introduce KtClassOrObject.resolveToDescriptorIfAny()
2018-02-20 20:25:42 +03:00
Mikhail Glukhikh
eabc7c9ba8
Replace some KtDeclaration.analyze() with resolveToDescriptorIfAny()
...
Also, enhance comment on KtElement.analyze()
2018-02-20 20:25:40 +03:00
Yan Zhulanow
a171874b2f
Fix "Illegal Android Identifier" inspection reports non-instrumentation unit tests (KT-22168)
2018-02-06 22:16:00 +03:00
Yan Zhulanow
da74bcbcc0
Evaluate: Support dex in newer Android build tools
2018-02-06 22:16:00 +03:00
Yan Zhulanow
5668a7af92
Kapt: Replace original Javac diagnostic messages with those with Kotlin location mapped
...
There is no Messages dialog in newer versions of IDEA/Android Studio in which the error messages were mapped before. The new Build window shows only the original locations, so now we need to replace Java file diagnostics with ones mapped to Kotlin source files.
The side effect is that diagnostics on the same locations are automatically merged.
2018-02-06 22:16:00 +03:00
Yan Zhulanow
145ddf3b1f
Parcelable: Add CREATOR field (and other generated declarations) in light classes (KT-19300, KT-19853)
2018-02-06 22:15:59 +03:00
Pavel V. Talanov
5ab00ee9f7
HighlighterExtension can provide custom highlighting for calls
2018-02-05 16:22:19 +01:00
Natalia Selezneva
74a9881e9d
Fix "Virtual pointer hasn't been disposed" exception in tests. Add sdk to ProjectJdkTable.
2018-02-05 09:46:57 +03:00
Natalia Selezneva
847990a4f6
Tests: call super.teardown from finally block in android tests
2018-02-02 17:44:28 +03:00
Alexey Tsvetkov
7cba035f80
Ensure tasks using android sdk or android jar have proper dependencies
...
A test task, that uses android dependency but does not depend on
a corresponding configuration, would fail when it was run after
'clean' task.
I've extracted 'useAndroidSdk', 'useAndroidJar' extensions
making it harder for a developer to forget to set up task dependencies.
2018-02-02 15:40:10 +03:00
Vyacheslav Gerasimov
68b5dc756c
Remove intellij-core from testRuntime if full idea is already there
...
Looks like it makes tests flacky
2018-01-30 17:06:18 +03:00
Vyacheslav Gerasimov
89a07ded1c
Extract versions and remove unnecessary '.jar' extensions
2018-01-30 17:06:18 +03:00
Vyacheslav Gerasimov
07b191f460
Update dependency versions after migration to 173
2018-01-30 17:06:17 +03:00