import org.jetbrains.kotlin.gradle.dsl.JvmTargetplugins { id("com.android.library") kotlin("android") kotlin("plugin.serialization") kotlin("plugin.compose")}// THE WRITING KIT: a text view styled live from the core's spans, the bar above the keyboard and the formatting// panel (editor/), the list row (list/) and the theme reader (theme/). It knows nothing of notes: an app hands it// its own [com.cottondb.writing.editor.WritingEngine], which asks its core what each key does and how the text// is styled, so Notes, Journal and Story drop in the same editor.android { namespace = "com.cottondb.writing" compileSdk = 36 defaultConfig { minSdk = 28 } buildFeatures { compose = true } compileOptions { sourceCompatibility = JavaVersion.VERSION_17 targetCompatibility = JavaVersion.VERSION_17 isCoreLibraryDesugaringEnabled = true } testOptions { unitTests.isReturnDefaultValues = true unitTests.isIncludeAndroidResources = true unitTests.all { test -> test.systemProperty("robolectric.graphicsMode", "NATIVE") test.systemProperty("robolectric.pixelCopyRenderMode", "hardware")System.getenv("WRITING_FONT_DIR")?.let { test.systemProperty("writing.fontDir", it); test.systemProperty("roborazzi.test.record", "true") } test.maxHeapSize = "3g" } }}kotlin { compilerOptions { jvmTarget.set(JvmTarget.JVM_17) }}dependencies { coreLibraryDesugaring("com.android.tools:desugar_jdk_libs:2.1.5")// The shell's controls (`control`, TalkBack's names) and its JSON readers; its Compose comes with it. api(project(":shell")) testImplementation("junit:junit:4.13.2") testImplementation("org.robolectric:robolectric:4.16") testImplementation("io.github.takahirom.roborazzi:roborazzi:1.50.0") testImplementation("io.github.takahirom.roborazzi:roborazzi-compose:1.50.0") testImplementation("androidx.compose.ui:ui-test-junit4") debugImplementation("androidx.compose.ui:ui-test-manifest")}