Skip to content

Commit 4128f4e

Browse files
committed
⬆️ bump deps
1 parent 047b701 commit 4128f4e

7 files changed

Lines changed: 45 additions & 27 deletions

File tree

.idea/deploymentTargetDropDown.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 0 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/build.gradle

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ plugins {
77
}
88

99
android {
10-
compileSdkVersion 30
10+
compileSdkVersion 33
1111

1212
defaultConfig {
1313
applicationId "com.theapache64.topcorn2"
1414
minSdkVersion 21
15-
targetSdkVersion 30
15+
targetSdkVersion 33
1616
versionCode 10003
17-
versionName "1.0.0-alpha03"
17+
versionName "1.0.0-alpha04"
1818

1919
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
2020
}
@@ -36,7 +36,6 @@ android {
3636
}
3737
kotlinOptions {
3838
jvmTarget = '1.8'
39-
useIR = true
4039
// Disabling coroutine's ExperimentalCoroutinesApi warning
4140
freeCompilerArgs += [
4241
"-Xuse-experimental=kotlinx.coroutines.ExperimentalCoroutinesApi",
@@ -46,16 +45,16 @@ android {
4645
}
4746

4847
composeOptions {
49-
kotlinCompilerExtensionVersion compose_version
48+
kotlinCompilerExtensionVersion compose_compiler_version
5049
}
5150
}
5251

5352
dependencies {
5453

55-
implementation 'androidx.core:core-ktx:1.6.0'
56-
implementation 'androidx.appcompat:appcompat:1.3.1'
57-
implementation 'com.google.android.material:material:1.4.0'
58-
implementation 'androidx.constraintlayout:constraintlayout:2.1.1'
54+
implementation 'androidx.core:core-ktx:1.9.0'
55+
implementation 'androidx.appcompat:appcompat:1.5.1'
56+
implementation 'com.google.android.material:material:1.7.0'
57+
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
5958

6059
// Navigation
6160
implementation "androidx.navigation:navigation-fragment-ktx:$nav_version"
@@ -74,20 +73,20 @@ dependencies {
7473
implementation "androidx.hilt:hilt-navigation-fragment:1.0.0"
7574

7675
// Room
77-
def room_version = "2.3.0"
76+
def room_version = "2.4.3"
7877
implementation "androidx.room:room-runtime:$room_version"
7978
implementation "androidx.room:room-ktx:$room_version"
8079
kapt "androidx.room:room-compiler:$room_version"
8180

8281
// Retrofit
8382
def retrofit_version = '2.9.0'
8483
implementation "com.squareup.retrofit2:retrofit:$retrofit_version"
85-
implementation 'com.squareup.okhttp3:logging-interceptor:4.9.0'
84+
implementation 'com.squareup.okhttp3:logging-interceptor:5.0.0-alpha.2'
8685
implementation "com.squareup.retrofit2:adapter-rxjava2:$retrofit_version"
8786

8887
// Moshi : Moshi
89-
implementation 'com.squareup.moshi:moshi:1.12.0'
90-
kapt 'com.squareup.moshi:moshi-kotlin-codegen:1.12.0'
88+
implementation 'com.squareup.moshi:moshi:1.13.0'
89+
kapt 'com.squareup.moshi:moshi-kotlin-codegen:1.13.0'
9190
implementation 'com.squareup.retrofit2:converter-moshi:2.9.0'
9291

9392
testImplementation 'junit:junit:4.13.2'
@@ -99,13 +98,13 @@ dependencies {
9998
implementation 'com.jakewharton.timber:timber:5.0.1'
10099

101100
// Kotlinx Coroutines Core : Coroutines support libraries for Kotlin
102-
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.5.2'
101+
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
103102

104103
// Coil - Image loading library
105-
implementation("io.coil-kt:coil-compose:1.3.2")
104+
implementation("io.coil-kt:coil-compose:2.1.0")
106105

107106
// Kotlin Lifecycle KTX
108-
def lifecycle_version = "2.3.1"
107+
def lifecycle_version = "2.5.1"
109108
implementation "androidx.lifecycle:lifecycle-livedata-ktx:$lifecycle_version"
110109
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
111110
implementation "androidx.lifecycle:lifecycle-common-java8:$lifecycle_version"

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
<activity
2121
android:name=".ui.main.MainActivity"
22+
android:exported="true"
2223
android:theme="@style/Theme.TopCorn2.NoActionBar">
2324
<intent-filter>
2425
<action android:name="android.intent.action.MAIN" />

app/src/main/java/com/theapache64/topcorn2/data/repo/MoviesRepo.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
@file:OptIn(ExperimentalTime::class)
2+
13
package com.theapache64.topcorn2.data.repo
24

35
import android.content.SharedPreferences
@@ -11,7 +13,7 @@ import kotlinx.coroutines.Dispatchers
1113
import kotlinx.coroutines.flow.Flow
1214
import kotlinx.coroutines.flow.flowOn
1315
import javax.inject.Inject
14-
import kotlin.time.Duration
16+
import kotlin.time.Duration.Companion.hours
1517
import kotlin.time.ExperimentalTime
1618

1719
class MoviesRepo @Inject constructor(
@@ -21,7 +23,7 @@ class MoviesRepo @Inject constructor(
2123
) {
2224

2325
companion object {
24-
private val MOVIE_EXPIRY_IN_MILLIS = Duration.hours(1).inWholeMilliseconds
26+
private val MOVIE_EXPIRY_IN_MILLIS = 1.hours.inWholeMilliseconds
2527
private const val KEY_LAST_SYNCED = "last_synced"
2628
}
2729

build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
// Top-level build file where you can add configuration options common to all sub-projects/modules.
22
buildscript {
33
ext {
4-
kotlin_version = '1.5.21'
5-
hilt_version = '2.38.1'
6-
nav_version = '2.3.5'
7-
compose_version = '1.0.2'
4+
kotlin_version = '1.7.20'
5+
hilt_version = '2.44'
6+
nav_version = '2.5.3'
7+
compose_version = '1.3.0'
8+
compose_compiler_version = '1.3.2'
89
}
910
repositories {
1011
google()
1112
mavenCentral()
1213
}
1314
dependencies {
14-
classpath 'com.android.tools.build:gradle:7.0.2'
15+
classpath 'com.android.tools.build:gradle:7.3.1'
1516
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1617
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
1718
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$nav_version"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Sun Jan 03 20:12:08 IST 2021
1+
#Tue Nov 08 08:58:53 IST 2022
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
44
distributionPath=wrapper/dists
55
zipStorePath=wrapper/dists
66
zipStoreBase=GRADLE_USER_HOME

0 commit comments

Comments
 (0)