Ryan Simon
02/13/2020, 6:42 AMAny
to a more concrete type
Could not cast value of type 'kobjcc0'
Ronald van D
02/13/2020, 3:23 PMval searchDictionary = CFDictionaryCreateMutable(kCFAllocatorDefault, 5, null, null)
CFDictionaryAddValue(searchDictionary, kSecClass, kSecClassGenericPassword)
CFDictionaryAddValue(searchDictionary, kSecAttrService, CFBridgingRetain(appName))
CFDictionaryAddValue(searchDictionary, kSecAttrGeneric, CFBridgingRetain(identifier))
CFDictionaryAddValue(searchDictionary, kSecAttrAccount, CFBridgingRetain(identifier))
CFDictionaryAddValue(searchDictionary, kSecValueData, CFBridgingRetain(NSNumber(int = 2048)))
SecItemAdd(searchDictionary, null)
But I keep getting OSStatus -50 (One or more parameters passed to a function were not valid.). I followed several Ojective-c tutorials to come up with this code and it should be valid.. Someone got an idea what I’m missing?Kris Wong
02/13/2020, 4:30 PMKris Wong
02/13/2020, 5:13 PMCoroutineWorker.execute
with CompletableDeferred
. anyone have an idea why completing the deferred might deadlock when used from execute
?basher
02/13/2020, 7:36 PMRyan Simon
02/13/2020, 8:07 PMtasks.withType<org.jetbrains.kotlin.gradle.dsl.KotlinCommonCompile> {
kotlinOptions {
freeCompilerArgs = listOf("-Xobjc-generics")
}
}
Kris Wong
02/13/2020, 8:46 PMgbaldeck
02/14/2020, 5:19 PMbuild.gradle.kts
file. I have marked the lines that have problems with comments. If you have any suggestions it would be a big help.
https://stackoverflow.com/questions/60208710/spring-boot-gradle-dependencies-in-kotlin-multiplatformJaxon Du
02/16/2020, 6:21 AMMaurice Jouvet
02/17/2020, 1:56 PMMaurice Jouvet
02/17/2020, 2:33 PMTim Hauptmann
02/18/2020, 9:58 AMSlackbot
02/18/2020, 10:31 AMJurriaan Mous
02/18/2020, 8:10 PMcurioustechizen
02/19/2020, 6:42 AMEtienne
02/19/2020, 2:24 PMNiro
02/20/2020, 11:10 AMgmazzo
02/20/2020, 8:47 PMMutableMap
, so:
For JVM: I use the ConcurrentHashMap
class
For Web: I use just a mutableMapOf
But for Native, I have to freeze()
the singleton to avoid the IncorrectDereferenceException
. So, if the whole graph is frozen, I don’t know how to have a MutableMap
inside it.
Any tips?moltendorf
02/21/2020, 6:48 AMsendoav
02/21/2020, 7:57 AMSam
02/21/2020, 3:15 PMDate
. I have it aliased on the jvm as
actual typealias Date = java.util.Date
I would like to define a method in the expect class called before(date: Date): Boolean
. Currently I’m doing it like:
expect fun Date.before(date: Date): Boolean
//jvm
actual fun Date.before(date: Date): Boolean {
return this.before(date)
}
This gives me a shadowing warning. Is there a way to do something like actual fun Date.before(date: Date): Boolean = java.util.Date.before
?mboudraa
02/21/2020, 3:21 PMXobjc-generics
flag on the compiler. That being said i keep having my type erased on the swift side and have to deal with a Any?
instead.
The type im trying to use is the Result
type.
Do you have any idea if it’s possible?
Do I have to write my own Either
type?napperley
02/22/2020, 2:24 AMConfigure build..
is outputted.Neal Sanche
02/22/2020, 11:25 PMld warning: ... building for watchOS-armv7k but attempting to link with file built for watchOS-arm64_32
Undefined symbols for architecture armv7k:
"_OBJC_CLASS_$_CommonAssignment", referenced from:
objc-class-ref in ViewModel.o
I don't remember seeing armv7k before. Any ideas about this?Nikita Khlebushkin
02/23/2020, 7:37 PMios
and jvm
that contains class A:
class A {
fun foo() { ... }
}
and another KMP module called analytics with targets ios
and android
that contains class B:
actual class B : A() {
fun bar() { ... }
}
When I run ./gradlew :analytics:assembleRelease
, the analytics-release.aar artifact is generated, and when I plug it in Android library, I can do B().bar()
but not B().foo()
. What am I doing wrong?
EDIT
Added a project to reproduce the issue
https://gitlab.com/NikitaKhlebushkin/kmp-multi-modulePatrick
02/25/2020, 10:33 AMPatrick
02/25/2020, 10:43 AMFreeConsole()
or ShowWindow(GetConsoleWindow(), SW_HIDE)
Nikita Khlebushkin
02/25/2020, 12:46 PMUndefined symbols for architecture x86_64:
"_OBJC_CLASS_$_AnalyticsInitParameters", referenced from:
objc-class-ref in Analytic.o
"_OBJC_CLASS_$_AnalyticsAnalytics", referenced from:
objc-class-ref in Analytic.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
1. Is there a right way to distribute resulted iOS framework?
2. What am I doing wrong?curioustechizen
02/25/2020, 3:05 PMsuspend
functions and iOS:
Am I correct in assuming that even when running on iOS, suspension does work as it does on Android (without blocking the thread it is running on etc)? The only limitation being that a suspend
function cannot be invoked from Swift/Obj-C code?Slackbot
02/25/2020, 3:30 PMSlackbot
02/25/2020, 3:30 PMKris Wong
02/25/2020, 3:39 PM