spierce7
05/17/2019, 3:39 AMDmitry Motyl
05/17/2019, 11:43 AMspierce7
05/18/2019, 7:45 PMprovided
dependencies with the Kotlin multiplatform plugin?spierce7
05/19/2019, 4:31 AMMarc Knaup
05/19/2019, 7:23 PMjava.time
? Or like Swift's? Or a mix of both?
Java's seems to be focused on the Gregorian calendar while Swift's is more generic.Marc Knaup
05/20/2019, 1:33 PMStringBuilder
is append-only? I.e. no replace/delete.mben
05/20/2019, 2:54 PMKris Wong
05/20/2019, 4:14 PMKris Wong
05/20/2019, 6:55 PMMarc Knaup
05/20/2019, 7:32 PMexpect class Platform_TimeZone
// common
actual typealias Platform_TimeZone = ZoneId
// JVM - error because incompatible modality (ZoneId is abstract)
actual typealias Platform_TimeZone = NSTimeZone
// iOS - works fine
If I make the expected class abstract, then it's the other way round 😞
Any way to work around that without wrapping everything in a new class?basher
05/20/2019, 11:24 PMJonas Bark
05/21/2019, 6:27 AM1.3.40-eap-21
? Right now it doesn't seem like it (kotlin-eap repo)Andy Victors
05/21/2019, 6:28 AMAtomicReference
is not available for me in common code? According to documentation is should be. Kotlin '1.3.30'robnik
05/21/2019, 10:12 AMDico
05/22/2019, 2:08 AMcompile
configuration for a java target in a multiplatform project?
I used to have a way of including dependencies into a jar task, but since 1.3.31, it no longer workskpgalligan
05/22/2019, 3:04 AMEnricCamarero
05/22/2019, 3:03 PMAndy Victors
05/23/2019, 8:01 AMoverride fun fetch() {
println("Fetch:start: Running in ${currentThreadName()} ")
println("Fetch:start: Frozen? -> ${this.isFrozen()} ")
launch(Dispatchers.Unconfined) {
println("Fetch:launch: Running in ${currentThreadName()} ")
}
}
Exception is in discussion thread ...Andy Victors
05/23/2019, 9:10 AMkotlin.native.concurrent.InvalidMutabilityException
[called from iOS] in the init()
method by setting the value
?
During init() the object should not be frozen, right? (confirmed by println in code).
var value: Float
init {
println("MetricReference:init (${metric.name} ): Frozen? -> ${this.isFrozen()} ")
this.metric = metric
this.metric.addObserver(this)
this.value = metric.getValue()
}
Dmitry Motyl
05/24/2019, 11:24 AMkotlin { xcode {
setupFramework('shared')
} }
I got
Gradle DSL method not found: 'setupFramework()'
Could somebody help?AdrianRaFo
05/24/2019, 1:50 PMcommon
module as a dependency to another common
module but I'm not able to get it working. I tried with implementation
, api
and compileOnly
but any of them give me a successful build
. Could anyone helps me?Kris Wong
05/24/2019, 2:10 PMallJvm
. is there an allIos
?basher
05/24/2019, 6:54 PMexport
thing in binaries.framework
, but that doesn't seem to work. Anyone else have success with this?basher
05/24/2019, 9:52 PMCLOVIS
05/25/2019, 3:18 PMCLOVIS
05/26/2019, 8:52 AMthana
05/26/2019, 10:30 AMcommon
code? Is there a different approach to achieve our goal? any suggestions? (i'd be completly fine with havong those metrics on my jvm-target only - i don't need them on the other platforms, if this helps)Dominaezzz
05/26/2019, 9:56 PMsourceSets
function's receiver be changed from NamedDomainObjectContainer<KotlinSourceSet>
to NamedDomainObjectContainerScope<KotlinSourceSet>
? (Or just delete the function altogether since the object is available)
It allows for "commonMain" { }
also, instead of just val commonMain by getting { }
.Jan Stoltman
05/27/2019, 9:48 AM//Declaration
fun <K,V>cache(getNew: suspend () -> List<Pair<K, V>>)
//Usage
cache(::getAllChannelsFromApi)
When compiling for Android everything works fine, but on iOS I get Type mismatch: inferred type is KSuspendFunction0<List<Pair<Int, Channel>>> but suspend () -> List<Pair<Int, Channel>> was expected
Dmitry Motyl
05/27/2019, 1:36 PM