Skip to content

Commit a13aa40

Browse files
update dependencies
1 parent 4ef269a commit a13aa40

File tree

7 files changed

+29
-32
lines changed

7 files changed

+29
-32
lines changed

app/build.gradle

+12-11
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ android {
3737
compose true
3838
}
3939
composeOptions {
40-
kotlinCompilerExtensionVersion = "1.3.2"
40+
kotlinCompilerExtensionVersion = "1.4.7"
4141
}
4242
packagingOptions {
4343
resources {
@@ -50,15 +50,15 @@ dependencies {
5050

5151
implementation project(':cropper')
5252

53-
implementation 'androidx.core:core-ktx:1.9.0'
54-
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.1'
53+
implementation 'androidx.core:core-ktx:1.10.1'
54+
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.6.1'
5555

5656
// Colorful Customizable Sliders
57-
implementation 'com.github.SmartToolFactory:Compose-Colorful-Sliders:1.1.0'
57+
implementation 'com.github.SmartToolFactory:Compose-Colorful-Sliders:1.2.0'
5858
// Color picker
5959
implementation 'com.github.SmartToolFactory:Compose-Color-Picker-Bundle:1.0.1'
6060
// Gestures
61-
implementation 'com.github.SmartToolFactory:Compose-Extended-Gestures:2.1.0'
61+
implementation 'com.github.SmartToolFactory:Compose-Extended-Gestures:3.0.0'
6262
// Animated List
6363
implementation 'com.github.SmartToolFactory:Compose-AnimatedList:0.5.1'
6464

@@ -73,31 +73,32 @@ dependencies {
7373
implementation "androidx.compose.material:material-icons-core:$compose_version"
7474
implementation "androidx.compose.material:material-icons-extended:$compose_version"
7575
// Integration with activities
76-
implementation 'androidx.activity:activity-compose:1.6.1'
76+
implementation 'androidx.activity:activity-compose:1.7.1'
7777
// Integration with ViewModels
78-
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.5.1'
78+
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.6.1'
7979

8080
// Material Design 3 for Compose
81-
implementation "androidx.compose.material3:material3:1.0.0"
81+
implementation "androidx.compose.material3:material3:1.1.0"
8282

8383
def nav_compose_version = "2.5.3"
8484
implementation "androidx.navigation:navigation-compose:$nav_compose_version"
8585

8686
def accompanist_version = "0.25.0"
87+
8788
// Accompanist
8889
implementation "com.google.accompanist:accompanist-systemuicontroller:$accompanist_version"
8990
implementation "com.google.accompanist:accompanist-pager:$accompanist_version"
9091
implementation "com.google.accompanist:accompanist-drawablepainter:$accompanist_version"
9192

9293
// Coil
93-
implementation("io.coil-kt:coil-compose:2.1.0")
94+
implementation("io.coil-kt:coil-compose:2.2.2")
9495

9596
// Photo Picker
9697
implementation("com.google.modernstorage:modernstorage-photopicker:1.0.0-alpha06")
9798

9899
testImplementation 'junit:junit:4.13.2'
99-
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
100-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
100+
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
101+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
101102
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
102103
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
103104
debugImplementation "androidx.compose.ui:ui-test-manifest:$compose_version"

app/src/main/java/com/smarttoolfactory/composecropper/preferences/SelctionWidgets.kt

-1
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ internal fun ExposedSelectionMenu(
260260
fontSize = 14.sp
261261
),
262262
colors: TextFieldColors = ExposedDropdownMenuDefaults.textFieldColors(
263-
containerColor = Color.Transparent,
264263
focusedIndicatorColor = Color.Transparent,
265264
unfocusedIndicatorColor = Color.Transparent,
266265
disabledIndicatorColor = Color.Transparent

app/src/main/java/com/smarttoolfactory/composecropper/preferences/frames/list/CropFrameListDialog.kt

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import android.annotation.SuppressLint
22
import android.graphics.Bitmap
33
import android.graphics.ImageDecoder
4+
import android.net.Uri
45
import android.os.Build
56
import android.provider.MediaStore
67
import androidx.activity.compose.rememberLauncherForActivityResult
@@ -451,7 +452,7 @@ private fun PickImageMask(
451452
) {
452453
val context = LocalContext.current
453454

454-
val photoPicker = rememberLauncherForActivityResult(PhotoPicker()) { uris ->
455+
val photoPicker = rememberLauncherForActivityResult(PhotoPicker()) { uris: List<Uri> ->
455456
val uri = uris.firstOrNull() ?: return@rememberLauncherForActivityResult
456457

457458
val bitmap: Bitmap = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {

build.gradle

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
buildscript {
22
ext {
3-
compose_version = '1.3.0'
3+
compose_version = '1.4.3'
44
}
5-
}// Top-level build file where you can add configuration options common to all sub-projects/modules.
6-
plugins {
7-
id 'com.android.application' version '7.3.1' apply false
8-
id 'com.android.library' version '7.3.1' apply false
9-
id 'org.jetbrains.kotlin.android' version '1.7.20' apply false
105
}
11-
12-
task clean(type: Delete) {
13-
delete rootProject.buildDir
6+
plugins {
7+
id 'com.android.application' version '8.0.0' apply false
8+
id 'com.android.library' version '8.0.0' apply false
9+
id 'org.jetbrains.kotlin.android' version '1.8.21' apply false
1410
}

cropper/build.gradle

+6-6
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ android {
3232
compose true
3333
}
3434
composeOptions {
35-
kotlinCompilerExtensionVersion = "1.3.2"
35+
kotlinCompilerExtensionVersion = "1.4.7"
3636
}
3737

3838
packagingOptions {
@@ -44,22 +44,22 @@ android {
4444

4545
dependencies {
4646

47-
implementation 'androidx.core:core-ktx:1.9.0'
47+
implementation 'androidx.core:core-ktx:1.10.1'
4848

49-
implementation 'com.github.SmartToolFactory:Compose-Extended-Gestures:2.1.0'
49+
implementation 'com.github.SmartToolFactory:Compose-Extended-Gestures:3.0.0'
5050

5151
// Jetpack Compose
5252
implementation "androidx.compose.ui:ui:$compose_version"
5353
implementation "androidx.compose.runtime:runtime:$compose_version"
5454

5555
// Material Design 3 for Compose
56-
implementation "androidx.compose.material3:material3:1.0.0"
56+
implementation "androidx.compose.material3:material3:1.1.0"
5757
// Material design icons
5858
implementation "androidx.compose.material:material-icons-extended:$compose_version"
5959

6060
testImplementation 'junit:junit:4.13.2'
61-
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
62-
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
61+
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
62+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
6363
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
6464
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
6565
}
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Aug 24 19:04:08 TRT 2022
1+
#Tue May 16 20:15:34 TRT 2023
22
distributionBase=GRADLE_USER_HOME
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-bin.zip
43
distributionPath=wrapper/dists
5-
zipStorePath=wrapper/dists
4+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-bin.zip
65
zipStoreBase=GRADLE_USER_HOME
6+
zipStorePath=wrapper/dists

settings.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ dependencyResolutionManagement {
1010
repositories {
1111
google()
1212
mavenCentral()
13-
maven { url 'https://jitpack.io'}
13+
maven { url 'https://jitpack.io' }
1414
}
1515
}
1616
rootProject.name = "Compose Cropper"

0 commit comments

Comments
 (0)