init
This commit is contained in:
83
app/build.gradle.kts
Normal file
83
app/build.gradle.kts
Normal file
@@ -0,0 +1,83 @@
|
||||
plugins {
|
||||
id("com.android.application")
|
||||
id("kotlin-android")
|
||||
id("org.jetbrains.kotlin.android")
|
||||
id("com.google.dagger.hilt.android")
|
||||
id("com.google.devtools.ksp")
|
||||
}
|
||||
|
||||
android {
|
||||
compileSdk = Config.SdkVersion.COMPILE
|
||||
namespace = "com.testapp.test"
|
||||
|
||||
defaultConfig {
|
||||
applicationId = "com.testapp.test"
|
||||
minSdk = Config.SdkVersion.MIN
|
||||
targetSdk = Config.SdkVersion.COMPILE
|
||||
versionCode = System.getenv("BUILD_NUMBER")?.toInt() ?: Config.Version.CODE
|
||||
versionName = Config.Version.NAME
|
||||
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
|
||||
|
||||
vectorDrawables {
|
||||
useSupportLibrary = true
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
getByName(BuildType.DEBUG) {
|
||||
isDebuggable = true
|
||||
isMinifyEnabled = false
|
||||
}
|
||||
create(BuildType.STAGING) {
|
||||
isDebuggable = true
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
}
|
||||
getByName(BuildType.RELEASE) {
|
||||
isDebuggable = false
|
||||
isMinifyEnabled = true
|
||||
isShrinkResources = true
|
||||
}
|
||||
}
|
||||
|
||||
compileOptions {
|
||||
isCoreLibraryDesugaringEnabled = true
|
||||
sourceCompatibility = JavaVersion.VERSION_21
|
||||
targetCompatibility = JavaVersion.VERSION_21
|
||||
}
|
||||
|
||||
buildFeatures {
|
||||
viewBinding = true
|
||||
}
|
||||
|
||||
lint {
|
||||
abortOnError = false
|
||||
}
|
||||
|
||||
// kapt block удаляем при переходе на KSP
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation(fileTree("dir" to "libs", "include" to listOf("*.jar", "*.aar")))
|
||||
// Modules
|
||||
implementation(project(":style"))
|
||||
implementation(project(":presentation"))
|
||||
implementation(project(":data"))
|
||||
implementation(project(":domain:domain"))
|
||||
implementation(project(":domain:domain_impl"))
|
||||
|
||||
|
||||
implementation(libs.appcompat)
|
||||
implementation(libs.material)
|
||||
implementation(libs.activity.ktx)
|
||||
implementation(libs.core.ktx)
|
||||
implementation(libs.fragment.ktx)
|
||||
implementation(libs.splashscreen)
|
||||
|
||||
implementation(libs.hilt.android)
|
||||
ksp(libs.hilt.compiler)
|
||||
|
||||
debugImplementation(libs.leakcanary)
|
||||
|
||||
coreLibraryDesugaring(libs.desugar.jdk.libs)
|
||||
}
|
||||
Reference in New Issue
Block a user