Commit Graph

95043 Commits

Author SHA1 Message Date
Pavel Mikhailovskii f8fd23e373 KT-8575 Add tests and disable reflection for Java synthetic property references 2022-09-22 13:33:28 +00:00
Igor Yakovlev 5116bbc440 [WASM] Fix invalid element visiting for external declarations 2022-09-22 11:54:04 +02:00
Igor Yakovlev b4ebc1dca4 [WASM] Add missing implicit casts 2022-09-22 11:54:04 +02:00
Igor Yakovlev 081cd4a4a8 [WASM] Support nullable types for external functions 2022-09-22 11:54:04 +02:00
Aleksei.Cherepanov dc57ccdf76 Clean up default additional compiler argument
Remove `-version` from additional compiler arguments of newly created facets

#KTIJ-22490 Fixed
2022-09-22 09:14:08 +00:00
Svyatoslav Scherbina 38f2b20e1a Native: add more tests for Swift Set and Dictionary used in Kotlin 2022-09-22 07:37:44 +00:00
Svyatoslav Scherbina 39c73e25a4 Native: improve thread state switches for NSSet/NSDictionary adapters
^KT-54119
2022-09-22 07:37:44 +00:00
Nikolay Krasko 1630386712 Move to JDK_X_Y variables 2022-09-21 22:53:19 +00:00
Nikolay Krasko 2df9203336 Add ability to configure jdk with two backup properties 2022-09-21 22:53:18 +00:00
Nikolay Krasko 87c2e5145c Move to JDK_9_0 in maven project 2022-09-21 22:53:18 +00:00
Nikolay Krasko 7c11ddf7ac Move to JDK_1_7 in maven project 2022-09-21 22:53:18 +00:00
Nikolay Krasko 930c63c324 Move to JDK_1_6 in maven project 2022-09-21 22:53:18 +00:00
Nikolay Krasko e92c7983d0 Move to JDK_1_8 in maven project 2022-09-21 22:53:17 +00:00
Ilmir Usmanov 569e72c34e Minor. Do not check for specific bytecode in test 2022-09-21 16:42:15 +00:00
Xin Wang 0eadf35132 Inline: Fix operand stack type verify error
This is a proposal to fix KT-49364.
Operand stack type verification happens before `checkcast`
is executed. When we implicitly cast an inline class
to a non-inline type, if type of stack value is not subtype
of the target, then coercing is necessary.
2022-09-21 16:42:14 +00:00
Yahor Berdnikau cc5f65be1e Update KGP-api binary compatibility with removed JvmTarget.JVM_1_6 2022-09-21 17:01:35 +02:00
Sebastian Sellmair c641ba5397 [Gradle][MPP] Rename isSharedNative function to isNativeSourceSet
^KT-48135 Verification Pending
2022-09-21 14:33:11 +00:00
Sebastian Sellmair 4ddd23b09f [Gradle][MPP] Add very small doc on KotlinProjectStructureMetadata
^KT-48135 Verification Pending
2022-09-21 14:33:11 +00:00
Sebastian Sellmair 929750011a [Gradle][MPP] Extract CompositeMetadataArtifact.ArtifactContent
... into its own top level entity called CompositeMetadataArtifactContent.

This commit also refines naming os the APIs and provides
additional documentation.

^KT-48135 Verification Pending
2022-09-21 14:33:11 +00:00
Sebastian Sellmair 4935026b2c [Gradle][MPP] transformMetadataLibraries.kt Fix comment
^KT-48135 Verification Pending
2022-09-21 14:33:10 +00:00
Sebastian Sellmair 59f4d76bcf [Gradle][MPP] CompositeMetadataArtifact: Remove Int checksum (keep String)
^KT-48135 Verification Pending
2022-09-21 14:33:10 +00:00
Sebastian Sellmair 9f01217050 [Gradle][MPP] Add comment for CInteropMetadataDependencyTransformationTask.OutputLibraryFilesDiscovery.Precise
^KT-48135 Verification Pending
2022-09-21 14:33:10 +00:00
Sebastian Sellmair 386c2f8015 [Gradle][MPP] Fix KotlinProjectStructureMetadataSerializationTest.sampleMetadata
This object did not list 'commonMain' and put non-idiomatic
data into 'sourceSetNamesByVariantName'

^KT-48135 Verification Pending
2022-09-21 14:33:09 +00:00
Sebastian Sellmair 59d0bd5e39 [Gradle][MPP] Rename CompositeMetadataArtifact.ArtifactHandle to ArtifactContent
^KT-48135 Verification Pending
2022-09-21 14:33:09 +00:00
Sebastian Sellmair 75cc378cac [Gradle][MPP] Include artifact checksum string in transformed metadata klib file names
This can be used for locally published snapshot libraries.
Without it, the import will see that there is already
a library with same coordinates in .gradle/kotlin/... and
therefore skip extracting it.

Including the 32 checksum at the end of the file will ensure,
that if a different artifact is the source of the metadata,
then a new file will be created.

This approach is generally more desirable than cleaning the
.gradle/kotlin directory to avoid the IDE of re-indexing
after import.

