Andrew Steinmetz
11/11/2021, 8:43 PMNacho Ruiz Martin
11/12/2021, 5:19 PMBrian Donovan
11/12/2021, 7:15 PMBrian Donovan
11/12/2021, 10:13 PMMarco Signoretto
11/14/2021, 10:11 AMPavel Repkin
11/15/2021, 6:09 AMTask 😒hared:generateDefAFNetworking
Task 😒hared:podDownload UP-TO-DATE
Task 😒hared:generateDummyFramework UP-TO-DATE
Task 😒hared:podspec
Task 😒hared:podGenIOS
Task 😒hared:podSetupBuildAFNetworkingIphonesimulator
Task 😒hared:podBuildAFNetworkingIphonesimulator
Task 😒hared:cinteropAFNetworkingIosException in thread “main” java.lang.Error: /var/folders/rf/3423_cyd1s36lym23zw40mkm0000gn/T/11328760320704443198.m1️⃣9: fatal error: could not build module ‘AFNetworking’ 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 😒hared:cinteropAFNetworkingIos FAILED7 actionable tasks: 6 executed, 1 up-to-date
Hossein Amini
11/15/2021, 8:21 AMkotlin.Error: Ktor native HttpClient requires kotlinx.coroutines version with native-mt suffix (like 1.3.9-native-mt). Consider checking the dependencies
I’m currently using this dependency in the commonMain
org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.0-native-mt
And there is no issue when I run the app on the iOS but when I run test units on the iOS I get the error I mentioned above.
How can I fix it?salomonbrys
11/15/2021, 11:22 AMclass MyTest {
@set:Mock lateinit var view: View
@set:Fake lateinit var model: Model
lateinit var controller: Controller
val mocker = Mocker()
@BeforeTest fun setUp() {
mocker.reset()
injectMocks(mocker)
controller = Controller(view = view, firstModel = model)
}
@Test fun controllerTest() {
mocker.on { view.render(isAny()) } returns true
controller.start()
mocker.verify { view.render(model) }
}
}
The following limitations apply:
• Mocking only applies to interfaces
• Faking only applies to concrete trees
The processor generates:
• Mocks of interfaces, allowing to mock behaviour & verify calls.
• Fakes of data classes, filling them of nulls, zeros, empty strings, and alike.
• Injector for test classes.
You’ll find it here : https://github.com/Kodein-Framework/Micro-Mock
We are using this in some of our own Multiplatform tests.
I hope it will be useful to the community 😉Andrew O Hart
11/15/2021, 12:46 PM./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" \
LDFLAGS="/opt/local/lib/libcrypto.a"
However this gives me an error saying "C compiler cannot create executables"
Also I saw on the forums somebody said to try:
./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC -I/usr/local/opt/openssl/include/" LDFLAGS="/usr/local/opt/openssl/lib/libcrypto.a"
This looks like it builds but at the end says "error: Library crypto not found. Install openssl!" but I have already installed openssl via homebrew.
Basically I need to get the .a file build and bring it into the ios part of the multiplatform project and then bring in the .h file and create the .def file but its proving trickier than I thought.
I know this isn't exactly related to multiplatform specifically but I thought maybe somebody encountered something similar and could help.
Thanks!Alexander Suraphel
11/15/2021, 4:59 PMAnton Afanasev
11/15/2021, 5:21 PMclass TestClass {
private val dispatcher = CoroutineScope(Dispatchers.Main + SupervisorJob())
fun someAction() {
//do something
dispatcher.launch {
requestWithKtor()
}
}
suspend fun requestWithKtor() {
//do some networking
}
}
Mendess
11/15/2021, 6:25 PMWilliam Reed
11/15/2021, 8:01 PMBrian Donovan
11/15/2021, 8:56 PMLilly
11/15/2021, 11:58 PMJolas
11/16/2021, 5:48 AMencryptionConfig = DatabaseConfiguration.Encryption(key: String?, rekey: String?)
and I suppose it works fine. But is there any documented behavior for using DatabaseConfiguration.Encryption
?saket
11/16/2021, 6:06 AM* What went wrong:
A problem occurred configuring project ':common'.
> kotlin.native.cocoapods.target property was dropped in favor of kotlin.native.cocoapods.platform and kotlin.native.cocoapods.archs.
Podspec file might be outdated. Sync project with Gradle files or run the 'podspec' task manually to regenerate it.
Am I understanding the message correctly that compilation is failing because my podspec file is outdated? Running podspec
task doesn't seem to change anything.darkmoon_uk
11/16/2021, 1:28 PMstandalone
module to my Desktop project that includes both the client & server, and then provides a main
function to start the Ktor server embedded in the same runtime as the client. It is insanely convenient for development 😂 No more juggling client/server instances to test-drive basic integrations. The whole system runs as one, debugs as one.Rak
11/16/2021, 4:41 PMbuildscript
block. I need one to get the sqldelight plugin to work. What is the workaround?Brian Donovan
11/16/2021, 6:18 PMultraon
11/16/2021, 9:29 PMKMM
plugin 0.3.0
for Android Studio Bumblebee Beta3
Jim
11/16/2021, 10:56 PMHossein Amini
11/17/2021, 11:24 AMBrian Donovan
11/17/2021, 1:52 PMBrian Donovan
11/17/2021, 8:16 PMJavier
11/17/2021, 8:31 PMSyntaxError
when I enable js in a project that only has common code. I think it is related to use regex in the lib, anyone know what can be happening?Pavel Repkin
11/18/2021, 9:11 AMimport platform.UIKit.UIDevice
import cocoapods.AFNetworking.*
actual class Platform actual constructor() {
actual val platform: String = UIDevice.currentDevice.systemName() + " " + UIDevice.currentDevice.systemVersion +
" " + AFNetworkingReachabilityNotificationStatusItem
}
After that I’m getting linkage error while trying to build an iOS app.
Undefined symbols for architecture x86_64:
"_AFNetworkingReachabilityNotificationStatusItem", referenced from:
_cocoapods_AFNetworking_AFNetworkingReachabilityNotificationStatusItem_getter_wrapper12 in shared(result.o)
ld: symbol(s) not found for architecture x86_64
How to solve this error?
My configuration
Android Studio Arctic Fox 2020.3.1 Patch 3
Kotlin 1.6.0
XCode 13
ruby 2.6.0p0 (had to downgrade because of a problem with cocoapods-generate install)
cocoapods 1.11.2
cocoapods-generate 2.2.2
Mac OS Monterey 12.0.1Javier
11/18/2021, 2:26 PMJavier
11/18/2021, 2:26 PMhfhbd
11/18/2021, 2:32 PMrusshwolf
11/18/2021, 2:50 PM