v1.0.3: Fix TipTap JSON content conversion for editor display

- Replace all TypeToken usage with JsonParser/gson.fromJson (fixes R8/ProGuard crash)
- Add parseJsonArray/parseJsonObject helpers for API response parsing
- Fix contentToMarkdown to properly convert TipTap JSON objects to Markdown
  using tiptapToMarkdown instead of returning raw JSON
- Fix API endpoints to handle unwrapped response formats
- Add ProGuard rules for Gson TypeToken preservation
- Redirect build dir to /tmp for Samba compatibility
This commit is contained in:
2026-07-27 17:25:40 -06:00
parent bc6ed08648
commit 7be826f9ba
11 changed files with 189 additions and 101 deletions

View File

@@ -14,3 +14,12 @@ dependencyResolutionManagement {
rootProject.name = "Docmost"
include(":app")
val localBuildDir = "/tmp/android-build/Docmost"
gradle.projectsLoaded {
rootProject.layout.buildDirectory.set(file(localBuildDir))
rootProject.subprojects.forEach { project ->
project.layout.buildDirectory.set(file("$localBuildDir/${project.name}"))
}
}