simon.vergauwen
08/02/2021, 5:03 PMkotlin.system.getTimeMillis
from a custom source directory? I have a shared nativeMain
module, on which all my native modules depend. I couldn’t find any std
native lib I could depend onJustin
08/07/2021, 3:23 AMalex009
08/07/2021, 4:59 PMNapa Ram
08/11/2021, 1:42 PMat org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:187)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:268)
if downgrade the version to 1.4.21 then it's working fineArslan Armanuly
08/12/2021, 12:10 PMnapperley
08/13/2021, 3:36 AMmode & ~umask
). It isn't clear how to do this with Kotlin since it doesn't provide any bit manipulation operators. Below is the binding for the function:
@kotlinx.cinterop.internal.CCall public external fun sftp_open(session: libssh.sftp_session? /* = kotlinx.cinterop.CPointer<libssh.sftp_session_struct>? */, @kotlinx.cinterop.internal.CCall.CString file: kotlin.String?, accesstype: <http://kotlin.Int|kotlin.Int>, mode: libssh.mode_t /* = kotlin.UInt */): libssh.sftp_file? /* = kotlinx.cinterop.CPointer<libssh.sftp_file_struct>? */ { /* compiled code */ }
saket
08/16/2021, 3:30 AMfreeze()
does not freeze items inside a collection?Nikolay Kasyanov
08/16/2021, 10:35 AMsealed class Parent {
object Child1: Parent()
object Child2: Parent()
}
I still get Parent.init
available in Objective-C/Swift, even though this class cannot be instantiated in Kotlin.
Should I file a bug?Big Chungus
08/17/2021, 8:30 PMexistingDir/nonExistingDir/../existingFile
always return false with both, access ans statMatthias Geisler
08/18/2021, 10:51 AMribesg
08/18/2021, 11:25 AMKartik Prakash
08/18/2021, 1:40 PM@Throws
annotation and handle the error on the native platform side. For example I have function in kotlin native that can throw SocketTimeoutException
, Is there anyway to handle it on the iOS side without adding the @Throws
annotation on my function?Iaroslav Postovalov
08/18/2021, 4:02 PMULong
to Double
other than read/write it to ByteArray
?aakira
08/19/2021, 1:01 AMNSThread.callStackSymbols
* JVM
Thread.currentThread().stackTrace
Bailey Pollard
08/19/2021, 10:10 AMcapitalthree
08/20/2021, 3:00 AMWietlol
08/20/2021, 2:00 PMClocks
08/21/2021, 5:35 PMglib
.
While it produces the bindings, When attempting to build I get the following error
e: /home/doomsdayrs/.konan/dependencies/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2/x86_64-unknown-linux-gnu/bin/ld.gold invocation reported errors
The /home/doomsdayrs/.konan/dependencies/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2/x86_64-unknown-linux-gnu/bin/ld.gold command returned non-zero exit code: 1.
output:
/home/doomsdayrs/.konan/dependencies/x86_64-unknown-linux-gnu-gcc-8.3.0-glibc-2.19-kernel-4.9-2/x86_64-unknown-linux-gnu/bin/ld.gold: error: cannot find -lglib-2.0
Yaniv Sosnovsky
08/22/2021, 1:03 PM> Task :ecCommunication:linkDebugTestIos FAILED
e: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld invocation reported errors
The /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld command returned non-zero exit code: 1.
output:
ld: framework not found FirebaseFirestore
Execution failed for task ':ecCommunication:linkDebugTestIos'.
> Compilation finished with errors
magnumrocha
08/23/2021, 2:35 PMkotlinx.coroutines.newSingleThreadContext
on kotlin native source folder?吴少滨
08/24/2021, 3:43 AMclass AssetExp {
val delegate: CPointer<AssetModel>?
constructor(){
delegate = makeAssetModel()
}
//when Kotlin Object gone, call this functions
fun finalize(){
releaseVideoAssetModel(delegate)
}
}
linjipeng
08/24/2021, 8:53 AMMichal Klimczak
08/24/2021, 2:36 PM/Users/teamcity3/buildAgent/work/290aee0e088a1666/runtime/src/main/cpp/ObjCExport.mm:276: runtime assert: Unexpected selector clash
My app crashes with this error when something like this is invoked from swift code libraryManager.observeDownloadErrors()
.
What is also funny here, is that usually when I try to navigate to a kotlin method in xcode, it takes me to the shared.h file which is barely legible obj-c gibberish. But when I navigate from this particular method which crashes, it takes me to some Swift file (but is still definitely what I have defined in kotlin):
public class LibraryManager : KotlinBase {
open func observeDownloadErrors() -> KoruFlowWrapper<SomeKotlinException>
...
}
Michal Klimczak
08/25/2021, 10:40 AM* Compiler version info: Konan: 1.5.21 / Kotlin: 1.5.21
* Output kind: PROGRAM
e: java.lang.UnsatisfiedLinkError: /Users/.../.konan/kotlin-native-prebuilt-macos-1.5.21/konan/nativelib/91439921922225643/libllvmstubs.dylib: dlopen(/Users/.../.konan/kotlin-native-prebuilt-macos-1.5.21/konan/nativelib/91439921922225643/libllvmstubs.dylib, 1): no suitable image found. Did find:
/Users/.../.konan/kotlin-native-prebuilt-macos-1.5.21/konan/nativelib/91439921922225643/libllvmstubs.dylib: mach-o, but wrong architecture
/Users/.../.konan/kotlin-native-prebuilt-macos-1.5.21/konan/nativelib/91439921922225643/libllvmstubs.dylib: mach-o, but wrong architecture
It's similar to this, but somehow it builds just fine for the ios app but fails for tests. Changing JDK didn't work either. I can;t go with 1.5.30-M1 yet (as per this comment)Anton Afanasev
08/26/2021, 12:42 PMval mutableList = mutableListOf<Int>()
val immutableList = mutableList.toList()
Wondering if K/N handle toList
method in some different manner? Does it use copy
operation or simply check the type and cast as it does in stdlib?ptmt
08/26/2021, 1:37 PM/Applications/Xcode-beta.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator15.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSURLSession.h:500:168: error: expected ')'
russhwolf
08/27/2021, 2:53 AMxcodebuild -sdk iphoneos -configuration Debug -workspace ./sample/app-ios/SettingsDemo.xcodeproj/project.xcworkspace -scheme SettingsDemo build
then I get this error when hits that gradle task in the script phase
A problem was found with the configuration of task ':shared:embedAndSignSharedAppleFrameworkForXcode' (type 'Copy').
- Type 'Copy' property 'sign' doesn't have a configured value.
Reason: This property isn't marked as optional and no value has been configured.
Possible solutions:
1. Assign a value to 'sign'.
2. Mark property 'sign' as optional.
Please refer to <https://docs.gradle.org/7.0/userguide/validation_problems.html#value_not_set> for more details about this problem.
Does anyone have insight on what’s going wrong, or what else I can pass to xcodebuild to better mimic what’s happening when I build from the Xcode UI?Даниил Медведев
08/27/2021, 7:27 PMspierce7
08/27/2021, 10:31 PMspierce7
08/28/2021, 6:14 AMheaders/mylibrary/mylibrary.h
mylibrary.h references headers from another library, plist/plist.h
. I also have these header files stored in headers/plist/plist.h
, but for some reason no matter what I try, I can’t get the cinterop tool to find the plist.h headers.
How can I fix this?spierce7
08/28/2021, 6:14 AMheaders/mylibrary/mylibrary.h
mylibrary.h references headers from another library, plist/plist.h
. I also have these header files stored in headers/plist/plist.h
, but for some reason no matter what I try, I can’t get the cinterop tool to find the plist.h headers.
How can I fix this?includeDirs(project.file("headers"))