^KT-48135 Verification Pending
2022-09-21 14:33:09 +00:00
Sebastian Sellmair f1aad4aa4e [Gradle][MPP] Rename TransformKotlinGranularMetadataForFragment to GradleKpmMetadataDependencyTransformationTask
This, hopefully, finally makes my life easier.

^KT-48135 Verification Pending
2022-09-21 14:33:08 +00:00
Sebastian Sellmair 27f7150d48 [Gradle][MPP] Rename TransformKotlinGranularMetadata to MetadataDependencyTransformationTask
This, hopefully, finally makes my life easier.

^KT-48135 Verification Pending
2022-09-21 14:33:08 +00:00
Sebastian Sellmair a2229758d7 [Gradle][MPP] Rename JarMetadataProvider to ArtifactMetadataProvider
^KT-48135 Verification Pending
2022-09-21 14:33:07 +00:00
Sebastian Sellmair 3cee2ca409 [Gradle][MPP] Flatten transformed metadata library directories
The main purpose of this commit is to fix KT-48135 and to
de-duplicate libraries for the IDE whilst also minimizing
zip operations during IDE import.

However, with this commit the metadata library directories layout
also gets changed for CLI builds. The overall layout
is now more shared with cinterops and the IDE.

^KT-48135 Verification Pending
2022-09-21 14:33:06 +00:00
Sebastian Sellmair 7a1f4304d0 [Gradle][MPP] Implement CompositeMetadataArtifact
^KT-48135 WIP
2022-09-21 14:33:06 +00:00
Sebastian Sellmair 244094501b [Gradle][MPP] Fix isSharedNative condition in getHostSpecificSourceSets
^KT-48135 WIP
2022-09-21 14:33:06 +00:00
Sebastian Sellmair 74594c05ca [Gradle][MPP] zipUtils: Add ZipFile.copyPartially
^KT-48135 WIP
2022-09-21 14:33:05 +00:00
Sebastian Sellmair 2391720999 [Gradle][MPP] KotlinProjectStructureMetadata: Add .sourceSetNames property
^KT-48135 WIP
2022-09-21 14:33:05 +00:00
Dmitriy Dolovov c5d4619ebc [IR] Restore old Psi2IrTranslator constructor for older IDEs
^KT-54115
^KT-53649
2022-09-21 16:13:21 +02:00
Artem Kobzar 443f7d1048 [K/JS] Do not run generate-file-tests task if the source was not changed 2022-09-21 13:53:43 +00:00
Sebastian Sellmair 5580e4f06c [Gradle] KotlinPlugin.kt: Convert minimalSupportedAgpVersion into data class representation
^KT-54033 Verification Pending
2022-09-21 13:43:46 +00:00
Sebastian Sellmair f286588e4c [Gradle] Setup kotlin sources directly on AndroidSourceSet for AGP >= 7.0
^KT-54033 Verification Pending
2022-09-21 13:43:45 +00:00
Sebastian Sellmair 958c7e72da [Gradle] Replace KotlinPlugin.kt#androidPluginVersion with AndroidGradlePluginVersion
^KT-54033 WIP
2022-09-21 13:43:45 +00:00
Sebastian Sellmair 7d5b3d3628 [Gradle] KotlinMultiplatformAndroidGradlePluginCompatibilityHealthCheck: Use AndroidGradlePluginVersion tool
^KT-54033 WIP
2022-09-21 13:43:45 +00:00
Sebastian Sellmair 32f86d4672 [Gradle] Implement AndroidGradlePluginVersion util
^KT-54033 WIP
2022-09-21 13:43:44 +00:00
Ilya Goncharov 3a39a0d468 [Gradle, JS] Karma kotlin reporter initialize browser if it was not initialized
^KT-54132
2022-09-21 13:15:27 +00:00
Yahor Berdnikau fbc155ba17 Restore 'target' input for KotlinNativeLink task
^KT-54112 Fixed
2022-09-21 15:13:46 +02:00
Yahor Berdnikau 136ccbd328 Remove JvmTarget.JVM_1_6 from Gradle DSL
This target is not available inside compiler and left for IDE
compatibility.

^KT-54103 Fixed
2022-09-21 13:34:26 +02:00
Ilya Goncharov f450b9397e [Gradle, JS] Fix testData for kotlin-gradle-plugin-api 2022-09-21 10:58:27 +00:00
Ilya Goncharov 912066aadf [Gradle, JS] Fix for output file 2022-09-21 10:58:27 +00:00
Ilya Goncharov b721b3e13c [Gradle, JS] dependsOn for test tasks 2022-09-21 10:58:26 +00:00
Ilya Goncharov e7f2085aa9 [Gradle, JS] platformType as internal 2022-09-21 10:58:26 +00:00
Ilya Goncharov 4906f17d09 [JS IR] Fix js compiler arguments 2022-09-21 10:58:25 +00:00
Ilya Goncharov 3d1db387f7 [Gradle, JS] Extension for outputFileProperty 2022-09-21 10:58:25 +00:00
Ilya Goncharov cab79d950f [Gradle, JS] outputName -> moduleName 2022-09-21 10:58:25 +00:00