Jannis
03/23/2021, 3:02 PMAlberto
03/23/2021, 3:59 PMJulius
03/23/2021, 5:17 PM> Task :SharedCode:cinteropAFNetworkingIosX64 FAILED
Exception in thread "main" java.lang.Error: /var/folders/j7/fqrxk_js0sn4r2blxl4kq0fm0000gn/T/14707145049679086784.m:1:9: fatal error: module 'AFNetworking' not found
Evan
03/23/2021, 10:08 PMMockK
has a mockk-common
module now. However KampKit is using Karmok
which doesn’t look like it’s been updated in a while.Before Old
03/24/2021, 4:26 AMArtyom Degtyarev [JB]
03/24/2021, 2:43 PMSebastian Sellmair [JB]
03/24/2021, 6:36 PMEvan
03/24/2021, 10:54 PMException in thread "Test worker @coroutine#1" java.lang.IllegalStateException: Module with the Main dispatcher had failed to initialize. For tests Dispatchers.setMain from kotlinx-coroutines-test module can be used
However, kotlinx-coroutines-test is only for the JVM, so I’m not sure what to do here.rsktash
03/25/2021, 8:44 AMASAuthorizationController
in iosMain module?
I want to use sign in with Google in android and sign in with Apple in ios but the signing in logic must be separated from uiShawn Tucker
03/25/2021, 11:14 AMivan.savytskyi
03/25/2021, 1:36 PMthrowable.stackTraceToString()
. But calling this API crashes with ncorrectDereferenceException: Trying to access top level value not marked as @ThreadLocal or @SharedImmutable from non-main thread
exception and from stack trace of crash on iOS looks like it happens inside Throwable:
#16 0x000000010fb50ffa in kfun:kotlin.Throwable.<init>$lambda-0#internal at /Users/teamcity/buildAgent/work/f01984a9f5203417/runtime/src/main/kotlin/kotlin/Throwable.kt:33
#17 0x000000010fb511ef in kfun:kotlin.Throwable.$<init>$lambda-0$FUNCTION_REFERENCE$119.invoke#internal at /Users/teamcity/buildAgent/work/f01984a9f5203417/runtime/src/main/kotlin/kotlin/Throwable.kt:32
#18 0x000000010fb7e907 in kfun:kotlin.native.concurrent.FreezeAwareLazyImpl.getOrInit#internal at /Users/teamcity/buildAgent/work/f01984a9f5203417/runtime/src/main/kotlin/kotlin/native/concurrent/Lazy.kt:28
#19 0x000000010fb7f0b0 in kfun:kotlin.native.concurrent.FreezeAwareLazyImpl#<get-value>(){}1:0 at /Users/teamcity/buildAgent/work/f01984a9f5203417/runtime/src/main/kotlin/kotlin/native/concurrent/Lazy.kt:55
#20 0x000000010fb4e975 in getValue [inlined] at /Users/teamcity/buildAgent/work/f01984a9f5203417/backend.native/build/stdlib/kotlin/util/Lazy.kt:44
#21 0x000000010fb4e93f in kfun:kotlin.Throwable.<get-stackTraceStrings>#internal at
Did anyone run into this as well?
Also just ran quick test by doing this val tmp = RuntimeException().getStackTrace()
it crashes as wellsushma nayak
03/25/2021, 6:55 PMsuspend fun <T : Any> request(target: APITarget, responseDeserializer: DeserializationStrategy<T>, response: (NetworkResult) -> Unit): Cancelable
How do I test this?
Wait till the response lamda completes and cross verify the result.
Putting the test inside runblocking doesn’t work.jean
03/26/2021, 6:59 AM1.sqm
and have the CREATE
statement there? What about the requests I want to make on that table, should they be in the same migration file?Big Chungus
03/26/2021, 9:14 AMJilles van Gurp
03/26/2021, 1:08 PMDaniele B
03/26/2021, 4:37 PMNikky
03/27/2021, 1:36 PMcommon
and expect/actual ?
my goal is to build a UI with compose desktop and a android app
the app probably in a separate project , just consuming the shared code as libraryTiago Nunes
03/28/2021, 1:29 AMplugins {
kotlin("multiplatform")
id("com.android.library")
}
group = "me.tnunes"
version = "1.0-SNAPSHOT"
kotlin {
android {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
useIR = true
}
}
}
jvm("webBackend") {
compilations.all {
kotlinOptions {
jvmTarget = "1.8"
useIR = true
}
}
}
sourceSets {
val commonMain by getting
val commonTest by getting
val webBackendMain by getting
val webBackendTest by getting
val androidMain by getting {
dependencies {
api("androidx.core:core-ktx:1.3.2")
api("androidx.appcompat:appcompat:1.2.0")
api("androidx.constraintlayout:constraintlayout:2.0.4")
}
}
val androidTest by getting {
dependencies {
implementation("junit:junit:4.13.2")
}
}
}
}
android {
compileSdkVersion(30)
buildToolsVersion("30.0.3")
sourceSets["main"].manifest.srcFile("src/androidMain/AndroidManifest.xml")
defaultConfig {
minSdkVersion(23)
targetSdkVersion(30)
}
}
Animesh Sahu
03/28/2021, 9:16 AMJohn O'Reilly
03/28/2021, 10:40 AMios {
binaries {
framework {
baseName = "shared"
}
}
}
If you then add following to iosMain
dependencies (along with commonMain
one)
implementation("com.squareup.sqldelight:native-driver:$sqldelight")
and try then for example to create instance of NativeSqliteDriver
in iosMain source, Android Studio doesn't show option to import and also shows error if you manually add import. If however we add iosX64("ios")
for example then we don't see this issue. Anyone else come across this?Ryan Simon
03/28/2021, 2:02 PMLena Brusilovski
03/28/2021, 4:29 PMjames
03/29/2021, 1:26 AMcocoapods {
summary = "BackgroundApp"
homepage = "testing"
frameworkName = "BackgroundApp"
ios.deploymentTarget = "10.0"
specRepos {
url("<https://github.com/localz/Spotz-iOS-Specs.git>")
}
pod("LocalzDriverSDK")
}
> Task :app:cinteropLocalzDriverSDKIosArm64 FAILED
Exception in thread "main" java.lang.Error: /var/folders/w5/rb3knwwx5tz9hgbs3v2122tc0000gn/T/6978372664297732967.m:1:9: fatal error: module 'LocalzDriverSDK' 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:506)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib(main.kt:264)
at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.interop(main.kt:74)
at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop(InteropCompiler.kt:45)
at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl(main.kt:19)
at org.jetbrains.kotlin.cli.utilities.MainKt.main(main.kt:41)
The dependency is on a custom spec repo here https://github.com/localz/Spotz-iOS-Specs.git
Podspec itself https://github.com/localz/Spotz-iOS-Specs/blob/master/LocalzDriverSDK/1.7.2/LocalzDriverSDK.podspec
The source git repo it points to https://github.com/localz/Localz-Driver-iOS-SDK
Any ideas?Justin Tullgren
03/29/2021, 4:05 PMandroid
preset to the common MPP module. After a sync the JVM module then stops workingjbruckne
03/29/2021, 6:05 PMimplementation('com.example:MyKMMProject-jvm:1.0')
in the host gradle project?Lena Stepanova
03/30/2021, 11:01 AMGuilherme Cordeiro
03/30/2021, 1:14 PMproject(":mybasemodule")
) all goes well, project compiles, runs and I can publish the artifacts on my maven repository
• When I publish my base modules and import them on the service modules as remote dependencies, Android Studio resolves them (through some .knm bridging files) but my compilation fails due Unresolved Reference
to the objects/methods defined on my base module
I am currently using only Android
target (to limit my scope) and publishing android library variants besides the common
default one.
android {
publishLibraryVariants("debug", "beta", "release")
}
Also, I'm importing all base KMM module dependencies on commonMain
only:
val commonMain by getting {
dependencies {
api(
if (remoteDeps) Frameworks.Logging.lib //import from maven
else project(Frameworks.Logging.proj) //pont to local project
)
...
}
...
I'm using
AS 4.1.3, with buildTools plugin 4.1.3
gradle 6.8.3
and Kotlin stdlib 1.4.21
Anyone has any idea on what I might be doing wrong?
Thanks in advance for any ideas/advices 🙏Jordi Saumell
03/30/2021, 2:48 PMleandro
03/30/2021, 4:11 PMiosMain
.
the config of Cocoapods is:
cocoapods {
summary = "..."
homepage = "..."
frameworkName = "test"
ios.deploymentTarget = '8.0'
pod('Analytics') { version = '~> 4.1.2' }
pod('Segment-Amplitude') { version = '~> 3.2.3' }
pod('segment-appsflyer-ios') { version = '6.1.4' }
podfile = project.file("src/iosMain/Podfile")
}
with Podfile being
use_frameworks!
platform :ios, '8.0'
target 'ios-app' do
pod 'kotlin_library', :path => '../kotlin-library'
end
The error is on the thread 🧵Colton Idle
03/30/2021, 9:47 PMhttps://www.youtube.com/watch?v=GcqFhoUuNNI▾
Colton Idle
03/30/2021, 9:47 PMhttps://www.youtube.com/watch?v=GcqFhoUuNNI▾
Benoît
03/31/2021, 1:13 PMColton Idle
03/31/2021, 1:16 PMKonstantin Tskhovrebov
03/31/2021, 5:52 PMxcodebuild -version
say?Colton Idle
03/31/2021, 10:30 PM