Skip to content

Commit

Permalink
Added buildSrc directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mertoenjosh committed May 1, 2023
1 parent 9996662 commit d87415f
Show file tree
Hide file tree
Showing 114 changed files with 125 additions and 54 deletions.
94 changes: 41 additions & 53 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -55,60 +55,48 @@ android {
}

dependencies {
val nav_version = "2.5.3"
val compose_ui_version = "1.4.0"
val dagger_hilt = "2.45"
val room_version = "2.5.0"

implementation("androidx.core:core-ktx:1.10.0")
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.1")
implementation("androidx.activity:activity-compose:1.7.0")
implementation("androidx.compose.ui:ui:$compose_ui_version")
implementation("androidx.compose.ui:ui-tooling-preview:$compose_ui_version")
implementation("androidx.compose.material:material:$compose_ui_version")
// Kotlin coroutines
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4")
// Coil image loading
implementation("io.coil-kt:coil-compose:2.2.2")
// Compose lifecycle
implementation("androidx.lifecycle:lifecycle-runtime-compose:2.6.1")
implementation("androidx.compose.runtime:runtime-livedata:1.4.0")
// Compose navigation
implementation("androidx.navigation:navigation-compose:$nav_version")
// Compose icons extended
implementation("androidx.compose.material:material-icons-extended:1.4.0")
// Timber
implementation("com.jakewharton.timber:timber:5.0.1")
// Kotlin serialization
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.4.1")
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0")
// Retrofit & GSON
implementation ("com.squareup.retrofit2:retrofit:2.9.0") // retrofit
implementation("com.squareup.retrofit2:converter-gson:2.9.0") // retrofit->gson
implementation("com.squareup.okhttp3:logging-interceptor:4.10.0") // logging
// Paging
implementation("androidx.paging:paging-compose:1.0.0-alpha18")
// Room
implementation("androidx.room:room-runtime:$room_version")
kapt("androidx.room:room-compiler:$room_version")
implementation("androidx.room:room-ktx:$room_version")
implementation("androidx.room:room-paging:$room_version")
implementation(Dependencies.androidCore)
implementation(Dependencies.lifecycleRuntime)
implementation(Dependencies.timber)
// compose
implementation(Dependencies.composeUi)
implementation(Dependencies.composeActivity)
implementation(Dependencies.composeUiToolingPreview)
implementation(Dependencies.composeMaterial)
implementation(Dependencies.composeMaterialIcons)
implementation(Dependencies.composeRuntimeLivecycle)
implementation(Dependencies.composeRuntimeLivedata)
implementation(Dependencies.composePaging)
implementation(Dependencies.navigation)
// kotlin
implementation(Dependencies.kotlinCoroutines)
implementation(Dependencies.kotlinSerialization)
implementation(Dependencies.kotlinSerializationConverter)
implementation(Dependencies.coil)
// retrofit
implementation (Dependencies.retrofit) // retrofit
implementation(Dependencies.gsonConverter) // retrofit->gson
implementation(Dependencies.okHttp) // logging
// room
implementation(Dependencies.roomRuntime)
kapt(Dependencies.roomCompiler)
implementation(Dependencies.roomKtx)
implementation(Dependencies.roomPaging)
// Dagger - hilt
implementation("com.google.dagger:hilt-android:$dagger_hilt")
kapt("com.google.dagger:hilt-compiler:$dagger_hilt") // checkout this
kapt("androidx.hilt:hilt-compiler:1.0.0")
implementation("androidx.hilt:hilt-navigation-compose:1.1.0-alpha01")
implementation(Dependencies.daggerHilt)
kapt(Dependencies.daggerCompiler) // checkout this
kapt(Dependencies.hiltCompiler)
implementation(Dependencies.hiltNavigation)
// Firebase
implementation(platform("com.google.firebase:firebase-bom:31.2.2"))
implementation("com.google.firebase:firebase-crashlytics-ktx")
implementation("com.google.firebase:firebase-analytics-ktx")

implementation(platform(Dependencies.firebaseBOM))
implementation(Dependencies.crashlitics)
implementation(Dependencies.crashlitics)
// testing
testImplementation("junit:junit:4.13.2")
androidTestImplementation("androidx.test.ext:junit:1.1.5")
androidTestImplementation("androidx.test.espresso:espresso-core:3.5.1")
androidTestImplementation("androidx.compose.ui:ui-test-junit4:$compose_ui_version")
debugImplementation("androidx.compose.ui:ui-tooling:$compose_ui_version")
debugImplementation("androidx.compose.ui:ui-test-manifest:$compose_ui_version")
testImplementation("androidx.room:room-testing:$room_version")
testImplementation(Dependencies.jUnit)
androidTestImplementation(Dependencies.jUnitExt)
androidTestImplementation(Dependencies.espresso)
androidTestImplementation(Dependencies.composeUiTest)
debugImplementation(Dependencies.composeUiTestTooling)
debugImplementation(Dependencies.composeUiTestManifest)
testImplementation(Dependencies.roomTesting)
}
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ buildscript {

dependencies {
classpath("com.google.gms:google-services:4.3.15")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.4")
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.5")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version")
}
repositories {
Expand Down
8 changes: 8 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins {
`kotlin-dsl`
}

repositories {
mavenCentral()
google()
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added buildSrc/build/classes/kotlin/main/Versions.class
Binary file not shown.
1 change: 1 addition & 0 deletions buildSrc/build/kotlin/buildSrcjar-classes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$analytics$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$androidCore$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$coil$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$composeActivity$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$composeMaterial$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$composeMaterialIcons$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$composePaging$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$composeRuntimeLivecycle$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$composeRuntimeLivedata$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$composeUi$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$composeUiTest$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$composeUiTestManifest$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$composeUiTestTooling$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$composeUiToolingPreview$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$crashlitics$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$daggerCompiler$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$daggerHilt$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$espresso$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$firebaseBOM$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$gsonConverter$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$hiltCompiler$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$hiltNavigation$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$jUnit$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$jUnitExt$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$kotlinCoroutines$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$kotlinSerialization$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$kotlinSerializationConverter$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$lifecycleRuntime$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$navigation$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$okHttp$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$retrofit$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$roomCompiler$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$roomKtx$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$roomPaging$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$roomRuntime$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$roomTesting$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies$timber$2.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Dependencies.class:/home/sheriff/AndroidStudioProjects/PROJECTS/QuestProvider/buildSrc/build/classes/kotlin/main/Versions.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
6
0
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added buildSrc/build/libs/buildSrc.jar
Binary file not shown.
2 changes: 2 additions & 0 deletions buildSrc/build/tmp/jar/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

47 changes: 47 additions & 0 deletions buildSrc/src/main/java/Dependencies.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@

object Dependencies {
val androidCore by lazy {"androidx.core:core-ktx:${Versions.kotlin}"}
val lifecycleRuntime by lazy {"androidx.lifecycle:lifecycle-runtime-ktx:${Versions.lifecycle}"}
val coil by lazy { "io.coil-kt:coil-compose:${Versions.coil}" } // image loading
val timber by lazy { "com.jakewharton.timber:timber:${Versions.timber}" } // logging
val navigation by lazy { "androidx.navigation:navigation-compose:${Versions.navigation}" } // navigation
// Compose
val composeActivity by lazy {"androidx.activity:activity-compose:${Versions.composeActivity}"}
val composeUi by lazy { "androidx.compose.ui:ui:${Versions.compose}" }
val composeUiToolingPreview by lazy { "androidx.compose.ui:ui-tooling-preview:${Versions.compose}" }
val composeMaterial by lazy { "androidx.compose.material:material:${Versions.compose}" }
val composeRuntimeLivedata by lazy { "androidx.compose.runtime:runtime-livedata:${Versions.compose}" }
val composeRuntimeLivecycle by lazy { "androidx.lifecycle:lifecycle-runtime-compose:${Versions.compose}" }
val composeMaterialIcons by lazy { "androidx.compose.material:material-icons-extended:${Versions.compose}" }
val composePaging by lazy { "androidx.paging:paging-compose:${Versions.composePaging}" }
// Kotlin
val kotlinCoroutines by lazy { "org.jetbrains.kotlinx:kotlinx-coroutines-android:${Versions.coroutines}" }
val kotlinSerialization by lazy { "org.jetbrains.kotlinx:kotlinx-serialization-json:${Versions.kotlinSerialization}" }
val kotlinSerializationConverter by lazy { "com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:${Versions.kotlinSerializationConverter}" }
// retrofit
val retrofit by lazy {"com.squareup.retrofit2:retrofit:${Versions.retrofit}"}
val gsonConverter by lazy { "com.squareup.retrofit2:converter-gson:${Versions.retrofit}" }
val okHttp by lazy{ "com.squareup.okhttp3:logging-interceptor:4.10.0" }
// room
val roomKtx by lazy { "androidx.room:room-ktx:${Versions.room}" }
val roomRuntime by lazy { "androidx.room:room-runtime:${Versions.room}" }
val roomPaging by lazy { "androidx.room:room-paging:${Versions.room}" }
val roomCompiler by lazy { "androidx.room:room-compiler:${Versions.room}" }
// Firebase
val firebaseBOM by lazy { "com.google.firebase:firebase-bom:${Versions.firebase}" }
val crashlitics by lazy { "com.google.firebase:firebase-crashlytics-ktx" }
val analytics by lazy { "com.google.firebase:firebase-analytics-ktx" }
// dagger-hilt
val daggerHilt by lazy {"com.google.dagger:hilt-android:${Versions.daggerHilt}"}
val daggerCompiler by lazy { "com.google.dagger:hilt-compiler:${Versions.daggerHilt}" }
val hiltCompiler by lazy { "androidx.hilt:hilt-compiler:${Versions.hiltCompiler}" }
val hiltNavigation by lazy { "androidx.hilt:hilt-navigation-compose:${Versions.hiltNavigation}" }
// testing
val jUnit by lazy { "junit:junit:${Versions.jUnit}" }
val jUnitExt by lazy { "androidx.test.ext:junit:${Versions.jUnitExt}" }
val espresso by lazy { "androidx.test.espresso:espresso-core:${Versions.espresso}" }
val composeUiTest by lazy { "androidx.compose.ui:ui-test-junit4:${Versions.compose}" }
val composeUiTestTooling by lazy { "androidx.compose.ui:ui-tooling:${Versions.compose}" }
val composeUiTestManifest by lazy { "androidx.compose.ui:ui-test-manifest:${Versions.compose}" }
val roomTesting by lazy { "androidx.room:room-testing:${Versions.room}" }
}
23 changes: 23 additions & 0 deletions buildSrc/src/main/java/Versions.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
object Versions {
val lifecycle = "2.6.1"
val navigation = "2.5.3"
val coil = "2.2.2"
val timber = "5.0.1"
val kotlin = "1.10.0"
val compose = "1.4.2"
val composeActivity = "1.7.1"
val composePaging = "1.0.0-alpha18"
val daggerHilt = "2.45"
val hiltCompiler = "1.0.0"
val hiltNavigation = "1.1.0-alpha01"
val room = "2.5.0"
val coroutines = "1.6.4"
val retrofit = "2.9.0"
val kotlinSerialization = "1.4.1"
val kotlinSerializationConverter = "0.8.0"
val firebase = "31.2.2"
// testing
val jUnit = "4.13.2"
val jUnitExt = "1.1.5"
val espresso = "3.5.1"
}

0 comments on commit d87415f

Please sign in to comment.