We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c5002e9 commit 5310b3eCopy full SHA for 5310b3e
1 file changed
sentry-android-gradle-plugin/src/main/groovy/io/sentry/android/gradle/SentryPlugin.groovy
@@ -1,6 +1,7 @@
1
package io.sentry.android.gradle
2
3
import com.android.build.gradle.AppPlugin
4
+import com.android.build.gradle.LibraryPlugin
5
import com.android.build.gradle.api.ApplicationVariant
6
import org.apache.commons.compress.utils.IOUtils
7
import org.gradle.api.Plugin
@@ -139,7 +140,7 @@ class SentryPlugin implements Plugin<Project> {
139
140
project.extensions.create("sentry", SentryPluginExtension)
141
142
project.afterEvaluate {
- if(!project.plugins.hasPlugin(AppPlugin)) {
143
+ if(!project.plugins.hasPlugin(AppPlugin) && !project.getPlugins().hasPlugin(LibraryPlugin)) {
144
throw new IllegalStateException('Must apply \'com.android.application\' first!')
145
}
146
0 commit comments