Commit Graph

607 Commits

Author SHA1 Message Date
Ilya Matveev 3da3e1cae9 IDE: Add native extensions to KotlinCompilation 2019-09-27 18:06:58 +07:00
Ilya Matveev 95cbb4e8b4 IDE: Add a flag to disable native libraries propagation 2019-09-27 18:06:58 +07:00
Ilya Matveev 701e92ace2 IDE: Propagate platform libraries to common modules for some native targets
Some native platforms (e.g. ios_arm64 and ios_x64) have almost
identical platform libraries. For such platforms we can workaround
a lack of the commonizer and resolve common sources against
libraries of one of these platforms. This patch enables this
workaround by propagating dependencies to common modules.

Issue #KT-33999 fixed
2019-09-27 18:06:56 +07:00
Andrey Uskov ca75aeb534 Update kotlin gradle plugin version in HMPP tests 2019-09-27 12:00:08 +03:00
Andrey Uskov 03b58d9941 Point to module names instead of source set names in dependsOn of Facet 2019-09-27 12:00:02 +03:00
Andrey Uskov 715fad849d Importing test tasks and targets is implemented 2019-09-27 11:59:58 +03:00
Natalia Selezneva 153339bc26 193: Remove Gradle Kotlin DSL template because they are provided by Gradle Plugin (since 193)
^IDEA-219018
2019-09-25 15:54:04 +03:00
Vyacheslav Gerasimov d54bc3a4bb 193: Fix tests compilation for 193 platform 2019-09-24 18:22:35 +03:00
Andrey Uskov 8ff4a92562 Fix serialization of data nodes tree
#KT-33987 Fixed
2019-09-24 16:27:13 +03:00
Vyacheslav Gerasimov 6327f657a5 193: Add bunches for 193 platform 2019-09-17 21:16:13 +03:00
Nikolay Krasko edb700b898 Switch to 192 platform 2019-09-06 11:28:25 +03:00
Natalia Selezneva fb01f7be5e Rename ScriptDependenciesManager to ScriptConfigurationManager 2019-09-06 10:52:59 +03:00
Natalia Selezneva dc46f73ecf Rewrite scripting related API to PsiFile instead of VirtualFile
There were several places where we converted virtualFile to PsiFile. This operation need a read access and may throw ProcessCanceledException,
so we want to minimize its usages in IDE
2019-09-06 10:51:26 +03:00
Nikolay Krasko 7bdde7cad3 Disable HierarchicalMultiplatformProjectImportingTest in Android Studio (KT-33067) 2019-09-05 14:35:17 +03:00
Andrey Uskov 106452b5f0 Add list of modules available via dependsOn in FacetSettings 2019-09-05 13:58:58 +03:00
Nikolay Krasko edd2cedfd3 Disable GradleConfiguratorPlatformSpecificTest in AS 3.6 2019-08-30 22:26:00 +03:00
Nikolay Krasko c0270ef47b More plugins registration for Android Studio 3.6 2019-08-30 22:26:00 +03:00
Nikolay Krasko e28802fbfa Fix test failure because of duplicates file templates in classpath
There're two ways for getting templates in test runtime. One is from
sources resource files, the second one is from compiled jar.

Remove the first entry manually.

