-
Notifications
You must be signed in to change notification settings - Fork 630
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compiler plugin: fix IrLinkageError with K/Js on Kotlin 1.9 (#3557)
* Compiler plugin: fix IrLinkageError with K/Js on Kotlin 1.9 Fixes #3556 – IrLinkageError if objects or abstract subclasses of AbstractProjectConfig exist in K/Js sources This commit makes the Kotest compiler plugin skip non-instantiable classes and objects, which derive from AbstractProjectConfig. Note: To use objects deriving from AbstractProjectConfig on K/Js, they must be referenced at least once in code that executes, otherwise they will be discarded (with the IDE warning "object ... is never used)". * API validation: Exclude compiler and Gradle plugins --------- Co-authored-by: Sam <sam@sksamuel.com>
- Loading branch information
Showing
6 changed files
with
17 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
232 changes: 0 additions & 232 deletions
232
...gin-embeddable-compiler/api/kotest-framework-multiplatform-plugin-embeddable-compiler.api
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 0 additions & 29 deletions
29
...ramework-multiplatform-plugin-gradle/api/kotest-framework-multiplatform-plugin-gradle.api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +0,0 @@ | ||
public abstract class io/kotest/framework/multiplatform/gradle/KotestMultiplatformCompilerGradlePlugin : org/jetbrains/kotlin/gradle/plugin/KotlinCompilerPluginSupportPlugin { | ||
public static final field Companion Lio/kotest/framework/multiplatform/gradle/KotestMultiplatformCompilerGradlePlugin$Companion; | ||
public static final field KotestEmbeddableCompilerArtifactId Ljava/lang/String; | ||
public static final field KotestGroupId Ljava/lang/String; | ||
public static final field KotestNativeArtifactId Ljava/lang/String; | ||
public static final field compilerPluginId Ljava/lang/String; | ||
public static final field kotestPluginExtensionName Ljava/lang/String; | ||
public fun <init> (Lorg/gradle/api/provider/ProviderFactory;)V | ||
public synthetic fun apply (Ljava/lang/Object;)V | ||
public fun apply (Lorg/gradle/api/Project;)V | ||
public fun applyToCompilation (Lorg/jetbrains/kotlin/gradle/plugin/KotlinCompilation;)Lorg/gradle/api/provider/Provider; | ||
public fun getCompilerPluginId ()Ljava/lang/String; | ||
public fun getPluginArtifact ()Lorg/jetbrains/kotlin/gradle/plugin/SubpluginArtifact; | ||
public fun getPluginArtifactForNative ()Lorg/jetbrains/kotlin/gradle/plugin/SubpluginArtifact; | ||
public fun isApplicable (Lorg/jetbrains/kotlin/gradle/plugin/KotlinCompilation;)Z | ||
} | ||
|
||
public final class io/kotest/framework/multiplatform/gradle/KotestMultiplatformCompilerGradlePlugin$Companion { | ||
} | ||
|
||
public final class io/kotest/framework/multiplatform/gradle/KotestPluginConstantsKt { | ||
public static final field KOTEST_COMPILER_PLUGIN_VERSION Ljava/lang/String; | ||
} | ||
|
||
public abstract class io/kotest/framework/multiplatform/gradle/KotestPluginExtension { | ||
public fun <init> ()V | ||
public abstract fun getKotestCompilerPluginVersion ()Lorg/gradle/api/provider/Property; | ||
} | ||
|
||
28 changes: 0 additions & 28 deletions
28
...platform-plugin-legacy-native/api/kotest-framework-multiplatform-plugin-legacy-native.api
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +0,0 @@ | ||
public final class io/kotest/framework/multiplatform/native/EntryPoint { | ||
public static final field INSTANCE Lio/kotest/framework/multiplatform/native/EntryPoint; | ||
public static final field LaunchMethodName Ljava/lang/String; | ||
public static final field LauncherValName Ljava/lang/String; | ||
public static final field TestEngineClassName Ljava/lang/String; | ||
public static final field WithSpecsMethodName Ljava/lang/String; | ||
public static final field WithTeamCityListenerMethodName Ljava/lang/String; | ||
} | ||
|
||
public final class io/kotest/framework/multiplatform/native/KotestNativeComponentRegistrar : org/jetbrains/kotlin/compiler/plugin/CompilerPluginRegistrar { | ||
public fun <init> ()V | ||
public fun getSupportsK2 ()Z | ||
public fun registerExtensions (Lorg/jetbrains/kotlin/compiler/plugin/CompilerPluginRegistrar$ExtensionStorage;Lorg/jetbrains/kotlin/config/CompilerConfiguration;)V | ||
} | ||
|
||
public final class io/kotest/framework/multiplatform/native/SpecIrGenerationExtension : org/jetbrains/kotlin/backend/common/extensions/IrGenerationExtension { | ||
public fun <init> (Lorg/jetbrains/kotlin/cli/common/messages/MessageCollector;)V | ||
public fun generate (Lorg/jetbrains/kotlin/ir/declarations/IrModuleFragment;Lorg/jetbrains/kotlin/backend/common/extensions/IrPluginContext;)V | ||
public fun resolveSymbol (Lorg/jetbrains/kotlin/ir/symbols/IrSymbol;Lorg/jetbrains/kotlin/ir/builders/TranslationPluginContext;)Lorg/jetbrains/kotlin/ir/declarations/IrDeclaration; | ||
} | ||
|
||
public final class io/kotest/framework/multiplatform/native/SpecsKt { | ||
public static final fun getSpecClasses ()Ljava/util/List; | ||
public static final fun isSpecClass (Lorg/jetbrains/kotlin/ir/declarations/IrClass;)Z | ||
public static final fun specs (Lorg/jetbrains/kotlin/ir/declarations/IrFile;)Ljava/util/List; | ||
public static final fun superTypes (Lorg/jetbrains/kotlin/ir/declarations/IrClass;)Ljava/util/List; | ||
} | ||
|
||