2021-03-18 19:11:45 +01:00
|
|
|
/*
|
|
|
|
* * Copyright (c) 2021 Shabinder Singh
|
|
|
|
* * This program is free software: you can redistribute it and/or modify
|
|
|
|
* * it under the terms of the GNU General Public License as published by
|
|
|
|
* * the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* * (at your option) any later version.
|
|
|
|
* *
|
|
|
|
* * This program is distributed in the hope that it will be useful,
|
|
|
|
* * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* * GNU General Public License for more details.
|
|
|
|
* *
|
|
|
|
* * You should have received a copy of the GNU General Public License
|
|
|
|
* * along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
2021-01-26 13:54:28 +01:00
|
|
|
import org.jetbrains.compose.compose
|
|
|
|
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
kotlin("multiplatform")
|
|
|
|
id("org.jetbrains.compose")
|
2021-07-13 22:45:09 +02:00
|
|
|
id("ktlint-setup")
|
2021-01-26 13:54:28 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
group = "com.shabinder"
|
|
|
|
version = Versions.versionName
|
|
|
|
|
|
|
|
kotlin {
|
|
|
|
jvm {
|
|
|
|
compilations.all {
|
2021-05-18 16:32:33 +02:00
|
|
|
kotlinOptions.jvmTarget = "1.8"
|
2021-01-26 13:54:28 +01:00
|
|
|
}
|
|
|
|
}
|
2021-10-10 22:52:29 +02:00
|
|
|
tasks.named<Copy>("jvmProcessResources") {
|
|
|
|
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
|
|
|
|
}
|
2021-01-26 13:54:28 +01:00
|
|
|
sourceSets {
|
|
|
|
val jvmMain by getting {
|
2021-10-10 22:52:29 +02:00
|
|
|
resources.srcDirs("../common/data-models/src/main/res")
|
2021-01-26 13:54:28 +01:00
|
|
|
dependencies {
|
|
|
|
implementation(compose.desktop.currentOs)
|
|
|
|
implementation(project(":common:database"))
|
2021-01-31 12:33:41 +01:00
|
|
|
implementation(project(":common:dependency-injection"))
|
2021-08-23 19:16:20 +02:00
|
|
|
implementation(project(":common:core-components"))
|
2021-04-29 18:14:19 +02:00
|
|
|
implementation(project(":common:data-models"))
|
2021-06-19 22:46:59 +02:00
|
|
|
implementation(project(":common:compose"))
|
2021-08-23 19:16:20 +02:00
|
|
|
implementation(project(":common:providers"))
|
2021-02-26 00:59:54 +01:00
|
|
|
implementation(project(":common:root"))
|
2021-05-12 00:30:52 +02:00
|
|
|
|
2021-09-30 19:16:43 +02:00
|
|
|
with(deps) {
|
|
|
|
implementation(jaffree)
|
2021-05-07 22:46:50 +02:00
|
|
|
|
2021-09-30 19:16:43 +02:00
|
|
|
with(decompose) {
|
|
|
|
implementation(dep)
|
|
|
|
implementation(extensions.compose)
|
|
|
|
}
|
|
|
|
with(mviKotlin) {
|
|
|
|
implementation(dep)
|
|
|
|
implementation(main)
|
|
|
|
}
|
2021-05-31 17:02:10 +02:00
|
|
|
|
2021-09-30 19:16:43 +02:00
|
|
|
implementation(koin.core)
|
|
|
|
}
|
2021-01-26 13:54:28 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
val jvmTest by getting
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
compose.desktop {
|
|
|
|
application {
|
|
|
|
mainClass = "MainKt"
|
2021-09-05 16:49:55 +02:00
|
|
|
description = "Music Downloader for Spotify, Gaana, Jio Saavn, Youtube Music."
|
2021-01-26 13:54:28 +01:00
|
|
|
nativeDistributions {
|
2021-05-08 17:12:09 +02:00
|
|
|
modules("java.sql", "java.security.jgss", "jdk.crypto.ec")
|
2021-01-26 13:54:28 +01:00
|
|
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
|
|
|
packageName = "SpotiFlyer"
|
2021-05-08 17:12:09 +02:00
|
|
|
copyright = "© 2021 Shabinder. All rights reserved."
|
|
|
|
vendor = "Shabinder"
|
2021-05-12 00:30:52 +02:00
|
|
|
|
2021-05-08 17:12:09 +02:00
|
|
|
val iconsRoot = project.file("src/jvmMain/resources/drawable")
|
|
|
|
macOS {
|
2021-05-12 00:30:52 +02:00
|
|
|
bundleID = "com.shabinder.spotiflyer"
|
2021-05-08 17:12:09 +02:00
|
|
|
iconFile.set(iconsRoot.resolve("spotiflyer.icns"))
|
|
|
|
}
|
|
|
|
windows {
|
|
|
|
iconFile.set(iconsRoot.resolve("spotiflyer.ico"))
|
2021-05-09 00:20:52 +02:00
|
|
|
// Wondering what the heck is this? See : https://wixtoolset.org/documentation/manual/v3/howtos/general/generate_guids.html
|
2021-09-05 16:49:55 +02:00
|
|
|
// https://www.guidgen.com/
|
2021-10-12 22:38:28 +02:00
|
|
|
upgradeUuid = "0d0b3288-5f87-4e7a-8929-540d79f89bc2"
|
2021-05-09 00:20:52 +02:00
|
|
|
menuGroup = packageName
|
2021-05-08 17:12:09 +02:00
|
|
|
}
|
|
|
|
linux {
|
|
|
|
iconFile.set(iconsRoot.resolve("spotiflyer.png"))
|
|
|
|
}
|
2021-01-26 13:54:28 +01:00
|
|
|
}
|
|
|
|
}
|
2021-07-13 22:45:09 +02:00
|
|
|
}
|