Skip to content

Commit c0560c4

Browse files
add Transform data class
1 parent 2943804 commit c0560c4

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

app/build.gradle

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ dependencies {
5151
implementation project(':image')
5252

5353
implementation 'androidx.core:core-ktx:1.8.0'
54-
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.4.1'
54+
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.5.0'
5555

56-
implementation 'com.github.SmartToolFactory:Compose-Extended-Gestures:1.2.0'
56+
implementation 'com.github.SmartToolFactory:Compose-Extended-Gestures:2.0.0'
5757

5858
implementation "androidx.compose.ui:ui:$compose_version"
5959
// Tooling support (Previews, etc.)
@@ -66,12 +66,12 @@ dependencies {
6666
implementation "androidx.compose.material:material-icons-core:$compose_version"
6767
implementation "androidx.compose.material:material-icons-extended:$compose_version"
6868
// Integration with activities
69-
implementation 'androidx.activity:activity-compose:1.4.0'
69+
implementation 'androidx.activity:activity-compose:1.5.0'
7070
// Integration with ViewModels
71-
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.4.1'
71+
implementation 'androidx.lifecycle:lifecycle-viewmodel-compose:2.5.0'
7272

7373
// Material Design 3 for Compose
74-
implementation "androidx.compose.material3:material3:1.0.0-alpha13"
74+
implementation "androidx.compose.material3:material3:1.0.0-alpha14"
7575

7676
// Photo Picker
7777
implementation("com.google.modernstorage:modernstorage-photopicker:1.0.0-alpha06")

image/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ dependencies {
4646

4747
implementation 'androidx.core:core-ktx:1.8.0'
4848

49-
implementation 'com.github.SmartToolFactory:Compose-Extended-Gestures:1.2.0'
49+
implementation 'com.github.SmartToolFactory:Compose-Extended-Gestures:2.0.0'
5050

5151
// Jetpack Compose
5252
implementation "androidx.compose.ui:ui:$compose_version"
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.smarttoolfactory.image.transform
2+
3+
import androidx.compose.runtime.Immutable
4+
5+
@Immutable
6+
data class Transform(
7+
val translationX: Float = 0f,
8+
val translationY: Float = 0f,
9+
val scaleX: Float = 1f,
10+
val scaleY: Float = 1f,
11+
val rotation: Float = 0f
12+
)

0 commit comments

Comments
 (0)