Extract versions to separate file

This commit is contained in:
Kirill Kamakin
2022-06-12 18:51:53 +02:00
parent 6adc19af1b
commit 9450fa6ca1
3 changed files with 153 additions and 88 deletions

View File

@@ -7,19 +7,17 @@ plugins {
id 'org.jetbrains.kotlin.plugin.serialization'
id 'com.google.gms.google-services'
id 'com.google.firebase.crashlytics'
// https://plugins.gradle.org/plugin/com.guardsquare.appsweep
id "com.guardsquare.appsweep" version "1.0.0"
// https://github.com/google/protobuf-gradle-plugin/releases
id "com.google.protobuf" version "0.8.18"
id "com.guardsquare.appsweep" version "$appsweep_version"
id "com.google.protobuf" version "$protobuf_plugin_version"
}
android {
compileSdk 32
compileSdk compile_sdk_version
defaultConfig {
applicationId "gq.kirmanak.mealient"
minSdk 23
targetSdk 32
minSdk min_sdk_version
targetSdk target_sdk_version
versionCode 12
versionName "0.2.3"
@@ -97,27 +95,20 @@ tasks.withType(org.jetbrains.kotlin.gradle.tasks.KotlinCompile).configureEach {
}
dependencies {
// https://github.com/material-components/material-components-android
implementation "com.google.android.material:material:1.6.0"
implementation "com.google.android.material:material:$material_version"
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
implementation "androidx.navigation:navigation-runtime-ktx:$nav_version"
implementation "androidx.navigation:navigation-ui-ktx:$nav_version"
// https://developer.android.com/kotlin/ktx#core
implementation "androidx.core:core-ktx:1.7.0"
implementation "androidx.core:core-ktx:$core_ktx_version"
// https://developer.android.com/jetpack/androidx/releases/appcompat
implementation "androidx.appcompat:appcompat:1.4.1"
implementation "androidx.appcompat:appcompat:$appcompat_version"
// https://developer.android.com/jetpack/androidx/releases/constraintlayout
implementation "androidx.constraintlayout:constraintlayout:2.1.4"
implementation "androidx.constraintlayout:constraintlayout:$contraint_layout_version"
// https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout
implementation "androidx.swiperefreshlayout:swiperefreshlayout:1.1.0"
implementation "androidx.swiperefreshlayout:swiperefreshlayout:$swipe_refresh_layout_version"
// https://developer.android.com/jetpack/androidx/releases/lifecycle
def lifecycle_version = "2.4.1"
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
@@ -126,41 +117,29 @@ dependencies {
kaptTest "com.google.dagger:hilt-android-compiler:$hilt_version"
testImplementation "com.google.dagger:hilt-android-testing:$hilt_version"
// https://github.com/square/retrofit/tags
implementation "com.squareup.retrofit2:retrofit:2.9.0"
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
// https://github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/tags
implementation "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0"
implementation "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:$retrofit_kotlinx_serialization_version"
// https://github.com/square/okhttp/tags
implementation platform("com.squareup.okhttp3:okhttp-bom:4.9.3")
implementation platform("com.squareup.okhttp3:okhttp-bom:$okhttp_version")
implementation "com.squareup.okhttp3:okhttp"
debugImplementation "com.squareup.okhttp3:logging-interceptor"
// https://github.com/Kotlin/kotlinx.serialization/releases
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.3"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:$kotlinx_serialization_version"
// https://github.com/JakeWharton/timber/releases
implementation 'com.jakewharton.timber:timber:5.0.1'
implementation "com.jakewharton.timber:timber:$timber_version"
// https://developer.android.com/jetpack/androidx/releases/paging
def paging_version = "3.1.1"
implementation "androidx.paging:paging-runtime-ktx:$paging_version"
testImplementation "androidx.paging:paging-common-ktx:$paging_version"
// https://developer.android.com/jetpack/androidx/releases/room
def room_version = "2.4.2"
implementation "androidx.room:room-runtime:$room_version"
implementation "androidx.room:room-ktx:$room_version"
implementation "androidx.room:room-paging:$room_version"
kapt "androidx.room:room-compiler:$room_version"
testImplementation "androidx.room:room-testing:$room_version"
// https://github.com/Kotlin/kotlinx-datetime/releases
implementation "org.jetbrains.kotlinx:kotlinx-datetime:0.3.3"
implementation "org.jetbrains.kotlinx:kotlinx-datetime:$kotlinx_datetime_version"
// https://github.com/bumptech/glide/releases
def glide_version = "4.13.2"
implementation "com.github.bumptech.glide:glide:$glide_version"
implementation "com.github.bumptech.glide:okhttp3-integration:$glide_version"
implementation("com.github.bumptech.glide:recyclerview-integration:$glide_version") {
@@ -169,58 +148,42 @@ dependencies {
}
kapt "com.github.bumptech.glide:compiler:$glide_version"
// https://github.com/androidbroadcast/ViewBindingPropertyDelegate/releases
implementation "com.github.kirich1409:viewbindingpropertydelegate-noreflection:1.5.6"
implementation "com.github.kirich1409:viewbindingpropertydelegate-noreflection:$view_binding_delegate_version"
// https://developer.android.com/jetpack/androidx/releases/datastore
def datastore_version = "1.0.0"
implementation "androidx.datastore:datastore-preferences:$datastore_version"
implementation "androidx.datastore:datastore:$datastore_version"
implementation "com.google.protobuf:protobuf-javalite:$protobuf_version"
// https://developer.android.com/jetpack/androidx/releases/security
implementation "androidx.security:security-crypto:1.0.0"
implementation "androidx.security:security-crypto:$security_version"
// https://mvnrepository.com/artifact/com.google.firebase/firebase-bom?repo=google
implementation platform("com.google.firebase:firebase-bom:30.0.2")
implementation platform("com.google.firebase:firebase-bom:$firebase_version")
implementation "com.google.firebase:firebase-analytics-ktx"
implementation "com.google.firebase:firebase-crashlytics-ktx"
// https://github.com/junit-team/junit4/releases
testImplementation "junit:junit:4.13.2"
testImplementation "junit:junit:$junit_version"
// https://github.com/Kotlin/kotlinx.coroutines/releases
def coroutines_version = "1.6.1"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines_version"
testImplementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
// https://github.com/robolectric/robolectric/releases
testImplementation "org.robolectric:robolectric:4.8.1"
testImplementation "org.robolectric:robolectric:$robolectric_version"
// https://developer.android.com/jetpack/androidx/releases/test
testImplementation "androidx.test.ext:junit-ktx:1.1.3"
testImplementation "androidx.test.ext:junit-ktx:$junit_ktx_version"
// https://mvnrepository.com/artifact/com.google.truth/truth
testImplementation "com.google.truth:truth:1.1.3"
testImplementation "com.google.truth:truth:$truth_version"
// https://mockk.io/
testImplementation "io.mockk:mockk:1.12.4"
testImplementation "io.mockk:mockk:$mockk_version"
// https://github.com/facebook/flipper/releases
def flipper_version = "0.147.0"
debugImplementation "com.facebook.flipper:flipper:$flipper_version"
debugImplementation "com.facebook.flipper:flipper-leakcanary2-plugin:$flipper_version"
debugImplementation "com.facebook.flipper:flipper-network-plugin:$flipper_version"
// https://github.com/facebook/SoLoader/releases
debugImplementation "com.facebook.soloader:soloader:0.10.3"
debugImplementation "com.facebook.soloader:soloader:$soloader_version"
// https://github.com/square/leakcanary/releases
debugImplementation "com.squareup.leakcanary:leakcanary-android:2.9.1"
debugImplementation "com.squareup.leakcanary:leakcanary-android:$leakcanary_version"
// https://github.com/ChuckerTeam/chucker/releases
debugImplementation "com.github.chuckerteam.chucker:library:3.5.2"
debugImplementation "com.github.chuckerteam.chucker:library:$chucker_version"
}
protobuf {