Skip to content

Instantly share code, notes, and snippets.

View BobbyESP's full-sized avatar

Gabriel Fontán BobbyESP

View GitHub Profile
@BobbyESP
BobbyESP / Page.kt
Created April 9, 2024 21:13
Shared scope testing
SharedTransitionLayout {
Column(
modifier = Modifier
.fillMaxSize()
.padding(paddingValues)
) {
LazyColumnScrollbar(
listState = lazyListState,
thumbColor = MaterialTheme.colorScheme.onSurfaceVariant,
thumbSelectedColor = MaterialTheme.colorScheme.primary,
@BobbyESP
BobbyESP / TypeConverterGenerator.kt
Last active August 17, 2023 16:09
Type converter generator for Room entities (data classes)
import java.io.File
import kotlin.reflect.KClass
fun main() {
val classesToGenerate = emptyList() //Create a list with your classes || Example: listOf(Agent::class, Ability::class, Buddy::class, Bundle::class)
for (clazz in classesToGenerate) {
generateTypeConverter(clazz)
}
}
@BobbyESP
BobbyESP / libs.versions.toml
Created May 21, 2023 13:30
Another nice and updated TOML file with Android libraries and more, including GMS, DI, Jetpakc Compose, Accompanist...
[versions]
#General, lifecycle and core
agp = "8.2.0-alpha04"
kotlin = "1.8.21"
core-ktx = "1.10.1"
lifecycle-runtime-ktx = "2.6.1"
activity-compose = "1.7.1"
compose-compiler = "1.4.7"
ksp = "1.8.21-1.0.11"
@BobbyESP
BobbyESP / libs.versions.toml
Created April 29, 2023 10:05
A very complete TOML file for Android Development mainly thought for the new Jetpack Compose framework
[versions]
accompanist = "0.29.2-rc"
androidGradlePlugin = "7.4.2"
androidxComposeBom = "2023.01.00"
androidxComposeCompiler = "1.4.6"
androidxCore = "1.10.0-rc01"
androidMaterial = "1.9.0-alpha02"
androidxAppCompat = "1.7.0-alpha02"
androidxActivity = "1.7.1"
markdownDependency = "0.3.2"