Anamika Trivedi
11/07/2022, 8:31 PMChristian Würthenr
11/08/2022, 10:14 AMapi("space.kscience:kmath-core:$version")
but it seems to lack a iosSimulatorArm64
source set. Can I somehow patch that up on my end?Gijs van Veen
11/08/2022, 11:06 AMafterEvaluate {
publishing {
publications {
kotlinMultiplatform { publication ->
artifactId = project.name
groupId = gradle.ext.group_id
version = gradle.ext.library_version
}
}
}
}
}
new:
afterEvaluate {
publishing {
publications {
getByName("kotlinMultiplatform") {
(this as MavenPublication).let {
artifactId = name
groupId = Library.group
version = Library.version
}
}
}
}
}
All the jars etc seem to be generated just fine, but on the new implementation I dont get a root folder for the artifact, even though kotlin documentation specifies:
Some repositories, such as Maven Central, require that the root module contains a JAR artifact without a classifier, for example kotlinMultiplatform-1.0.jar.
The Kotlin Multiplatform plugin automatically produces the required artifact with the embedded metadata artifacts.
This means you don't have to customize your build by adding an empty artifact to the root module of your library to meet the repository's requirements.
https://kotlinlang.org/docs/multiplatform-publish-lib.html#structure-of-publications
What could I be doing wrong?Ashu
11/08/2022, 11:10 AMOscar Fuentes
11/08/2022, 1:41 PMsqldelight{
database("Database"){
packageName = "package.name.datasource.cache"
sourceFolders = listOf("sqldelight")
verifyMigrations = true
}
}
Any Ideas? The issue is happening on Android. Thanks !!Alex Styl
11/08/2022, 2:09 PMeygraber
11/08/2022, 8:52 PMCan't create custom metadata compilations by name
. I'm doing:
kotlin {
targets {
getByName("metadata") {
compilations.create("testUtils")
}
}
}
I'm trying to do this because I have a commonTest
sourceSet that has a mix of tests and utils in it. I also have a custom jvm compliation for benchmarks that relies on the utils in commonTest
. I can't add commonTest
output classfiles as a dependency because then it brings in the common tests, which I do not want.
Any ideas other than creating separate modules for all of these things?xxfast
11/09/2022, 2:56 AM/module/build.gradle.kts
across all my modules. Whats the best way to do this? Do I have to use buildSrc
in order to achieve this?Gellért Biró
11/09/2022, 7:52 AMCValuesRef<CPointerVar<ifaddrs>>
This supposed to be a pointer but I have no idea how to create something like that in Kotlin.Ivan
11/09/2022, 2:47 PMbuild.gradle
cocoapods
block, we added pods("FirebaseAnalytics")
.
Adding the pod work fine and Analytics is working, but now Xcode has lost all reference to my shared project, none of the autocomplete works and it's full of errors about none of my shared
classes are in the scope.
From my investigation, after gradle runs its magic, it's supposed to generates a framework of my shared
module at path build/cocoapods/framework
. Inside the framework, there's supposed to be a shared.framework/Headers/shared.h
where all the shared
module's headers are. But the issue is that after I add the pod()
function inside the cocoapods
block, the framework only contains a placeholder.h
file inside the Headers folder which is only contains this single line
// Autogenerated placeholder header. Do not edit manually.
The strange thing is while Xcode is filled with errors, I can actually build and run the app perfectly fine. Also if I remove the pods("FirebaseAnalytics")
, everything is back to normal, shared.h
is back in the Headers folder instead of placeholder.h
. Any ideas how to resolve this issue?Rodrigo Castrillón Restrepo
11/09/2022, 7:34 PMSam Gammon
11/10/2022, 4:01 AMSam Gammon
11/10/2022, 4:01 AMHasan Nagizade
11/10/2022, 9:40 AMEugene Maksymenko
11/11/2022, 10:17 AMTolriq
11/11/2022, 10:38 AMveyndan
11/11/2022, 11:38 AMmagnumrocha
11/12/2022, 7:58 PMJay Upadhyay
11/12/2022, 11:00 PMSam Gammon
11/12/2022, 11:13 PMJay Upadhyay
11/12/2022, 11:18 PMSam Gammon
11/12/2022, 11:21 PM./gradlew build
works, but IntelliJ doesn't find itSam Gammon
11/12/2022, 11:21 PMAnmol Verma
11/13/2022, 5:21 AM/Users/anmolverma/IdeaProjects/****/***-lib/build/cocoapods/synthetic/IOS/Pods/Pods.xcodeproj:
error: Signing for "gRPC-gRPCCertificates" requires a development team. Select a development team in the Signing & Capabilities editor. (in target 'gRPC-gRPCCertificates' from project 'Pods')
Haruki
11/13/2022, 5:47 AMh1 {+"Full-Stack Shopping List"}
-> I want to write something like this: h1(classes="hello"){+"Full-Stack Shopping List"}
I realized that for id, I can simply write: h1 {id = "hello" +"Full-Stack Shopping List"}
.
I have researched and it seems like using kotlinx.html (https://github.com/Kotlin/kotlinx.html) might be the solution. However, h1("hello"){+"Full-Stack Shopping List"}
doesn't work.
Does anyone know how to add a class attribute specifically in the App.kt on the tutorial. (https://kotlinlang.org/docs/multiplatform-full-stack-app.html#build-the-user-interface)?Anmol Verma
11/13/2022, 12:35 PMjean
11/13/2022, 9:07 PMexcept
function like so :
internal expect fun readResourceFile(resourceName: String): ByteArray
This is the jvm implementation :
actual fun readResourceFile(resourceName: String) =
File("./src/commonTest/resources/$resourceName").readBytes()
I wonder how I’m supposed to implement it for my js target? I tried to use this :
js("require('../../../resources/main/$resourceName')")
but it complains that the string must be a constant. And the return type is dynamic
which doesn’t help neitherJustin Xu
11/14/2022, 1:20 AMRobert Munro
11/14/2022, 8:14 AMmultiplatformSwiftPackage {
packageName("shared")
swiftToolsVersion(ver_swift_tools)
targetPlatforms {
iOS { v(ver_ios_deploy_target) }
}
}
./gradlew shared:createSwiftPackage
> Task :shared:createXCFramework FAILED
2022-11-14 09:04:47.772 xcodebuild[11029:493691] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
2022-11-14 09:04:47.772 xcodebuild[11029:493691] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
error: at least one framework or library must be specified.
> Task :shared:createXCFramework FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shared:createXCFramework'.
> Process 'command 'xcodebuild'' finished with non-zero exit value 70
Christian Würthenr
11/14/2022, 9:40 AMiosTest
tests. I want to verify our certificate pinning is working fine, which requires a HTTPS request being made. Any request I make results in Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid."
even with a complete vanilla setup:
@Test
fun WHEN_certificate_pin_is_correct_THEN_can_connect() = runBlocking {
val client = HttpClient(Darwin)
val status = client.get("<https://google.com>").status.value
assertEquals(expected = 200, actual = status)
}
Did anyone try something like this or had similar issues before?Christian Würthenr
11/14/2022, 9:40 AMiosTest
tests. I want to verify our certificate pinning is working fine, which requires a HTTPS request being made. Any request I make results in Domain=NSURLErrorDomain Code=-1202 "The certificate for this server is invalid."
even with a complete vanilla setup:
@Test
fun WHEN_certificate_pin_is_correct_THEN_can_connect() = runBlocking {
val client = HttpClient(Darwin)
val status = client.get("<https://google.com>").status.value
assertEquals(expected = 200, actual = status)
}
Did anyone try something like this or had similar issues before?