fix(build-logic):missing resource for android target
Summary by CodeRabbit
- Chores
- Enhanced Android configuration for Kotlin Multiplatform builds to enable resource support in multiplatform Android library targets.
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,
enableAndroidResourcesset 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.
Comment @coderabbitai help to get the list of available commands and usage tips.