I’ve made an example app from a tutorial on github...
# kotlin-native
j
I’ve made an example app from a tutorial on github: https://github.com/JetBrains/kotlin-native/blob/master/MULTIPLATFORM.md iOS app works ok, but I can’t find a way to add dependency from maven to be included in my framework. Is there something I’m missing? When I add
implementation
to dependencies, I get an error
Could not find method implementation() for arguments [...] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler
g
Do you use Kotlin or Groovy DSL?
j
for gradle files? Groovy, as in all examples 🙂
r
If you’re using the
konan
plugin, then dependencies look like
artifactFoo com.example:dependency:version
where
Foo
is the name of the framework you’re creating (ie
framework("Foo")
).