refactor dependencies

This commit is contained in:
Owen LeJeune
2022-03-18 13:07:53 -04:00
parent 8708ffcd80
commit a0f4a2f24e
5 changed files with 76 additions and 95 deletions

View File

@@ -1,20 +1,20 @@
import com.owenlejeune.tvtime.buildsrc.*
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'kotlin-android'
}
def composeVersion = "1.1.0-rc03"
android {
compileSdkVersion(Config.compileSdk)
compileSdkVersion 32
defaultConfig {
applicationId "com.owenlejeune.tvtime"
minSdkVersion(Config.minSdk)
targetSdkVersion(Config.targetSdk)
versionCode = Config.versionCode
versionName = Config.versionName
minSdkVersion 23
targetSdkVersion 32
versionCode = 1
versionName = "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
vectorDrawables {
@@ -43,7 +43,7 @@ android {
compose true
}
composeOptions {
kotlinCompilerExtensionVersion Versions.compose
kotlinCompilerExtensionVersion composeVersion
}
packagingOptions {
resources {
@@ -53,52 +53,78 @@ android {
}
dependencies {
// ktx
def ktx_core = "1.7.0"
def ktx_paging = "3.1.1"
implementation "androidx.core:core-ktx:$ktx_core"
implementation "androidx.paging:paging-common-ktx:$ktx_paging"
implementation "androidx.core:core-ktx:${Versions.core_ktx}"
implementation "androidx.paging:paging-common-ktx:${Versions.paging}"
// compose
def compose = composeVersion
def compose_material3 = "1.0.0-alpha07"
def compose_accompanist = "0.22.1-rc"
def compose_navigation = "2.4.1"
def compose_paging = "1.0.0-alpha14"
def compose_constraint_layout = "1.0.0"
def compose_activity = "1.4.0"
implementation "androidx.compose.ui:ui:$compose"
implementation "androidx.compose.material3:material3:$compose_material3"
implementation "androidx.compose.material:material:$compose"
implementation "androidx.compose.material:material-icons-extended:$compose"
implementation "androidx.compose.ui:ui-tooling-preview:$compose"
implementation "androidx.activity:activity-compose:$compose_activity"
implementation "com.google.accompanist:accompanist-systemuicontroller:$compose_accompanist"
implementation "com.google.accompanist:accompanist-pager:$compose_accompanist"
implementation "com.google.accompanist:accompanist-pager-indicators:$compose_accompanist"
implementation "com.google.accompanist:accompanist-flowlayout:$compose_accompanist"
// implementation "com.google.accompanist:accompanist-insets:$compose_accompanist"
implementation "androidx.navigation:navigation-compose:$compose_navigation"
implementation "androidx.paging:paging-compose:$compose_paging"
implementation "androidx.constraintlayout:constraintlayout-compose:$compose_constraint_layout"
implementation "androidx.compose.ui:ui:${Versions.compose}"
implementation "androidx.compose.material3:material3:${Versions.compose_material3}"
implementation "androidx.compose.material:material:${Versions.compose}"
implementation "androidx.compose.material:material-icons-extended:${Versions.compose}"
implementation "androidx.compose.ui:ui-tooling-preview:${Versions.compose}"
implementation "androidx.activity:activity-compose:${Versions.activity_compose}"
implementation "com.google.accompanist:accompanist-systemuicontroller:${Versions.compose_accompanist}"
implementation "com.google.accompanist:accompanist-pager:${Versions.compose_accompanist}"
implementation "com.google.accompanist:accompanist-pager-indicators:${Versions.compose_accompanist}"
implementation "com.google.accompanist:accompanist-flowlayout:${Versions.compose_accompanist}"
// implementation "com.google.accompanist:accompanist-insets:${Versions.compose_accompanist}"
implementation "androidx.navigation:navigation-compose:${Versions.compose_navigation}"
implementation "androidx.paging:paging-compose:${Versions.compose_paging}"
implementation "androidx.constraintlayout:constraintlayout-compose:${Versions.compose_constraint_layout}"
// lifecycle
def lifecycle_runtime = "2.4.1"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_runtime"
implementation "androidx.lifecycle:lifecycle-runtime-ktx:${Versions.lifecycle_runtime}"
// retrofit
def retrofit = "2.9.0"
def stetho = "1.6.0"
def gson = "2.8.7"
implementation "com.squareup.retrofit2:retrofit:$retrofit"
implementation "com.squareup.retrofit2:converter-gson:$retrofit"
implementation "com.google.code.gson:gson:$gson"
implementation "com.facebook.stetho:stetho:$stetho"
implementation "com.facebook.stetho:stetho-okhttp3:$stetho"
implementation "com.squareup.retrofit2:retrofit:${Versions.retrofit}"
implementation "com.squareup.retrofit2:converter-gson:${Versions.retrofit}"
implementation "com.google.code.gson:gson:${Versions.gson}"
implementation "com.facebook.stetho:stetho:${Versions.stetho}"
implementation "com.facebook.stetho:stetho-okhttp3:${Versions.stetho}"
// koin
def koin = "3.1.4"
implementation "io.insert-koin:koin-android:$koin"
implementation "io.insert-koin:koin-android:${Versions.koin}"
implementation "io.coil-kt:coil-compose:${Versions.coil}"
// coil
def coil = "2.0.0-rc01"
implementation "io.coil-kt:coil-compose:$coil"
//Coroutines
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.0'
def coroutines = "1.6.0"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$coroutines"
implementation "me.onebone:toolbar-compose:2.3.1"
// youtube player
def player_core = "11.0.1"
def chromecast_sender = "0.26"
implementation "com.pierfrancescosoffritti.androidyoutubeplayer:core:$player_core"
implementation "com.pierfrancescosoffritti.androidyoutubeplayer:chromecast-sender:$chromecast_sender"
// implementation 'com.google.android.exoplayer:exoplayer:2.16.1'
// implementation 'com.github.HaarigerHarald:android-youtubeExtractor:v2.1.0'
implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:core:11.0.1'
implementation 'com.pierfrancescosoffritti.androidyoutubeplayer:chromecast-sender:0.26'
// markdown
def markdown = "0.2.1"
implementation "org.jetbrains:markdown:$markdown"
implementation "org.jetbrains:markdown:0.2.1"
testImplementation "junit:junit:${Versions.junit}"
androidTestImplementation "androidx.test.ext:junit:${Versions.androidx_junit}"
androidTestImplementation "androidx.test.espresso:espresso-core:${Versions.espresso_core}"
androidTestImplementation "androidx.compose.ui:ui-test-junit4:${Versions.compose}"
debugImplementation "androidx.compose.ui:ui-tooling:${Versions.compose}"
// testing
def junit = "4.13.2"
def androidx_junit = "1.1.3"
def espresso_core = "3.4.0"
testImplementation "junit:junit:$junit"
androidTestImplementation "androidx.test.ext:junit:$androidx_junit"
androidTestImplementation "androidx.test.espresso:espresso-core:$espresso_core"
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose"
debugImplementation "androidx.compose.ui:ui-tooling:$compose"
}