Switches Robohash to Precompiled SVGs in order to reduce the memory burned of creating Strings with SVGs on the fly.

This commit is contained in:
Vitor Pamplona
2024-03-08 18:41:07 -05:00
parent e6da340879
commit 632bd77db3
59 changed files with 7910 additions and 177 deletions
+12
View File
@@ -32,6 +32,14 @@ android {
jvmTarget = '17'
freeCompilerArgs += "-Xstring-concat=inline"
}
buildFeatures {
compose true
}
composeOptions {
// Should match compose version : https://developer.android.com/jetpack/androidx/releases/compose-kotlin
kotlinCompilerExtensionVersion "1.5.8"
}
}
dependencies {
@@ -40,6 +48,10 @@ dependencies {
// Import @Immutable and @Stable
implementation platform(libs.androidx.compose.bom)
implementation libs.androidx.ui
implementation libs.androidx.compose.foundation
debugImplementation libs.androidx.ui.tooling
implementation libs.androidx.ui.tooling.preview
// immutable collections to avoid recomposition
api libs.kotlinx.collections.immutable