Kweku
04/08/2021, 11:57 PMGrantas33
04/09/2021, 1:45 PMexpect
keywords. Code your own platform-specific implementation /copy paste common implementation from jvm lib in other platform (e.g. js).
I feel like option 1 is the cleanest, option 3 should allow for easiest updates whenever original jvm lib is updated and option 2 is the most balanced. What do you think?Lena Brusilovski
04/09/2021, 5:38 PMHossein Amini
04/10/2021, 1:37 PMspierce7
04/11/2021, 3:04 AMokarm
04/11/2021, 7:19 PMarchana 0623
04/12/2021, 6:19 AMBig Chungus
04/12/2021, 10:40 AMsushma nayak
04/12/2021, 1:16 PMbsimmons
04/12/2021, 1:40 PM<http://javax.net|javax.net>.ssl.SSLPeerUnverifiedException
but I am only able to catch(e: <http://io.ktor.utils.io|io.ktor.utils.io>.errors.IOException){...}
and nothing more specific than that. Any ideas?Vitor Prado
04/12/2021, 1:57 PMPhilip Dukhov
04/12/2021, 3:38 PMprocess
function. Only removing build/tmp/kapt3
helps.
If I use same annotation in my android target, this works fine.
2. In both cases (multiplatform/android modules) generated classes are not recognized by the AS - they are marked as Unresolved reference
. But the build goes fine.
My setup:
annotations/build.gradle.kts
plugins {
kotlin("multiplatform")
id("com.android.library")
}
kotlin {
android()
jvm()
ios()
}
annotationProcessor/build.gradle.kts
plugins {
kotlin("multiplatform")
}
kotlin {
jvm()
sourceSets {
val jvmMain by getting {
dependencies {
implementation("com.squareup:kotlinpoet:1.8.0")
implementation(project(":annotations"))
}
}
}
}
src/jvmMain/resources/META-INF/services/javax.annotation.processing.Processor
file contains my processor
shared/build.gradke.kts
plugins {
kotlin("multiplatform")
kotlin("native.cocoapods")
id("com.android.library")
kotlin("kapt")
}
kapt {
useBuildCache = false // even this didn't helped with the cash problem
}
kotlin {
android()
ios()
cocoapods {
this.frameworkName = "shared"
summary = "shared"
homepage = "-"
license = "-"
}
sourceSets {
val commonMain by getting {
dependencies {
implementation(project(":modules:annotations"))
configurations["kapt"].dependencies.add(project(":modules:annotationProcessor"))
}
}
}
}
Have anyone faced any of these?Bailey Pollard
04/12/2021, 4:25 PMsushma nayak
04/12/2021, 7:01 PMJosh
04/12/2021, 7:52 PMjames
04/13/2021, 4:37 PMDaniele B
04/14/2021, 4:20 PMRita Okonkwo
04/14/2021, 11:08 PMFabio Santo
04/15/2021, 7:43 AMNeal Sanche
04/15/2021, 11:34 PMHossein Amini
04/16/2021, 11:23 AMrocketraman
04/16/2021, 2:25 PMRyan Simon
04/16/2021, 8:45 PMkotlin.Result
usage in KMP. trying to use it as a return type by using this in my :shared
KMP module's build file
kotlin {
targets.all {
compilations.all {
kotlinOptions {
freeCompilerArgs = freeCompilerArgs + "-Xallow-result-return-type"
}
}
}
// other source sets and targets here...
}
I can build and run my apps just fine but the IDE is still highlighting that Result cannot be used as a return type. Anyone know if this is an IDE issue or I just didn't configure the build file correctly?robstoll
04/18/2021, 9:37 AMsourceCompatibility = 8
targetCompatibility = 8
if you use jvm { withJava() }
?Se7eN
04/18/2021, 8:05 PMnapperley
04/18/2021, 10:44 PMBig Chungus
04/19/2021, 3:08 PMCloseable
interface and use extension is not in the common stdlib?eygraber
04/20/2021, 4:31 AMbuild.gradle.kts
but I can't figure out how to do that. Any help?
allprojects {
repositories {
google()
mavenCentral()
maven("<https://maven.pkg.jetbrains.space/public/p/compose/dev>")
maven("<https://s01.oss.sonatype.org/content/repositories/snapshots>")
}
// trying to do something like the following
kotlin.sourceSets.all {
languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn")
}
}
Big Chungus
04/20/2021, 7:44 AMRita Okonkwo
04/20/2021, 8:21 PMRita Okonkwo
04/20/2021, 8:21 PMDominaezzz
04/20/2021, 8:26 PMRita Okonkwo
04/20/2021, 8:28 PMDominaezzz
04/20/2021, 8:29 PMRita Okonkwo
04/20/2021, 8:29 PMDominaezzz
04/20/2021, 8:33 PMCicero
04/21/2021, 1:22 PM