kmp-project-template icon indicating copy to clipboard operation
kmp-project-template copied to clipboard

fix(build-logic):missing resource for android target

Open Arinyadav1 opened this issue 5 months ago β€’ 1 comments

Summary by CodeRabbit

  • Chores
    • Enhanced Android configuration for Kotlin Multiplatform builds to enable resource support in multiplatform Android library targets.

Arinyadav1 avatar Jun 14 '26 07:06 Arinyadav1

Review Change Stack

No actionable comments were generated in the recent review. πŸŽ‰

ℹ️ Recent review info
βš™οΈ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: bf869a4b-34a2-48c1-9010-328d625b2564

πŸ“₯ Commits

Reviewing files that changed from the base of the PR and between bbc9f4f9b9887ada4270051e0cf95e15ef81464a and 012e4fce71b6b8b59a65a4ba82fb8c91c562ab2a.

πŸ“’ Files selected for processing (1)
  • build-logic/convention/src/main/kotlin/org/convention/KotlinMultiplatform.kt

πŸ“ Walkthrough

Walkthrough

In configureKotlinMultiplatform(), an import for KotlinMultiplatformAndroidLibraryTarget is added and a configureEach block is applied to all matching targets, setting android.experimental.kmp.enableAndroidResources to true via experimentalProperties.

Changes

KMP Android Resources Convention

Layer / File(s) Summary
Enable Android resources on Android library targets
build-logic/convention/src/main/kotlin/org/convention/KotlinMultiplatform.kt
Imports KotlinMultiplatformAndroidLibraryTarget and adds a configureEach block inside configureKotlinMultiplatform() that sets the android.experimental.kmp.enableAndroidResources experimental property to true for every Android library target.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Poem

πŸ‡ Hoppin' through the build files with glee, A single flag unlocked for all to see, enableAndroidResources set to true, Resources in KMP, fresh and new! The bunny stamps approval β€” off we go! 🌿

πŸš₯ Pre-merge checks | βœ… 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
βœ… Passed checks (4 passed)
Check name Status Explanation
Description Check βœ… Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check βœ… Passed The title 'fix(build-logic):missing resource for android target' directly relates to the changeset, which enables Android resource configuration in the Kotlin Multiplatform build logic by configuring experimentalProperties for Android library targets.
Linked Issues check βœ… Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check βœ… Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
πŸ§ͺ Generate unit tests (beta)
  • [ ] Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❀️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

coderabbitai[bot] avatar Jun 14 '26 07:06 coderabbitai[bot]