Skip to content

Commit c4497a9

Browse files
authored
More updates for Kotlin 2.1.0 (#5207)
1 parent 9c769f8 commit c4497a9

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

ci/templates/multiplatform-template/common/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
kotlin {
9-
android()
9+
androidTarget()
1010
jvm("desktop")
1111

1212
sourceSets {

components/resources/library/src/nativeMain/kotlin/org/jetbrains/compose/resources/vector/xmldom/DomXmlParser.kt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*/
55
package org.jetbrains.compose.resources.vector.xmldom
66

7+
import kotlinx.cinterop.ObjCSignatureOverride
78
import platform.Foundation.NSError
89
import platform.Foundation.NSString
910
import platform.Foundation.NSUTF8StringEncoding
@@ -91,6 +92,7 @@ private class DomXmlParser : NSObject(), NSXMLParserDelegateProtocol {
9192
nodeStack.add(node)
9293
}
9394

95+
@ObjCSignatureOverride
9496
override fun parser(parser: NSXMLParser, foundCharacters: String) {
9597
nodeStack.lastOrNull()?.let { node ->
9698
node.textContent = node.textContent.orEmpty() + foundCharacters
@@ -116,15 +118,18 @@ private class DomXmlParser : NSObject(), NSXMLParserDelegateProtocol {
116118
curPrefixMap = curPrefixMapInverted.entries.associateBy({ it.value }, { it.key })
117119
}
118120

121+
@ObjCSignatureOverride
119122
override fun parser(parser: NSXMLParser, didEndMappingPrefix: String) {
120123
curPrefixMapInverted.remove(didEndMappingPrefix)
121124
curPrefixMap = curPrefixMapInverted.entries.associateBy({ it.value }, { it.key })
122125
}
123126

127+
@ObjCSignatureOverride
124128
override fun parser(parser: NSXMLParser, validationErrorOccurred: NSError) {
125129
throw MalformedXMLException("validation error occurred")
126130
}
127131

132+
@ObjCSignatureOverride
128133
override fun parser(parser: NSXMLParser, parseErrorOccurred: NSError) {
129134
throw MalformedXMLException("parse error occurred")
130135
}

html/test-utils/conf/karma-kotlin-runner-decorator/karma-kotlin-reporter-decorated.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const NewReporter = function(baseReporterDecorator, config, emitter) {
99
const fs = require('fs');
1010
// const kotlinVersion = fs.readFileSync(path.resolve(__dirname, "../../../buildSrc/build/kotlin.version"), 'utf8');
1111

12-
const kotlinReporterModule = require(`../../../build/js/node_modules/kotlin-test-js-runner/karma-kotlin-reporter`);
12+
const kotlinReporterModule = require(`../../../build/js/packages_imported/kotlin-test-js-runner/0.0.1/karma-kotlin-reporter`);
1313
const KotlinReporter = kotlinReporterModule['reporter:karma-kotlin-reporter'][1];
1414
this.$inject = KotlinReporter.$inject
1515

0 commit comments

Comments
 (0)