This message was deleted.
# amper
s
This message was deleted.
g
I have read that By default, Maven Central and Google Android repositories are pre-configured. So it should be able to download ktor libs, right?
message has been deleted
Here is my module file
Copy code
product:
  type: lib
  platforms:
    - macosX64
    - jvm
#    - mingwX64

dependencies:
  - "io.ktor:ktor-client-content-negotiation:2.3.10"
  - "io.ktor:ktor-serialization-kotlinx-json:2.3.10"
  - "io.ktor:ktor-client-core:2.3.10"
  - "io.ktor:ktor-client-okhttp:2.3.10"

settings:
  kotlin:
    languageVersion: 1.9
    serialization:
      json
  jvm:
    target: 17
nevermind, I just remembered there is no okhttp for native targets
z
That's correct, you'd need a different engine for native targets. There's an example of Ktor being set up for various targets here (also using version catalogs): https://github.com/Kotlin/KMP-App-Template/blob/amper/shared/module.yaml
📌 1