SpotiFlyer/common/dependency-injection/build.gradle.kts

62 lines
2.1 KiB
Plaintext
Raw Normal View History

2021-02-26 00:59:54 +01:00
import org.jetbrains.compose.compose
2021-01-26 13:54:28 +01:00
plugins {
2021-03-06 18:33:05 +01:00
id("multiplatform-setup")
2021-01-26 13:54:28 +01:00
id("android-setup")
kotlin("plugin.serialization")
}
kotlin {
sourceSets {
2021-01-26 20:58:11 +01:00
commonMain {
2021-01-26 13:54:28 +01:00
dependencies {
implementation(project(":common:data-models"))
implementation(project(":common:database"))
2021-01-30 15:10:31 +01:00
implementation(project(":fuzzywuzzy:app"))
2021-03-05 20:50:24 +01:00
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.1.0")
2021-01-31 12:33:41 +01:00
implementation("org.jetbrains.kotlinx:kotlinx-datetime:0.1.1")
2021-01-26 13:54:28 +01:00
implementation(Ktor.clientCore)
implementation(Ktor.clientSerialization)
2021-01-29 18:53:17 +01:00
implementation(Ktor.clientLogging)
implementation(Ktor.clientJson)
2021-01-26 13:54:28 +01:00
implementation(Ktor.auth)
2021-01-29 18:53:17 +01:00
// koin
api(Koin.core)
api(Koin.test)
api(Extras.kermit)
2021-01-26 13:54:28 +01:00
}
}
2021-01-26 20:58:11 +01:00
androidMain {
2021-01-26 13:54:28 +01:00
dependencies{
implementation(compose.materialIconsExtended)
2021-03-09 13:15:22 +01:00
implementation(Koin.android)
2021-01-26 13:54:28 +01:00
implementation(Ktor.clientAndroid)
2021-02-22 18:38:33 +01:00
implementation(Extras.Android.fetch)
implementation(Extras.Android.razorpay)
2021-03-09 13:15:22 +01:00
api(Extras.youtubeDownloader)
api(Extras.mp3agic)
2021-02-24 15:16:16 +01:00
//api(files("$rootDir/libs/mobile-ffmpeg.aar"))
2021-01-26 13:54:28 +01:00
}
}
2021-01-26 20:58:11 +01:00
desktopMain {
2021-01-26 13:54:28 +01:00
dependencies{
implementation(compose.materialIconsExtended)
2021-01-29 18:53:17 +01:00
implementation(Ktor.clientApache)
implementation(Ktor.slf4j)
2021-03-09 13:15:22 +01:00
api(Extras.youtubeDownloader)
api(Extras.mp3agic)
2021-01-26 13:54:28 +01:00
}
}
2021-03-06 18:33:05 +01:00
jsMain {
dependencies {
implementation(project(":common:data-models"))
2021-03-12 21:18:03 +01:00
implementation(Ktor.clientJs)
implementation(npm("browser-id3-writer","4.4.0"))
implementation(npm("file-saver","2.0.4"))
//implementation(npm("@types/file-saver","2.0.1",generateExternals = true))
2021-03-06 18:33:05 +01:00
}
}
2021-01-26 13:54:28 +01:00
}
}