updated buildscript for subprojects

This commit is contained in:
X1nto 2021-10-08 16:17:08 +04:00
parent b1a51f837f
commit a101e3a79f
4 changed files with 48 additions and 41 deletions

View File

@ -9,11 +9,14 @@ java {
dependencies { dependencies {
implementation(kotlin("stdlib")) implementation(kotlin("stdlib"))
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.1") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.4.1") testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.5.0")
testImplementation("io.kotest:kotest-runner-junit5:4.3.2")
testImplementation("io.kotest:kotest-assertions-core:4.3.2") val kotestVersion = "4.4.3"
testImplementation("io.kotest:kotest-property:4.3.2") testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.mockk:mockk:1.10.4") testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
testImplementation("io.kotest:kotest-property:$kotestVersion")
testImplementation("io.mockk:mockk:1.10.6")
} }

View File

@ -4,11 +4,11 @@ plugins {
} }
android { android {
compileSdkVersion(30) compileSdk = 31
defaultConfig { defaultConfig {
minSdkVersion(16) minSdk = 16
targetSdkVersion(30) targetSdk = 30
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
consumerProguardFiles("consumer-rules.pro") consumerProguardFiles("consumer-rules.pro")
@ -35,6 +35,6 @@ android {
dependencies { dependencies {
implementation(kotlin("stdlib")) implementation(kotlin("stdlib"))
implementation("androidx.core:core-ktx:1.3.2") implementation("androidx.core:core-ktx:1.6.0")
implementation("androidx.appcompat:appcompat:1.2.0") implementation("androidx.appcompat:appcompat:1.3.1")
} }

View File

@ -51,35 +51,39 @@ dependencies {
implementation(project(":library-network")) implementation(project(":library-network"))
implementation(kotlin("stdlib")) implementation(kotlin("stdlib"))
implementation("androidx.appcompat:appcompat:1.2.0") implementation("androidx.appcompat:appcompat:1.3.1")
implementation("androidx.core:core-ktx:1.3.2") implementation("androidx.core:core-ktx:1.6.0")
implementation("androidx.fragment:fragment-ktx:1.3.3") implementation("androidx.fragment:fragment-ktx:1.3.6")
implementation("androidx.lifecycle:lifecycle-livedata-core-ktx:2.3.1") implementation("androidx.lifecycle:lifecycle-livedata-core-ktx:2.3.1")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1") implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1")
implementation("com.google.android.material:material:1.3.0") implementation("com.google.android.material:material:1.4.0")
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0") implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
implementation("com.squareup.retrofit2:retrofit:2.9.0") implementation("com.squareup.retrofit2:retrofit:2.9.0")
implementation("com.squareup.moshi:moshi-kotlin:1.11.0") val moshiVersion = "1.11.0"
implementation("com.squareup.moshi:moshi-kotlin-codegen:1.11.0") implementation("com.squareup.moshi:moshi-kotlin:$moshiVersion")
implementation("com.squareup.moshi:moshi-adapters:1.11.0") implementation("com.squareup.moshi:moshi-kotlin-codegen:$moshiVersion")
implementation("com.squareup.moshi:moshi-adapters:$moshiVersion")
implementation("com.squareup.okhttp3:logging-interceptor:4.9.1") implementation("com.squareup.okhttp3:logging-interceptor:4.9.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
implementation("org.koin:koin-android:2.2.1") implementation("io.insert-koin:koin-android:3.1.2")
implementation("org.koin:koin-android-viewmodel:2.2.1")
implementation("org.koin:koin-android-ext:2.2.1")
testImplementation("io.kotest:kotest-runner-junit5:4.4.3") val kotestVersion = "4.4.3"
testImplementation("io.kotest:kotest-assertions-core:4.4.3") testImplementation("io.kotest:kotest-runner-junit5:$kotestVersion")
testImplementation("io.kotest:kotest-property:4.4.3") testImplementation("io.kotest:kotest-assertions-core:$kotestVersion")
testImplementation("io.mockk:mockk:1.10.6") testImplementation("io.kotest:kotest-property:$kotestVersion")
androidTestImplementation("io.mockk:mockk-android:1.10.6") val mockkVersion = "1.10.6"
androidTestImplementation("androidx.test:core:1.3.0") testImplementation("io.mockk:mockk:$mockkVersion")
androidTestImplementation("androidx.test:runner:1.3.0")
androidTestImplementation("androidx.test:rules:1.3.0") androidTestImplementation("io.mockk:mockk-android:$mockkVersion")
val androidxTestVersion = "1.4.0"
androidTestImplementation("androidx.test:core:$androidxTestVersion")
androidTestImplementation("androidx.test:runner:$androidxTestVersion")
androidTestImplementation("androidx.test:rules:$androidxTestVersion")
} }

View File

@ -35,20 +35,20 @@ android {
dependencies { dependencies {
implementation(kotlin("stdlib")) implementation(kotlin("stdlib"))
implementation("androidx.core:core-ktx:1.3.2") implementation("androidx.core:core-ktx:1.6.0")
implementation("com.squareup.retrofit2:retrofit:2.9.0") val retrofitVersion = "2.9.0"
implementation("com.squareup.retrofit2:converter-moshi:2.9.0") implementation("com.squareup.retrofit2:retrofit:$retrofitVersion")
implementation("com.squareup.retrofit2:converter-moshi:$retrofitVersion")
implementation("com.squareup.moshi:moshi-kotlin:1.11.0")
implementation("com.squareup.moshi:moshi-kotlin-codegen:1.11.0") val moshiVersion = "1.11.0"
implementation("com.squareup.moshi:moshi-adapters:1.11.0") implementation("com.squareup.moshi:moshi-kotlin:$moshiVersion")
implementation("com.squareup.moshi:moshi-kotlin-codegen:$moshiVersion")
implementation("com.squareup.moshi:moshi-adapters:$moshiVersion")
implementation("com.squareup.okhttp3:logging-interceptor:4.9.1") implementation("com.squareup.okhttp3:logging-interceptor:4.9.1")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.4.2") implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.5.2")
implementation("org.koin:koin-android:2.2.1") implementation("io.insert-koin:koin-android:3.1.2")
implementation("org.koin:koin-android-viewmodel:2.2.1")
implementation("org.koin:koin-android-ext:2.2.1")
} }