Skip to content
Draft
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ Changelog

- Compile against Kotlin `2.3.0`.This release requires Kotlin `2.3.0` or later.
- Raise the Gradle plugin Kotlin target to `2.0`, which in turn requires Gradle `8.11` or later.
- Remove the following deprecated targets. See: https://kotl.in/native-targets-tiers.
- `macosX64`
- `iosX64`
- `watchosX64`
- `tvosX64`

1.15.1
------
Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# limitations under the License.

[versions]
kotlin = "2.3.0"
kotlin = "2.3.20-Beta1"
jdk = "23"
jvmTarget = "11"
ktfmt = "0.61"
Expand Down
29 changes: 23 additions & 6 deletions kotlin-js-store/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Klib ABI Dump
// Targets: [androidNativeArm32, androidNativeArm64, androidNativeX64, androidNativeX86, iosArm64, iosSimulatorArm64, iosX64, js, linuxArm64, linuxX64, macosArm64, macosX64, mingwX64, tvosArm64, tvosSimulatorArm64, tvosX64, wasmJs, watchosArm32, watchosArm64, watchosDeviceArm64, watchosSimulatorArm64, watchosX64]
// Targets: [androidNativeArm32, androidNativeArm64, androidNativeX64, androidNativeX86, iosArm64, iosSimulatorArm64, js, linuxArm64, linuxX64, macosArm64, mingwX64, tvosArm64, tvosSimulatorArm64, wasmJs, watchosArm32, watchosArm64, watchosDeviceArm64, watchosSimulatorArm64]
// Rendering settings:
// - Signature version: 2
// - Show manifest properties: true
Expand Down
4 changes: 0 additions & 4 deletions redacted-compiler-plugin-annotations/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -67,19 +67,15 @@ kotlin {
fun KotlinMultiplatformExtension.configureOrCreateNativePlatforms() {
// Tier 1
linuxX64()
macosX64()
macosArm64()
iosSimulatorArm64()
iosX64()

// Tier 2
linuxArm64()
watchosSimulatorArm64()
watchosX64()
watchosArm32()
watchosArm64()
tvosSimulatorArm64()
tvosX64()
tvosArm64()
iosArm64()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ internal object FirRedactedDeclarationChecker : FirClassChecker(MppCheckerKind.C
if (supertype is ConeErrorType) continue
if (supertype !is ConeClassLikeType) continue
val redactedAnnotation =
supertype.classId?.toSymbol()?.resolvedAnnotationClassIds?.firstOrNull {
supertype.classId.toSymbol()?.resolvedAnnotationClassIds?.firstOrNull {
it in context.session.redactedAnnotations
}
if (redactedAnnotation != null) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import org.jetbrains.kotlin.test.directives.JvmEnvironmentConfigurationDirective
import org.jetbrains.kotlin.test.runners.codegen.AbstractFirLightTreeBlackBoxCodegenTest
import org.jetbrains.kotlin.test.services.KotlinStandardLibrariesPathProvider

open class AbstractBoxTest : AbstractFirLightTreeBlackBoxCodegenTest() {
open class AbstractJvmBoxTest : AbstractFirLightTreeBlackBoxCodegenTest() {
override fun createKotlinStandardLibrariesPathProvider(): KotlinStandardLibrariesPathProvider {
return ClasspathBasedStandardLibrariesPathProvider
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import java.io.File.separator
import kotlin.text.get
import org.jetbrains.kotlin.test.services.KotlinStandardLibrariesPathProvider

object ClasspathBasedStandardLibrariesPathProvider : KotlinStandardLibrariesPathProvider() {
object ClasspathBasedStandardLibrariesPathProvider : KotlinStandardLibrariesPathProvider {
private val SEP = "\\$separator"

private val GRADLE_DEPENDENCY =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fun main() {
testDataRoot = "redacted-compiler-plugin/testData",
testsRoot = "redacted-compiler-plugin/test-gen/java",
) {
testClass<AbstractBoxTest> { model("box") }
testClass<AbstractJvmBoxTest> { model("box") }
testClass<AbstractDiagnosticTest> { model("diagnostic") }
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
@SuppressWarnings("all")
@TestMetadata("redacted-compiler-plugin/testData/box")
@TestDataPath("$PROJECT_ROOT")
public class BoxTestGenerated extends AbstractBoxTest {
public class JvmBoxTestGenerated extends AbstractJvmBoxTest {
@Test
public void testAllFilesPresentInBox() {
KtTestUtil.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("redacted-compiler-plugin/testData/box"), Pattern.compile("^(.+)\\.kt$"), null, true);
Expand Down
2 changes: 0 additions & 2 deletions sample/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,8 @@ kotlin {
browser {}
}
linuxX64()
macosX64()
macosArm64()
iosSimulatorArm64()
iosX64()

sourceSets {
commonMain { dependencies { implementation(project(":redacted-compiler-plugin-annotations")) } }
Expand Down