A better fix is to extract tests to separate module. This will leave
only jar in the test runtime classpath.
2019-08-30 22:25:59 +03:00
Nikolay Krasko 8218ca5bae More 182 branch mentioning remove
#KT-33536 Fixed
2019-08-30 12:14:58 +03:00
Nikolay Krasko 081ffe7d19 Remove ScriptModificationListener compat after removing 182
#KT-33536 Fixed
2019-08-30 12:14:07 +03:00
Nikolay Krasko 4d0fc1dc22 Remove 182 support
#KT-33536 Fixed
2019-08-30 12:13:44 +03:00
Nikolay Krasko 1c4ee6bd79 Remove as33 support
#KT-33536 Fixed
2019-08-30 12:13:09 +03:00
Mikhail Zarechenskiy 50e7ff4097 Refactoring: move isSnapshot function closer to similar ones 2019-08-15 12:49:53 +03:00
Dmitry Gridin 2c0d6ab1a5 [Compatibility] Restore GradleBuildScriptManipulator.addKotlinLibraryToModuleBuildScript(scope, libraryDescriptor)
#KT-33336 Fixed
2019-08-15 15:54:12 +07:00
Dmitry Gridin 645bbc93cb KotlinWithGradleConfigurator: support addKotlinLibraryToModuleBuildScript for multiplatform
#KT-27270 Fixed
2019-08-01 16:09:04 +03:00
Andrey Uskov a6f50c71bd Fixed import of package prefix in non-MPP projects
#KT-33038 Fixed
2019-07-30 18:43:30 +03:00
Andrey Uskov 0276a6262f Fix compilation of NewMultiplatformKaptProjectImportingTest in AS 3.3,3.4 2019-07-30 14:34:36 +03:00
Andrey Uskov 4e486e7738 Fix NewMultiplatformKaptProjectImportingTest (KT-32974)
Fix test case when importing module per source set is not supported
in Android Studio
#KT-32974 Fixed
2019-07-30 11:56:07 +03:00
Andrey Uskov c17a5bc8f2 Disable KaptImportingTest.testModulePerSourceSet in AS (KT-32683)
#KT-32683 Fixed
2019-07-30 11:55:17 +03:00
Andrey Uskov 02ee950836 Add transitive dependencies on common MPP modules
Transitive dependencies on modules available via
'dependsOn' dependencies are added to java modules
depending on MPP projects
#KT-33025 Fixed
2019-07-30 11:38:51 +03:00
Andrey Uskov 5f2aca5856 Fix NewMultiplatformProjectImportingTest in bunch 183 2019-07-26 09:33:39 +03:00
Andrey Uskov 91365d9fad Fix import library dependencies when transitive MPP are involved
Fix import dependencies of java modules on MPP modules when
project was not build before import. Unresolved jar dependencies
are not created any more on import of MPP project.
#KT-28822 Fixed
#KT-29757 Fixed
2019-07-26 01:17:55 +03:00
Andrey Uskov 0b8ad5c6c0 Fixed setting production-on-test flag if project was not build
Make importing production-on-test flag more accurate when
the project to be imported was not previously build
2019-07-26 01:16:56 +03:00
Andrey Uskov 17dec7b389 Add transitive test dependencies on MPP with jvmWithJava on import
Fixed case when production and test source sets depend on MPP module
with jvmWithJava involved and have dependency on the same jar artifact.
2019-07-26 01:16:17 +03:00
Andrey Uskov 86a26f0cca Add jvmWithJava IDE import test 2019-07-26 01:15:32 +03:00
Andrey Uskov 6c0469cee0 Fix importing transitive dependencies on MPP project
Fix importing dependencies of java projects on MPP projects
when external dependency is resolved into file collection dependency
2019-07-26 01:14:45 +03:00
Vyacheslav Gerasimov 3b78ef9cb2 as36: Add bunches for AS 3.6 C6 based on 192 platform 2019-07-25 20:50:02 +03:00
Dmitriy Dolovov e398804663 Show the actual Kotlin version in error message in nativeLibrariesUtil.kt 2019-07-23 20:54:39 +07:00
Andrey Uskov ad1b795a69 Disable KaptImportingTest in IDEA 183 and below 2019-07-23 11:43:36 +03:00
Andrey Uskov 6e10126c6f Fix matching file paths under Windows in NewMultiplatformKaptProjectImportingTest 2019-07-23 11:43:16 +03:00
Andrey Uskov 8294e5afc2 Increase heap size for gradle importing tests due to memory
leak in the gradle daemon
#KT-32731 Fixed
2019-07-22 16:10:33 +03:00
Andrey Uskov d69fbf1177 Fix serialization of iml files for IDEA 192
#KT-32629 Fixed
2019-07-22 15:53:48 +03:00
Anton Yalyshev 959b720e3f Cleanup: specify description for Gradle Kotlin/Multiplatform wizard 2019-07-21 16:57:54 +03:00
Natalia Selezneva f6b03dc02f Add Show Kotlin Gradle DSL Logs Action (KT-31440)
Provide a label for this action in some script diagnostics from gradle dsl resolver
^KT-31440 Fixed
2019-07-19 12:06:09 +03:00
Kirill Shmakov 407e5a5270 Use same models in MPP and CIDR 2019-07-18 15:02:17 +03:00
Vyacheslav Gerasimov a8e0dfabc7 Add -XX:+HeapDumpOnOutOfMemoryError for gradle in import tests
#KT-32643
2019-07-17 15:39:44 +03:00
Dmitry Gridin 7d173ed385 GradleBuildScript: throw exception when trying to change level of language features to disable in multiplatform & fix tests 2019-07-17 12:55:12 +03:00
Dmitry Gridin cb432acfb7 BuildScriptManipulator: implement new syntax for enable experimental features in MPP
#KT-28295 Fixed
2019-07-17 12:55:12 +03:00
Dmitry Gridin 46dfff7d82 KotlinBuildScriptManipulator: cleanup code 2019-07-17 12:55:11 +03:00
Anton Yalyshev 19dfbfa42c Cleanup: make comments more informative 2019-07-17 10:58:57 +03:00