Skip to content

Commit a6aceb3

Browse files
committedNov 27, 2023
Fixed support for Android dynamic feature plugins
Relates #441
1 parent 15f30a7 commit a6aceb3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed
 

‎kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/locators/CompilationsListeners.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ internal fun Project.getKotlinExtension(): DynamicBean {
124124
}
125125

126126
internal val Project.hasAnyAndroidPlugin: Boolean
127-
get() = pluginManager.hasPlugin(ANDROID_APP_PLUGIN_ID) || pluginManager.hasPlugin(ANDROID_LIB_PLUGIN_ID)
127+
get() = pluginManager.hasPlugin(ANDROID_APP_PLUGIN_ID) || pluginManager.hasPlugin(ANDROID_LIB_PLUGIN_ID) || pluginManager.hasPlugin(ANDROID_DYNAMIC_PLUGIN_ID)
128128

129129
internal const val ANDROID_APP_PLUGIN_ID = "com.android.application"
130130

‎kover-gradle-plugin/src/main/kotlin/kotlinx/kover/gradle/plugin/locators/KotlinMultiPlatformLocator.kt

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ internal fun LocatorContext.initKotlinMultiplatformPluginLocator() {
2626
project.pluginManager.withPlugin(ANDROID_LIB_PLUGIN_ID) {
2727
project.afterAndroidPluginApplied(::processWithAndroidTarget)
2828
}
29+
project.pluginManager.withPlugin(ANDROID_DYNAMIC_PLUGIN_ID) {
30+
project.afterAndroidPluginApplied(::processWithAndroidTarget)
31+
}
2932

3033
project.afterEvaluate {
3134
if (!hasAnyAndroidPlugin) {

0 commit comments

Comments
 (0)
Please sign in to comment.