Gabriel Feo
11/20/2019, 3:35 PMjava.*
reference). Has anyone run into this?Dominaezzz
11/20/2019, 3:51 PMtestImplementation(kotlin("test-common"))
testImplementation(kotlin("test-annotations-common"))
testImplementation(kotlin("test"))
testImplementation(kotlin("test-junit"))
(which works for multi-platform) in my Kotlin/JVM project but I can't resolve the kotlin.test.Test
annotation. Is this not supported?Andreas Jost
11/20/2019, 7:32 PMexpect interface A {
fun doSomething()
}
actual interface A {
actual fun doSomething() { /*do sth. */ }
}
This code causes an error, because the expected function is abstract by default and the actual function has an implementation, which means that modality is different. Can I somehow define the expect function as non-abstract? Usually you would give a function of an interface a body to make it non-abstract. If you do that, the error at the actual declaration is gone, but expected declarations must not have bodies, so that's another error.hallvard
11/20/2019, 7:45 PMmaven-publish
plugin, I do this, which works well for me:
publishing {
publications {
maven(MavenPublication) {
pom {
name = 'projectname'
description = 'Whatever ...'
}
artifactId project.name
groupId project.group
version project.version
// Without the following line, these gradle build scripts publish no jar to maven
// We have not succeeded in finding out why (as of May 2019)
from components.java
}
}
repositories {
maven {
def releasesRepoUrl = "(url here)"
def snapshotsRepoUrl = "(url here)"
url = version.endsWith('SNAPSHOT') ? snapshotsRepoUrl : releasesRepoUrl
credentials {
username mavenUser
password mavenPassword
}
}
}
}
Kris Wong
11/20/2019, 8:54 PMBen Ryan
11/20/2019, 9:22 PMBig Chungus
11/21/2019, 10:02 AMIndrih17
11/21/2019, 12:10 PMSylvain Patenaude
11/21/2019, 4:19 PMarray
of strings or a collection
of strings? Potential consumers (other than Koltin itself) could be Java, Swift, Objective-C, React Native, Xamarin, etc.Big Chungus
11/21/2019, 5:17 PMFabio Bombardi
11/21/2019, 8:08 PMvanniktech
11/21/2019, 11:52 PMKurt Renzo Acosta
11/22/2019, 2:47 AMunrecognized selector sent to instance
in Kotlin/Native for iOS?
I have a presenter which has use cases and I just use a service locator to try and use them.
@ThreadLocal
object ServiceLocator {
val myObject = MyObject()
}
class MyPresenter(val myView: MyView, val myObject: MyObject) {
...
}
class ViewController: UIViewController, MyView {
let presenter = MyPresenter.init(myView: self, myObject, ServiceLocator.init().myObject)
...
}
louiscad
11/22/2019, 9:06 AMkotlin.mpp.enableGranularSourceSetsMetadata=true
to my gradle.properties
(requires Kotlin 1.3.60). 🎉 🎉 💪
Thanks for the improvements!Cristián Arenas
11/22/2019, 8:50 PM.h
includes a lot of internal Kotlin stuff (like KotlinNumber
, KotlinUByte
, Sqldelight_runtimeTransacter
, etc), how can I stop it from doing that? I just want it to expose what I mark as public
mbonnin
11/22/2019, 9:01 PMniqo01
11/22/2019, 10:49 PMSrSouza
11/23/2019, 11:24 AMvanniktech
11/23/2019, 6:12 PMserebit
11/23/2019, 7:18 PMShan
11/24/2019, 7:48 AMAt this point, test tasks for Kotlin/JS are created but do not run tests by default; they should be manually configured to run the tests with a JavaScript test framework.
but I am not quite sure about how to go about this..SrSouza
11/24/2019, 3:39 PMkpgalligan
11/24/2019, 5:19 PMShan
11/25/2019, 1:52 AMUnresolved Reference
error? Project structure is like
proj
|_ commonMain
|_ commonTest
|_ jvmMain
|_ kotlin
|_ com.my.package.keys
|_ KeyPairJ.java
|_ jvmTest
|_ kotlin
|_ com.my.package
|_ KeyPairTest
Getting this error every time I try to run a test:
e: ../src/jvmTest/kotlin/com/my/package/KeyPairTest.kt: (13, 19): Unresolved reference: KeyPairJ
My build file is set up like so
//ommitted some things
kotlin {
jvm()
js()
sourceSets {
//omitted some stuff
val jvmMain by getting {
dependencies {
implementation(kotlin("stdlib-jdk8"))
//other stuff- ktor, coroutines, etc.
}
}
val jvmTest by getting {
kotlin("test")
kotlin("test-junit")
}
}
}
Very confused here.. I can call code from commonMain
fine, just not from jvmMain
🤔Casey Brooks
11/25/2019, 7:32 PMlinkFramework
tasks:
Task :linkMobileSharedDebugFrameworkIos
e: Compilation failed: org.jetbrains.kotlin.backend.common.descriptors.WrappedPropertyDescriptor@21f27bb5 is not bound
* Source files:
* Compiler version info: Konan: 1.3.60 / Kotlin: 1.3.60
* Output kind: FRAMEWORK
e: java.lang.IllegalStateException: org.jetbrains.kotlin.backend.common.descriptors.WrappedPropertyDescriptor@21f27bb5 is not bound
at org.jetbrains.kotlin.backend.common.descriptors.WrappedDeclarationDescriptor.getOwner(WrappedDescriptors.kt:98)
at org.jetbrains.kotlin.backend.common.descriptors.WrappedPropertyDescriptor.getReturnType(WrappedDescriptors.kt:816)
...
Nicholas Bilyk
11/25/2019, 9:53 PM// My library
kotlin.sourcesets.named("jvmMain") {
dependencies {
runtimeOnly("$lwjglGroup:$lwjglName:$lwjglVersion:natives-$os")
}
}
However, the consumer can't see this dependency unless it also specifies the runtimeOnly. Is there a way to make this apply without the consumer of my library needing to specify it explicitly?niqo01
11/25/2019, 11:04 PMAkhil Sunny
11/26/2019, 10:28 PMSylvain Patenaude
11/27/2019, 7:52 PMniqo01
11/28/2019, 2:45 AM