Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
classpath(Dependencies.Classpath.googleFirebaseCrashClasspath)
classpath(Dependencies.Classpath.kotlinSerializationClasspath)
}
val compose_version by extra("1.4.3")
val compose_version by extra("1.5.0")
}

plugins {
Expand All @@ -16,6 +16,6 @@ plugins {
kotlin(Plugins.KOTLIN_ANDROID) version PluginsVersions.KOTLIN_ANDROID apply false
id(Plugins.KOTLIN_JVM) version PluginsVersions.KOTLIN_JVM apply false
kotlin(Plugins.PLUGIN_SERIALIZATION) version PluginsVersions.PLUGIN_SERIALIZATION

id(Plugins.HILT_LIBRARY) version PluginsVersions.HILT_LIBRARY apply false
id(Plugins.KSP) version PluginsVersions.KSP apply false
}
4 changes: 2 additions & 2 deletions buildSrc/src/main/java/ConfigData.kt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import org.gradle.api.JavaVersion

object ConfigData{
const val COMPILE_SDK_VERSION = 33
const val COMPILE_SDK_VERSION = 34
const val MIN_SDK_VERSION = 26
const val TARGET_SDK_VERSION = 33
const val TARGET_SDK_VERSION = 34
const val VERSION_CODE = 1
const val VERSION_NAME = "1.0"
val JAVA_VERSIONS_CODE = JavaVersion.VERSION_17
Expand Down
14 changes: 14 additions & 0 deletions buildSrc/src/main/java/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,20 @@ object Dependencies {
"androidx.paging:paging-common:${DependencyVersions.PagingRuntimeVersion}"
}

//Arrow
val arrowCore by lazy {
"io.arrow-kt:arrow-core:${DependencyVersions.ARROW}"
}
val arrowFxCoroutines by lazy {
"io.arrow-kt:arrow-fx-coroutines:${DependencyVersions.ARROW}"
}
val arrowOptics by lazy {
"io.arrow-kt:arrow-optics:${DependencyVersions.ARROW}"
}
val arrowOpticsKSP by lazy {
"io.arrow-kt:arrow-optics-ksp-plugin:${DependencyVersions.ARROW}"
}

//Rating bar
val ratingBar by lazy {
"com.github.a914-gowtham:compose-ratingbar:${DependencyVersions.RATING_BAR}"
Expand Down
6 changes: 4 additions & 2 deletions buildSrc/src/main/java/DependencyVersions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ object DependencyVersions {
const val LIVE_DATA_LIFE_CYCLE = "2.6.1"
const val LIVE_DATA_ACTIVITY = "1.3.1"
const val LIVE_DATA_FRAGMENT = "1.3.6"
const val HILT = "2.44"
const val HILT = "2.47"
const val DATA_BINDING = "7.1.0"
const val DAGGER_ANDROID = "2.35.1"
const val SWIPE = "1.4"
Expand Down Expand Up @@ -67,10 +67,12 @@ object DependencyVersions {
const val PagingRuntimeVersion = "3.1.1"
const val PagingComposeVersion = "3.2.0"

//Arrow
const val ARROW = "1.2.0"

//Rating bar
const val RATING_BAR = "1.3.4"


object ClasspathVersions{
const val NAVIGATION_CLASSPATH = "2.5.3"
const val TOOLS_BUILD_CLASSPATH = "4.3.15"
Expand Down
1 change: 1 addition & 0 deletions buildSrc/src/main/java/Plugins.kt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ object Plugins {
const val NAVIGATION_ARGS = "androidx.navigation.safeargs.kotlin"
const val SERIALIZATION = "org.jetbrains.kotlin.plugin.serialization"
const val PLUGIN_SERIALIZATION = "plugin.serialization"
const val KSP = "com.google.devtools.ksp"
}
5 changes: 3 additions & 2 deletions buildSrc/src/main/java/PluginsVersions.kt
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
object PluginsVersions {
const val ANDROID_APPLICATION = "7.4.2"
const val ANDROID_LIBRARY = "7.4.2"
const val HILT_LIBRARY = "2.44"
const val KOTLIN_ANDROID = "1.8.10"
const val HILT_LIBRARY = "2.47"
const val KOTLIN_ANDROID = "1.9.0"
const val KOTLIN_JVM = "1.8.0"
const val PLUGIN_SERIALIZATION = "1.8.0"
const val KSP = "1.9.0-1.0.11"
}
15 changes: 13 additions & 2 deletions owner/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import org.jetbrains.kotlin.kapt3.base.Kapt.kapt

plugins {
id(Plugins.ANDROID_APPLICATION)
kotlin(Plugins.KOTLIN_ANDROID)
kotlin(Plugins.KOTLIN_KAPT)
id(Plugins.HILT_LIBRARY)
id(Plugins.KSP)
id("com.google.gms.google-services")
id("com.google.firebase.crashlytics")
}
Expand All @@ -23,6 +22,13 @@ android {
testInstrumentationRunner = ConfigData.TEST_INSTRUMENTATION_RUNNER
}

androidComponents.onVariants { variant ->
val name = variant.name
sourceSets {
getByName(name).kotlin.srcDir("${buildDir.absolutePath}/generated/ksp/${name}/kotlin")
}
}

buildTypes {
getByName("release") {
signingConfig = signingConfigs.getByName("debug")
Expand Down Expand Up @@ -81,4 +87,9 @@ dependencies {
debugImplementation(Dependencies.composeUiDependency)
//Permission
implementation("com.google.accompanist:accompanist-permissions:0.28.0")
//Arrow
implementation(Dependencies.arrowCore)
implementation(Dependencies.arrowFxCoroutines)
implementation(Dependencies.arrowOptics)
ksp(Dependencies.arrowOpticsKSP)
}
Loading