Use camelCase for Kotlin property names

This commit is contained in:
Kirill Kamakin
2022-07-29 22:16:37 +02:00
parent 64e089bf63
commit b82f75ab22
3 changed files with 106 additions and 106 deletions

View File

@@ -17,18 +17,18 @@ plugins {
id("org.jetbrains.kotlin.plugin.serialization")
id("com.google.gms.google-services")
id("com.google.firebase.crashlytics")
id("com.guardsquare.appsweep") version Dependencies.appsweep_version
id("com.google.protobuf") version Dependencies.protobuf_plugin_version
id("com.google.devtools.ksp") version Dependencies.ksp_plugin_version
id("com.guardsquare.appsweep") version Dependencies.appsweepVersion
id("com.google.protobuf") version Dependencies.protobufPluginVersion
id("com.google.devtools.ksp") version Dependencies.kspPluginVersion
}
android {
compileSdk = Dependencies.compile_sdk_version
compileSdk = Dependencies.compileSdkVersion
defaultConfig {
applicationId = "gq.kirmanak.mealient"
minSdk = Dependencies.min_sdk_version
targetSdk = Dependencies.target_sdk_version
minSdk = Dependencies.minSdkVersion
targetSdk = Dependencies.targetSdkVersion
versionCode = 13
versionName = "0.2.4"
@@ -130,96 +130,96 @@ tasks.withType<KotlinCompile> {
}
dependencies {
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:${Dependencies.desugar_version}")
coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:${Dependencies.desugarVersion}")
implementation("com.google.android.material:material:${Dependencies.material_version}")
implementation("com.google.android.material:material:${Dependencies.materialVersion}")
implementation("androidx.navigation:navigation-fragment-ktx:${Dependencies.nav_version}")
implementation("androidx.navigation:navigation-runtime-ktx:${Dependencies.nav_version}")
implementation("androidx.navigation:navigation-ui-ktx:${Dependencies.nav_version}")
implementation("androidx.navigation:navigation-fragment-ktx:${Dependencies.navVersion}")
implementation("androidx.navigation:navigation-runtime-ktx:${Dependencies.navVersion}")
implementation("androidx.navigation:navigation-ui-ktx:${Dependencies.navVersion}")
implementation("androidx.core:core-ktx:${Dependencies.core_ktx_version}")
implementation("androidx.core:core-ktx:${Dependencies.coreKtxVersion}")
implementation("androidx.appcompat:appcompat:${Dependencies.appcompat_version}")
implementation("androidx.appcompat:appcompat:${Dependencies.appcompatVersion}")
implementation("androidx.constraintlayout:constraintlayout:${Dependencies.contraint_layout_version}")
implementation("androidx.constraintlayout:constraintlayout:${Dependencies.contraintLayoutVersion}")
implementation("androidx.swiperefreshlayout:swiperefreshlayout:${Dependencies.swipe_refresh_layout_version}")
implementation("androidx.swiperefreshlayout:swiperefreshlayout:${Dependencies.swipeRefreshLayoutVersion}")
implementation("androidx.lifecycle:lifecycle-livedata-ktx:${Dependencies.lifecycle_version}")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:${Dependencies.lifecycle_version}")
implementation("androidx.lifecycle:lifecycle-livedata-ktx:${Dependencies.lifecycleVersion}")
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:${Dependencies.lifecycleVersion}")
implementation("com.google.dagger:hilt-android:${Dependencies.hilt_version}")
kapt("com.google.dagger:hilt-compiler:${Dependencies.hilt_version}")
kaptTest("com.google.dagger:hilt-android-compiler:${Dependencies.hilt_version}")
testImplementation("com.google.dagger:hilt-android-testing:${Dependencies.hilt_version}")
implementation("com.google.dagger:hilt-android:${Dependencies.hiltVersion}")
kapt("com.google.dagger:hilt-compiler:${Dependencies.hiltVersion}")
kaptTest("com.google.dagger:hilt-android-compiler:${Dependencies.hiltVersion}")
testImplementation("com.google.dagger:hilt-android-testing:${Dependencies.hiltVersion}")
implementation("com.squareup.retrofit2:retrofit:${Dependencies.retrofit_version}")
implementation("com.squareup.retrofit2:retrofit:${Dependencies.retrofitVersion}")
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:${Dependencies.retrofit_kotlinx_serialization_version}")
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:${Dependencies.retrofitKotlinxSerializationVersion}")
implementation(platform("com.squareup.okhttp3:okhttp-bom:${Dependencies.okhttp_version}"))
implementation(platform("com.squareup.okhttp3:okhttp-bom:${Dependencies.okhttpVersion}"))
implementation("com.squareup.okhttp3:okhttp")
debugImplementation("com.squareup.okhttp3:logging-interceptor")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:${Dependencies.kotlinx_serialization_version}")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:${Dependencies.kotlinxSerializationVersion}")
implementation("com.jakewharton.timber:timber:${Dependencies.timber_version}")
implementation("com.jakewharton.timber:timber:${Dependencies.timberVersion}")
implementation("androidx.paging:paging-runtime-ktx:${Dependencies.paging_version}")
testImplementation("androidx.paging:paging-common-ktx:${Dependencies.paging_version}")
implementation("androidx.paging:paging-runtime-ktx:${Dependencies.pagingVersion}")
testImplementation("androidx.paging:paging-common-ktx:${Dependencies.pagingVersion}")
implementation("androidx.room:room-runtime:${Dependencies.room_version}")
implementation("androidx.room:room-ktx:${Dependencies.room_version}")
implementation("androidx.room:room-paging:${Dependencies.room_version}")
ksp("androidx.room:room-compiler:${Dependencies.room_version}")
testImplementation("androidx.room:room-testing:${Dependencies.room_version}")
implementation("androidx.room:room-runtime:${Dependencies.roomVersion}")
implementation("androidx.room:room-ktx:${Dependencies.roomVersion}")
implementation("androidx.room:room-paging:${Dependencies.roomVersion}")
ksp("androidx.room:room-compiler:${Dependencies.roomVersion}")
testImplementation("androidx.room:room-testing:${Dependencies.roomVersion}")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:${Dependencies.kotlinx_datetime_version}")
implementation("org.jetbrains.kotlinx:kotlinx-datetime:${Dependencies.kotlinxDatetimeVersion}")
implementation("com.github.bumptech.glide:glide:${Dependencies.glide_version}")
implementation("com.github.bumptech.glide:okhttp3-integration:${Dependencies.glide_version}")
implementation("com.github.bumptech.glide:recyclerview-integration:${Dependencies.glide_version}") {
implementation("com.github.bumptech.glide:glide:${Dependencies.glideVersion}")
implementation("com.github.bumptech.glide:okhttp3-integration:${Dependencies.glideVersion}")
implementation("com.github.bumptech.glide:recyclerview-integration:${Dependencies.glideVersion}") {
// Excludes the support library because it's already included by Glide.
isTransitive = false
}
kapt("com.github.bumptech.glide:compiler:${Dependencies.glide_version}")
kapt("com.github.bumptech.glide:compiler:${Dependencies.glideVersion}")
implementation("com.github.kirich1409:viewbindingpropertydelegate-noreflection:${Dependencies.view_binding_delegate_version}")
implementation("com.github.kirich1409:viewbindingpropertydelegate-noreflection:${Dependencies.viewBindingDelegateVersion}")
implementation("androidx.datastore:datastore-preferences:${Dependencies.datastore_version}")
implementation("androidx.datastore:datastore:${Dependencies.datastore_version}")
implementation("androidx.datastore:datastore-preferences:${Dependencies.datastoreVersion}")
implementation("androidx.datastore:datastore:${Dependencies.datastoreVersion}")
implementation("com.google.protobuf:protobuf-javalite:${Dependencies.protobuf_version}")
implementation("com.google.protobuf:protobuf-javalite:${Dependencies.protobufVersion}")
implementation("androidx.security:security-crypto:${Dependencies.security_version}")
implementation("androidx.security:security-crypto:${Dependencies.securityVersion}")
implementation(platform("com.google.firebase:firebase-bom:${Dependencies.firebase_version}"))
implementation(platform("com.google.firebase:firebase-bom:${Dependencies.firebaseVersion}"))
implementation("com.google.firebase:firebase-analytics-ktx")
implementation("com.google.firebase:firebase-crashlytics-ktx")
testImplementation("junit:junit:${Dependencies.junit_version}")
testImplementation("junit:junit:${Dependencies.junitVersion}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:${Dependencies.coroutines_version}")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:${Dependencies.coroutines_version}")
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:${Dependencies.coroutinesVersion}")
testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:${Dependencies.coroutinesVersion}")
testImplementation("org.robolectric:robolectric:${Dependencies.robolectric_version}")
testImplementation("org.robolectric:robolectric:${Dependencies.robolectricVersion}")
testImplementation("androidx.test.ext:junit-ktx:${Dependencies.junit_ktx_version}")
testImplementation("androidx.test.ext:junit-ktx:${Dependencies.junitKtxVersion}")
testImplementation("com.google.truth:truth:${Dependencies.truth_version}")
testImplementation("com.google.truth:truth:${Dependencies.truthVersion}")
testImplementation("io.mockk:mockk:${Dependencies.mockk_version}")
testImplementation("io.mockk:mockk:${Dependencies.mockkVersion}")
debugImplementation("com.squareup.leakcanary:leakcanary-android:${Dependencies.leakcanary_version}")
debugImplementation("com.squareup.leakcanary:leakcanary-android:${Dependencies.leakcanaryVersion}")
// https://github.com/ChuckerTeam/chucker/releases
debugImplementation("com.github.chuckerteam.chucker:library:${Dependencies.chucker_version}")
debugImplementation("com.github.chuckerteam.chucker:library:${Dependencies.chuckerVersion}")
}
protobuf {
protoc {
artifact = "com.google.protobuf:protoc:${Dependencies.protobuf_version}"
artifact = "com.google.protobuf:protoc:${Dependencies.protobufVersion}"
}
generateProtoTasks {

View File

@@ -6,19 +6,19 @@ buildscript {
}
dependencies {
classpath("com.android.tools.build:gradle:${Dependencies.android_plugin_version}")
classpath("com.google.gms:google-services:${Dependencies.google_services_version}")
classpath("com.google.firebase:firebase-crashlytics-gradle:${Dependencies.crashlytics_version}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Dependencies.kotlin_version}")
classpath("org.jetbrains.kotlin:kotlin-serialization:${Dependencies.kotlin_version}")
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:${Dependencies.nav_version}")
classpath("com.google.dagger:hilt-android-gradle-plugin:${Dependencies.hilt_version}")
classpath("com.android.tools.build:gradle:${Dependencies.androidPluginVersion}")
classpath("com.google.gms:google-services:${Dependencies.googleServicesVersion}")
classpath("com.google.firebase:firebase-crashlytics-gradle:${Dependencies.crashlyticsVersion}")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Dependencies.kotlinVersion}")
classpath("org.jetbrains.kotlin:kotlin-serialization:${Dependencies.kotlinVersion}")
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:${Dependencies.navVersion}")
classpath("com.google.dagger:hilt-android-gradle-plugin:${Dependencies.hiltVersion}")
}
}
plugins {
id("org.sonarqube") version Dependencies.sonarqube_version
id("nl.neotech.plugin.rootcoverage") version Dependencies.root_coverage_version
id("org.sonarqube") version Dependencies.sonarqubeVersion
id("nl.neotech.plugin.rootcoverage") version Dependencies.rootCoverageVersion
}
sonarqube {

View File

@@ -1,125 +1,125 @@
object Dependencies {
const val compile_sdk_version = 32
const val min_sdk_version = 23
const val target_sdk_version = 32
const val compileSdkVersion = 32
const val minSdkVersion = 23
const val targetSdkVersion = 32
// https://github.com/protocolbuffers/protobuf/releases
const val protobuf_version = "3.21.4"
const val protobufVersion = "3.21.4"
// https://github.com/google/protobuf-gradle-plugin/releases
const val protobuf_plugin_version = "0.8.19"
const val protobufPluginVersion = "0.8.19"
// https://developer.android.com/jetpack/androidx/releases/navigation
const val nav_version = "2.5.1"
const val navVersion = "2.5.1"
// https://dagger.dev/hilt/gradle-setup
const val hilt_version = "2.43.1"
const val hiltVersion = "2.43.1"
// https://kotlinlang.org/docs/gradle.html
const val kotlin_version = "1.7.10"
const val kotlinVersion = "1.7.10"
// https://maven.google.com/web/index.html?q=com.android.tools.build#com.android.tools.build:gradle
const val android_plugin_version = "7.2.1"
const val androidPluginVersion = "7.2.1"
// https://developers.google.com/android/guides/google-services-plugin
const val google_services_version = "4.3.13"
const val googleServicesVersion = "4.3.13"
// https://mvnrepository.com/artifact/com.google.firebase/firebase-crashlytics-gradle
const val crashlytics_version = "2.9.1"
const val crashlyticsVersion = "2.9.1"
// https://plugins.gradle.org/plugin/org.sonarqube
const val sonarqube_version = "3.4.0.2513"
const val sonarqubeVersion = "3.4.0.2513"
// https://plugins.gradle.org/plugin/nl.neotech.plugin.rootcoverage
const val root_coverage_version = "1.5.3"
const val rootCoverageVersion = "1.5.3"
// https://plugins.gradle.org/plugin/com.guardsquare.appsweep
const val appsweep_version = "1.1.0"
const val appsweepVersion = "1.1.0"
// https://github.com/material-components/material-components-android/releases
const val material_version = "1.6.1"
const val materialVersion = "1.6.1"
// https://developer.android.com/kotlin/ktx#core
const val core_ktx_version = "1.8.0"
const val coreKtxVersion = "1.8.0"
// https://developer.android.com/jetpack/androidx/releases/appcompat
const val appcompat_version = "1.4.2"
const val appcompatVersion = "1.4.2"
// https://developer.android.com/jetpack/androidx/releases/constraintlayout
const val contraint_layout_version = "2.1.4"
const val contraintLayoutVersion = "2.1.4"
// https://developer.android.com/jetpack/androidx/releases/swiperefreshlayout
const val swipe_refresh_layout_version = "1.1.0"
const val swipeRefreshLayoutVersion = "1.1.0"
// https://developer.android.com/jetpack/androidx/releases/lifecycle
const val lifecycle_version = "2.5.1"
const val lifecycleVersion = "2.5.1"
// https://github.com/square/retrofit/tags
const val retrofit_version = "2.9.0"
const val retrofitVersion = "2.9.0"
// https://github.com/JakeWharton/retrofit2-kotlinx-serialization-converter/tags
const val retrofit_kotlinx_serialization_version = "0.8.0"
const val retrofitKotlinxSerializationVersion = "0.8.0"
// https://github.com/Kotlin/kotlinx.serialization/releases
const val kotlinx_serialization_version = "1.3.3"
const val kotlinxSerializationVersion = "1.3.3"
// https://github.com/square/okhttp/tags
const val okhttp_version = "4.10.0"
const val okhttpVersion = "4.10.0"
// https://github.com/JakeWharton/timber/releases
const val timber_version = "5.0.1"
const val timberVersion = "5.0.1"
// https://developer.android.com/jetpack/androidx/releases/paging
const val paging_version = "3.1.1"
const val pagingVersion = "3.1.1"
// https://developer.android.com/jetpack/androidx/releases/room
const val room_version = "2.4.3"
const val roomVersion = "2.4.3"
// https://github.com/Kotlin/kotlinx-datetime/releases
const val kotlinx_datetime_version = "0.4.0"
const val kotlinxDatetimeVersion = "0.4.0"
// https://github.com/bumptech/glide/releases
const val glide_version = "4.13.2"
const val glideVersion = "4.13.2"
// https://github.com/androidbroadcast/ViewBindingPropertyDelegate/releases
const val view_binding_delegate_version = "1.5.6"
const val viewBindingDelegateVersion = "1.5.6"
// https://developer.android.com/jetpack/androidx/releases/datastore
const val datastore_version = "1.0.0"
const val datastoreVersion = "1.0.0"
// https://developer.android.com/jetpack/androidx/releases/security
const val security_version = "1.0.0"
const val securityVersion = "1.0.0"
// https://mvnrepository.com/artifact/com.google.firebase/firebase-bom?repo=google
const val firebase_version = "30.3.1"
const val firebaseVersion = "30.3.1"
// https://github.com/junit-team/junit4/releases
const val junit_version = "4.13.2"
const val junitVersion = "4.13.2"
// https://developer.android.com/jetpack/androidx/releases/test
const val junit_ktx_version = "1.1.3"
const val junitKtxVersion = "1.1.3"
// https://github.com/Kotlin/kotlinx.coroutines/releases
const val coroutines_version = "1.6.4"
const val coroutinesVersion = "1.6.4"
// https://github.com/robolectric/robolectric/releases
const val robolectric_version = "4.8.1"
const val robolectricVersion = "4.8.1"
// https://mvnrepository.com/artifact/com.google.truth/truth
const val truth_version = "1.1.3"
const val truthVersion = "1.1.3"
// https://mockk.io/
const val mockk_version = "1.12.5"
const val mockkVersion = "1.12.5"
// https://github.com/square/leakcanary/releases
const val leakcanary_version = "2.9.1"
const val leakcanaryVersion = "2.9.1"
// https://github.com/ChuckerTeam/chucker/releases
const val chucker_version = "3.5.2"
const val chuckerVersion = "3.5.2"
// https://developer.android.com/studio/write/java8-support#library-desugaring
const val desugar_version = "1.1.5"
const val desugarVersion = "1.1.5"
// https://github.com/google/ksp/releases
const val ksp_plugin_version = "1.7.10-1.0.6"
const val kspPluginVersion = "1.7.10-1.0.6"
}