mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-11-24 18:04:33 +01:00
build scripts cleaning
This commit is contained in:
parent
14eeee195f
commit
77d6996f5d
@ -55,20 +55,17 @@ android {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buildFeatures {
|
|
||||||
compose = true
|
|
||||||
}
|
|
||||||
packagingOptions {
|
packagingOptions {
|
||||||
exclude("META-INF/*")
|
exclude("META-INF/*")
|
||||||
}
|
}
|
||||||
composeOptions {
|
/*
|
||||||
kotlinCompilerVersion = Versions.kotlinVersion
|
buildFeatures {
|
||||||
//kotlinCompilerExtensionVersion = Versions.compose
|
compose = true
|
||||||
}
|
}
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = "1.8"
|
jvmTarget = "1.8"
|
||||||
useIR = true
|
useIR = true
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation(compose.material)
|
implementation(compose.material)
|
||||||
@ -79,11 +76,6 @@ dependencies {
|
|||||||
implementation(project(":common:dependency-injection"))
|
implementation(project(":common:dependency-injection"))
|
||||||
implementation(project(":common:data-models"))
|
implementation(project(":common:data-models"))
|
||||||
implementation(Androidx.appCompat)
|
implementation(Androidx.appCompat)
|
||||||
/*
|
|
||||||
implementation(Androidx.coroutines)
|
|
||||||
implementation(Androidx.core)
|
|
||||||
implementation(Androidx.palette)
|
|
||||||
*/
|
|
||||||
|
|
||||||
//Compose-Navigation
|
//Compose-Navigation
|
||||||
//implementation(Androidx.composeNavigation)
|
//implementation(Androidx.composeNavigation)
|
||||||
@ -95,6 +87,9 @@ dependencies {
|
|||||||
implementation(Decompose.decompose)
|
implementation(Decompose.decompose)
|
||||||
implementation(Decompose.extensionsCompose)
|
implementation(Decompose.extensionsCompose)
|
||||||
/*
|
/*
|
||||||
|
implementation(Androidx.coroutines)
|
||||||
|
implementation(Androidx.core)
|
||||||
|
implementation(Androidx.palette)
|
||||||
|
|
||||||
//Lifecycle
|
//Lifecycle
|
||||||
Versions.androidLifecycle.let{
|
Versions.androidLifecycle.let{
|
||||||
@ -132,10 +127,12 @@ dependencies {
|
|||||||
//Desugaring
|
//Desugaring
|
||||||
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.1")
|
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:1.1.1")
|
||||||
}
|
}
|
||||||
|
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
jvmTarget = JavaVersion.VERSION_1_8.toString()
|
||||||
freeCompilerArgs = listOf("-Xallow-jvm-ir-dependencies","-Xallow-unstable-dependencies",
|
freeCompilerArgs = listOf(
|
||||||
|
"-Xallow-jvm-ir-dependencies","-Xallow-unstable-dependencies",
|
||||||
"-Xskip-prerelease-check",
|
"-Xskip-prerelease-check",
|
||||||
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"
|
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi"
|
||||||
)
|
)
|
||||||
|
@ -14,12 +14,7 @@ allprojects {
|
|||||||
maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
maven(url = "https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
buildscript {
|
/*
|
||||||
dependencies {
|
|
||||||
classpath(JetBrains.Kotlin.gradlePlugin)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
freeCompilerArgs = listOf("-Xallow-jvm-ir-dependencies", "-Xskip-prerelease-check",
|
freeCompilerArgs = listOf("-Xallow-jvm-ir-dependencies", "-Xskip-prerelease-check",
|
||||||
@ -27,4 +22,4 @@ tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|||||||
"-Xuse-experimental=kotlinx.coroutines.TheAnnotationYouWantToDisable"
|
"-Xuse-experimental=kotlinx.coroutines.TheAnnotationYouWantToDisable"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
@ -1,31 +1,16 @@
|
|||||||
plugins {
|
plugins {
|
||||||
`kotlin-dsl`
|
`kotlin-dsl`
|
||||||
`kotlin-dsl-precompiled-script-plugins`
|
//`kotlin-dsl-precompiled-script-plugins`
|
||||||
}
|
}
|
||||||
|
|
||||||
group = "com.shabinder"
|
group = "com.shabinder"
|
||||||
version = "2.1"
|
version = "2.1"
|
||||||
buildscript{
|
|
||||||
repositories {
|
|
||||||
// TODO: remove after new build is published
|
|
||||||
mavenLocal()
|
|
||||||
google()
|
|
||||||
jcenter()
|
|
||||||
maven(url = "https://jitpack.io")
|
|
||||||
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
|
||||||
classpath("com.android.tools.build:gradle:4.0.1")
|
|
||||||
classpath(JetBrains.Compose.gradlePlugin)
|
|
||||||
classpath(JetBrains.Kotlin.gradlePlugin)
|
|
||||||
}
|
|
||||||
}
|
|
||||||
repositories {
|
repositories {
|
||||||
maven(url = "https://jitpack.io")
|
|
||||||
jcenter()
|
jcenter()
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
google()
|
google()
|
||||||
|
maven(url = "https://jitpack.io")
|
||||||
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -40,6 +25,7 @@ dependencies {
|
|||||||
kotlinDslPluginOptions {
|
kotlinDslPluginOptions {
|
||||||
experimentalWarning.set(false)
|
experimentalWarning.set(false)
|
||||||
}
|
}
|
||||||
|
|
||||||
kotlin {
|
kotlin {
|
||||||
// Add Deps to compilation, so it will become available in main project
|
// Add Deps to compilation, so it will become available in main project
|
||||||
sourceSets.getByName("main").kotlin.srcDir("buildSrc/src/main/kotlin")
|
sourceSets.getByName("main").kotlin.srcDir("buildSrc/src/main/kotlin")
|
||||||
|
@ -5,10 +5,9 @@ object Versions {
|
|||||||
const val kotlinVersion = "1.4.21-2"
|
const val kotlinVersion = "1.4.21-2"
|
||||||
|
|
||||||
const val coroutinesVersion = "1.4.2"
|
const val coroutinesVersion = "1.4.2"
|
||||||
const val compose = "1.0.0-alpha11"
|
//const val compose = "1.0.0-alpha11"
|
||||||
const val coilVersion = "0.4.1"
|
const val coilVersion = "0.4.1"
|
||||||
//DI
|
//DI
|
||||||
const val kodein = "7.2.0"
|
|
||||||
const val koin = "3.0.0-alpha-4"
|
const val koin = "3.0.0-alpha-4"
|
||||||
|
|
||||||
//Logger
|
//Logger
|
||||||
@ -39,7 +38,7 @@ object Koin {
|
|||||||
}
|
}
|
||||||
object Androidx{
|
object Androidx{
|
||||||
const val appCompat = "androidx.appcompat:appcompat:1.2.0"
|
const val appCompat = "androidx.appcompat:appcompat:1.2.0"
|
||||||
const val core = "androidx.core:core-ktx:1.5.0-beta01"
|
const val core = "androidx.core:core-ktx:1.3.2"
|
||||||
const val palette = "androidx.palette:palette-ktx:1.0.0"
|
const val palette = "androidx.palette:palette-ktx:1.0.0"
|
||||||
const val composeNavigation = "androidx.navigation:navigation-compose:1.0.0-alpha06"
|
const val composeNavigation = "androidx.navigation:navigation-compose:1.0.0-alpha06"
|
||||||
const val coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-android:${Versions.coroutinesVersion}"
|
const val coroutines = "org.jetbrains.kotlinx:kotlinx-coroutines-android:${Versions.coroutinesVersion}"
|
||||||
@ -47,7 +46,7 @@ object Androidx{
|
|||||||
const val junit = "androidx.test.ext:junit:1.1.2"
|
const val junit = "androidx.test.ext:junit:1.1.2"
|
||||||
const val expresso = "androidx.test.espresso:espresso-core:3.3.0"
|
const val expresso = "androidx.test.espresso:espresso-core:3.3.0"
|
||||||
|
|
||||||
object Compose{
|
/*object Compose{
|
||||||
const val materialIcon = "androidx.compose.material:material-icons-extended:${Versions.compose}"
|
const val materialIcon = "androidx.compose.material:material-icons-extended:${Versions.compose}"
|
||||||
const val ui = "androidx.compose.ui:ui:${Versions.compose}"
|
const val ui = "androidx.compose.ui:ui:${Versions.compose}"
|
||||||
const val uiGraphics = "androidx.compose.ui:ui-graphics:${Versions.compose}"
|
const val uiGraphics = "androidx.compose.ui:ui-graphics:${Versions.compose}"
|
||||||
@ -55,7 +54,7 @@ object Androidx{
|
|||||||
const val foundationLayout = "androidx.compose.foundation:foundation-layout:${Versions.compose}"
|
const val foundationLayout = "androidx.compose.foundation:foundation-layout:${Versions.compose}"
|
||||||
const val material = "androidx.compose.material:material:${Versions.compose}"
|
const val material = "androidx.compose.material:material:${Versions.compose}"
|
||||||
const val runtimeLiveData = "androidx.compose.runtime:runtime-livedata:${Versions.compose}"
|
const val runtimeLiveData = "androidx.compose.runtime:runtime-livedata:${Versions.compose}"
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
object JetBrains {
|
object JetBrains {
|
||||||
object Kotlin {
|
object Kotlin {
|
||||||
|
@ -10,8 +10,8 @@ kotlin {
|
|||||||
sourceSets {
|
sourceSets {
|
||||||
commonMain {
|
commonMain {
|
||||||
dependencies {
|
dependencies {
|
||||||
//implementation(compose.materialIconsExtended)
|
implementation(compose.materialIconsExtended)
|
||||||
implementation("org.jetbrains.compose.material:material-icons-extended:0.3.0-build150")
|
//implementation("org.jetbrains.compose.material:material-icons-extended:0.3.0-build150")
|
||||||
implementation(project(":common:dependency-injection"))
|
implementation(project(":common:dependency-injection"))
|
||||||
implementation(project(":common:data-models"))
|
implementation(project(":common:data-models"))
|
||||||
implementation(project(":common:database"))
|
implementation(project(":common:database"))
|
||||||
@ -30,14 +30,14 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
||||||
kotlinOptions {
|
kotlinOptions {
|
||||||
useIR = true
|
//useIR = true
|
||||||
freeCompilerArgs = listOf("-Xallow-jvm-ir-dependencies",
|
freeCompilerArgs = listOf("-Xallow-jvm-ir-dependencies",
|
||||||
"-Xallow-unstable-dependencies","-Xskip-prerelease-check",
|
"-Xallow-unstable-dependencies","-Xskip-prerelease-check",
|
||||||
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
||||||
"-Xuse-experimental=kotlinx.coroutines.TheAnnotationYouWantToDisable"
|
"-Xuse-experimental=kotlinx.coroutines.TheAnnotationYouWantToDisable"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
@ -12,16 +12,4 @@ kotlin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
||||||
kotlinOptions {
|
|
||||||
useIR = true
|
|
||||||
freeCompilerArgs = listOf("-Xallow-jvm-ir-dependencies",
|
|
||||||
"-Xallow-unstable-dependencies","-Xskip-prerelease-check",
|
|
||||||
"-P", "plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=true",
|
|
||||||
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
|
|
||||||
"-Xuse-experimental=kotlinx.coroutines.TheAnnotationYouWantToDisable"
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -1,8 +1,12 @@
|
|||||||
import androidx.compose.desktop.Window
|
import androidx.compose.desktop.Window
|
||||||
|
import androidx.compose.foundation.layout.Column
|
||||||
|
import androidx.compose.material.Text
|
||||||
import com.shabinder.common.initKoin
|
import com.shabinder.common.initKoin
|
||||||
|
|
||||||
private val koin = initKoin(enableNetworkLogs = true).koin
|
private val koin = initKoin(enableNetworkLogs = true).koin
|
||||||
|
|
||||||
fun main() = Window {
|
fun main() = Window {
|
||||||
//TODO
|
Column{
|
||||||
|
Text("Hello World")
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,5 +1,29 @@
|
|||||||
kotlin.code.style=official
|
# Project-wide Gradle settings.
|
||||||
|
# IDE (e.g. Android Studio) users:
|
||||||
|
# Gradle settings configured through the IDE *will override*
|
||||||
|
# any settings specified in this file.
|
||||||
|
# For more details on how to configure your build environment visit
|
||||||
|
# http://www.gradle.org/docs/current/userguide/build_environment.html
|
||||||
|
# Specifies the JVM arguments used for the daemon process.
|
||||||
|
# The setting is particularly useful for tweaking memory settings.
|
||||||
|
org.gradle.jvmargs=-Xmx2048m
|
||||||
|
# When configured, Gradle will run in incubating parallel mode.
|
||||||
|
# This option should only be used with decoupled projects. More details, visit
|
||||||
|
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
|
||||||
|
# org.gradle.parallel=true
|
||||||
|
# AndroidX package structure to make it clearer which packages are bundled with the
|
||||||
|
# Android operating system, and which are packaged with your app"s APK
|
||||||
|
# https://developer.android.com/topic/libraries/support-library/androidx-rn
|
||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
kotlin.mpp.enableGranularSourceSetsMetadata=true
|
# Automatically convert third-party libraries to use AndroidX
|
||||||
kotlin.native.enableDependencyPropagation=false
|
android.enableJetifier=true
|
||||||
org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
# Kotlin code style for this project: "official" or "obsolete":
|
||||||
|
kotlin.code.style=official
|
||||||
|
org.gradle.parallel=true
|
||||||
|
org.gradle.caching=true
|
||||||
|
kotlin.native.disableCompilerDaemon=true
|
||||||
|
#kotlin.code.style=official
|
||||||
|
#android.useAndroidX=true
|
||||||
|
#kotlin.mpp.enableGranularSourceSetsMetadata=true
|
||||||
|
#kotlin.native.enableDependencyPropagation=false
|
||||||
|
#org.gradle.jvmargs=-Xmx2048m -XX:MaxPermSize=1024m -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8
|
Loading…
Reference in New Issue
Block a user