- tiptapToMarkdown used JsonObject.asMap() which returns Map<String, JsonElement> - All 'as? String' casts silently failed (JsonPrimitive != String), returning empty - Now uses Gson TypeToken<Map<String, Any?>> for proper raw type deserialization - contentToMarkdown now handles Map types directly without serialize roundtrip
100 lines
3.0 KiB
Kotlin
100 lines
3.0 KiB
Kotlin
import java.util.Properties
|
|
|
|
plugins {
|
|
id("com.android.application")
|
|
id("org.jetbrains.kotlin.android")
|
|
kotlin("kapt")
|
|
}
|
|
|
|
val keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
val keystoreProperties = Properties()
|
|
if (keystorePropertiesFile.exists()) {
|
|
keystoreProperties.load(keystorePropertiesFile.inputStream())
|
|
}
|
|
|
|
android {
|
|
namespace = "com.docmost.app"
|
|
compileSdk = 34
|
|
|
|
defaultConfig {
|
|
applicationId = "com.docmost.app"
|
|
minSdk = 26
|
|
targetSdk = 34
|
|
versionCode = 5
|
|
versionName = "1.0.4"
|
|
}
|
|
|
|
signingConfigs {
|
|
create("release") {
|
|
storeFile = file(keystoreProperties.getProperty("storeFile", "release.jks"))
|
|
storePassword = keystoreProperties.getProperty("storePassword", "")
|
|
keyAlias = keystoreProperties.getProperty("keyAlias", "")
|
|
keyPassword = keystoreProperties.getProperty("keyPassword", "")
|
|
}
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = true
|
|
isShrinkResources = true
|
|
signingConfig = signingConfigs.getByName("release")
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
}
|
|
|
|
buildFeatures {
|
|
viewBinding = true
|
|
buildConfig = true
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
implementation("androidx.core:core-ktx:1.12.0")
|
|
implementation("androidx.appcompat:appcompat:1.6.1")
|
|
implementation("com.google.android.material:material:1.11.0")
|
|
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
|
|
implementation("androidx.recyclerview:recyclerview:1.3.2")
|
|
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.7.0")
|
|
implementation("androidx.activity:activity-ktx:1.8.2")
|
|
implementation("com.google.code.gson:gson:2.10.1")
|
|
implementation("com.squareup.okhttp3:okhttp:4.12.0")
|
|
|
|
// Biometric authentication
|
|
implementation("androidx.biometric:biometric:1.1.0")
|
|
|
|
// Encrypted SharedPreferences
|
|
implementation("androidx.security:security-crypto:1.0.0")
|
|
|
|
// SwipeRefreshLayout
|
|
implementation("androidx.swiperefreshlayout:swiperefreshlayout:1.1.0")
|
|
|
|
// Markwon - Markdown rendering
|
|
implementation("io.noties.markwon:core:4.6.2")
|
|
implementation("io.noties.markwon:ext-strikethrough:4.6.2")
|
|
implementation("io.noties.markwon:ext-tables:4.6.2")
|
|
implementation("io.noties.markwon:ext-tasklist:4.6.2")
|
|
|
|
// Coil - Image loading
|
|
implementation("io.coil-kt:coil:2.7.0")
|
|
|
|
// Room - Local database for sync queue
|
|
implementation("androidx.room:room-runtime:2.6.1")
|
|
implementation("androidx.room:room-ktx:2.6.1")
|
|
kapt("androidx.room:room-compiler:2.6.1")
|
|
|
|
// WorkManager - Background sync
|
|
implementation("androidx.work:work-runtime-ktx:2.9.0")
|
|
}
|