Skip to content

Commit 593e1b1

Browse files
Fixed build and run errors
Added gradle folder and wrapper from a different project, changed jdk from 17 to 22.
1 parent 4ebdd63 commit 593e1b1

File tree

2 files changed

+22
-26
lines changed

2 files changed

+22
-26
lines changed

app/build.gradle

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -54,53 +54,53 @@ android {
5454

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

5959
// Support libraries
60-
implementation "androidx.appcompat:appcompat:$version_appcompat"
61-
implementation "androidx.fragment:fragment:$version_fragment"
62-
implementation "androidx.constraintlayout:constraintlayout:$version_constraint_layout"
60+
implementation libs.androidx.appcompat
61+
implementation libs.androidx.fragment
62+
implementation libs.androidx.constraintlayout
6363

6464
// Android KTX
65-
implementation "androidx.core:core-ktx:$version_core"
65+
implementation libs.androidx.core.ktx
6666

6767
// Navigation
68-
implementation "androidx.navigation:navigation-fragment-ktx:$version_navigation"
69-
implementation "androidx.navigation:navigation-ui-ktx:$version_navigation"
68+
implementation libs.androidx.navigation.fragment.ktx
69+
implementation libs.androidx.navigation.ui.ktx.v277
7070

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

7575
// Retrofit for networking
76-
implementation "com.squareup.retrofit2:retrofit:$version_retrofit"
77-
implementation "com.squareup.retrofit2:converter-moshi:$version_retrofit"
78-
implementation "com.jakewharton.retrofit:retrofit2-kotlin-coroutines-adapter:$version_retrofit_coroutines_adapter"
76+
implementation libs.retrofit
77+
implementation libs.converter.moshi
78+
implementation libs.retrofit2.kotlin.coroutines.adapter
7979

8080
// Moshi for parsing the JSON format
81-
implementation "com.squareup.moshi:moshi:$version_moshi"
82-
implementation "com.squareup.moshi:moshi-kotlin:$version_moshi"
81+
implementation libs.moshi
82+
implementation libs.moshi.kotlin
8383

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

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

9191
// Logging
92-
implementation "com.jakewharton.timber:timber:$version_timber"
92+
implementation libs.timber
9393

9494
// Glide for images
95-
implementation "com.github.bumptech.glide:glide:$version_glide"
95+
implementation libs.glide
9696

9797
// Room database
98-
implementation "androidx.room:room-runtime:$version_room"
98+
implementation libs.androidx.room.runtime
9999
kapt "androidx.room:room-compiler:$version_room"
100100

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

104104
// WorkManager
105-
implementation "androidx.work:work-runtime-ktx:$version_work"
105+
implementation libs.androidx.work.runtime.ktx
106106
}

build.gradle

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ buildscript {
2424
version_retrofit_coroutines_adapter = "0.9.2"
2525
version_navigation = '2.7.7'
2626
version_constraint_layout = "2.1.4"
27-
version_gradle = '8.4.2'
27+
version_gradle = '8.6.0'
2828
version_kotlin = "1.9.24"
2929
version_lifecycle_extensions = "2.2.0"
3030
lifecycle_version = "2.8.2"
@@ -61,7 +61,3 @@ allprojects {
6161
mavenCentral()
6262
}
6363
}
64-
65-
task clean(type: Delete) {
66-
delete rootProject.buildDir
67-
}

0 commit comments

Comments
 (0)