Skip to content

Commit

Permalink
migrate to compose
Browse files Browse the repository at this point in the history
  • Loading branch information
qhy040404 committed Nov 24, 2024
1 parent ad30bb5 commit 89dc4b8
Show file tree
Hide file tree
Showing 14 changed files with 338 additions and 416 deletions.
17 changes: 10 additions & 7 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id("com.android.application")
id("org.jetbrains.kotlin.android")
id("dev.rikka.tools.refine")
id("org.jetbrains.kotlin.plugin.compose")
}

android {
Expand All @@ -12,13 +12,13 @@ android {
applicationId = "com.qhy040404.fxxkmiuiad"
minSdk = 29
targetSdk = 35
versionCode = 9
versionName = "1.3.1"
versionCode = 10
versionName = "1.4.0"
}

buildFeatures {
buildConfig = true
viewBinding = true
compose = true
}

buildTypes {
Expand Down Expand Up @@ -55,10 +55,13 @@ dependencies {
compileOnly(project(":hidden-api"))

implementation("androidx.annotation:annotation:1.9.1")
implementation("com.google.android.material:material:1.12.0")
implementation("dev.rikka.rikkax.appcompat:appcompat:1.6.1")
implementation("dev.rikka.shizuku:api:13.1.5")
implementation("dev.rikka.shizuku:provider:13.1.5")
implementation("dev.rikka.tools.refine:runtime:4.4.0")
implementation("org.lsposed.hiddenapibypass:hiddenapibypass:4.3")

implementation(platform("androidx.compose:compose-bom:2024.11.00"))
implementation("androidx.compose.runtime:runtime")
implementation("androidx.activity:activity-compose")
implementation("androidx.compose.ui:ui")
implementation("androidx.compose.material3:material3")
}
2 changes: 1 addition & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
android:theme="@style/Theme.FxxkMIUIAd"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:name=".MainComposeActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
Expand Down
227 changes: 0 additions & 227 deletions app/src/main/java/com/qhy040404/fxxkmiuiad/MainActivity.kt

This file was deleted.

Loading

0 comments on commit 89dc4b8

Please sign in to comment.