Skip to content

Commit b17f9e8

Browse files
committed
Bring back withPlugin for the deprecated plugin
1 parent f7bd607 commit b17f9e8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

plugin-build/src/main/kotlin/io/sentry/android/gradle/SentryPlugin.kt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ constructor(private val buildEvents: BuildEventListenerRegistryInternal) : Plugi
3636
runCatching { extraProperties.get(SENTRY_PROJECT_PARAMETER).toString() }.getOrNull()
3737

3838
val extension = SentryPluginExtension.of(project)
39-
AndroidAppSubplugin(project, extension)
40-
.apply(buildEvents, sentryOrgParameter, sentryProjectParameter)
39+
project.pluginManager.withPlugin("com.android.application") {
40+
AndroidAppSubplugin(project, extension)
41+
.apply(buildEvents, sentryOrgParameter, sentryProjectParameter)
42+
}
4143
}
4244

4345
private fun Project.checkAgpApplied() {

0 commit comments

Comments
 (0)