Skip to content

Instantly share code, notes, and snippets.

@zainulhassan815
zainulhassan815 / TailwindColor.kt
Created February 14, 2022 16:25
Tailwind CSS Colors (v3) for jetpack compose
import androidx.compose.ui.graphics.Color
data class TailwindColor(
val primary: Color,
private val swatch: Map<Int, Long>,
) {
operator fun get(index: Int) = Color(swatch[index]!!)
/**
@n-belokopytov
n-belokopytov / copyDeps.gradle
Last active September 18, 2024 13:31
Gradle script that generates a task to copy all build variant's dependencies to a certain directory for use with Nexus IQ Server. It copies exploded AARs too, renaming the classes.jar file into "<aar_dependency_name>.jar".
apply plugin: 'com.android.application'
android.applicationVariants.all { variant ->
task "copyDependencies${variant.name.capitalize()}"() {
outputs.upToDateWhen { false }
doLast {
println "Executing copyDependencies${variant.name.capitalize()}"
variant.getCompileClasspath().each { fileDependency ->
def sourcePath = fileDependency.absolutePath
def destinationPath = project.projectDir.path + "/build/dependencies/${variant.name}/"