Skip to content

Commit

Permalink
chore: Add dependency analysis (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
behzodhalil committed Oct 9, 2023
1 parent 05d1041 commit 8e2706e
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 81 deletions.
1 change: 0 additions & 1 deletion androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ android {
targetSdk = 34
versionCode = 1
versionName = "1.0"
multiDexEnabled = true
}
buildFeatures {
compose = true
Expand Down
1 change: 1 addition & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ plugins {
alias(libs.plugins.buildkonfig).apply(false)
alias(libs.plugins.sentry).apply(false)
alias(libs.plugins.spotless)
alias(libs.plugins.dependencyanalysis)
}

fun Project.spotless(action: SpotlessExtension.() -> Unit) = extensions.configure<SpotlessExtension>(action)
2 changes: 1 addition & 1 deletion buildSrc/src/main/kotlin/Deps.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import org.gradle.api.Project


object Version {
const val ktorVersion = "2.3.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation(projects.features.addnewpassword.addNewPasswordDomain)
implementation(projects.core.common)
implementation(projects.features.addnewpassword.addNewPasswordDomain)
}
}
}
Expand All @@ -17,5 +17,7 @@ kotlin {
android {
namespace = "io.spherelabs.addnewpasswodpresentation"
compileSdk = 33
defaultConfig { minSdk = 24 }
defaultConfig {
minSdk = 24
}
}
1 change: 1 addition & 0 deletions features/auth/authDomain/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ kotlin {
dependencies {
implementation(projects.data.local)
implementation(projects.data.authManager)
implementation(projects.data.prefs)
implementation(projects.core.common)
}
}
Expand Down

This file was deleted.

This file was deleted.

5 changes: 4 additions & 1 deletion features/auth/authPresentation/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation(projects.features.auth.authDomain) }
implementation(projects.features.auth.authDomain)
implementation(projects.core.validation)
}

}
}
}
Expand Down

This file was deleted.

4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#Gradle
org.gradle.jvmargs=-Xmx5g -Dfile.encoding=UTF-8
org.gradle.jvmargs=-Xmx2048M -Dfile.encoding=UTF-8 -Dkotlin.daemon.jvm.options\="-Xmx2048M"
org.gradle.caching=true
org.gradle.parallel=true
#Kotlin
kotlin.code.style=official

systemProp.dependency.analysis.autoapply=false
#Android
android.useAndroidX=true
android.nonTransitiveRClass=true
Expand Down
17 changes: 10 additions & 7 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ sentry-plugin = "3.13.0"
buildkonfig = "0.14.0"
sqldelight-plugin = "2.0.0"
secrets = "2.0.1"
test-logger = "3.2.0"
dependencyanalysis = "1.25.0"

[libraries]
androidx-appcompat = { group = "androidx.appcompat", name = "appcompat", version.ref = "appcompat" }
Expand Down Expand Up @@ -97,12 +99,13 @@ sqldelight = { id = "app.cash.sqldelight", version.ref = "sqldelight-plugin" }
kotlin-jvm = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
secrets = { id = "com.google.android.libraries.mapsplatform.secrets-gradle-plugin", version.ref = "secrets" }
sentry = { id = "io.sentry.android.gradle", version.ref = "sentry-plugin" }

anypass-compose ={ id = "anypass.compose", version = "unspecified" }
test-logger = { id = "com.adarshr.test-logger", version.ref = "test-logger" }
anypass-compose = { id = "anypass.compose", version = "unspecified" }
anypass-designsystem = { id = "anypass.multiplatform.designsystem", version = "unspecified" }
anypass-common = { id = "anypass.multiplatform.common", version = "unspecified" }
anypass-domain = { id = "anypass.multiplatform.domain", version = "unspecified"}
anypass-presentation = { id = "anypass.multiplatform.presentation", version = "unspecified"}
anypass-validation = { id = "anypass.multiplatform.validation", version = "unspecified"}
anypass-prefs = { id = "anypass.multiplatform.prefs", version = "unspecified"}
anypass-resource = { id = "anypass.multiplatform.resource", version = "unspecified"}
anypass-domain = { id = "anypass.multiplatform.domain", version = "unspecified" }
anypass-presentation = { id = "anypass.multiplatform.presentation", version = "unspecified" }
anypass-validation = { id = "anypass.multiplatform.validation", version = "unspecified" }
anypass-prefs = { id = "anypass.multiplatform.prefs", version = "unspecified" }
anypass-resource = { id = "anypass.multiplatform.resource", version = "unspecified" }
dependencyanalysis = { id = "com.autonomousapps.dependency-analysis", version.ref = "dependencyanalysis" }
1 change: 1 addition & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ pluginManagement {
gradlePluginPortal()
mavenCentral()
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
maven("https://oss.sonatype.org/content/repositories/snapshots/")
}
}

Expand Down

0 comments on commit 8e2706e

Please # to comment.