@@ -10,13 +10,12 @@ plugins {
1010 id ' org.jetbrains.kotlin.plugin.serialization'
1111 // enable if needed
1212 // id 'dev.reformator.stacktracedecoroutinator'
13-
1413 id ' io.sentry.android.gradle' version ' 6.1.0'
14+ alias(libs. plugins. compose. compiler)
1515}
1616
1717android {
1818 compileSdk = 36
19- buildToolsVersion = ' 35.0.0'
2019 namespace = ' io.github.landwarderer.futon'
2120
2221 dependenciesInfo {
@@ -78,6 +77,7 @@ android {
7877 buildFeatures {
7978 viewBinding true
8079 buildConfig true
80+ compose true
8181 }
8282 packagingOptions {
8383 resources {
@@ -86,7 +86,10 @@ android {
8686 ' META-INF/NOTICE.md'
8787 ]
8888 }
89- }
89+ jniLibs {
90+ useLegacyPackaging true
91+ }
92+ }
9093 sourceSets {
9194 androidTest. assets. srcDirs + = files(" $projectDir /schemas" . toString())
9295 main. java. srcDirs + = ' src/main/kotlin/'
@@ -149,6 +152,10 @@ dependencies {
149152 exclude group : ' org.json' , module : ' json'
150153 }
151154
155+ def composeBom = platform(libs. compose. bom)
156+ implementation composeBom
157+ androidTestImplementation composeBom
158+
152159 coreLibraryDesugaring libs. desugar. jdk. libs
153160 implementation libs. kotlin. stdlib
154161 implementation libs. kotlinx. coroutines. android
@@ -217,9 +224,21 @@ dependencies {
217224 implementation libs. conscrypt. android
218225 implementation libs. sentry. android
219226
227+ implementation libs. compose. material3
228+ implementation libs. compose. foundation
229+ implementation libs. compose. ui
230+ implementation libs. compose. ui. tooling. preview
231+ implementation libs. compose. material3. adaptive
232+ implementation libs. androidx. activity. compose
233+ implementation libs. androidx. lifecycle. viewmodel. compose
234+ implementation libs. compose. runtime. livedata
235+ implementation libs. compose. runtime. rxjava2
236+
220237 debugImplementation libs. leakcanary. android
221238 nightlyImplementation libs. leakcanary. android
222239 debugImplementation libs. workinspector
240+ debugImplementation libs. compose. ui. tooling
241+ debugImplementation libs. compose. ui. test. manifest
223242
224243 testImplementation libs. junit
225244 testImplementation libs. json
@@ -229,6 +248,7 @@ dependencies {
229248 androidTestImplementation libs. androidx. rules
230249 androidTestImplementation libs. androidx. test. core
231250 androidTestImplementation libs. androidx. junit
251+ androidTestImplementation libs. compose. ui. test. junit4
232252
233253 androidTestImplementation libs. kotlinx. coroutines. test
234254
0 commit comments