diff --git a/core/build.gradle.kts b/core/build.gradle.kts index b97039f..8e79fcf 100644 --- a/core/build.gradle.kts +++ b/core/build.gradle.kts @@ -64,6 +64,16 @@ kotlin { } } +configurations.named("lintPublish") { + // kotlin-stdlib is provided by the lint host at runtime; exclude it so AGP + // sees exactly one JAR in lintPublish and does not fail with "Found more than one jar". + isTransitive = false +} + +dependencies { + lintPublish(project(":featured-lint-rules")) +} + // Zips the release XCFramework for distribution via Swift Package Manager. // Output: build/xcframeworks/FeaturedCore.xcframework.zip val zipXCFramework by tasks.registering(Zip::class) { diff --git a/sample/android-app/build.gradle.kts b/sample/android-app/build.gradle.kts index 7ec60e0..3b79be2 100644 --- a/sample/android-app/build.gradle.kts +++ b/sample/android-app/build.gradle.kts @@ -24,6 +24,11 @@ android { versionName = "1.0.0" } + compileOptions { + sourceCompatibility = JavaVersion.VERSION_21 + targetCompatibility = JavaVersion.VERSION_21 + } + buildFeatures { compose = true }