Add Compose and miuix dependencies

Add Jetpack Compose BOM, activity-compose, lifecycle-runtime-compose,
lifecycle-viewmodel-compose, and miuix library dependencies.
Enable the Compose compiler plugin alongside existing data binding.

Made-with: Cursor
This commit is contained in:
LoveSy
2026-03-16 02:48:16 -07:00
committed by topjohnwu
parent 925ed577e7
commit 9107bb6af3
4 changed files with 28 additions and 0 deletions
+1
View File
@@ -12,3 +12,4 @@ native/out
# Android Studio
*.iml
.idea
.cursor
+12
View File
@@ -1,6 +1,7 @@
plugins {
id("com.android.application")
kotlin("plugin.parcelize")
kotlin("plugin.compose")
alias(libs.plugins.legacy.kapt)
alias(libs.plugins.navigation.safeargs)
}
@@ -19,6 +20,7 @@ kapt {
android {
buildFeatures {
dataBinding = true
compose = true
}
compileOptions {
@@ -57,6 +59,16 @@ dependencies {
implementation(libs.appcompat)
implementation(libs.material)
// Compose
implementation(platform(libs.compose.bom))
implementation(libs.compose.ui)
implementation(libs.compose.ui.tooling.preview)
debugImplementation(libs.compose.ui.tooling)
implementation(libs.activity.compose)
implementation(libs.lifecycle.runtime.compose)
implementation(libs.lifecycle.viewmodel.compose)
implementation(libs.miuix)
// Make sure kapt runs with a proper kotlin-stdlib
kapt(kotlin("stdlib"))
}
+1
View File
@@ -18,6 +18,7 @@ gradlePlugin {
dependencies {
implementation(kotlin("gradle-plugin", libs.versions.kotlin.get()))
implementation("org.jetbrains.kotlin:compose-compiler-gradle-plugin:${libs.versions.kotlin.get()}")
implementation(libs.android.gradle.plugin)
implementation(libs.jgit)
}
+14
View File
@@ -8,6 +8,10 @@ libsu = "6.0.0"
okhttp = "5.3.2"
retrofit = "3.0.0"
room = "2.8.4"
compose-bom = "2026.02.01"
lifecycle = "2.9.4"
activity-compose = "1.12.4"
miuix = "0.8.5"
[libraries]
bcpkix = { module = "org.bouncycastle:bcpkix-jdk18on", version = "1.83" }
@@ -57,6 +61,16 @@ rikka-recyclerview = { module = "dev.rikka.rikkax.recyclerview:recyclerview-ktx"
rikka-layoutinflater = { module = "dev.rikka.rikkax.layoutinflater:layoutinflater", version.ref = "rikka" }
rikka-insets = { module = "dev.rikka.rikkax.insets:insets", version.ref = "rikka" }
# Compose
activity-compose = { module = "androidx.activity:activity-compose", version.ref = "activity-compose" }
compose-bom = { module = "androidx.compose:compose-bom", version.ref = "compose-bom" }
compose-ui = { module = "androidx.compose.ui:ui" }
compose-ui-tooling = { module = "androidx.compose.ui:ui-tooling" }
compose-ui-tooling-preview = { module = "androidx.compose.ui:ui-tooling-preview" }
lifecycle-runtime-compose = { module = "androidx.lifecycle:lifecycle-runtime-compose", version.ref = "lifecycle" }
lifecycle-viewmodel-compose = { module = "androidx.lifecycle:lifecycle-viewmodel-compose", version.ref = "lifecycle" }
miuix = { module = "top.yukonga.miuix.kmp:miuix-android", version.ref = "miuix" }
# Build plugins
android-gradle-plugin = { module = "com.android.tools.build:gradle", version.ref = "android" }