96b4fc8539
- Add minute/second abbreviations and kotlin.time-based relative time formatter - Introduce FastPreview and update previews to use AppTheme with dark/dynamic colors - Refactor attachments preview grid & waveform to use ImmutableList and reduce recompositions - Tweak message bubble reply styling and swipe-to-reply animation/haptics - Add Compose Stability Analyzer plugin and enable it in debug builds - Cache shared images by sha256 and improve share intent/chooser text - Minor UX polish (e.g., “No views”) and immutability annotations
20 lines
704 B
Kotlin
20 lines
704 B
Kotlin
import com.android.build.api.dsl.ApplicationExtension
|
|
import dev.meloda.fast.configureAndroidCompose
|
|
import org.gradle.api.Plugin
|
|
import org.gradle.api.Project
|
|
import org.gradle.kotlin.dsl.apply
|
|
import org.gradle.kotlin.dsl.getByType
|
|
|
|
class AndroidApplicationComposeConventionPlugin : Plugin<Project> {
|
|
override fun apply(target: Project) {
|
|
with(target) {
|
|
apply(plugin = "com.android.application")
|
|
apply(plugin = "org.jetbrains.kotlin.plugin.compose")
|
|
apply(plugin = "com.github.skydoves.compose.stability.analyzer")
|
|
|
|
val extension = extensions.getByType<ApplicationExtension>()
|
|
configureAndroidCompose(extension)
|
|
}
|
|
}
|
|
}
|