Add build script for the RTE library

This commit is contained in:
Jorge Martín 2023-12-28 12:03:23 +01:00
parent b7b1c0d1fc
commit d5c8b62178
5 changed files with 89 additions and 3 deletions

View file

@ -34,8 +34,13 @@ dependencies {
implementation(projects.libraries.testtags)
implementation(projects.libraries.uiUtils)
api(libs.matrix.richtexteditor)
api(libs.matrix.richtexteditor.compose)
if (file("${rootDir.path}/libraries/textcomposer/lib/library-compose.aar").exists()) {
println("\nNote: Using local binaries of the Rich Text Editor.\n")
debugApi(projects.libraries.textcomposer.lib)
} else {
debugApi(libs.matrix.richtexteditor)
debugApi(libs.matrix.richtexteditor.compose)
}
ksp(libs.showkase.processor)

2
libraries/textcomposer/lib/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
# Built application files
*.aar

View file

@ -0,0 +1,3 @@
configurations.maybeCreate("default")
artifacts.add("default", file("library.aar"))
artifacts.add("default", file("library-compose.aar"))