Skip to content

Commit a1371ec

Browse files
committed
update build config
1 parent 2e3971c commit a1371ec

File tree

5 files changed

+37
-30
lines changed

5 files changed

+37
-30
lines changed

app/build.gradle.kts

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ android {
135135
compose = true
136136
}
137137
composeOptions {
138-
kotlinCompilerExtensionVersion = "1.3.2"
138+
kotlinCompilerExtensionVersion = "1.4.0"
139139
}
140140
lint {
141141
checkReleaseBuilds = false
@@ -145,13 +145,13 @@ android {
145145

146146
dependencies {
147147
// common
148-
implementation("androidx.appcompat:appcompat:1.6.0")
148+
implementation("androidx.appcompat:appcompat:1.6.1")
149149
implementation("androidx.legacy:legacy-support-v4:1.0.0")
150150
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
151-
implementation("androidx.recyclerview:recyclerview:1.2.1")
152-
implementation("com.google.android.material:material:1.7.0")
153-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.7.20")
154-
implementation("org.jetbrains.kotlin:kotlin-reflect:1.7.20")
151+
implementation("androidx.recyclerview:recyclerview:1.3.0")
152+
implementation("com.google.android.material:material:1.8.0")
153+
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.8.10")
154+
implementation("org.jetbrains.kotlin:kotlin-reflect:1.8.0")
155155
implementation("androidx.multidex:multidex:2.0.1")
156156

157157
// List of KTX extensions
@@ -162,10 +162,10 @@ dependencies {
162162

163163
// Lifecycle
164164
// https://developer.android.com/jetpack/androidx/releases/lifecycle
165-
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.5.1")
166-
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.5.1")
167-
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.5.1")
168-
implementation("androidx.lifecycle:lifecycle-common-java8:2.5.1")
165+
implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.6.0")
166+
implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.6.0")
167+
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.6.0")
168+
implementation("androidx.lifecycle:lifecycle-common-java8:2.6.0")
169169

170170
// Preferences DataStore
171171
// https://android-developers.googleblog.com/2020/09/prefer-storing-data-with-jetpack.html
@@ -214,12 +214,12 @@ dependencies {
214214

215215
// glide
216216
// https://github.com/bumptech/glide
217-
implementation("com.github.bumptech.glide:glide:4.14.2")
218-
kapt("com.github.bumptech.glide:compiler:4.14.2")
217+
implementation("com.github.bumptech.glide:glide:4.15.1")
218+
kapt("com.github.bumptech.glide:compiler:4.15.1")
219219

220220
// dagger hilt
221-
implementation("com.google.dagger:hilt-android:2.44.2")
222-
kapt("com.google.dagger:hilt-android-compiler:2.44.2")
221+
implementation("com.google.dagger:hilt-android:2.45")
222+
kapt("com.google.dagger:hilt-android-compiler:2.45")
223223
implementation("androidx.hilt:hilt-navigation-fragment:1.0.0")
224224
// implementation("androidx.hilt:hilt-lifecycle-viewmodel:1.0.0-alpha03")
225225
kapt("androidx.hilt:hilt-compiler:1.0.0")
@@ -230,7 +230,7 @@ dependencies {
230230

231231
// firebase
232232
// https://firebase.google.com/docs/android/setup
233-
implementation(platform("com.google.firebase:firebase-bom:31.1.1"))
233+
implementation(platform("com.google.firebase:firebase-bom:31.2.3"))
234234
implementation("com.google.firebase:firebase-analytics-ktx")
235235
implementation("com.google.firebase:firebase-crashlytics-ktx")
236236
implementation("com.google.firebase:firebase-messaging-ktx")
@@ -248,12 +248,12 @@ dependencies {
248248

249249
// unit test
250250
testImplementation("junit:junit:4.13.2")
251-
testImplementation("org.mockito:mockito-core:5.0.0")
251+
testImplementation("org.mockito:mockito-core:5.2.0")
252252
// testImplementation("org.mockito:mockito-inline:3.3.3")
253-
testImplementation("io.mockk:mockk:1.13.3")
254-
testImplementation("androidx.arch.core:core-testing:2.1.0")
253+
testImplementation("io.mockk:mockk:1.13.4")
254+
testImplementation("androidx.arch.core:core-testing:2.2.0")
255255
testImplementation("com.squareup.okhttp3:mockwebserver:5.0.0-alpha.2")
256-
testImplementation("org.jetbrains.kotlin:kotlin-stdlib:1.8.0")
256+
testImplementation("org.jetbrains.kotlin:kotlin-stdlib:1.8.10")
257257
// testImplementation("org.robolectric:robolectric:4.3")
258258

259259
/**
@@ -399,7 +399,7 @@ dependencies {
399399
// Optional - Integration with activities
400400
implementation("androidx.activity:activity-compose:1.6.1")
401401
// Optional - Integration with ViewModels
402-
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1")
402+
implementation("androidx.lifecycle:lifecycle-viewmodel-compose:2.6.0")
403403
// Optional - Integration with LiveData
404404
implementation("androidx.compose.runtime:runtime-livedata")
405405
// UI Tests
@@ -409,7 +409,7 @@ dependencies {
409409
implementation("androidx.navigation:navigation-compose:2.5.3")
410410
implementation("androidx.hilt:hilt-navigation-compose:1.0.0")
411411
// https://github.com/skydoves/landscapist
412-
implementation("com.github.skydoves:landscapist-bom:2.1.1")
412+
implementation("com.github.skydoves:landscapist-bom:2.1.7")
413413
implementation("com.github.skydoves:landscapist-glide")
414414
implementation("com.github.skydoves:landscapist-placeholder")
415415
// https://google.github.io/accompanist/

app/src/main/java/com/example/moviedb/ui/screen/permission/PermissionFragment.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ class PermissionFragment : BaseFragment<FragmentPermisisonBinding, BaseViewModel
113113
})
114114
}
115115

116+
@Deprecated("Deprecated in Java")
116117
override fun onRequestPermissionsResult(
117118
requestCode: Int, permissions: Array<out String>,
118119
grantResults: IntArray

build.gradle.kts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,26 @@ buildscript {
22
repositories {
33
google()
44
mavenCentral()
5+
maven("https://maven.google.com")
56
}
67
dependencies {
7-
classpath("com.android.tools.build:gradle:7.4.0")
8-
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.20")
8+
classpath("com.android.tools.build:gradle:7.4.2")
9+
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.8.0")
910
classpath("androidx.navigation:navigation-safe-args-gradle-plugin:2.5.3")
10-
classpath("com.google.dagger:hilt-android-gradle-plugin:2.44")
11+
classpath("com.google.dagger:hilt-android-gradle-plugin:2.44.2")
1112
// classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:${Libs.kotlinVersion}")
1213
// classpath("androidx.navigation:navigation-safe-args-gradle-plugin:${Libs.navigationVersion}")
1314
// classpath("com.google.dagger:hilt-android-gradle-plugin:${Libs.daggerHiltVersion}")
14-
classpath("com.google.gms:google-services:4.3.14")
15-
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.2")
15+
classpath("com.google.gms:google-services:4.3.15")
16+
classpath("com.google.firebase:firebase-crashlytics-gradle:2.9.4")
1617
}
1718
}
1819

1920
allprojects {
2021
repositories {
2122
google()
2223
mavenCentral()
24+
maven("https://maven.google.com")
2325
}
2426
}
2527

gradle.properties

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,21 @@
66
# http://www.gradle.org/docs/current/userguide/build_environment.html
77
# Specifies the JVM arguments used for the daemon process.
88
# The setting is particularly useful for tweaking memory settings.
9-
org.gradle.jvmargs=-Xmx2048m
9+
org.gradle.jvmargs=-Xmx2048m -XX:+UseParallelGC
1010
# When configured, Gradle will run in incubating parallel mode.
1111
# This option should only be used with decoupled projects. More details, visit
1212
# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
13-
# org.gradle.parallel=true
13+
org.gradle.parallel=true
14+
org.gradle.daemon=true
1415
# AndroidX package structure to make it clearer which packages are bundled with the
1516
# Android operating system, and which are packaged with your app"s APK
1617
# https://developer.android.com/topic/libraries/support-library/androidx-rn
1718
android.useAndroidX=true
1819
# Automatically convert third-party libraries to use AndroidX
19-
android.enableJetifier=true
20+
android.enableJetifier=false
21+
android.databinding.incremental=true
2022
# Kotlin code style for this project: "official" or "obsolete":
2123
kotlin.code.style=official
2224
kapt.incremental.apt=true
25+
#org.gradle.unsafe.configuration-cache=true
26+
#org.gradle.caching=true

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip

0 commit comments

Comments
 (0)