Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ org.jetbrains.compose.experimental.wasm.enabled=true
org.jetbrains.compose.experimental.uikit.enabled=true
org.jetbrains.compose.experimental.jscanvas.enabled=true
org.jetbrains.compose.experimental.macos.enabled=true
# Screenshot test
android.experimental.enableScreenshotTest=true
# Dokka
org.jetbrains.dokka.experimental.gradle.pluginMode=V2Enabled
org.jetbrains.dokka.experimental.gradle.pluginMode.noWarn=true
Expand Down
25 changes: 15 additions & 10 deletions multiplatform-markdown-renderer-code/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,19 +1,24 @@
plugins {
id("com.mikepenz.convention.android-library")
id("com.mikepenz.convention.kotlin-multiplatform")
id("com.mikepenz.convention.compose")
id("com.mikepenz.convention.publishing")
}

android {
namespace = "com.mikepenz.markdown.code"
}
kotlin {
android {
namespace = "com.mikepenz.markdown.code"
}

dependencies {
commonMainApi(projects.multiplatformMarkdownRenderer)
commonMainCompileOnly(compose.runtime)
commonMainCompileOnly(compose.ui)
commonMainCompileOnly(compose.foundation)
sourceSets {
val commonMain by getting {
dependencies {
api(projects.multiplatformMarkdownRenderer)
compileOnly(compose.runtime)
compileOnly(compose.ui)
compileOnly(compose.foundation)

commonMainApi(libs.highlights)
api(libs.highlights)
}
}
}
}
30 changes: 19 additions & 11 deletions multiplatform-markdown-renderer-coil2/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,26 @@
plugins {
id("com.mikepenz.convention.android-library")
id("com.mikepenz.convention.kotlin-multiplatform")
id("com.mikepenz.convention.compose")
id("com.mikepenz.convention.publishing")
}

android {
namespace = "com.mikepenz.markdown.coil2"
}

dependencies {
commonMainApi(projects.multiplatformMarkdownRenderer)
commonMainCompileOnly(compose.runtime)
commonMainCompileOnly(compose.ui)
kotlin {
android {
namespace = "com.mikepenz.markdown.coil2"
}
sourceSets {
val commonMain by getting {
dependencies {
api(projects.multiplatformMarkdownRenderer)
compileOnly(compose.runtime)
compileOnly(compose.ui)
}
}

androidMainApi(libs.coil2.core)
}
val androidMain by getting {
dependencies {
api(libs.coil2.core)
}
}
}
}
25 changes: 14 additions & 11 deletions multiplatform-markdown-renderer-coil3/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
plugins {
id("com.mikepenz.convention.android-library")
id("com.mikepenz.convention.kotlin-multiplatform")
id("com.mikepenz.convention.compose")
id("com.mikepenz.convention.publishing")
}

android {
namespace = "com.mikepenz.markdown.coil3"
}

dependencies {
commonMainApi(projects.multiplatformMarkdownRenderer)

commonMainApi(libs.coil.core) {
exclude(group = "org.jetbrains.compose.runtime")
kotlin {
android {
namespace = "com.mikepenz.markdown.coil3"
}
sourceSets {
val commonMain by getting {
dependencies {
api(projects.multiplatformMarkdownRenderer)
api(libs.coil.core.get().toString()) {
Copy link

Copilot AI Dec 29, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dependency declaration should be api(libs.coil.core) instead of api(libs.coil.core.get().toString()). Converting the dependency to a String breaks Gradle's dependency DSL and will prevent the dependency from being resolved correctly. The version catalog accessor can be used directly without calling .get().toString().

Suggested change
api(libs.coil.core.get().toString()) {
api(libs.coil.core) {

Copilot uses AI. Check for mistakes.
exclude(group = "org.jetbrains.compose.runtime")
}
compileOnly(compose.runtime)
}
}
}
commonMainCompileOnly(compose.runtime)
}
24 changes: 14 additions & 10 deletions multiplatform-markdown-renderer-m2/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
plugins {
id("com.mikepenz.convention.android-library")
id("com.mikepenz.convention.kotlin-multiplatform")
id("com.mikepenz.convention.compose")
id("com.mikepenz.convention.publishing")
}

android {
namespace = "com.mikepenz.markdown.m2"
}

dependencies {
commonMainApi(projects.multiplatformMarkdownRenderer)
commonMainApi(libs.markdown)
kotlin {
android {
namespace = "com.mikepenz.markdown.m2"
}
sourceSets {
val commonMain by getting {
dependencies {
api(projects.multiplatformMarkdownRenderer)
api(libs.markdown)

commonMainCompileOnly(compose.runtime)
commonMainCompileOnly(compose.material)
compileOnly(compose.runtime)
compileOnly(compose.material)
}
}
}
}
24 changes: 14 additions & 10 deletions multiplatform-markdown-renderer-m3/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
plugins {
id("com.mikepenz.convention.android-library")
id("com.mikepenz.convention.kotlin-multiplatform")
id("com.mikepenz.convention.compose")
id("com.mikepenz.convention.publishing")
}

android {
namespace = "com.mikepenz.markdown.m3"
}

dependencies {
commonMainApi(projects.multiplatformMarkdownRenderer)
commonMainApi(libs.markdown)
kotlin {
android {
namespace = "com.mikepenz.markdown.m3"
}
sourceSets {
val commonMain by getting {
dependencies {
api(projects.multiplatformMarkdownRenderer)
api(libs.markdown)

commonMainCompileOnly(compose.runtime)
commonMainCompileOnly(compose.material3)
compileOnly(compose.runtime)
compileOnly(compose.material3)
}
}
}
}
29 changes: 17 additions & 12 deletions multiplatform-markdown-renderer/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
plugins {
id("com.mikepenz.convention.android-library")
id("com.mikepenz.convention.kotlin-multiplatform")
id("com.mikepenz.convention.compose")
id("com.mikepenz.convention.publishing")
}

android {
namespace = "com.mikepenz.markdown"
kotlin {
android {
namespace = "com.mikepenz.markdown"
}

sourceSets {
val commonMain by getting {
dependencies {
api(libs.markdown)
api(baseLibs.kotlinx.collections.immutable)

compileOnly(compose.runtime)
compileOnly(compose.ui)
compileOnly(compose.foundation)
}
}
}
}

composeCompiler {
stabilityConfigurationFiles.add(project.layout.projectDirectory.file("stability_config.conf"))
}

dependencies {
commonMainApi(libs.markdown)
commonMainApi(baseLibs.kotlinx.collections.immutable)

commonMainCompileOnly(compose.runtime)
commonMainCompileOnly(compose.ui)
commonMainCompileOnly(compose.foundation)
}
6 changes: 0 additions & 6 deletions sample/android/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
plugins {
id("com.mikepenz.convention.android-application")
id("com.mikepenz.convention.kotlin")
id("com.mikepenz.convention.compose")
id("com.mikepenz.aboutlibraries.plugin")
id("com.mikepenz.aboutlibraries.plugin.android")
alias(baseLibs.plugins.screenshot)
}

android {
Expand All @@ -14,9 +12,6 @@ android {
applicationId = "com.mikepenz.markdown"
base.archivesName = "markdown-renderer-sample-v$versionName-c$versionCode"
}

@Suppress("UnstableApiUsage")
experimentalProperties["android.experimental.enableScreenshotTest"] = true
}

dependencies {
Expand All @@ -27,7 +22,6 @@ dependencies {
implementation(libs.androidx.activity.compose)
implementation(libs.ktor.client.okhttp)
debugImplementation(compose.uiTooling)
"screenshotTestImplementation"(compose.uiTooling)
}

aboutLibraries {
Expand Down
1 change: 1 addition & 0 deletions sample/desktop/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ plugins {
id("com.mikepenz.convention.kotlin-multiplatform")
id("com.mikepenz.convention.compose")
id("com.mikepenz.aboutlibraries.plugin")
alias(baseLibs.plugins.composeHotreload)
}

kotlin {
Expand Down
3 changes: 2 additions & 1 deletion sample/desktop/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
com.mikepenz.binary-compatibility-validator.enabled=false
com.mikepenz.hotreload.enabled=true
com.mikepenz.java.version=21
com.mikepenz.java.version=21
com.mikepenz.android.enabled=false
10 changes: 4 additions & 6 deletions sample/shared/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
plugins {
id("com.mikepenz.convention.android-library")
id("com.mikepenz.convention.kotlin-multiplatform")
id("com.mikepenz.convention.compose")
id("com.mikepenz.aboutlibraries.plugin")
}

kotlin {
androidTarget()
androidLibrary {
namespace = "com.mikepenz.markdown.sample.shared"
experimentalProperties["android.experimental.kmp.enableAndroidResources"] = true
}

listOf(
iosX64(),
Expand Down Expand Up @@ -49,10 +51,6 @@ kotlin {
}
}

android {
namespace = "com.mikepenz.markdown.sample.shared"
}

compose.resources {
packageOfResClass = "com.mikepenz.markdown.sample.shared.resources"
}
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dependencyResolutionManagement {

versionCatalogs {
create("baseLibs") {
from("com.mikepenz:version-catalog:0.10.3")
from("com.mikepenz:version-catalog:0.11.6")
}
}
}
Expand Down
Loading