Private
Public Access
1
0

AttachmentViewer: Make it zoomable using a library

This commit is contained in:
2024-03-23 18:27:15 -07:00
parent 9f37b57876
commit 611ad15997
3 changed files with 71 additions and 31 deletions

View File

@@ -83,7 +83,14 @@ dependencies {
// Jetpack Compose Integration
implementation "androidx.navigation:navigation-compose:$nav_version"
implementation 'androidx.activity:activity-compose:1.4.3'
// Jetpack Compose
def compose_version = "1.4.3"
implementation "androidx.compose.ui:ui:$compose_version"
implementation "androidx.compose.material:material:$compose_version"
implementation "androidx.compose.foundation:foundation:$compose_version"
implementation "androidx.activity:activity-compose:$compose_version"
// Lifecycle
def lifecycle_version = "2.6.1"
@@ -91,9 +98,6 @@ dependencies {
implementation "androidx.lifecycle:lifecycle-runtime-ktx:$lifecycle_version"
implementation "androidx.lifecycle:lifecycle-viewmodel-compose:$lifecycle_version"
implementation "androidx.compose.ui:ui:1.4.3"
implementation 'androidx.compose.material:material:1.4.3'
implementation "androidx.compose.foundation:foundation:1.4.3"
// Hilt (dependency injection)
implementation "com.google.dagger:hilt-android:${hilt_version}"
@@ -107,7 +111,10 @@ dependencies {
// Disk LRU Cache
implementation "com.jakewharton:disklrucache:2.0.2"
debugImplementation 'androidx.compose.ui:ui-tooling:1.4.3'
// Zooming in images
implementation "net.engawapg.lib:zoomable:$compose_version"
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
}
// Allow references to generated code