Skip to content

Fixed build and run errors #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
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
42 changes: 21 additions & 21 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -54,53 +54,53 @@ android {

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$version_kotlin"
implementation libs.kotlin.stdlib.jdk8

// Support libraries
implementation "androidx.appcompat:appcompat:$version_appcompat"
implementation "androidx.fragment:fragment:$version_fragment"
implementation "androidx.constraintlayout:constraintlayout:$version_constraint_layout"
implementation libs.androidx.appcompat
implementation libs.androidx.fragment
implementation libs.androidx.constraintlayout

// Android KTX
implementation "androidx.core:core-ktx:$version_core"
implementation libs.androidx.core.ktx

// Navigation
implementation "androidx.navigation:navigation-fragment-ktx:$version_navigation"
implementation "androidx.navigation:navigation-ui-ktx:$version_navigation"
implementation libs.androidx.navigation.fragment.ktx
implementation libs.androidx.navigation.ui.ktx.v277

// Coroutines for getting off the UI thread
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$version_kotlin_coroutines"
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-android:$version_kotlin_coroutines"
implementation libs.kotlinx.coroutines.android

// Retrofit for networking
implementation "com.squareup.retrofit2:retrofit:$version_retrofit"
implementation "com.squareup.retrofit2:converter-moshi:$version_retrofit"
implementation "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:$version_retrofit_coroutines_adapter"
implementation libs.retrofit
implementation libs.converter.moshi
implementation libs.retrofit2.kotlin.coroutines.adapter

// Moshi for parsing the JSON format
implementation "com.squareup.moshi:moshi:$version_moshi"
implementation "com.squareup.moshi:moshi-kotlin:$version_moshi"
implementation libs.moshi
implementation libs.moshi.kotlin

// Joda time library for dealing with time
implementation "joda-time:joda-time:$version_joda"
implementation libs.joda.time

// ViewModel and LiveData (arch components)
implementation "androidx.lifecycle:lifecycle-extensions:$version_lifecycle_extensions"
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
implementation libs.androidx.lifecycle.extensions
implementation libs.androidx.lifecycle.viewmodel.ktx

// Logging
implementation "com.jakewharton.timber:timber:$version_timber"
implementation libs.timber

// Glide for images
implementation "com.github.bumptech.glide:glide:$version_glide"
implementation libs.glide

// Room database
implementation "androidx.room:room-runtime:$version_room"
implementation libs.androidx.room.runtime
kapt "androidx.room:room-compiler:$version_room"

// Kotlin Extensions and Coroutines support for Room
implementation "androidx.room:room-ktx:$version_room"
implementation libs.androidx.room.ktx

// WorkManager
implementation "androidx.work:work-runtime-ktx:$version_work"
implementation libs.androidx.work.runtime.ktx
}
6 changes: 1 addition & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ buildscript {
version_retrofit_coroutines_adapter = "0.9.2"
version_navigation = '2.7.7'
version_constraint_layout = "2.1.4"
version_gradle = '8.4.2'
version_gradle = '8.6.0'
version_kotlin = "1.9.24"
version_lifecycle_extensions = "2.2.0"
lifecycle_version = "2.8.2"
Expand Down Expand Up @@ -61,7 +61,3 @@ allprojects {
mavenCentral()
}
}

task clean(type: Delete) {
delete rootProject.buildDir
}
Loading