diff --git a/app/build.gradle b/app/build.gradle index 8283b193d..cfd7770f7 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -32,6 +32,10 @@ android { } } + buildFeatures { + compose true + } + defaultConfig { applicationId "io.github.nekoinverter.ehviewer" minSdkVersion 31 @@ -91,6 +95,10 @@ android { java.srcDirs += 'src/main/java-gen' } } + + composeOptions { + kotlinCompilerExtensionVersion compose + } namespace 'com.hippo.ehviewer' } @@ -138,6 +146,12 @@ dependencies { implementation 'org.greenrobot:greendao:3.3.0' implementation 'org.jsoup:jsoup:1.15.1' implementation projects.native + + implementation "androidx.compose.material3:material3:1.0.0-alpha12" + + implementation "androidx.compose.ui:ui:$compose" + implementation "androidx.compose.ui:ui-util:$compose" + implementation "androidx.compose.animation:animation-graphics:$compose" } configurations.all { diff --git a/build.gradle b/build.gradle index f463d285c..fab0470ac 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,9 @@ +buildscript { + ext { + compose = '1.2.0-beta02' + } +} + plugins { id 'com.android.application' version '7.2.0' apply false id 'org.jetbrains.kotlin.android' version '1.6.21' apply false