Skip to content

Commit

Permalink
feat: upgrade the compose version
Browse files Browse the repository at this point in the history
  • Loading branch information
huhx committed Jun 4, 2024
1 parent dd35aad commit f1d3eb8
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 9 deletions.
6 changes: 3 additions & 3 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ dependencies {
implementation(project(":compose_image_picker"))
// implementation "io.github.huhx:compose-image-picker:1.0.5"

implementation 'androidx.core:core-ktx:1.13.0'
implementation 'androidx.core:core-ktx:1.13.1'
implementation "androidx.compose.ui:ui"
implementation 'androidx.compose.material3:material3'
implementation "androidx.compose.ui:ui-tooling-preview"
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.7.0'
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.8.1'
implementation 'androidx.activity:activity-compose:1.9.0'

implementation 'androidx.navigation:navigation-compose:2.7.7'
Expand All @@ -62,5 +62,5 @@ dependencies {

androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
debugImplementation 'androidx.compose.ui:ui-tooling:1.6.6'
debugImplementation 'androidx.compose.ui:ui-tooling:1.6.7'
}
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ buildscript {
}
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
id 'com.android.application' version '8.4.0' apply false
id 'com.android.library' version '8.4.0' apply false
id 'com.android.application' version '8.4.1' apply false
id 'com.android.library' version '8.4.1' apply false
id 'org.jetbrains.kotlin.android' version "$kotlin_version" apply false
id "org.jlleitschuh.gradle.ktlint" version "11.6.0"
}
Expand Down
2 changes: 1 addition & 1 deletion compose_image_picker/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ signing {
dependencies {
implementation 'androidx.core:core-ktx:1.13.1'

implementation platform('dev.chrisbanes.compose:compose-bom:2024.05.00-alpha01')
implementation platform('dev.chrisbanes.compose:compose-bom:2024.05.00-alpha03')
implementation 'androidx.compose.material3:material3'
implementation "androidx.compose.ui:ui"

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.huhx.picker.data

import android.provider.MediaStore.Files.FileColumns
import com.huhx.picker.model.AssetInfo
import org.junit.Assert.assertEquals
import org.junit.Assert.assertNotEquals
Expand All @@ -22,16 +23,16 @@ class AssetInfoTest {

@Test
fun `should return true when call isVideo given media type 3`() {
val info = assetInfo.copy(mediaType = 3)
val info = assetInfo.copy(mediaType = FileColumns.MEDIA_TYPE_VIDEO)

val result = info.isVideo()

assertTrue(result)
}

@Test
fun `should return true when call isImage given media type 3`() {
val info = assetInfo.copy(mediaType = 1)
fun `should return true when call isImage given media type 1`() {
val info = assetInfo.copy(mediaType = FileColumns.MEDIA_TYPE_IMAGE)

val result = info.isImage()

Expand Down

0 comments on commit f1d3eb8

Please sign in to comment.