Zhiqiang Bian
09/10/2021, 5:16 PMexpect/actual
the only way to handle this use case?clark
09/11/2021, 4:34 AMmultiplatform-settings
library where anytime I try to init the no arg version in my commonMain code, it throws a NullPointerException
. See thread for code.Boris Yordanov
09/11/2021, 9:12 AMMatias Forbord
09/12/2021, 4:11 AMBig Chungus
09/12/2021, 12:34 PMJavier
09/12/2021, 7:56 PMexpect
inside of a KMP library with Android and JVM, it redirects to the Android actual
instead of the JVM actual
?mbonnin
09/13/2021, 8:05 AMLouis
09/13/2021, 9:35 AMthan_
09/13/2021, 11:22 AMExecution failed for task ':publishJvmPublicationToMavenRepository'.
> Failed to publish publication 'jvm' to repository 'maven'
> Could not write to resource '<https://europe-central2-maven.pkg.dev/...>'.
> Connection reset by peer: socket write error
for
publishing{
repositories {
maven {
url = uri("<https://europe-central2-maven.pkg.dev/>...")
credentials {
username = "_json_key_base64"
password = artifactRegistryMavenSecret
}
authentication {
create<BasicAuthentication>("basic")
}
}
}
}
Stefan Oltmann
09/13/2021, 2:45 PMios()
target bundles iosArm64
& iosX64
I want the architectures iosArm64(), iosSimulatorArm64(), macosX64() and macosArm64() in a common iosMain
& iosTest
source set.
But everything the ios()
method calls is private and I would basicly copy everything to make it work that way. Feels wrong.
What is the intended way to solve that?David Liu
09/13/2021, 9:18 PMKotlin v1.5.30
and coroutines v1.5.2-native-mt
. Does anyone have experienced the same issue?
w: skipping /Users/davidliu/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-iosx64/1.5.2-native-mt/fd419ceca95f3403fe6e22ec714dd04a746656a/kotlinx-coroutines-core.klib. Incompatible abi version. The current default is '1.4.2', found '1.5.0'. The library produced by 1.5.30 compiler
e: Could not find "/Users/davidliu/.gradle/caches/modules-2/files-2.1/org.jetbrains.kotlinx/kotlinx-coroutines-core-iosx64/1.5.2-native-mt/fd419ceca95f3403fe6e22ec714dd04a746656a/kotlinx-coroutines-core.klib" in [/Users/davidliu/Repostories/android-library, /Users/davidliu/.konan/klib, /Users/davidliu/.konan/kotlin-native-prebuilt-macos-1.5/klib/common, /Users/davidliu/.konan/kotlin-native-prebuilt-macos-1.5/klib/platform/ios_x64]
Stefan Oltmann
09/14/2021, 7:13 AMlipo
command but no success.Philipp Bykow
09/14/2021, 11:15 AMRak
09/14/2021, 1:05 PMbenkuly
09/14/2021, 1:42 PMval jvmMain by getting {
dependencies {
implementation("net.java.dev.jna:jna:${Versions.jna}")
}
}
val androidMain by getting {
dependsOn(jvmMain)
dependencies {
implementation("net.java.dev.jna:jna:${Versions.jna}@aar")
}
}
Anil Kumar
09/14/2021, 4:25 PMMarkRS
09/14/2021, 5:25 PMjean
09/15/2021, 7:16 AMkotlin.IllegalStateException: There is no event loop. Use runBlocking { ... } to start one.
when running the same test for ios.
this is my BaseTest class in iosTest
actual abstract class BaseTest {
@OptIn(DelicateCoroutinesApi::class)
actual fun <T> runTest(block: suspend CoroutineScope.() -> T) {
var error: Throwable? = null
GlobalScope.launch(Dispatchers.Main) {
try {
block()
} catch (t: Throwable) {
error = t
} finally {
CFRunLoopStop(CFRunLoopGetCurrent())
}
}
CFRunLoopRun()
error?.also { throw it }
}
}
I just copied what they have. Any idea what I’m doing wrong?Kareem Waleed
09/15/2021, 8:32 AMorafaaraujo
09/15/2021, 11:54 AMAlex Brown
09/15/2021, 2:28 PMArm64
builds, but when I try and export for X64
I get the following error: Execution failed for task ':shared:linkDebugFrameworkIosX64'
Even when I do successfully export an Arm framework I get loads of build errors. Just wondered if anyone has already solved this problem, whether this a known issue or unique to our project setup. Thanks!leandro
09/15/2021, 7:43 PMexplicitApiWarning
and have it applied for all my multiplatform modules? I currently have applied it on my root build.grade but it is causing other problems (eg. scratch files not working). Is there another way of doing it?Osman Saral
09/16/2021, 12:25 PMMartin Rajniak
09/16/2021, 5:08 PMMartin Rajniak
09/17/2021, 11:17 AMThe /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FIRStorage", referenced from:
objc-class-ref in result.o
ld: symbol(s) not found for architecture arm64
Any idea where to go from here?
matej
09/17/2021, 12:57 PMException in thread "main" java.lang.Error: /var/folders/r8/cq5z9sk940sbz3kq52q5x4fx11kwqx/T/1091386677463552763.m:1:9: fatal error: could not build module 'SQLCipher'
at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:192)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:68)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo(ModuleSupport.kt:14)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:531)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:268)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:76)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:45)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:38)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:60)
> Task :cinteropSQLCipherIos FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':cinteropSQLCipherIos'.
> Process 'command '/Library/Java/JavaVirtualMachines/jdk-15.0.2.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
There was no change to our code, the only difference is the Xcode update. Anyone had anything similar?Michal Klimczak
09/17/2021, 1:22 PMiosSimulatorArm64
target), but a few libraries need to be updated first. For me it was:
• ktor 1.6.3
• sqldelight 1.5.1
• multiplatform-settings 0.8
• koin 3.1.2
• koru 0.8.0 (which I'm working on to support asap in 0.9.0)MarkRS
09/17/2021, 1:54 PMKurt Renzo Acosta
09/17/2021, 2:03 PMcinterop
via cocoapods but on Xcode it doesn’t. Also, when checking on build/cocoapods/synthetic
, the Pods are in there! On Xcode we get this error:
> Task :shared:firebase:auth:cinteropFirebaseAuthIos FAILED
Exception in thread "main" java.lang.Error: /var/folders/2d/bfr1v4wn0nd926jj62ztw0m80000gn/T/3409687098729027093.m:1:9: fatal error: module 'FirebaseAuth' not found
at org.jetbrains.kotlin.native.interop.indexer.UtilsKt.ensureNoCompileErrors(Utils.kt:152)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles(ModuleSupport.kt:68)
at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo(ModuleSupport.kt:14)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary(main.kt:515)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:266)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:76)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:45)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:38)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:60)
:shared:firebase:auth:cinteropFirebaseAuthIos (Thread[Execution worker for ':' Thread 3,5,main]) completed. Took 6.607 secs.
darkmoon_uk
09/17/2021, 2:35 PMdarkmoon_uk
09/17/2021, 2:35 PMJavier
09/17/2021, 3:07 PMdarkmoon_uk
09/17/2021, 3:23 PMJavier
09/17/2021, 3:24 PMdarkmoon_uk
09/17/2021, 3:24 PMJavier
09/17/2021, 3:27 PMdarkmoon_uk
09/17/2021, 3:28 PM7.0.2
buildTypes {
release {
vs. 4.2.2
buildTypes {
getByName("release") {
Javier
09/17/2021, 3:31 PMdarkmoon_uk
09/17/2021, 3:31 PMJavier
09/17/2021, 3:33 PMdarkmoon_uk
09/17/2021, 3:33 PMbuildSrc
BTW:
val AndroidGradlePlugin = when (BuildSettings.environment) {
BuildEnvironment.IntelliJ -> "4.2.2"
else -> "7.1.0-alpha11"
}
Javier
09/17/2021, 3:33 PMmbonnin
09/17/2021, 6:03 PMif (System.getProperty("idea.sync.active") == null) {
// Do some stuff with AGP
}
Mărcuţ Andrei
09/20/2021, 10:37 AM