Skip to content

Commit 3a0cb6c

Browse files
committed
Resolve some warnings
1 parent 8179d3e commit 3a0cb6c

5 files changed

Lines changed: 10 additions & 4 deletions

File tree

annotations/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ version = libVersion
1919

2020
kotlin {
2121
jvmToolchain(21)
22-
androidLibrary {
22+
android {
2323
compileSdk = Configuration.compileSdk
2424
minSdk = Configuration.minSdk
2525

buffers/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ fun KotlinNativeTargetWithHostTests.setupTestLib() {
4040

4141
kotlin {
4242
jvmToolchain(21)
43-
androidLibrary {
43+
android {
4444
compileSdk = Configuration.compileSdk
4545
minSdk = Configuration.minSdk
4646

doc/Writerside/snippets/plugin/bundling.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ kotlin {
1414
// be added to lib/ directory inside the JAR.
1515
jvm() bundlesNatives listOf(linux64)
1616

17-
androidLibrary {
17+
android {
1818
// androidNativeArm64 .so artifact will
1919
// be added to jniLibs inside the AAR.
2020
bundlesNatives(listOf(androidNative))

e2e/src/jniNativeMain/kotlin/kni/test/Bridge.jniNative.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,33 @@
11
package kni.test
22

3+
import com.dshatz.kni.annotations.JniCall
34
import kotlin.random.Random
45

56
actual object Bridge {
7+
@JniCall
68
actual fun uppercase(lower: String): String {
79
return lower.uppercase()
810
}
911

12+
@JniCall
1013
actual fun byteArray(length: Int): ByteArray {
1114
return Random.nextBytes(length)
1215
}
1316

17+
@JniCall
1418
actual fun mixed(number: Long, value: CharArray, upper: Boolean, char: Char): String {
1519
return "$number$char${value.concatToString()}".let {
1620
if (upper) it.uppercase()
1721
else it
1822
}
1923
}
2024

25+
@JniCall
2126
actual fun withTypeAlias(long: TestAlias): TestAlias {
2227
return long
2328
}
2429

30+
@JniCall
2531
actual fun serializable(obj: ColorfulObject): String {
2632
return obj.color
2733
}

jni/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ kotlin {
101101
}
102102

103103
jvm()
104-
androidLibrary {
104+
android {
105105
namespace = "$libGroup.$libName"
106106
compileSdk = 36
107107
}

0 commit comments

Comments
 (0)