Skip to content

Commit

Permalink
Adds more default dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Tweener committed Oct 26, 2023
1 parent 8c9ce99 commit 7657d68
Show file tree
Hide file tree
Showing 3 changed files with 51 additions and 7 deletions.
22 changes: 20 additions & 2 deletions androidApp/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
plugins {
id("com.android.application")
kotlin("android")
id("com.google.gms.google-services")
id("com.google.firebase.crashlytics")
id("com.google.firebase.firebase-perf")
}

android {
Expand Down Expand Up @@ -65,8 +68,17 @@ dependencies {
coreLibraryDesugaring(Dependencies.Libraries.Android.desugarJdkLibs)

// Android
implementation(Dependencies.Libraries.Android.tweenerCommon)
implementation(Dependencies.Libraries.Android.cezanne)
implementation(Dependencies.Libraries.Tweener.Android.common)
implementation(Dependencies.Libraries.Tweener.Android.cezanne)
implementation(Dependencies.Libraries.Tweener.Android.placeholder)

// Android
implementation(Dependencies.Libraries.Android.AndroidX.material3)
implementation(Dependencies.Libraries.Android.AndroidX.splashscreen)
implementation(Dependencies.Libraries.Android.AndroidX.activity)
implementation(Dependencies.Libraries.Android.Accompanist.systemUIController)
implementation(Dependencies.Libraries.Android.Accompanist.permissions)
implementation(Dependencies.Libraries.Android.adMob)

// Compose
implementation(Dependencies.Libraries.Android.AndroidX.Compose.ui)
Expand All @@ -80,6 +92,12 @@ dependencies {
implementation(Dependencies.Libraries.Android.AndroidX.Compose.navigation)
implementation(Dependencies.Libraries.Android.AndroidX.Compose.lifecycleRuntime)

// Firebase
implementation(platform(Dependencies.Libraries.Firebase.bom))
implementation(Dependencies.Libraries.Firebase.analytics)
implementation(Dependencies.Libraries.Firebase.crashlytics)
implementation(Dependencies.Libraries.Firebase.performance)

// Coroutines
implementation(Dependencies.Libraries.Coroutines.core)
implementation(Dependencies.Libraries.Coroutines.android)
Expand Down
3 changes: 3 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ plugins {
kotlin("android").version(Dependencies.Versions.kotlin).apply(false)
kotlin("multiplatform").version(Dependencies.Versions.kotlin).apply(false)
id("com.github.ben-manes.versions").version(Dependencies.Versions.gradleVersionsPlugin) // ./gradlew dependencyUpdates
id("com.google.gms.google-services").version(Dependencies.Versions.googleServicesPlugin).apply(false)
id("com.google.firebase.crashlytics").version(Dependencies.Versions.crashlyticsPlugin).apply(false)
id("com.google.firebase.firebase-perf").version(Dependencies.Versions.performancePlugin).apply(false)
}

tasks.register("clean", Delete::class) {
Expand Down
33 changes: 28 additions & 5 deletions buildSrc/src/main/kotlin/Dependencies.kt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ object Dependencies {
const val napier = "2.6.1"
const val kotlinxDatetime = "0.4.1"
const val gradleVersionsPlugin = "0.49.0"
const val googleServicesPlugin = "4.3.15"
const val crashlyticsPlugin = "2.9.9"
const val performancePlugin = "1.4.2"
const val firebase = "32.2.3"

object Tweener {
object Android {
Expand All @@ -52,16 +56,18 @@ object Dependencies {

object Android {
const val composeCompilerExtension = "1.5.3"
const val compose = "1.5.4"
const val compose = "1.6.0-alpha08"
const val activityCompose = "1.8.0"
const val navigationCompose = "2.7.4"
const val material3 = "1.1.1"
const val loggingInterceptor = "3.1.0"
const val glide = "2.2.8"
const val desugarJdkLibs = "2.0.3"
const val accompanist = "0.30.1"
const val accompanist = "0.32.0"
const val adMob = "22.4.0"

object AndroidX {
const val activity = "1.8.0-alpha07"
const val appcompat = "1.4.2"
const val constraintlayout = "2.1.4"
const val lifecycle = "2.6.2"
Expand All @@ -75,6 +81,14 @@ object Dependencies {
const val napier = "io.github.aakira:napier:${Versions.napier}"
const val kotlinXDatetime = "org.jetbrains.kotlinx:kotlinx-datetime:${Versions.kotlinxDatetime}"

object Tweener {
object Android {
const val common = "com.github.Tweener:common-android:${Versions.Tweener.Android.common}"
const val cezanne = "com.github.Tweener:cezanne-android:${Versions.Tweener.Android.cezanne}"
const val placeholder = "com.github.Tweener:placeholder-material3:${Versions.Tweener.Android.placeholder}"
}
}

object Kodein {
const val core = "org.kodein.di:kodein-di:${Versions.kodein}"
const val viewModel = "org.kodein.di:kodein-di-framework-android-x-viewmodel:${Versions.kodein}"
Expand Down Expand Up @@ -105,16 +119,24 @@ object Dependencies {
const val serializationJson = "io.ktor:ktor-serialization-kotlinx-json:${Versions.ktor}"
}

object Firebase {
const val bom = "com.google.firebase:firebase-bom:${Versions.firebase}"
const val analytics = "com.google.firebase:firebase-analytics-ktx"
const val crashlytics = "com.google.firebase:firebase-crashlytics-ktx"
const val performance = "com.google.firebase:firebase-perf-ktx"
}

object Android {
const val tweenerCommon = "com.github.Tweener:common-android:${Versions.Tweener.Android.common}"
const val cezanne = "com.github.Tweener:cezanne-android:${Versions.Tweener.Android.cezanne}"
const val material3 = "androidx.compose.material3:material3:${Versions.Android.material3}"
const val loggingInterceptor = "com.github.ihsanbal:LoggingInterceptor:${Versions.Android.loggingInterceptor}"
const val glide = "com.github.skydoves:landscapist-glide:${Versions.Android.glide}"
const val glidePlaceholder = "com.github.skydoves:landscapist-placeholder:${Versions.Android.glide}"
const val desugarJdkLibs = "com.android.tools:desugar_jdk_libs:${Versions.Android.desugarJdkLibs}"
const val adMob = "com.google.android.gms:play-services-ads:${Versions.Android.adMob}"

object AndroidX {
const val material3 = "androidx.compose.material3:material3:${Versions.Android.material3}"
const val activity = "androidx.activity:activity-ktx:${Versions.Android.AndroidX.activity}"
const val appcompat = "androidx.appcompat:appcompat:${Versions.Android.AndroidX.appcompat}"
const val constraintlayout = "androidx.constraintlayout:constraintlayout:${Versions.Android.AndroidX.constraintlayout}"
const val lifecycleViewModel = "androidx.lifecycle:lifecycle-viewmodel-ktx:${Versions.Android.AndroidX.lifecycle}"
Expand All @@ -137,8 +159,9 @@ object Dependencies {

object Accompanist {
const val systemUIController = "com.google.accompanist:accompanist-systemuicontroller:${Versions.Android.accompanist}"
const val placeholder = "com.google.accompanist:accompanist-placeholder:${Versions.Android.accompanist}"
const val placeholder = "com.google.accompanist:accompanist-placeholder-material3:${Versions.Android.accompanist}"
const val navigationAnimation = "com.google.accompanist:accompanist-navigation-animation:${Versions.Android.accompanist}"
const val permissions = "com.google.accompanist:accompanist-permissions:${Versions.Android.accompanist}"
}
}
}
Expand Down

0 comments on commit 7657d68

Please sign in to comment.